diff options
author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 00:46:34 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 00:46:34 -0400 |
commit | ea3235d96297e7e99deec8419bd9568606d89996 (patch) | |
tree | 20580598d70f67070576b3184bd22a65839dffc6 /arch/sh/kernel | |
parent | f5bccdc09a259a121965cc1c9d1f8349452e1244 (diff) |
sh: sh7763 evt2irq migration.
Migrate SH7763 to evt2irq() backed hwirq lookups.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-sh7763.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c index 00113515f233..bd0a8fbe610f 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7763.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7763.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <linux/init.h> | 13 | #include <linux/init.h> |
14 | #include <linux/serial.h> | 14 | #include <linux/serial.h> |
15 | #include <linux/sh_timer.h> | 15 | #include <linux/sh_timer.h> |
16 | #include <linux/sh_intc.h> | ||
16 | #include <linux/io.h> | 17 | #include <linux/io.h> |
17 | #include <linux/serial_sci.h> | 18 | #include <linux/serial_sci.h> |
18 | 19 | ||
@@ -22,7 +23,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
22 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 23 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
23 | .scbrr_algo_id = SCBRR_ALGO_2, | 24 | .scbrr_algo_id = SCBRR_ALGO_2, |
24 | .type = PORT_SCIF, | 25 | .type = PORT_SCIF, |
25 | .irqs = { 40, 40, 40, 40 }, | 26 | .irqs = SCIx_IRQ_MUXED(evt2irq(0x700)), |
26 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 27 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
27 | }; | 28 | }; |
28 | 29 | ||
@@ -40,7 +41,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
40 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 41 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
41 | .scbrr_algo_id = SCBRR_ALGO_2, | 42 | .scbrr_algo_id = SCBRR_ALGO_2, |
42 | .type = PORT_SCIF, | 43 | .type = PORT_SCIF, |
43 | .irqs = { 76, 76, 76, 76 }, | 44 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xb80)), |
44 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 45 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
45 | }; | 46 | }; |
46 | 47 | ||
@@ -58,7 +59,7 @@ static struct plat_sci_port scif2_platform_data = { | |||
58 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 59 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
59 | .scbrr_algo_id = SCBRR_ALGO_2, | 60 | .scbrr_algo_id = SCBRR_ALGO_2, |
60 | .type = PORT_SCIF, | 61 | .type = PORT_SCIF, |
61 | .irqs = { 104, 104, 104, 104 }, | 62 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xf00)), |
62 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, | 63 | .regtype = SCIx_SH4_SCIF_FIFODATA_REGTYPE, |
63 | }; | 64 | }; |
64 | 65 | ||
@@ -78,7 +79,7 @@ static struct resource rtc_resources[] = { | |||
78 | }, | 79 | }, |
79 | [1] = { | 80 | [1] = { |
80 | /* Shared Period/Carry/Alarm IRQ */ | 81 | /* Shared Period/Carry/Alarm IRQ */ |
81 | .start = 20, | 82 | .start = evt2irq(0x480), |
82 | .flags = IORESOURCE_IRQ, | 83 | .flags = IORESOURCE_IRQ, |
83 | }, | 84 | }, |
84 | }; | 85 | }; |
@@ -97,13 +98,14 @@ static struct resource usb_ohci_resources[] = { | |||
97 | .flags = IORESOURCE_MEM, | 98 | .flags = IORESOURCE_MEM, |
98 | }, | 99 | }, |
99 | [1] = { | 100 | [1] = { |
100 | .start = 83, | 101 | .start = evt2irq(0xc60), |
101 | .end = 83, | 102 | .end = evt2irq(0xc60), |
102 | .flags = IORESOURCE_IRQ, | 103 | .flags = IORESOURCE_IRQ, |
103 | }, | 104 | }, |
104 | }; | 105 | }; |
105 | 106 | ||
106 | static u64 usb_ohci_dma_mask = 0xffffffffUL; | 107 | static u64 usb_ohci_dma_mask = 0xffffffffUL; |
108 | |||
107 | static struct platform_device usb_ohci_device = { | 109 | static struct platform_device usb_ohci_device = { |
108 | .name = "sh_ohci", | 110 | .name = "sh_ohci", |
109 | .id = -1, | 111 | .id = -1, |
@@ -122,8 +124,8 @@ static struct resource usbf_resources[] = { | |||
122 | .flags = IORESOURCE_MEM, | 124 | .flags = IORESOURCE_MEM, |
123 | }, | 125 | }, |
124 | [1] = { | 126 | [1] = { |
125 | .start = 84, | 127 | .start = evt2irq(0xc80), |
126 | .end = 84, | 128 | .end = evt2irq(0xc80), |
127 | .flags = IORESOURCE_IRQ, | 129 | .flags = IORESOURCE_IRQ, |
128 | }, | 130 | }, |
129 | }; | 131 | }; |
@@ -152,7 +154,7 @@ static struct resource tmu0_resources[] = { | |||
152 | .flags = IORESOURCE_MEM, | 154 | .flags = IORESOURCE_MEM, |
153 | }, | 155 | }, |
154 | [1] = { | 156 | [1] = { |
155 | .start = 28, | 157 | .start = evt2irq(0x580), |
156 | .flags = IORESOURCE_IRQ, | 158 | .flags = IORESOURCE_IRQ, |
157 | }, | 159 | }, |
158 | }; | 160 | }; |
@@ -180,7 +182,7 @@ static struct resource tmu1_resources[] = { | |||
180 | .flags = IORESOURCE_MEM, | 182 | .flags = IORESOURCE_MEM, |
181 | }, | 183 | }, |
182 | [1] = { | 184 | [1] = { |
183 | .start = 29, | 185 | .start = evt2irq(0x5a0), |
184 | .flags = IORESOURCE_IRQ, | 186 | .flags = IORESOURCE_IRQ, |
185 | }, | 187 | }, |
186 | }; | 188 | }; |
@@ -207,7 +209,7 @@ static struct resource tmu2_resources[] = { | |||
207 | .flags = IORESOURCE_MEM, | 209 | .flags = IORESOURCE_MEM, |
208 | }, | 210 | }, |
209 | [1] = { | 211 | [1] = { |
210 | .start = 30, | 212 | .start = evt2irq(0x5c0), |
211 | .flags = IORESOURCE_IRQ, | 213 | .flags = IORESOURCE_IRQ, |
212 | }, | 214 | }, |
213 | }; | 215 | }; |
@@ -234,7 +236,7 @@ static struct resource tmu3_resources[] = { | |||
234 | .flags = IORESOURCE_MEM, | 236 | .flags = IORESOURCE_MEM, |
235 | }, | 237 | }, |
236 | [1] = { | 238 | [1] = { |
237 | .start = 96, | 239 | .start = evt2irq(0xe00), |
238 | .flags = IORESOURCE_IRQ, | 240 | .flags = IORESOURCE_IRQ, |
239 | }, | 241 | }, |
240 | }; | 242 | }; |
@@ -261,7 +263,7 @@ static struct resource tmu4_resources[] = { | |||
261 | .flags = IORESOURCE_MEM, | 263 | .flags = IORESOURCE_MEM, |
262 | }, | 264 | }, |
263 | [1] = { | 265 | [1] = { |
264 | .start = 97, | 266 | .start = evt2irq(0xe20), |
265 | .flags = IORESOURCE_IRQ, | 267 | .flags = IORESOURCE_IRQ, |
266 | }, | 268 | }, |
267 | }; | 269 | }; |
@@ -288,7 +290,7 @@ static struct resource tmu5_resources[] = { | |||
288 | .flags = IORESOURCE_MEM, | 290 | .flags = IORESOURCE_MEM, |
289 | }, | 291 | }, |
290 | [1] = { | 292 | [1] = { |
291 | .start = 98, | 293 | .start = evt2irq(0xe40), |
292 | .flags = IORESOURCE_IRQ, | 294 | .flags = IORESOURCE_IRQ, |
293 | }, | 295 | }, |
294 | }; | 296 | }; |