aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/include/mach-se/mach/se.h
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2012-05-18 15:34:49 +0900
committerPaul Mundt <lethal@linux-sh.org>2012-05-18 15:34:49 +0900
commitb894701e7c472dbc6267bdde68bd6d35266b8dfc (patch)
treeaae61d26286a21992c3af648028a52aa6724f5fc /arch/sh/include/mach-se/mach/se.h
parentsh: sh7757lcr evt2irq migration. (diff)
downloadlinux-dev-b894701e7c472dbc6267bdde68bd6d35266b8dfc.tar.xz
linux-dev-b894701e7c472dbc6267bdde68bd6d35266b8dfc.zip
sh: mach-se evt2irq migration.
Migrate Solution Engine boards to evt2irq backed hwirq lookups. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/mach-se/mach/se.h')
-rw-r--r--arch/sh/include/mach-se/mach/se.h19
1 files changed, 10 insertions, 9 deletions
diff --git a/arch/sh/include/mach-se/mach/se.h b/arch/sh/include/mach-se/mach/se.h
index 14be91c5a2f0..8a6d44b4987b 100644
--- a/arch/sh/include/mach-se/mach/se.h
+++ b/arch/sh/include/mach-se/mach/se.h
@@ -8,6 +8,7 @@
*
* Hitachi SolutionEngine support
*/
+#include <linux/sh_intc.h>
/* Box specific addresses. */
@@ -82,16 +83,16 @@
#define INTC_IPRD 0xa4000018UL
#define INTC_IPRE 0xa400001aUL
-#define IRQ0_IRQ 32
-#define IRQ1_IRQ 33
+#define IRQ0_IRQ evt2irq(0x600)
+#define IRQ1_IRQ evt2irq(0x620)
#endif
#if defined(CONFIG_CPU_SUBTYPE_SH7705)
-#define IRQ_STNIC 12
-#define IRQ_CFCARD 14
+#define IRQ_STNIC evt2irq(0x380)
+#define IRQ_CFCARD evt2irq(0x3c0)
#else
-#define IRQ_STNIC 10
-#define IRQ_CFCARD 7
+#define IRQ_STNIC evt2irq(0x340)
+#define IRQ_CFCARD evt2irq(0x2e0)
#endif
/* SH Ether support (SH7710/SH7712) */
@@ -105,9 +106,9 @@
# define PHY_ID 0x01
#endif
/* Ether IRQ */
-#define SH_ETH0_IRQ 80
-#define SH_ETH1_IRQ 81
-#define SH_TSU_IRQ 82
+#define SH_ETH0_IRQ evt2irq(0xc00)
+#define SH_ETH1_IRQ evt2irq(0xc20)
+#define SH_TSU_IRQ evt2irq(0xc40)
void init_se_IRQ(void);