summaryrefslogtreecommitdiffstats
path: root/kernel/arch/arm/mach-shmobile/irqs.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/arm/mach-shmobile/irqs.h')
-rw-r--r--kernel/arch/arm/mach-shmobile/irqs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/kernel/arch/arm/mach-shmobile/irqs.h b/kernel/arch/arm/mach-shmobile/irqs.h
new file mode 100644
index 000000000..3070f6d88
--- /dev/null
+++ b/kernel/arch/arm/mach-shmobile/irqs.h
@@ -0,0 +1,15 @@
+#ifndef __SHMOBILE_IRQS_H
+#define __SHMOBILE_IRQS_H
+
+#include "include/mach/irqs.h"
+
+/* GIC */
+#define gic_spi(nr) ((nr) + 32)
+#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
+
+/* GPIO IRQ */
+#define _GPIO_IRQ_BASE 2500
+#define GPIO_IRQ_BASE(x) (_GPIO_IRQ_BASE + (32 * x))
+#define GPIO_IRQ(x, y) (_GPIO_IRQ_BASE + (32 * x) + y)
+
+#endif /* __SHMOBILE_IRQS_H */