[PATCH] pinctrl: SPEAr: Add SoC specific gpio configuration routines

Linus Walleij linus.walleij at linaro.org
Sun Nov 11 13:18:53 EST 2012


On Wed, Nov 7, 2012 at 3:37 PM, Viresh Kumar <viresh.kumar at linaro.org> wrote:

> From: Shiraz Hashim <shiraz.hashim at st.com>
>
> Different SPEAr SoCs have different approach to configure pins as gpios. Some
> configure a group of gpios with single register bit and others have one bit per
> gpio pin. Only earlier one is implemented till now, this patch adds support for
> later one.
>
> Here we add callbacks to SoC specific code to configure gpios in
> gpio_request_enable(). That will do additional SoC specific configuration to
> enable gpio pins.
>
> We also implement this callback for SPEAr1340 in this patch.
>
> Signed-off-by: Shiraz Hashim <shiraz.hashim at st.com>
> Signed-off-by: Viresh Kumar <viresh.kumar at linaro.org>

Applied.

Thanks!
Linus Walleij



More information about the linux-arm-kernel mailing list