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)
commita36571b59e216e95860744c94e52ccbbe43401f0
tree63eca4e9e4a0c5097fe1da395a9ca079d2e511c7
parentaaed651ff619993fb2101a22b32dd0664e54921b
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