diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh4a/setup-shx3.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh4a/setup-shx3.c | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/arch/sh/kernel/cpu/sh4a/setup-shx3.c b/arch/sh/kernel/cpu/sh4a/setup-shx3.c index bb208806dc1a..7ca7dd20fb08 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-shx3.c +++ b/arch/sh/kernel/cpu/sh4a/setup-shx3.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #include <linux/io.h> | 14 | #include <linux/io.h> |
15 | #include <linux/gpio.h> | 15 | #include <linux/gpio.h> |
16 | #include <linux/sh_timer.h> | 16 | #include <linux/sh_timer.h> |
17 | #include <linux/sh_intc.h> | ||
17 | #include <cpu/shx3.h> | 18 | #include <cpu/shx3.h> |
18 | #include <asm/mmzone.h> | 19 | #include <asm/mmzone.h> |
19 | 20 | ||
@@ -32,7 +33,10 @@ static struct plat_sci_port scif0_platform_data = { | |||
32 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 33 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
33 | .scbrr_algo_id = SCBRR_ALGO_2, | 34 | .scbrr_algo_id = SCBRR_ALGO_2, |
34 | .type = PORT_SCIF, | 35 | .type = PORT_SCIF, |
35 | .irqs = { 40, 41, 43, 42 }, | 36 | .irqs = { evt2irq(0x700), |
37 | evt2irq(0x720), | ||
38 | evt2irq(0x760), | ||
39 | evt2irq(0x740) }, | ||
36 | }; | 40 | }; |
37 | 41 | ||
38 | static struct platform_device scif0_device = { | 42 | static struct platform_device scif0_device = { |
@@ -49,7 +53,10 @@ static struct plat_sci_port scif1_platform_data = { | |||
49 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 53 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
50 | .scbrr_algo_id = SCBRR_ALGO_2, | 54 | .scbrr_algo_id = SCBRR_ALGO_2, |
51 | .type = PORT_SCIF, | 55 | .type = PORT_SCIF, |
52 | .irqs = { 44, 45, 47, 46 }, | 56 | .irqs = { evt2irq(0x780), |
57 | evt2irq(0x7a0), | ||
58 | evt2irq(0x7e0), | ||
59 | evt2irq(0x7c0) }, | ||
53 | }; | 60 | }; |
54 | 61 | ||
55 | static struct platform_device scif1_device = { | 62 | static struct platform_device scif1_device = { |
@@ -66,7 +73,10 @@ static struct plat_sci_port scif2_platform_data = { | |||
66 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 73 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, |
67 | .scbrr_algo_id = SCBRR_ALGO_2, | 74 | .scbrr_algo_id = SCBRR_ALGO_2, |
68 | .type = PORT_SCIF, | 75 | .type = PORT_SCIF, |
69 | .irqs = { 52, 53, 55, 54 }, | 76 | .irqs = { evt2irq(0x880), |
77 | evt2irq(0x8a0), | ||
78 | evt2irq(0x8e0), | ||
79 | evt2irq(0x8c0) }, | ||
70 | }; | 80 | }; |
71 | 81 | ||
72 | static struct platform_device scif2_device = { | 82 | static struct platform_device scif2_device = { |
@@ -90,7 +100,7 @@ static struct resource tmu0_resources[] = { | |||
90 | .flags = IORESOURCE_MEM, | 100 | .flags = IORESOURCE_MEM, |
91 | }, | 101 | }, |
92 | [1] = { | 102 | [1] = { |
93 | .start = 16, | 103 | .start = evt2irq(0x400), |
94 | .flags = IORESOURCE_IRQ, | 104 | .flags = IORESOURCE_IRQ, |
95 | }, | 105 | }, |
96 | }; | 106 | }; |
@@ -118,7 +128,7 @@ static struct resource tmu1_resources[] = { | |||
118 | .flags = IORESOURCE_MEM, | 128 | .flags = IORESOURCE_MEM, |
119 | }, | 129 | }, |
120 | [1] = { | 130 | [1] = { |
121 | .start = 17, | 131 | .start = evt2irq(0x420), |
122 | .flags = IORESOURCE_IRQ, | 132 | .flags = IORESOURCE_IRQ, |
123 | }, | 133 | }, |
124 | }; | 134 | }; |
@@ -145,7 +155,7 @@ static struct resource tmu2_resources[] = { | |||
145 | .flags = IORESOURCE_MEM, | 155 | .flags = IORESOURCE_MEM, |
146 | }, | 156 | }, |
147 | [1] = { | 157 | [1] = { |
148 | .start = 18, | 158 | .start = evt2irq(0x440), |
149 | .flags = IORESOURCE_IRQ, | 159 | .flags = IORESOURCE_IRQ, |
150 | }, | 160 | }, |
151 | }; | 161 | }; |
@@ -172,7 +182,7 @@ static struct resource tmu3_resources[] = { | |||
172 | .flags = IORESOURCE_MEM, | 182 | .flags = IORESOURCE_MEM, |
173 | }, | 183 | }, |
174 | [1] = { | 184 | [1] = { |
175 | .start = 19, | 185 | .start = evt2irq(0x460), |
176 | .flags = IORESOURCE_IRQ, | 186 | .flags = IORESOURCE_IRQ, |
177 | }, | 187 | }, |
178 | }; | 188 | }; |
@@ -199,7 +209,7 @@ static struct resource tmu4_resources[] = { | |||
199 | .flags = IORESOURCE_MEM, | 209 | .flags = IORESOURCE_MEM, |
200 | }, | 210 | }, |
201 | [1] = { | 211 | [1] = { |
202 | .start = 20, | 212 | .start = evt2irq(0x480), |
203 | .flags = IORESOURCE_IRQ, | 213 | .flags = IORESOURCE_IRQ, |
204 | }, | 214 | }, |
205 | }; | 215 | }; |
@@ -226,7 +236,7 @@ static struct resource tmu5_resources[] = { | |||
226 | .flags = IORESOURCE_MEM, | 236 | .flags = IORESOURCE_MEM, |
227 | }, | 237 | }, |
228 | [1] = { | 238 | [1] = { |
229 | .start = 21, | 239 | .start = evt2irq(0x4a0), |
230 | .flags = IORESOURCE_IRQ, | 240 | .flags = IORESOURCE_IRQ, |
231 | }, | 241 | }, |
232 | }; | 242 | }; |