ARM: DRA7: Kconfig: Make ARCH_NR_GPIO default to 512
authorR Sricharan <r.sricharan@ti.com>
Thu, 7 Feb 2013 12:13:35 +0000 (17:43 +0530)
committerRajendra Nayak <rnayak@ti.com>
Tue, 13 Aug 2013 05:30:44 +0000 (11:00 +0530)
DRA7xx has 8 GPIO banks so that there are 32x8 = 256 GPIOs.
In order for the gpiolib to detect and initialize these
and other TWL GPIOs, ARCH_NR_GPIO is set to 512 using the
kconfig default for DRA7.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
Signed-off-by: Rajendra Nayak <rnayak@ti.com>
arch/arm/Kconfig

index 43594d5116efce810798b763da8f3e7ea6891c93..50eada8260a952299417fcc738bbf99b9871f1cb 100644 (file)
@@ -1600,7 +1600,7 @@ config LOCAL_TIMERS
 config ARCH_NR_GPIO
        int
        default 1024 if ARCH_SHMOBILE || ARCH_TEGRA
-       default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5
+       default 512 if ARCH_EXYNOS || ARCH_KEYSTONE || SOC_OMAP5 || SOC_DRA7XX
        default 392 if ARCH_U8500
        default 352 if ARCH_VT8500
        default 288 if ARCH_SUNXI