summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/irqs.h
diff options
context:
space:
mode:
authorMagnus Damm <damm+renesas@opensource.se>2014-06-17 16:47:29 +0900
committerSimon Horman <horms+renesas@verge.net.au>2014-06-17 17:09:38 +0900
commitb6bab1263c61e39cfc3427f54baff6f683f54298 (patch)
treea23a60d47c0becdcc4edb22a2c260e97d08600a0 /arch/arm/mach-shmobile/irqs.h
parentad6ffa0b59dc2c81474d7642fa2188e25cce99d6 (diff)
downloadblackbird-op-linux-b6bab1263c61e39cfc3427f54baff6f683f54298.tar.gz
blackbird-op-linux-b6bab1263c61e39cfc3427f54baff6f683f54298.zip
ARM: shmobile: Move most of irqs.h, keep some for pinctl
Move most of irqs.h so it can be used as #include "irqs.h" instead of the old style #include <mach/irqs.h>. Legacy code in drivers/pinctrl needs more work to get rid of the "mach" portion of the include path, so some part is left in the original location. Signed-off-by: Magnus Damm <damm+renesas@opensource.se> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> [horms+renesas@verge.net.au: Do not add trailing blank line to irqs.h] Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/irqs.h')
-rw-r--r--arch/arm/mach-shmobile/irqs.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/mach-shmobile/irqs.h b/arch/arm/mach-shmobile/irqs.h
new file mode 100644
index 000000000000..4ff2d2aa94f0
--- /dev/null
+++ b/arch/arm/mach-shmobile/irqs.h
@@ -0,0 +1,21 @@
+#ifndef __SHMOBILE_IRQS_H
+#define __SHMOBILE_IRQS_H
+
+#include <linux/sh_intc.h>
+#include <mach/irqs.h>
+
+/* GIC */
+#define gic_spi(nr) ((nr) + 32)
+#define gic_iid(nr) (nr) /* ICCIAR / interrupt ID */
+
+/* INTCS */
+#define INTCS_VECT_BASE 0x3400
+#define INTCS_VECT(n, vect) INTC_VECT((n), INTCS_VECT_BASE + (vect))
+#define intcs_evt2irq(evt) evt2irq(INTCS_VECT_BASE + (evt))
+
+/* 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 */
OpenPOWER on IntegriCloud