]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl/abx500: fix ab8505 alternate function
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 28 Mar 2013 13:50:05 +0000 (14:50 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Apr 2013 09:23:13 +0000 (11:23 +0200)
commitedbaf7e4c6ca43b4c348bbc244558c448287271d
tree63eca4e9e4a0c5097fe1da395a9ca079d2e511c7
parentf2227aec4a88063b85b5e42b889bf619e8816599
pinctrl/abx500: fix ab8505 alternate function

This fix allows to correctly select default and
alternate pin mode.

By default for all ABx500 family chip, pin default
mode is selected by clearing corresponding bit in
GPIOSELx register except for pins which support
alternate function, in this case, corresponding bit
must be set.

But, due to an unlogical hardware implementation,
for one particular pin (GPIO11) reverse setting
must be done. For that, update the alternate function
array by declaring that this pin supports alternate
function.

Reported-by: Ramesh Chandrasekaran <ramesh.chandrasekaran@stericsson.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-ab8505.c