Commit a7734e51077e3eb3943887d15bb5c49063738263
1 parent
7b56934ce2
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
sh: sh7757lcr evt2irq migration.
Migrate sh7757lcr to evt2irq() backed hwirq lookups. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Showing 1 changed file with 14 additions and 13 deletions Side-by-side Diff
arch/sh/boards/board-sh7757lcr.c
... | ... | @@ -19,6 +19,7 @@ |
19 | 19 | #include <linux/mmc/sh_mmcif.h> |
20 | 20 | #include <linux/mmc/sh_mobile_sdhi.h> |
21 | 21 | #include <linux/sh_eth.h> |
22 | +#include <linux/sh_intc.h> | |
22 | 23 | #include <linux/usb/renesas_usbhs.h> |
23 | 24 | #include <cpu/sh7757.h> |
24 | 25 | #include <asm/heartbeat.h> |
... | ... | @@ -65,8 +66,8 @@ |
65 | 66 | .end = 0xfef001ff, |
66 | 67 | .flags = IORESOURCE_MEM, |
67 | 68 | }, { |
68 | - .start = 84, | |
69 | - .end = 84, | |
69 | + .start = evt2irq(0xc80), | |
70 | + .end = evt2irq(0xc80), | |
70 | 71 | .flags = IORESOURCE_IRQ, |
71 | 72 | }, |
72 | 73 | }; |
... | ... | @@ -94,8 +95,8 @@ |
94 | 95 | .end = 0xfef009ff, |
95 | 96 | .flags = IORESOURCE_MEM, |
96 | 97 | }, { |
97 | - .start = 84, | |
98 | - .end = 84, | |
98 | + .start = evt2irq(0xc80), | |
99 | + .end = evt2irq(0xc80), | |
99 | 100 | .flags = IORESOURCE_IRQ, |
100 | 101 | }, |
101 | 102 | }; |
... | ... | @@ -139,8 +140,8 @@ |
139 | 140 | .end = 0xfee01fff, |
140 | 141 | .flags = IORESOURCE_MEM, |
141 | 142 | }, { |
142 | - .start = 315, | |
143 | - .end = 315, | |
143 | + .start = evt2irq(0x2960), | |
144 | + .end = evt2irq(0x2960), | |
144 | 145 | .flags = IORESOURCE_IRQ, |
145 | 146 | }, |
146 | 147 | }; |
... | ... | @@ -174,8 +175,8 @@ |
174 | 175 | .end = 0xfee01fff, |
175 | 176 | .flags = IORESOURCE_MEM, |
176 | 177 | }, { |
177 | - .start = 316, | |
178 | - .end = 316, | |
178 | + .start = evt2irq(0x2980), | |
179 | + .end = evt2irq(0x2980), | |
179 | 180 | .flags = IORESOURCE_IRQ, |
180 | 181 | }, |
181 | 182 | }; |
182 | 183 | |
... | ... | @@ -206,11 +207,11 @@ |
206 | 207 | .flags = IORESOURCE_MEM, |
207 | 208 | }, |
208 | 209 | [1] = { |
209 | - .start = 211, | |
210 | + .start = evt2irq(0x1c60), | |
210 | 211 | .flags = IORESOURCE_IRQ, |
211 | 212 | }, |
212 | 213 | [2] = { |
213 | - .start = 212, | |
214 | + .start = evt2irq(0x1c80), | |
214 | 215 | .flags = IORESOURCE_IRQ, |
215 | 216 | }, |
216 | 217 | }; |
... | ... | @@ -248,7 +249,7 @@ |
248 | 249 | .flags = IORESOURCE_MEM, |
249 | 250 | }, |
250 | 251 | [1] = { |
251 | - .start = 20, | |
252 | + .start = evt2irq(0x480), | |
252 | 253 | .flags = IORESOURCE_IRQ, |
253 | 254 | }, |
254 | 255 | }; |
... | ... | @@ -284,8 +285,8 @@ |
284 | 285 | .flags = IORESOURCE_MEM, |
285 | 286 | }, |
286 | 287 | [1] = { |
287 | - .start = 50, | |
288 | - .end = 50, | |
288 | + .start = evt2irq(0x840), | |
289 | + .end = evt2irq(0x840), | |
289 | 290 | .flags = IORESOURCE_IRQ, |
290 | 291 | }, |
291 | 292 | }; |