aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/Kconfig
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2013-02-03 06:24:48 -0500
committerArnd Bergmann <arnd@arndb.de>2013-03-11 16:49:46 -0400
commit2a6ad871a10ce915a300d8f227168ad4c34936ec (patch)
tree50f3bd4c4cecf446b4abc481d7f517f3720e6a36 /arch/arm/Kconfig
parent51c66cf9695f389126119e4cd7a50b832648f11e (diff)
ARM: multiplatform: Sort the max gpio numbers.
When building a multiplatform kernel, we could end up with a smaller number of GPIOs than the one required by the platform the kernel was running on. Sort the max GPIO number by descending order so that we always take the highest number required. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arm/Kconfig')
-rw-r--r--arch/arm/Kconfig7
1 files changed, 5 insertions, 2 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index 5b714695b01b..c7e027436f9e 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1657,13 +1657,16 @@ config LOCAL_TIMERS
1657 accounting to be spread across the timer interval, preventing a 1657 accounting to be spread across the timer interval, preventing a
1658 "thundering herd" at every timer tick. 1658 "thundering herd" at every timer tick.
1659 1659
1660# The GPIO number here must be sorted by descending number. In case of
1661# a multiplatform kernel, we just want the highest value required by the
1662# selected platforms.
1660config ARCH_NR_GPIO 1663config ARCH_NR_GPIO
1661 int 1664 int
1662 default 1024 if ARCH_SHMOBILE || ARCH_TEGRA 1665 default 1024 if ARCH_SHMOBILE || ARCH_TEGRA
1663 default 355 if ARCH_U8500
1664 default 264 if MACH_H4700
1665 default 512 if SOC_OMAP5 1666 default 512 if SOC_OMAP5
1667 default 355 if ARCH_U8500
1666 default 288 if ARCH_VT8500 || ARCH_SUNXI 1668 default 288 if ARCH_VT8500 || ARCH_SUNXI
1669 default 264 if MACH_H4700
1667 default 0 1670 default 0
1668 help 1671 help
1669 Maximum number of GPIOs in the system. 1672 Maximum number of GPIOs in the system.