All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/03] ARM: shmobile: irq_pin() for static IRQ pin assignment
@ 2013-02-26  2:55 Magnus Damm
  0 siblings, 0 replies; only message in thread
From: Magnus Damm @ 2013-02-26  2:55 UTC (permalink / raw)
  To: linux-sh

From: Magnus Damm <damm@opensource.se>

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

Signed-off-by: Magnus Damm <damm@opensource.se>
---

 arch/arm/mach-shmobile/include/mach/irqs.h |    4 ++++
 1 file changed, 4 insertions(+)

--- 0001/arch/arm/mach-shmobile/include/mach/irqs.h
+++ work/arch/arm/mach-shmobile/include/mach/irqs.h	2013-02-15 23:19:52.000000000 +0900
@@ -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 */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-02-26  2:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26  2:55 [PATCH 01/03] ARM: shmobile: irq_pin() for static IRQ pin assignment Magnus Damm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.