Skip to contentSkip to conversation

ARM: shmobile: irq_pin() for static IRQ pin assignment

PATCH In review Magnus Damm 1 participant 1 message Feb 26, 2013

Subsystems (4)
lore
Share & tools
lore

Magnus Damm

author maintainer
#0 lore raw

PATCH 1/3 ARM: shmobile: irq_pin() for static IRQ pin assignment

From: Magnus Damm <[email protected]>

Add the macro irq_pin() to let board-specific code using platform devices tie in external IRQn pins in a common way.

---

 arch/arm/mach-shmobile/include/mach/irqs.h |    4 ++++
 1 file changed, 4 insertions(+)
arch/arm/mach-shmobile/include/mach/irqs.h +4 -0
@@ -11,4 +11,8 @@
 #define INTCS_VECT(n, vect)	INTC_VECT((n), INTCS_VECT_BASE + (vect))
 #define intcs_evt2irq(evt)	evt2irq(INTCS_VECT_BASE + (evt))
 
+/* External IRQ pins */
+#define IRQPIN_BASE		2000
+#define irq_pin(nr)		((nr) + IRQPIN_BASE)
+
 #endif /* __ASM_MACH_IRQS_H */