projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4435804
)
ARM: shmobile: irq_pin() for static IRQ pin assignment
author
Magnus Damm
<damm@opensource.se>
Tue, 26 Feb 2013 03:00:59 +0000
(12:00 +0900)
committer
Simon Horman
<horms+renesas@verge.net.au>
Mon, 18 Mar 2013 12:26:05 +0000
(21:26 +0900)
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>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm/mach-shmobile/include/mach/irqs.h
patch
|
blob
|
history
diff --git
a/arch/arm/mach-shmobile/include/mach/irqs.h
b/arch/arm/mach-shmobile/include/mach/irqs.h
index 992ed213cec148584f26e6f0e5b8a71ad6f6b048..b2074e2acb15f2641f5b92fc65fad9ff619c54cb 100644
(file)
--- a/
arch/arm/mach-shmobile/include/mach/irqs.h
+++ b/
arch/arm/mach-shmobile/include/mach/irqs.h
@@
-12,4
+12,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 */