Skip to content

Commit

Permalink
pinctrl: intel: merrifield: Enable 910 Ohm bias
Browse files Browse the repository at this point in the history
Family 7 (I2C) supports special bias value, i.e. 910 Ohm.

Enable it for configuring pin.

Signed-off-by: Andy Shevchenko <[email protected]>
  • Loading branch information
andy-shev committed May 22, 2017
1 parent f0976ad commit 891e686
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/pinctrl/intel/pinctrl-merrifield.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,9 @@ static int mrfld_config_set_pin(struct mrfld_pinctrl *mp, unsigned int pin,
case 2000:
bits |= BUFCFG_PUPD_VAL_2K << BUFCFG_PUPD_VAL_SHIFT;
break;
case 910:
bits |= BUFCFG_PUPD_VAL_910 << BUFCFG_PUPD_VAL_SHIFT;
break;
default:
return -EINVAL;
}
Expand All @@ -826,6 +829,9 @@ static int mrfld_config_set_pin(struct mrfld_pinctrl *mp, unsigned int pin,
case 2000:
bits |= BUFCFG_PUPD_VAL_2K << BUFCFG_PUPD_VAL_SHIFT;
break;
case 910:
bits |= BUFCFG_PUPD_VAL_910 << BUFCFG_PUPD_VAL_SHIFT;
break;
default:
return -EINVAL;
}
Expand Down

0 comments on commit 891e686

Please sign in to comment.