ARM: S3C64XX: Add initial support for board specific IRQs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 24 Feb 2010 16:45:54 +0000 (16:45 +0000)
committerBen Dooks <ben-linux@fluff.org>
Wed, 24 Feb 2010 23:54:43 +0000 (23:54 +0000)
Follow the scheme used for IRQs. By default 16 GPIOs are allocated
for board use.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/mach-s3c64xx/include/mach/gpio.h

index e8e35e8fe73165f2010042d6ba1ba91b484a8b8a..0d46e994048a5ed1cb4bd4fba7be64ee864cbd38 100644 (file)
@@ -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>