Merge tag 'for-linus-20140905' of git://git.infradead.org/linux-mtd
[sfrench/cifs-2.6.git] / arch / arm / mach-shmobile / irqs.h
1 #ifndef __SHMOBILE_IRQS_H
2 #define __SHMOBILE_IRQS_H
3
4 #include <linux/sh_intc.h>
5 #include <mach/irqs.h>
6
7 /* GIC */
8 #define gic_spi(nr)             ((nr) + 32)
9 #define gic_iid(nr)             (nr) /* ICCIAR / interrupt ID */
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
16 /* GPIO IRQ */
17 #define _GPIO_IRQ_BASE          2500
18 #define GPIO_IRQ_BASE(x)        (_GPIO_IRQ_BASE + (32 * x))
19 #define GPIO_IRQ(x, y)          (_GPIO_IRQ_BASE + (32 * x) + y)
20
21 #endif /* __SHMOBILE_IRQS_H */