ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 28 Jan 2013 20:33:12 +0000 (21:33 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 29 Jan 2013 22:37:16 +0000 (23:37 +0100)
commit08e9e614ca4bec167f4b432328912b51a555f339
tree6c7820882046c25d43e7af8aa6857f9030789557
parentc54729eeb05d65a77975ca042cc334b32baa86f4
ARM: sunxi: gpio: Add Allwinner SoCs GPIO drivers

The IP responsible for the muxing on the Allwinner SoCs are also
handling the GPIOs on the system. This patch adds the needed driver that
relies on the pinctrl driver for most of its operations.

The number of pins available for GPIOs operations are already declared
in the pinctrl driver, we only need to probe a generic driver to handle
the banks available for each SoC.

This driver has been tested on a A13-Olinuxino.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-sunxi.c
drivers/pinctrl/pinctrl-sunxi.h