diff options
| author | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:41:00 -0400 |
|---|---|---|
| committer | Paul Mundt <lethal@linux-sh.org> | 2012-05-18 01:41:00 -0400 |
| commit | 85ee6b06cc3a42f0381455ea4d1da0bdded41bee (patch) | |
| tree | 98098398f9e12ddbef71116e9fd5906e342bfe70 /arch/sh/kernel | |
| parent | 5d0af7696869cb52d63b849fabc1087f16c0092e (diff) | |
sh: sh7720 evt2irq migration.
Migrate SH7720 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/sh3/setup-sh7720.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7720.c b/arch/sh/kernel/cpu/sh3/setup-sh7720.c index 94920345c14..0c2f1b2c2e1 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7720.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7720.c | |||
| @@ -19,6 +19,7 @@ | |||
| 19 | #include <linux/io.h> | 19 | #include <linux/io.h> |
| 20 | #include <linux/serial_sci.h> | 20 | #include <linux/serial_sci.h> |
| 21 | #include <linux/sh_timer.h> | 21 | #include <linux/sh_timer.h> |
| 22 | #include <linux/sh_intc.h> | ||
| 22 | #include <asm/rtc.h> | 23 | #include <asm/rtc.h> |
| 23 | #include <cpu/serial.h> | 24 | #include <cpu/serial.h> |
| 24 | 25 | ||
| @@ -30,7 +31,7 @@ static struct resource rtc_resources[] = { | |||
| 30 | }, | 31 | }, |
| 31 | [1] = { | 32 | [1] = { |
| 32 | /* Shared Period/Carry/Alarm IRQ */ | 33 | /* Shared Period/Carry/Alarm IRQ */ |
| 33 | .start = 20, | 34 | .start = evt2irq(0x480), |
| 34 | .flags = IORESOURCE_IRQ, | 35 | .flags = IORESOURCE_IRQ, |
| 35 | }, | 36 | }, |
| 36 | }; | 37 | }; |
| @@ -55,7 +56,7 @@ static struct plat_sci_port scif0_platform_data = { | |||
| 55 | .scscr = SCSCR_RE | SCSCR_TE, | 56 | .scscr = SCSCR_RE | SCSCR_TE, |
| 56 | .scbrr_algo_id = SCBRR_ALGO_4, | 57 | .scbrr_algo_id = SCBRR_ALGO_4, |
| 57 | .type = PORT_SCIF, | 58 | .type = PORT_SCIF, |
| 58 | .irqs = { 80, 80, 80, 80 }, | 59 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xc00)), |
| 59 | .ops = &sh7720_sci_port_ops, | 60 | .ops = &sh7720_sci_port_ops, |
| 60 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 61 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
| 61 | }; | 62 | }; |
| @@ -74,7 +75,7 @@ static struct plat_sci_port scif1_platform_data = { | |||
| 74 | .scscr = SCSCR_RE | SCSCR_TE, | 75 | .scscr = SCSCR_RE | SCSCR_TE, |
| 75 | .scbrr_algo_id = SCBRR_ALGO_4, | 76 | .scbrr_algo_id = SCBRR_ALGO_4, |
| 76 | .type = PORT_SCIF, | 77 | .type = PORT_SCIF, |
| 77 | .irqs = { 81, 81, 81, 81 }, | 78 | .irqs = SCIx_IRQ_MUXED(evt2irq(0xc20)), |
| 78 | .ops = &sh7720_sci_port_ops, | 79 | .ops = &sh7720_sci_port_ops, |
| 79 | .regtype = SCIx_SH7705_SCIF_REGTYPE, | 80 | .regtype = SCIx_SH7705_SCIF_REGTYPE, |
| 80 | }; | 81 | }; |
| @@ -94,13 +95,14 @@ static struct resource usb_ohci_resources[] = { | |||
| 94 | .flags = IORESOURCE_MEM, | 95 | .flags = IORESOURCE_MEM, |
| 95 | }, | 96 | }, |
| 96 | [1] = { | 97 | [1] = { |
| 97 | .start = 67, | 98 | .start = evt2irq(0xa60), |
| 98 | .end = 67, | 99 | .end = evt2irq(0xa60), |
| 99 | .flags = IORESOURCE_IRQ, | 100 | .flags = IORESOURCE_IRQ, |
| 100 | }, | 101 | }, |
| 101 | }; | 102 | }; |
| 102 | 103 | ||
| 103 | static u64 usb_ohci_dma_mask = 0xffffffffUL; | 104 | static u64 usb_ohci_dma_mask = 0xffffffffUL; |
| 105 | |||
| 104 | static struct platform_device usb_ohci_device = { | 106 | static struct platform_device usb_ohci_device = { |
| 105 | .name = "sh_ohci", | 107 | .name = "sh_ohci", |
| 106 | .id = -1, | 108 | .id = -1, |
| @@ -121,8 +123,8 @@ static struct resource usbf_resources[] = { | |||
| 121 | }, | 123 | }, |
| 122 | [1] = { | 124 | [1] = { |
| 123 | .name = "sh_udc", | 125 | .name = "sh_udc", |
| 124 | .start = 65, | 126 | .start = evt2irq(0xa20), |
| 125 | .end = 65, | 127 | .end = evt2irq(0xa20), |
| 126 | .flags = IORESOURCE_IRQ, | 128 | .flags = IORESOURCE_IRQ, |
| 127 | }, | 129 | }, |
| 128 | }; | 130 | }; |
| @@ -152,7 +154,7 @@ static struct resource cmt0_resources[] = { | |||
| 152 | .flags = IORESOURCE_MEM, | 154 | .flags = IORESOURCE_MEM, |
| 153 | }, | 155 | }, |
| 154 | [1] = { | 156 | [1] = { |
| 155 | .start = 104, | 157 | .start = evt2irq(0xf00), |
| 156 | .flags = IORESOURCE_IRQ, | 158 | .flags = IORESOURCE_IRQ, |
| 157 | }, | 159 | }, |
| 158 | }; | 160 | }; |
| @@ -179,7 +181,7 @@ static struct resource cmt1_resources[] = { | |||
| 179 | .flags = IORESOURCE_MEM, | 181 | .flags = IORESOURCE_MEM, |
| 180 | }, | 182 | }, |
| 181 | [1] = { | 183 | [1] = { |
| 182 | .start = 104, | 184 | .start = evt2irq(0xf00), |
| 183 | .flags = IORESOURCE_IRQ, | 185 | .flags = IORESOURCE_IRQ, |
| 184 | }, | 186 | }, |
| 185 | }; | 187 | }; |
| @@ -206,7 +208,7 @@ static struct resource cmt2_resources[] = { | |||
| 206 | .flags = IORESOURCE_MEM, | 208 | .flags = IORESOURCE_MEM, |
| 207 | }, | 209 | }, |
| 208 | [1] = { | 210 | [1] = { |
| 209 | .start = 104, | 211 | .start = evt2irq(0xf00), |
| 210 | .flags = IORESOURCE_IRQ, | 212 | .flags = IORESOURCE_IRQ, |
| 211 | }, | 213 | }, |
| 212 | }; | 214 | }; |
| @@ -233,7 +235,7 @@ static struct resource cmt3_resources[] = { | |||
| 233 | .flags = IORESOURCE_MEM, | 235 | .flags = IORESOURCE_MEM, |
| 234 | }, | 236 | }, |
| 235 | [1] = { | 237 | [1] = { |
| 236 | .start = 104, | 238 | .start = evt2irq(0xf00), |
| 237 | .flags = IORESOURCE_IRQ, | 239 | .flags = IORESOURCE_IRQ, |
| 238 | }, | 240 | }, |
| 239 | }; | 241 | }; |
| @@ -260,7 +262,7 @@ static struct resource cmt4_resources[] = { | |||
| 260 | .flags = IORESOURCE_MEM, | 262 | .flags = IORESOURCE_MEM, |
| 261 | }, | 263 | }, |
| 262 | [1] = { | 264 | [1] = { |
| 263 | .start = 104, | 265 | .start = evt2irq(0xf00), |
| 264 | .flags = IORESOURCE_IRQ, | 266 | .flags = IORESOURCE_IRQ, |
| 265 | }, | 267 | }, |
| 266 | }; | 268 | }; |
| @@ -288,7 +290,7 @@ static struct resource tmu0_resources[] = { | |||
| 288 | .flags = IORESOURCE_MEM, | 290 | .flags = IORESOURCE_MEM, |
| 289 | }, | 291 | }, |
| 290 | [1] = { | 292 | [1] = { |
| 291 | .start = 16, | 293 | .start = evt2irq(0x400), |
| 292 | .flags = IORESOURCE_IRQ, | 294 | .flags = IORESOURCE_IRQ, |
| 293 | }, | 295 | }, |
| 294 | }; | 296 | }; |
| @@ -316,7 +318,7 @@ static struct resource tmu1_resources[] = { | |||
| 316 | .flags = IORESOURCE_MEM, | 318 | .flags = IORESOURCE_MEM, |
| 317 | }, | 319 | }, |
| 318 | [1] = { | 320 | [1] = { |
| 319 | .start = 17, | 321 | .start = evt2irq(0x420), |
| 320 | .flags = IORESOURCE_IRQ, | 322 | .flags = IORESOURCE_IRQ, |
| 321 | }, | 323 | }, |
| 322 | }; | 324 | }; |
| @@ -343,7 +345,7 @@ static struct resource tmu2_resources[] = { | |||
| 343 | .flags = IORESOURCE_MEM, | 345 | .flags = IORESOURCE_MEM, |
| 344 | }, | 346 | }, |
| 345 | [1] = { | 347 | [1] = { |
| 346 | .start = 18, | 348 | .start = evt2irq(0x440), |
| 347 | .flags = IORESOURCE_IRQ, | 349 | .flags = IORESOURCE_IRQ, |
| 348 | }, | 350 | }, |
| 349 | }; | 351 | }; |
