diff options
Diffstat (limited to 'arch/arm/mach-s3c24xx/mach-anubis.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-anubis.c | 34 |
1 files changed, 8 insertions, 26 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-anubis.c b/arch/arm/mach-s3c24xx/mach-anubis.c index 81a270af2336..e053581cab0b 100644 --- a/arch/arm/mach-s3c24xx/mach-anubis.c +++ b/arch/arm/mach-s3c24xx/mach-anubis.c | |||
@@ -46,7 +46,6 @@ | |||
46 | 46 | ||
47 | #include <net/ax88796.h> | 47 | #include <net/ax88796.h> |
48 | 48 | ||
49 | #include <plat/clock.h> | ||
50 | #include <plat/devs.h> | 49 | #include <plat/devs.h> |
51 | #include <plat/cpu.h> | 50 | #include <plat/cpu.h> |
52 | #include <linux/platform_data/asoc-s3c24xx_simtec.h> | 51 | #include <linux/platform_data/asoc-s3c24xx_simtec.h> |
@@ -352,6 +351,7 @@ static struct platform_device anubis_device_sm501 = { | |||
352 | /* Standard Anubis devices */ | 351 | /* Standard Anubis devices */ |
353 | 352 | ||
354 | static struct platform_device *anubis_devices[] __initdata = { | 353 | static struct platform_device *anubis_devices[] __initdata = { |
354 | &s3c2410_device_dclk, | ||
355 | &s3c_device_ohci, | 355 | &s3c_device_ohci, |
356 | &s3c_device_wdt, | 356 | &s3c_device_wdt, |
357 | &s3c_device_adc, | 357 | &s3c_device_adc, |
@@ -364,14 +364,6 @@ static struct platform_device *anubis_devices[] __initdata = { | |||
364 | &anubis_device_sm501, | 364 | &anubis_device_sm501, |
365 | }; | 365 | }; |
366 | 366 | ||
367 | static struct clk *anubis_clocks[] __initdata = { | ||
368 | &s3c24xx_dclk0, | ||
369 | &s3c24xx_dclk1, | ||
370 | &s3c24xx_clkout0, | ||
371 | &s3c24xx_clkout1, | ||
372 | &s3c24xx_uclk, | ||
373 | }; | ||
374 | |||
375 | /* I2C devices. */ | 367 | /* I2C devices. */ |
376 | 368 | ||
377 | static struct i2c_board_info anubis_i2c_devs[] __initdata = { | 369 | static struct i2c_board_info anubis_i2c_devs[] __initdata = { |
@@ -394,23 +386,7 @@ static struct s3c24xx_audio_simtec_pdata __initdata anubis_audio = { | |||
394 | 386 | ||
395 | static void __init anubis_map_io(void) | 387 | static void __init anubis_map_io(void) |
396 | { | 388 | { |
397 | /* initialise the clocks */ | ||
398 | |||
399 | s3c24xx_dclk0.parent = &clk_upll; | ||
400 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
401 | |||
402 | s3c24xx_dclk1.parent = &clk_upll; | ||
403 | s3c24xx_dclk1.rate = 24*1000*1000; | ||
404 | |||
405 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
406 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
407 | |||
408 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
409 | |||
410 | s3c24xx_register_clocks(anubis_clocks, ARRAY_SIZE(anubis_clocks)); | ||
411 | |||
412 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); | 389 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); |
413 | s3c24xx_init_clocks(0); | ||
414 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); | 390 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); |
415 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 391 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
416 | 392 | ||
@@ -428,6 +404,12 @@ static void __init anubis_map_io(void) | |||
428 | } | 404 | } |
429 | } | 405 | } |
430 | 406 | ||
407 | static void __init anubis_init_time(void) | ||
408 | { | ||
409 | s3c2440_init_clocks(12000000); | ||
410 | samsung_timer_init(); | ||
411 | } | ||
412 | |||
431 | static void __init anubis_init(void) | 413 | static void __init anubis_init(void) |
432 | { | 414 | { |
433 | s3c_i2c0_set_platdata(NULL); | 415 | s3c_i2c0_set_platdata(NULL); |
@@ -447,6 +429,6 @@ MACHINE_START(ANUBIS, "Simtec-Anubis") | |||
447 | .map_io = anubis_map_io, | 429 | .map_io = anubis_map_io, |
448 | .init_machine = anubis_init, | 430 | .init_machine = anubis_init, |
449 | .init_irq = s3c2440_init_irq, | 431 | .init_irq = s3c2440_init_irq, |
450 | .init_time = samsung_timer_init, | 432 | .init_time = anubis_init_time, |
451 | .restart = s3c244x_restart, | 433 | .restart = s3c244x_restart, |
452 | MACHINE_END | 434 | MACHINE_END |