ARM: S3C64XX: Add initial support for board specific IRQs

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, March 12, 2010 - 6:04 pm

Gitweb:     http://git.kernel.org/linus/d608c738bb8fb37e5fbfcdef9c566764f2fea086
Commit:     d608c738bb8fb37e5fbfcdef9c566764f2fea086
Parent:     e6502522c2850968a086284d0f28de4fb880eb78
Author:     Mark Brown <broonie@opensource.wolfsonmicro.com>
AuthorDate: Wed Feb 24 16:45:54 2010 +0000
Committer:  Ben Dooks <ben-linux@fluff.org>
CommitDate: Wed Feb 24 23:54:43 2010 +0000

    ARM: S3C64XX: Add initial support for board specific IRQs
    
    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 |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-s3c64xx/include/mach/gpio.h b/arch/arm/mach-s3c64xx/include/mach/gpio.h
index e8e35e8..0d46e99 100644
--- a/arch/arm/mach-s3c64xx/include/mach/gpio.h
+++ b/arch/arm/mach-s3c64xx/include/mach/gpio.h
@@ -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>
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ARM: S3C64XX: Add initial support for board specific IRQs, Linux Kernel Mailing ..., (Fri Mar 12, 6:04 pm)