Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
[platform/adaptation/renesas_rcar/renesas_kernel.git] / arch / arm / mach-shmobile / include / mach / irqs.h
1 #ifndef __ASM_MACH_IRQS_H
2 #define __ASM_MACH_IRQS_H
3
4 #include <linux/sh_intc.h>
5
6 /* GIC */
7 #define gic_spi(nr)             ((nr) + 32)
8 #define gic_iid(nr)             (nr) /* ICCIAR / interrupt ID */
9
10 /* INTCS */
11 #define INTCS_VECT_BASE         0x3400
12 #define INTCS_VECT(n, vect)     INTC_VECT((n), INTCS_VECT_BASE + (vect))
13 #define intcs_evt2irq(evt)      evt2irq(INTCS_VECT_BASE + (evt))
14
15 /* External IRQ pins */
16 #define IRQPIN_BASE             2000
17 #define irq_pin(nr)             ((nr) + IRQPIN_BASE)
18
19 /* GPIO IRQ */
20 #define _GPIO_IRQ_BASE          2500
21 #define GPIO_IRQ_BASE(x)        (_GPIO_IRQ_BASE + (32 * x))
22 #define GPIO_IRQ(x, y)          (_GPIO_IRQ_BASE + (32 * x) + y)
23
24 #endif /* __ASM_MACH_IRQS_H */