Skip to content

Commit 1f4f11c

Browse files
Magnus Dammhorms
authored andcommitted
ARM: shmobile: irq_pin() for static IRQ pin assignment
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>
1 parent 4435804 commit 1f4f11c

File tree

1 file changed

+4
-0
lines changed
  • arch/arm/mach-shmobile/include/mach

1 file changed

+4
-0
lines changed

arch/arm/mach-shmobile/include/mach/irqs.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@
1212
#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
1313
#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
1414

15+
/* External IRQ pins */
16+
#define IRQPIN_BASE 2000
17+
#define irq_pin(nr) ((nr) + IRQPIN_BASE)
18+
1519
#endif /* __ASM_MACH_IRQS_H */

0 commit comments

Comments
 (0)