diff options
author | Magnus Damm <damm@opensource.se> | 2010-03-11 00:30:30 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-04-07 03:23:56 -0400 |
commit | ff9170aeff93575b05474f29533ac9688891742e (patch) | |
tree | e17fb6dabd7011d6b9ce61df51263bd8ec5cb2a3 /arch/arm/mach-shmobile | |
parent | 8fc883c2989c20781b001f8271d454d9b314a6ea (diff) |
ARM: mach-shmobile: add INTCS macros
Add SH-Mobile ARM INTCS macros for the INTCS controller.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile')
-rw-r--r-- | arch/arm/mach-shmobile/include/mach/irqs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/include/mach/irqs.h b/arch/arm/mach-shmobile/include/mach/irqs.h index 5179b72e1ee3..51b4a6ab6c60 100644 --- a/arch/arm/mach-shmobile/include/mach/irqs.h +++ b/arch/arm/mach-shmobile/include/mach/irqs.h | |||
@@ -4,7 +4,13 @@ | |||
4 | #define NR_IRQS 512 | 4 | #define NR_IRQS 512 |
5 | #define NR_IRQS_LEGACY 8 | 5 | #define NR_IRQS_LEGACY 8 |
6 | 6 | ||
7 | /* INTCA */ | ||
7 | #define evt2irq(evt) (((evt) >> 5) - 16) | 8 | #define evt2irq(evt) (((evt) >> 5) - 16) |
8 | #define irq2evt(irq) (((irq) + 16) << 5) | 9 | #define irq2evt(irq) (((irq) + 16) << 5) |
9 | 10 | ||
11 | /* INTCS */ | ||
12 | #define INTCS_VECT_BASE 0x3400 | ||
13 | #define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect)) | ||
14 | #define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt)) | ||
15 | |||
10 | #endif /* __ASM_MACH_IRQS_H */ | 16 | #endif /* __ASM_MACH_IRQS_H */ |