Skip to content

Commit

Permalink
ARM: shmobile: irq_pin() for static IRQ pin assignment
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Magnus Damm authored and Simon Horman committed Mar 18, 2013
1 parent 4435804 commit 1f4f11c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/arm/mach-shmobile/include/mach/irqs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 1f4f11c

Please sign in to comment.