pinctrl: at91: add option to use drive strength bits
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Mon, 25 Mar 2019 10:33:56 +0000 (10:33 +0000)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 9 Apr 2019 06:28:50 +0000 (09:28 +0300)
commit04d4ec9c575b1b64478fcd4034ffb0be9e026802
tree26ddd6224221b1d3f5f2b6ee5fbe548ee16bf0d3
parenta71e2f933bbd482b8c054dd40eddf43618e3d22a
pinctrl: at91: add option to use drive strength bits

SAM9X60 uses high and low drive strengths. To implement this, in
at91_pinctrl_mux_ops::set_drivestrength we need bit numbers of
drive strengths (1 for low, 2 for high), thus change the code to
allow the usage of drive strength bit numbers.

Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
drivers/pinctrl/pinctrl-at91.c