diff options
author | Magnus Damm <damm@opensource.se> | 2013-02-26 12:00:59 +0900 |
---|---|---|
committer | Simon Horman <horms+renesas@verge.net.au> | 2013-03-18 21:26:05 +0900 |
commit | 1f4f11c671dacc219fae538ecf691fd212e295a6 (patch) | |
tree | 1384f2d7b002d8a217942e61b6c2e9884c689016 | |
parent | 443580486e3b96578928c1c91e8fbdcf0c9c9c7f (diff) | |
download | linux-3.10-1f4f11c671dacc219fae538ecf691fd212e295a6.tar.gz linux-3.10-1f4f11c671dacc219fae538ecf691fd212e295a6.tar.bz2 linux-3.10-1f4f11c671dacc219fae538ecf691fd212e295a6.zip |
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>
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/irqs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h index 992ed213cec..b2074e2acb1 100644 --- 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 */ |