]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
ARM: sunxi: Increase the number of GPIOs available
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Sat, 26 Jan 2013 14:36:51 +0000 (15:36 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 1 Feb 2013 09:42:38 +0000 (10:42 +0100)
The Allwinner A10 has 9 banks of 32 GPIOs available, so it doesn't fit
in the usual 256 limit set by gpio.h. Increase this number to 288.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/Kconfig

index 67874b82a4edf318ae3718ae6137393140405586..9c635b6cc3ead1e67cf33f614a37f8f63774caf1 100644 (file)
@@ -1637,7 +1637,7 @@ config ARCH_NR_GPIO
        default 355 if ARCH_U8500
        default 264 if MACH_H4700
        default 512 if SOC_OMAP5
-       default 288 if ARCH_VT8500
+       default 288 if ARCH_VT8500 || ARCH_SUNXI
        default 0
        help
          Maximum number of GPIOs in the system.