Skip to contentSkip to conversation

ARM: S3C64XX: Add initial support for board specific IRQs

PATCH New Mark Brown 1 participant 1 message Feb 24, 2010

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ARM: S3C64XX: Add initial support for board specific IRQs

Follow the scheme used for IRQs. By default 16 GPIOs are allocated for board use.

---

Resending as requested.

 arch/arm/mach-s3c64xx/include/mach/gpio.h |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
arch/arm/mach-s3c64xx/include/mach/gpio.h +5 -1
index e8e35e8..0d46e99 100644
@@ -91,6 +91,10 @@ enum s3c_gpio_number {
 #define S3C_GPIO_END		S3C64XX_GPIO_END
 
 /* define the number of gpios we need to the one after the GPQ() range */
-#define ARCH_NR_GPIOS	(S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
+#define GPIO_BOARD_START (S3C64XX_GPQ(S3C64XX_GPIO_Q_NR) + 1)
+
+#define BOARD_NR_GPIOS 16
+
+#define ARCH_NR_GPIOS	(GPIO_BOARD_START + BOARD_NR_GPIOS)
 
 #include <asm-generic/gpio.h>
Signature · 1 line
1.7.0