diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:28:11 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:28:11 -0400 |
commit | 79ce21a64bee65434a311d68b8962c9dd6408842 (patch) | |
tree | 7ab574350330f242bebba1951475c08ce387eca3 | |
parent | 20688c3093caf5d3b1ebf36819b1d6b3247a811d (diff) |
sh: sh7760 evt2irq migration.
Migrate SH7760 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/kernel/cpu/sh4/setup-sh7760.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/arch/sh/kernel/cpu/sh4/setup-sh7760.c b/arch/sh/kernel/cpu/sh4/setup-sh7760.c index c0b4c774700e..98e075ada44e 100644 --- a/arch/sh/kernel/cpu/sh4/setup-sh7760.c +++ b/arch/sh/kernel/cpu/sh4/setup-sh7760.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/serial.h> | 12 | #include <linux/serial.h> |
13 | #include <linux/sh_timer.h> | 13 | #include <linux/sh_timer.h> |
14 | #include <linux/sh_intc.h> | ||
14 | #include <linux/serial_sci.h> | 15 | #include <linux/serial_sci.h> |
15 | #include <linux/io.h> | 16 | #include <linux/io.h> |
16 | 17 | ||
@@ -132,7 +133,10 @@ static struct plat_sci_port scif0_platform_data = { | |||
132 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 133 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
133 | .scbrr_algo_id = SCBRR_ALGO_2, | 134 | .scbrr_algo_id = SCBRR_ALGO_2, |
134 | .type = PORT_SCIF, | 135 | .type = PORT_SCIF, |
135 | .irqs = { 52, 53, 55, 54 }, | 136 | .irqs = { evt2irq(0x880), |
137 | evt2irq(0x8a0), | ||
138 | evt2irq(0x8e0), | ||
139 | evt2irq(0x8c0) }, | ||
136 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 140 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
137 | }; | 141 | }; |
138 | 142 | ||
@@ -150,7 +154,10 @@ static struct plat_sci_port scif1_platform_data = { | |||
150 | .type = PORT_SCIF, | 154 | .type = PORT_SCIF, |
151 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 155 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
152 | .scbrr_algo_id = SCBRR_ALGO_2, | 156 | .scbrr_algo_id = SCBRR_ALGO_2, |
153 | .irqs = { 72, 73, 75, 74 }, | 157 | .irqs = { evt2irq(0xb00), |
158 | evt2irq(0xb20), | ||
159 | evt2irq(0xb60), | ||
160 | evt2irq(0xb40) }, | ||
154 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 161 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
155 | }; | 162 | }; |
156 | 163 | ||
@@ -168,7 +175,10 @@ static struct plat_sci_port scif2_platform_data = { | |||
168 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 175 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
169 | .scbrr_algo_id = SCBRR_ALGO_2, | 176 | .scbrr_algo_id = SCBRR_ALGO_2, |
170 | .type = PORT_SCIF, | 177 | .type = PORT_SCIF, |
171 | .irqs = { 76, 77, 79, 78 }, | 178 | .irqs = { evt2irq(0xb80), |
179 | evt2irq(0xba0), | ||
180 | evt2irq(0xbe0), | ||
181 | evt2irq(0xbc0) }, | ||
172 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 182 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
173 | }; | 183 | }; |
174 | 184 | ||
@@ -186,7 +196,9 @@ static struct plat_sci_port scif3_platform_data = { | |||
186 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 196 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
187 | .scbrr_algo_id = SCBRR_ALGO_2, | 197 | .scbrr_algo_id = SCBRR_ALGO_2, |
188 | .type = PORT_SCI, | 198 | .type = PORT_SCI, |
189 | .irqs = { 80, 81, 82, 0 }, | 199 | .irqs = { evt2irq(0xc00), |
200 | evt2irq(0xc20), | ||
201 | evt2irq(0xc40), }, | ||
190 | .regshift = 2, | 202 | .regshift = 2, |
191 | }; | 203 | }; |
192 | 204 | ||
@@ -211,7 +223,7 @@ static struct resource tmu0_resources[] = { | |||
211 | .flags = IORESOURCE_MEM, | 223 | .flags = IORESOURCE_MEM, |
212 | }, | 224 | }, |
213 | [1] = { | 225 | [1] = { |
214 | .start = 16, | 226 | .start = evt2irq(0x400), |
215 | .flags = IORESOURCE_IRQ, | 227 | .flags = IORESOURCE_IRQ, |
216 | }, | 228 | }, |
217 | }; | 229 | }; |
@@ -239,7 +251,7 @@ static struct resource tmu1_resources[] = { | |||
239 | .flags = IORESOURCE_MEM, | 251 | .flags = IORESOURCE_MEM, |
240 | }, | 252 | }, |
241 | [1] = { | 253 | [1] = { |
242 | .start = 17, | 254 | .start = evt2irq(0x420), |
243 | .flags = IORESOURCE_IRQ, | 255 | .flags = IORESOURCE_IRQ, |
244 | }, | 256 | }, |
245 | }; | 257 | }; |
@@ -266,7 +278,7 @@ static struct resource tmu2_resources[] = { | |||
266 | .flags = IORESOURCE_MEM, | 278 | .flags = IORESOURCE_MEM, |
267 | }, | 279 | }, |
268 | [1] = { | 280 | [1] = { |
269 | .start = 18, | 281 | .start = evt2irq(0x440), |
270 | .flags = IORESOURCE_IRQ, | 282 | .flags = IORESOURCE_IRQ, |
271 | }, | 283 | }, |
272 | }; | 284 | }; |