pinctrl: at91: add option to use drive strength bits
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 7 Feb 2019 09:24:46 +0000 (09:24 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 8 Feb 2019 12:04:41 +0000 (13:04 +0100)
commitb67328e1cf9735d2491ef9402fb7439db1d6e2ae
tree8a8adb44cd54613dc86a6a96b6ca52af70cdeae2
parent85e4e6881dbaae42bbac935c346753bea412ab76
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 and
at91_pinctrl_mux_ops::get_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>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-at91.c