[PATCH 1/6] S5PV210 Add IRQ/EINT register information for the CPU.

MyungJoo Ham myungjoo.ham at samsung.com
Mon Jun 14 04:39:10 EDT 2010


Signed-off-by: MyungJoo Ham <MyungJoo.Ham at samsung.com>
---
 arch/arm/mach-s5pv210/include/mach/irqs.h     |    9 +++++++++
 arch/arm/mach-s5pv210/include/mach/regs-irq.h |    6 ++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-s5pv210/include/mach/irqs.h b/arch/arm/mach-s5pv210/include/mach/irqs.h
index 9689537..6c5f491 100644
--- a/arch/arm/mach-s5pv210/include/mach/irqs.h
+++ b/arch/arm/mach-s5pv210/include/mach/irqs.h
@@ -118,9 +118,18 @@
 #define IRQ_MDNIE3		S5P_IRQ_VIC3(8)
 #define IRQ_VIC_END		S5P_IRQ_VIC3(31)
 
+/* External interrupt */
+
 #define S5P_EINT_BASE1		(S5P_IRQ_VIC0(0))
 #define S5P_EINT_BASE2		(IRQ_VIC_END + 1)
 
+#define S5P_EINT(x)             (S5P_EINT_BASE2 + ((x) - 16))
+#define IRQ_EINT_BIT(x) ((x) < IRQ_EINT16_31 ? (x) - S5P_VIC0_BASE : (x) - S5P_EINT(0))
+
+/* GPIO interrupt */
+#define S5P_IRQ_GPIO_BASE       (IRQ_EINT(31) + 1)
+#define S5P_IRQ_GPIO(x)         (S5P_IRQ_GPIO_BASE + (x))
+
 /* Set the default NR_IRQS */
 #define NR_IRQS			(IRQ_EINT(31) + 1)
 
diff --git a/arch/arm/mach-s5pv210/include/mach/regs-irq.h b/arch/arm/mach-s5pv210/include/mach/regs-irq.h
index 5c3b104..139604f 100644
--- a/arch/arm/mach-s5pv210/include/mach/regs-irq.h
+++ b/arch/arm/mach-s5pv210/include/mach/regs-irq.h
@@ -16,4 +16,10 @@
 #include <asm/hardware/vic.h>
 #include <mach/map.h>
 
+/* interrupt controller */
+#define S5PV210_VIC0REG(x)                      ((x) + VA_VIC0)
+#define S5PV210_VIC1REG(x)                      ((x) + VA_VIC1)
+#define S5PV210_VIC2REG(x)                      ((x) + VA_VIC2)
+#define S5PV210_VIC3REG(x)                      ((x) + VA_VIC3)
+
 #endif /* __ASM_ARCH_REGS_IRQ_H */
-- 
1.6.3.3




More information about the linux-arm-kernel mailing list