diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/mach-vr1000.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-vr1000.c | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-vr1000.c b/arch/arm/mach-s3c24xx/mach-vr1000.c index 1cc5b1bd51cd..f88c584c3001 100644 --- a/arch/arm/mach-s3c24xx/mach-vr1000.c +++ b/arch/arm/mach-s3c24xx/mach-vr1000.c | |||
@@ -43,7 +43,6 @@ | |||
43 | #include <mach/regs-gpio.h> | 43 | #include <mach/regs-gpio.h> |
44 | #include <mach/gpio-samsung.h> | 44 | #include <mach/gpio-samsung.h> |
45 | 45 | ||
46 | #include <plat/clock.h> | ||
47 | #include <plat/cpu.h> | 46 | #include <plat/cpu.h> |
48 | #include <plat/devs.h> | 47 | #include <plat/devs.h> |
49 | #include <plat/samsung-time.h> | 48 | #include <plat/samsung-time.h> |
@@ -286,6 +285,7 @@ static struct i2c_board_info vr1000_i2c_devs[] __initdata = { | |||
286 | /* devices for this board */ | 285 | /* devices for this board */ |
287 | 286 | ||
288 | static struct platform_device *vr1000_devices[] __initdata = { | 287 | static struct platform_device *vr1000_devices[] __initdata = { |
288 | &s3c2410_device_dclk, | ||
289 | &s3c_device_ohci, | 289 | &s3c_device_ohci, |
290 | &s3c_device_lcd, | 290 | &s3c_device_lcd, |
291 | &s3c_device_wdt, | 291 | &s3c_device_wdt, |
@@ -299,14 +299,6 @@ static struct platform_device *vr1000_devices[] __initdata = { | |||
299 | &vr1000_led3, | 299 | &vr1000_led3, |
300 | }; | 300 | }; |
301 | 301 | ||
302 | static struct clk *vr1000_clocks[] __initdata = { | ||
303 | &s3c24xx_dclk0, | ||
304 | &s3c24xx_dclk1, | ||
305 | &s3c24xx_clkout0, | ||
306 | &s3c24xx_clkout1, | ||
307 | &s3c24xx_uclk, | ||
308 | }; | ||
309 | |||
310 | static void vr1000_power_off(void) | 302 | static void vr1000_power_off(void) |
311 | { | 303 | { |
312 | gpio_direction_output(S3C2410_GPB(9), 1); | 304 | gpio_direction_output(S3C2410_GPB(9), 1); |
@@ -314,29 +306,19 @@ static void vr1000_power_off(void) | |||
314 | 306 | ||
315 | static void __init vr1000_map_io(void) | 307 | static void __init vr1000_map_io(void) |
316 | { | 308 | { |
317 | /* initialise clock sources */ | ||
318 | |||
319 | s3c24xx_dclk0.parent = &clk_upll; | ||
320 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
321 | |||
322 | s3c24xx_dclk1.parent = NULL; | ||
323 | s3c24xx_dclk1.rate = 3692307; | ||
324 | |||
325 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
326 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
327 | |||
328 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
329 | |||
330 | s3c24xx_register_clocks(vr1000_clocks, ARRAY_SIZE(vr1000_clocks)); | ||
331 | |||
332 | pm_power_off = vr1000_power_off; | 309 | pm_power_off = vr1000_power_off; |
333 | 310 | ||
334 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); | 311 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); |
335 | s3c24xx_init_clocks(0); | ||
336 | s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs)); | 312 | s3c24xx_init_uarts(vr1000_uartcfgs, ARRAY_SIZE(vr1000_uartcfgs)); |
337 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 313 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
338 | } | 314 | } |
339 | 315 | ||
316 | static void __init vr1000_init_time(void) | ||
317 | { | ||
318 | s3c2410_init_clocks(12000000); | ||
319 | samsung_timer_init(); | ||
320 | } | ||
321 | |||
340 | static void __init vr1000_init(void) | 322 | static void __init vr1000_init(void) |
341 | { | 323 | { |
342 | s3c_i2c0_set_platdata(NULL); | 324 | s3c_i2c0_set_platdata(NULL); |
@@ -357,6 +339,6 @@ MACHINE_START(VR1000, "Thorcom-VR1000") | |||
357 | .map_io = vr1000_map_io, | 339 | .map_io = vr1000_map_io, |
358 | .init_machine = vr1000_init, | 340 | .init_machine = vr1000_init, |
359 | .init_irq = s3c2410_init_irq, | 341 | .init_irq = s3c2410_init_irq, |
360 | .init_time = samsung_timer_init, | 342 | .init_time = vr1000_init_time, |
361 | .restart = s3c2410_restart, | 343 | .restart = s3c2410_restart, |
362 | MACHINE_END | 344 | MACHINE_END |