diff options
Diffstat (limited to 'arch/sh/kernel/cpu/sh3/setup-sh7705.c')
-rw-r--r-- | arch/sh/kernel/cpu/sh3/setup-sh7705.c | 78 |
1 files changed, 6 insertions, 72 deletions
diff --git a/arch/sh/kernel/cpu/sh3/setup-sh7705.c b/arch/sh/kernel/cpu/sh3/setup-sh7705.c index c76b2543b85f..6a72fd14de21 100644 --- a/arch/sh/kernel/cpu/sh3/setup-sh7705.c +++ b/arch/sh/kernel/cpu/sh3/setup-sh7705.c | |||
@@ -143,25 +143,18 @@ static struct platform_device rtc_device = { | |||
143 | }; | 143 | }; |
144 | 144 | ||
145 | static struct sh_timer_config tmu0_platform_data = { | 145 | static struct sh_timer_config tmu0_platform_data = { |
146 | .channel_offset = 0x02, | 146 | .channels_mask = 7, |
147 | .timer_bit = 0, | ||
148 | .clockevent_rating = 200, | ||
149 | }; | 147 | }; |
150 | 148 | ||
151 | static struct resource tmu0_resources[] = { | 149 | static struct resource tmu0_resources[] = { |
152 | [0] = { | 150 | DEFINE_RES_MEM(0xfffffe90, 0x2c), |
153 | .start = 0xfffffe94, | 151 | DEFINE_RES_IRQ(evt2irq(0x400)), |
154 | .end = 0xfffffe9f, | 152 | DEFINE_RES_IRQ(evt2irq(0x420)), |
155 | .flags = IORESOURCE_MEM, | 153 | DEFINE_RES_IRQ(evt2irq(0x440)), |
156 | }, | ||
157 | [1] = { | ||
158 | .start = evt2irq(0x400), | ||
159 | .flags = IORESOURCE_IRQ, | ||
160 | }, | ||
161 | }; | 154 | }; |
162 | 155 | ||
163 | static struct platform_device tmu0_device = { | 156 | static struct platform_device tmu0_device = { |
164 | .name = "sh_tmu", | 157 | .name = "sh-tmu-sh3", |
165 | .id = 0, | 158 | .id = 0, |
166 | .dev = { | 159 | .dev = { |
167 | .platform_data = &tmu0_platform_data, | 160 | .platform_data = &tmu0_platform_data, |
@@ -170,67 +163,10 @@ static struct platform_device tmu0_device = { | |||
170 | .num_resources = ARRAY_SIZE(tmu0_resources), | 163 | .num_resources = ARRAY_SIZE(tmu0_resources), |
171 | }; | 164 | }; |
172 | 165 | ||
173 | static struct sh_timer_config tmu1_platform_data = { | ||
174 | .channel_offset = 0xe, | ||
175 | .timer_bit = 1, | ||
176 | .clocksource_rating = 200, | ||
177 | }; | ||
178 | |||
179 | static struct resource tmu1_resources[] = { | ||
180 | [0] = { | ||
181 | .start = 0xfffffea0, | ||
182 | .end = 0xfffffeab, | ||
183 | .flags = IORESOURCE_MEM, | ||
184 | }, | ||
185 | [1] = { | ||
186 | .start = evt2irq(0x420), | ||
187 | .flags = IORESOURCE_IRQ, | ||
188 | }, | ||
189 | }; | ||
190 | |||
191 | static struct platform_device tmu1_device = { | ||
192 | .name = "sh_tmu", | ||
193 | .id = 1, | ||
194 | .dev = { | ||
195 | .platform_data = &tmu1_platform_data, | ||
196 | }, | ||
197 | .resource = tmu1_resources, | ||
198 | .num_resources = ARRAY_SIZE(tmu1_resources), | ||
199 | }; | ||
200 | |||
201 | static struct sh_timer_config tmu2_platform_data = { | ||
202 | .channel_offset = 0x1a, | ||
203 | .timer_bit = 2, | ||
204 | }; | ||
205 | |||
206 | static struct resource tmu2_resources[] = { | ||
207 | [0] = { | ||
208 | .start = 0xfffffeac, | ||
209 | .end = 0xfffffebb, | ||
210 | .flags = IORESOURCE_MEM, | ||
211 | }, | ||
212 | [1] = { | ||
213 | .start = evt2irq(0x440), | ||
214 | .flags = IORESOURCE_IRQ, | ||
215 | }, | ||
216 | }; | ||
217 | |||
218 | static struct platform_device tmu2_device = { | ||
219 | .name = "sh_tmu", | ||
220 | .id = 2, | ||
221 | .dev = { | ||
222 | .platform_data = &tmu2_platform_data, | ||
223 | }, | ||
224 | .resource = tmu2_resources, | ||
225 | .num_resources = ARRAY_SIZE(tmu2_resources), | ||
226 | }; | ||
227 | |||
228 | static struct platform_device *sh7705_devices[] __initdata = { | 166 | static struct platform_device *sh7705_devices[] __initdata = { |
229 | &scif0_device, | 167 | &scif0_device, |
230 | &scif1_device, | 168 | &scif1_device, |
231 | &tmu0_device, | 169 | &tmu0_device, |
232 | &tmu1_device, | ||
233 | &tmu2_device, | ||
234 | &rtc_device, | 170 | &rtc_device, |
235 | }; | 171 | }; |
236 | 172 | ||
@@ -245,8 +181,6 @@ static struct platform_device *sh7705_early_devices[] __initdata = { | |||
245 | &scif0_device, | 181 | &scif0_device, |
246 | &scif1_device, | 182 | &scif1_device, |
247 | &tmu0_device, | 183 | &tmu0_device, |
248 | &tmu1_device, | ||
249 | &tmu2_device, | ||
250 | }; | 184 | }; |
251 | 185 | ||
252 | void __init plat_early_device_setup(void) | 186 | void __init plat_early_device_setup(void) |