diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:18:35 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:18:35 -0400 |
commit | 20688c3093caf5d3b1ebf36819b1d6b3247a811d (patch) | |
tree | db978be5245dcb73e82511a2f1a3b2c5a26c3dbd | |
parent | 054f0378a5ed2f8bd99f87846f0464e2440108d4 (diff) |
sh: sh7750 evt2irq migration.
Migrate SH7750 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7750.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7750.c b/arch/sh/kernel/cpu/sh4/setup-sh7750.c index 98cc0c794c76..04a45512596f 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7750.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7750.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/serial.h> | 13 | #include <linux/serial.h> |
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/sh_timer.h> | 15 | #include <linux/sh_timer.h> |
16 | #include <linux/sh_intc.h> | ||
16 | #include <linux/serial_sci.h> | 17 | #include <linux/serial_sci.h> |
17 | #include <generated/machtypes.h> | 18 | #include <generated/machtypes.h> |
18 | 19 | ||
@@ -24,7 +25,7 @@ static struct resource rtc_resources[] = { | |||
24 | }, | 25 | }, |
25 | [1] = { | 26 | [1] = { |
26 | /* Shared Period/Carry/Alarm IRQ */ | 27 | /* Shared Period/Carry/Alarm IRQ */ |
27 | .start = 20, | 28 | .start = evt2irq(0x480), |
28 | .flags = IORESOURCE_IRQ, | 29 | .flags = IORESOURCE_IRQ, |
29 | }, | 30 | }, |
30 | }; | 31 | }; |
@@ -43,7 +44,7 @@ static struct plat_sci_port sci_platform_data = { | |||
43 | .scscr = SCSCR_TE | SCSCR_RE, | 44 | .scscr = SCSCR_TE | SCSCR_RE, |
44 | .scbrr_algo_id = SCBRR_ALGO_2, | 45 | .scbrr_algo_id = SCBRR_ALGO_2, |
45 | .type = PORT_SCI, | 46 | .type = PORT_SCI, |
46 | .irqs = { 23, 23, 23, 0 }, | 47 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x4e0)), |
47 | .regshift = 2, | 48 | .regshift = 2, |
48 | }; | 49 | }; |
49 | 50 | ||
@@ -61,7 +62,7 @@ static struct plat_sci_port scif_platform_data = { | |||
61 | .scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE, | 62 | .scscr = SCSCR_TE | SCSCR_RE | SCSCR_REIE, |
62 | .scbrr_algo_id = SCBRR_ALGO_2, | 63 | .scbrr_algo_id = SCBRR_ALGO_2, |
63 | .type = PORT_SCIF, | 64 | .type = PORT_SCIF, |
64 | .irqs = { 40, 40, 40, 40 }, | 65 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x700)), |
65 | }; | 66 | }; |
66 | 67 | ||
67 | static struct platform_device scif_device = { | 68 | static struct platform_device scif_device = { |
@@ -85,7 +86,7 @@ static struct resource tmu0_resources[] = { | |||
85 | .flags = IORESOURCE_MEM, | 86 | .flags = IORESOURCE_MEM, |
86 | }, | 87 | }, |
87 | [1] = { | 88 | [1] = { |
88 | .start = 16, | 89 | .start = evt2irq(0x400), |
89 | .flags = IORESOURCE_IRQ, | 90 | .flags = IORESOURCE_IRQ, |
90 | }, | 91 | }, |
91 | }; | 92 | }; |
@@ -113,7 +114,7 @@ static struct resource tmu1_resources[] = { | |||
113 | .flags = IORESOURCE_MEM, | 114 | .flags = IORESOURCE_MEM, |
114 | }, | 115 | }, |
115 | [1] = { | 116 | [1] = { |
116 | .start = 17, | 117 | .start = evt2irq(0x420), |
117 | .flags = IORESOURCE_IRQ, | 118 | .flags = IORESOURCE_IRQ, |
118 | }, | 119 | }, |
119 | }; | 120 | }; |
@@ -140,7 +141,7 @@ static struct resource tmu2_resources[] = { | |||
140 | .flags = IORESOURCE_MEM, | 141 | .flags = IORESOURCE_MEM, |
141 | }, | 142 | }, |
142 | [1] = { | 143 | [1] = { |
143 | .start = 18, | 144 | .start = evt2irq(0x440), |
144 | .flags = IORESOURCE_IRQ, | 145 | .flags = IORESOURCE_IRQ, |
145 | }, | 146 | }, |
146 | }; | 147 | }; |
@@ -172,7 +173,7 @@ static struct resource tmu3_resources[] = { | |||
172 | .flags = IORESOURCE_MEM, | 173 | .flags = IORESOURCE_MEM, |
173 | }, | 174 | }, |
174 | [1] = { | 175 | [1] = { |
175 | .start = 72, | 176 | .start = evt2irq(0xb00), |
176 | .flags = IORESOURCE_IRQ, | 177 | .flags = IORESOURCE_IRQ, |
177 | }, | 178 | }, |
178 | }; | 179 | }; |
@@ -199,7 +200,7 @@ static struct resource tmu4_resources[] = { | |||
199 | .flags = IORESOURCE_MEM, | 200 | .flags = IORESOURCE_MEM, |
200 | }, | 201 | }, |
201 | [1] = { | 202 | [1] = { |
202 | .start = 76, | 203 | .start = evt2irq(0xb80), |
203 | .flags = IORESOURCE_IRQ, | 204 | .flags = IORESOURCE_IRQ, |
204 | }, | 205 | }, |
205 | }; | 206 | }; |