]>
Commit | Line | Data |
---|---|---|
b6bab126 MD |
1 | #ifndef __SHMOBILE_IRQS_H |
2 | #define __SHMOBILE_IRQS_H | |
3 | ||
f2acab52 | 4 | #include "include/mach/irqs.h" |
b6bab126 MD |
5 | |
6 | /* GIC */ | |
7 | #define gic_spi(nr) ((nr) + 32) | |
8 | #define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */ | |
9 | ||
b6bab126 MD |
10 | /* GPIO IRQ */ |
11 | #define _GPIO_IRQ_BASE 2500 | |
12 | #define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x)) | |
13 | #define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y) | |
14 | ||
15 | #endif /* __SHMOBILE_IRQS_H */ |