aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/Kconfig9
-rw-r--r--arch/arm/include/asm/gpio.h4
2 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig
index e063d34ac7b9..003b7d00dd60 100644
--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -1565,6 +1565,15 @@ config LOCAL_TIMERS
1565 accounting to be spread across the timer interval, preventing a 1565 accounting to be spread across the timer interval, preventing a
1566 "thundering herd" at every timer tick. 1566 "thundering herd" at every timer tick.
1567 1567
1568config ARCH_NR_GPIO
1569 int
1570 default 1024 if ARCH_TEGRA
1571 default 0
1572 help
1573 Maximum number of GPIOs in the system.
1574
1575 If unsure, leave the default value.
1576
1568source kernel/Kconfig.preempt 1577source kernel/Kconfig.preempt
1569 1578
1570config HZ 1579config HZ
diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm/gpio.h
index 11ad0bfbb0ad..7151753b0989 100644
--- a/arch/arm/include/asm/gpio.h
+++ b/arch/arm/include/asm/gpio.h
@@ -1,6 +1,10 @@
1#ifndef _ARCH_ARM_GPIO_H 1#ifndef _ARCH_ARM_GPIO_H
2#define _ARCH_ARM_GPIO_H 2#define _ARCH_ARM_GPIO_H
3 3
4#if CONFIG_ARCH_NR_GPIO > 0
5#define ARCH_NR_GPIO CONFIG_ARCH_NR_GPIO
6#endif
7
4/* not all ARM platforms necessarily support this API ... */ 8/* not all ARM platforms necessarily support this API ... */
5#include <mach/gpio.h> 9#include <mach/gpio.h>
6 10