diff options
author | Heiko Stuebner <heiko@sntech.de> | 2014-05-08 16:51:43 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-05-12 19:00:46 -0400 |
commit | 2916f9a2c6d9200b4c840a613cd1fa1dad04240f (patch) | |
tree | 602d956f720618bf88ec09f18b6178e8348b1f1f | |
parent | defd9da51d1a472ffa7a92ba71ffa07839bdc1a3 (diff) |
ARM: S3C24XX: remove SAMSUNG_CLOCK remnants after ccf conversion
This finally removes all remaining SAMSUNG_CLOCK conditional code
from s3c24xx architectures.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | arch/arm/mach-s3c24xx/Kconfig | 3 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/common.c | 17 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/cpufreq-utils.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-anubis.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-bast.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-osiris.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-rx1950.c | 14 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-vr1000.c | 27 | ||||
-rw-r--r-- | arch/arm/mach-s3c24xx/pm.c | 12 |
9 files changed, 0 insertions, 160 deletions
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig index f9bb1ea14fe4..1331e784c713 100644 --- a/arch/arm/mach-s3c24xx/Kconfig +++ b/arch/arm/mach-s3c24xx/Kconfig | |||
@@ -266,7 +266,6 @@ config ARCH_BAST | |||
266 | select MACH_BAST_IDE | 266 | select MACH_BAST_IDE |
267 | select S3C2410_COMMON_DCLK if COMMON_CLK | 267 | select S3C2410_COMMON_DCLK if COMMON_CLK |
268 | select S3C2410_IOTIMING if ARM_S3C2410_CPUFREQ | 268 | select S3C2410_IOTIMING if ARM_S3C2410_CPUFREQ |
269 | select S3C24XX_DCLK if SAMSUNG_CLOCK | ||
270 | select S3C24XX_SIMTEC_NOR | 269 | select S3C24XX_SIMTEC_NOR |
271 | select S3C24XX_SIMTEC_PM if PM | 270 | select S3C24XX_SIMTEC_PM if PM |
272 | select S3C24XX_SIMTEC_USB | 271 | select S3C24XX_SIMTEC_USB |
@@ -534,7 +533,6 @@ config MACH_ANUBIS | |||
534 | select HAVE_PATA_PLATFORM | 533 | select HAVE_PATA_PLATFORM |
535 | select S3C2410_COMMON_DCLK if COMMON_CLK | 534 | select S3C2410_COMMON_DCLK if COMMON_CLK |
536 | select S3C2440_XTAL_12000000 | 535 | select S3C2440_XTAL_12000000 |
537 | select S3C24XX_DCLK if SAMSUNG_CLOCK | ||
538 | select S3C24XX_SIMTEC_PM if PM | 536 | select S3C24XX_SIMTEC_PM if PM |
539 | select S3C_DEV_USB_HOST | 537 | select S3C_DEV_USB_HOST |
540 | help | 538 | help |
@@ -575,7 +573,6 @@ config MACH_OSIRIS | |||
575 | select S3C2410_COMMON_DCLK if COMMON_CLK | 573 | select S3C2410_COMMON_DCLK if COMMON_CLK |
576 | select S3C2410_IOTIMING if ARM_S3C2440_CPUFREQ | 574 | select S3C2410_IOTIMING if ARM_S3C2440_CPUFREQ |
577 | select S3C2440_XTAL_12000000 | 575 | select S3C2440_XTAL_12000000 |
578 | select S3C24XX_DCLK if SAMSUNG_CLOCK | ||
579 | select S3C24XX_SIMTEC_PM if PM | 576 | select S3C24XX_SIMTEC_PM if PM |
580 | select S3C_DEV_NAND | 577 | select S3C_DEV_NAND |
581 | select S3C_DEV_USB_HOST | 578 | select S3C_DEV_USB_HOST |
diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c index 600a1be5696b..c0763b837745 100644 --- a/arch/arm/mach-s3c24xx/common.c +++ b/arch/arm/mach-s3c24xx/common.c | |||
@@ -307,23 +307,6 @@ struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { | |||
307 | }, | 307 | }, |
308 | }; | 308 | }; |
309 | 309 | ||
310 | /* initialise all the clocks */ | ||
311 | |||
312 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
313 | void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk, | ||
314 | unsigned long hclk, | ||
315 | unsigned long pclk) | ||
316 | { | ||
317 | clk_upll.rate = s3c24xx_get_pll(__raw_readl(S3C2410_UPLLCON), | ||
318 | clk_xtal.rate); | ||
319 | |||
320 | clk_mpll.rate = fclk; | ||
321 | clk_h.rate = hclk; | ||
322 | clk_p.rate = pclk; | ||
323 | clk_f.rate = fclk; | ||
324 | } | ||
325 | #endif | ||
326 | |||
327 | #if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \ | 310 | #if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \ |
328 | defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) | 311 | defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) |
329 | static struct resource s3c2410_dma_resource[] = { | 312 | static struct resource s3c2410_dma_resource[] = { |
diff --git a/arch/arm/mach-s3c24xx/cpufreq-utils.c b/arch/arm/mach-s3c24xx/cpufreq-utils.c index c1b7508523ad..d4d9514335f4 100644 --- a/arch/arm/mach-s3c24xx/cpufreq-utils.c +++ b/arch/arm/mach-s3c24xx/cpufreq-utils.c | |||
@@ -61,12 +61,6 @@ void s3c2410_cpufreq_setrefresh(struct s3c_cpufreq_config *cfg) | |||
61 | */ | 61 | */ |
62 | void s3c2410_set_fvco(struct s3c_cpufreq_config *cfg) | 62 | void s3c2410_set_fvco(struct s3c_cpufreq_config *cfg) |
63 | { | 63 | { |
64 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
65 | __raw_writel(cfg->pll.driver_data, S3C2410_MPLLCON); | ||
66 | #endif | ||
67 | |||
68 | #ifdef CONFIG_COMMON_CLK | ||
69 | if (!IS_ERR(cfg->mpll)) | 64 | if (!IS_ERR(cfg->mpll)) |
70 | clk_set_rate(cfg->mpll, cfg->pll.frequency); | 65 | clk_set_rate(cfg->mpll, cfg->pll.frequency); |
71 | #endif | ||
72 | } | 66 | } |
diff --git a/arch/arm/mach-s3c24xx/mach-anubis.c b/arch/arm/mach-s3c24xx/mach-anubis.c index 7a0d83b2f93a..e053581cab0b 100644 --- a/arch/arm/mach-s3c24xx/mach-anubis.c +++ b/arch/arm/mach-s3c24xx/mach-anubis.c | |||
@@ -364,16 +364,6 @@ static struct platform_device *anubis_devices[] __initdata = { | |||
364 | &anubis_device_sm501, | 364 | &anubis_device_sm501, |
365 | }; | 365 | }; |
366 | 366 | ||
367 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
368 | static struct clk *anubis_clocks[] __initdata = { | ||
369 | &s3c24xx_dclk0, | ||
370 | &s3c24xx_dclk1, | ||
371 | &s3c24xx_clkout0, | ||
372 | &s3c24xx_clkout1, | ||
373 | &s3c24xx_uclk, | ||
374 | }; | ||
375 | #endif | ||
376 | |||
377 | /* I2C devices. */ | 367 | /* I2C devices. */ |
378 | 368 | ||
379 | static struct i2c_board_info anubis_i2c_devs[] __initdata = { | 369 | static struct i2c_board_info anubis_i2c_devs[] __initdata = { |
@@ -396,23 +386,6 @@ static struct s3c24xx_audio_simtec_pdata __initdata anubis_audio = { | |||
396 | 386 | ||
397 | static void __init anubis_map_io(void) | 387 | static void __init anubis_map_io(void) |
398 | { | 388 | { |
399 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
400 | /* initialise the clocks */ | ||
401 | |||
402 | s3c24xx_dclk0.parent = &clk_upll; | ||
403 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
404 | |||
405 | s3c24xx_dclk1.parent = &clk_upll; | ||
406 | s3c24xx_dclk1.rate = 24*1000*1000; | ||
407 | |||
408 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
409 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
410 | |||
411 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
412 | |||
413 | s3c24xx_register_clocks(anubis_clocks, ARRAY_SIZE(anubis_clocks)); | ||
414 | #endif | ||
415 | |||
416 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); | 389 | s3c24xx_init_io(anubis_iodesc, ARRAY_SIZE(anubis_iodesc)); |
417 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); | 390 | s3c24xx_init_uarts(anubis_uartcfgs, ARRAY_SIZE(anubis_uartcfgs)); |
418 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 391 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
diff --git a/arch/arm/mach-s3c24xx/mach-bast.c b/arch/arm/mach-s3c24xx/mach-bast.c index ea762f20099b..f9112b801a33 100644 --- a/arch/arm/mach-s3c24xx/mach-bast.c +++ b/arch/arm/mach-s3c24xx/mach-bast.c | |||
@@ -537,16 +537,6 @@ static struct platform_device *bast_devices[] __initdata = { | |||
537 | &bast_sio, | 537 | &bast_sio, |
538 | }; | 538 | }; |
539 | 539 | ||
540 | #ifdef CONFIG_SAMSUNG_CLK | ||
541 | static struct clk *bast_clocks[] __initdata = { | ||
542 | &s3c24xx_dclk0, | ||
543 | &s3c24xx_dclk1, | ||
544 | &s3c24xx_clkout0, | ||
545 | &s3c24xx_clkout1, | ||
546 | &s3c24xx_uclk, | ||
547 | }; | ||
548 | #endif | ||
549 | |||
550 | static struct s3c_cpufreq_board __initdata bast_cpufreq = { | 540 | static struct s3c_cpufreq_board __initdata bast_cpufreq = { |
551 | .refresh = 7800, /* 7.8usec */ | 541 | .refresh = 7800, /* 7.8usec */ |
552 | .auto_io = 1, | 542 | .auto_io = 1, |
@@ -560,23 +550,6 @@ static struct s3c24xx_audio_simtec_pdata __initdata bast_audio = { | |||
560 | 550 | ||
561 | static void __init bast_map_io(void) | 551 | static void __init bast_map_io(void) |
562 | { | 552 | { |
563 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
564 | /* initialise the clocks */ | ||
565 | |||
566 | s3c24xx_dclk0.parent = &clk_upll; | ||
567 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
568 | |||
569 | s3c24xx_dclk1.parent = &clk_upll; | ||
570 | s3c24xx_dclk1.rate = 24*1000*1000; | ||
571 | |||
572 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
573 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
574 | |||
575 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
576 | |||
577 | s3c24xx_register_clocks(bast_clocks, ARRAY_SIZE(bast_clocks)); | ||
578 | #endif | ||
579 | |||
580 | s3c_hwmon_set_platdata(&bast_hwmon_info); | 553 | s3c_hwmon_set_platdata(&bast_hwmon_info); |
581 | 554 | ||
582 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); | 555 | s3c24xx_init_io(bast_iodesc, ARRAY_SIZE(bast_iodesc)); |
diff --git a/arch/arm/mach-s3c24xx/mach-osiris.c b/arch/arm/mach-s3c24xx/mach-osiris.c index 3bc2c9bad8b3..189147b80eca 100644 --- a/arch/arm/mach-s3c24xx/mach-osiris.c +++ b/arch/arm/mach-s3c24xx/mach-osiris.c | |||
@@ -350,16 +350,6 @@ static struct platform_device *osiris_devices[] __initdata = { | |||
350 | &osiris_pcmcia, | 350 | &osiris_pcmcia, |
351 | }; | 351 | }; |
352 | 352 | ||
353 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
354 | static struct clk *osiris_clocks[] __initdata = { | ||
355 | &s3c24xx_dclk0, | ||
356 | &s3c24xx_dclk1, | ||
357 | &s3c24xx_clkout0, | ||
358 | &s3c24xx_clkout1, | ||
359 | &s3c24xx_uclk, | ||
360 | }; | ||
361 | #endif | ||
362 | |||
363 | static struct s3c_cpufreq_board __initdata osiris_cpufreq = { | 353 | static struct s3c_cpufreq_board __initdata osiris_cpufreq = { |
364 | .refresh = 7800, /* refresh period is 7.8usec */ | 354 | .refresh = 7800, /* refresh period is 7.8usec */ |
365 | .auto_io = 1, | 355 | .auto_io = 1, |
@@ -370,23 +360,6 @@ static void __init osiris_map_io(void) | |||
370 | { | 360 | { |
371 | unsigned long flags; | 361 | unsigned long flags; |
372 | 362 | ||
373 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
374 | /* initialise the clocks */ | ||
375 | |||
376 | s3c24xx_dclk0.parent = &clk_upll; | ||
377 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
378 | |||
379 | s3c24xx_dclk1.parent = &clk_upll; | ||
380 | s3c24xx_dclk1.rate = 24*1000*1000; | ||
381 | |||
382 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
383 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
384 | |||
385 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
386 | |||
387 | s3c24xx_register_clocks(osiris_clocks, ARRAY_SIZE(osiris_clocks)); | ||
388 | #endif | ||
389 | |||
390 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); | 363 | s3c24xx_init_io(osiris_iodesc, ARRAY_SIZE(osiris_iodesc)); |
391 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); | 364 | s3c24xx_init_uarts(osiris_uartcfgs, ARRAY_SIZE(osiris_uartcfgs)); |
392 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 365 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
diff --git a/arch/arm/mach-s3c24xx/mach-rx1950.c b/arch/arm/mach-s3c24xx/mach-rx1950.c index 5f37f5262e65..e2c6541909c1 100644 --- a/arch/arm/mach-s3c24xx/mach-rx1950.c +++ b/arch/arm/mach-s3c24xx/mach-rx1950.c | |||
@@ -728,22 +728,8 @@ static struct platform_device *rx1950_devices[] __initdata = { | |||
728 | &rx1950_leds, | 728 | &rx1950_leds, |
729 | }; | 729 | }; |
730 | 730 | ||
731 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
732 | static struct clk *rx1950_clocks[] __initdata = { | ||
733 | &s3c24xx_clkout0, | ||
734 | &s3c24xx_clkout1, | ||
735 | }; | ||
736 | #endif | ||
737 | |||
738 | static void __init rx1950_map_io(void) | 731 | static void __init rx1950_map_io(void) |
739 | { | 732 | { |
740 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
741 | s3c24xx_clkout0.parent = &clk_h; | ||
742 | s3c24xx_clkout1.parent = &clk_f; | ||
743 | |||
744 | s3c24xx_register_clocks(rx1950_clocks, ARRAY_SIZE(rx1950_clocks)); | ||
745 | #endif | ||
746 | |||
747 | s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc)); | 733 | s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc)); |
748 | s3c24xx_init_uarts(rx1950_uartcfgs, ARRAY_SIZE(rx1950_uartcfgs)); | 734 | s3c24xx_init_uarts(rx1950_uartcfgs, ARRAY_SIZE(rx1950_uartcfgs)); |
749 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); | 735 | samsung_set_timer_source(SAMSUNG_PWM3, SAMSUNG_PWM4); |
diff --git a/arch/arm/mach-s3c24xx/mach-vr1000.c b/arch/arm/mach-s3c24xx/mach-vr1000.c index 5f588bf20f43..f88c584c3001 100644 --- a/arch/arm/mach-s3c24xx/mach-vr1000.c +++ b/arch/arm/mach-s3c24xx/mach-vr1000.c | |||
@@ -299,16 +299,6 @@ static struct platform_device *vr1000_devices[] __initdata = { | |||
299 | &vr1000_led3, | 299 | &vr1000_led3, |
300 | }; | 300 | }; |
301 | 301 | ||
302 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
303 | static struct clk *vr1000_clocks[] __initdata = { | ||
304 | &s3c24xx_dclk0, | ||
305 | &s3c24xx_dclk1, | ||
306 | &s3c24xx_clkout0, | ||
307 | &s3c24xx_clkout1, | ||
308 | &s3c24xx_uclk, | ||
309 | }; | ||
310 | #endif | ||
311 | |||
312 | static void vr1000_power_off(void) | 302 | static void vr1000_power_off(void) |
313 | { | 303 | { |
314 | gpio_direction_output(S3C2410_GPB(9), 1); | 304 | gpio_direction_output(S3C2410_GPB(9), 1); |
@@ -316,23 +306,6 @@ static void vr1000_power_off(void) | |||
316 | 306 | ||
317 | static void __init vr1000_map_io(void) | 307 | static void __init vr1000_map_io(void) |
318 | { | 308 | { |
319 | #if CONFIG_SAMSUNG_CLOCK | ||
320 | /* initialise clock sources */ | ||
321 | |||
322 | s3c24xx_dclk0.parent = &clk_upll; | ||
323 | s3c24xx_dclk0.rate = 12*1000*1000; | ||
324 | |||
325 | s3c24xx_dclk1.parent = NULL; | ||
326 | s3c24xx_dclk1.rate = 3692307; | ||
327 | |||
328 | s3c24xx_clkout0.parent = &s3c24xx_dclk0; | ||
329 | s3c24xx_clkout1.parent = &s3c24xx_dclk1; | ||
330 | |||
331 | s3c24xx_uclk.parent = &s3c24xx_clkout1; | ||
332 | |||
333 | s3c24xx_register_clocks(vr1000_clocks, ARRAY_SIZE(vr1000_clocks)); | ||
334 | #endif | ||
335 | |||
336 | pm_power_off = vr1000_power_off; | 309 | pm_power_off = vr1000_power_off; |
337 | 310 | ||
338 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); | 311 | s3c24xx_init_io(vr1000_iodesc, ARRAY_SIZE(vr1000_iodesc)); |
diff --git a/arch/arm/mach-s3c24xx/pm.c b/arch/arm/mach-s3c24xx/pm.c index 3d8cf3054e7f..b19256ec8d40 100644 --- a/arch/arm/mach-s3c24xx/pm.c +++ b/arch/arm/mach-s3c24xx/pm.c | |||
@@ -66,18 +66,6 @@ static struct sleep_save core_save[] = { | |||
66 | SAVE_ITEM(S3C2410_BANKCON3), | 66 | SAVE_ITEM(S3C2410_BANKCON3), |
67 | SAVE_ITEM(S3C2410_BANKCON4), | 67 | SAVE_ITEM(S3C2410_BANKCON4), |
68 | SAVE_ITEM(S3C2410_BANKCON5), | 68 | SAVE_ITEM(S3C2410_BANKCON5), |
69 | |||
70 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
71 | SAVE_ITEM(S3C2410_LOCKTIME), | ||
72 | SAVE_ITEM(S3C2410_CLKCON), | ||
73 | #ifndef CONFIG_CPU_FREQ | ||
74 | SAVE_ITEM(S3C2410_CLKDIVN), | ||
75 | SAVE_ITEM(S3C2410_MPLLCON), | ||
76 | SAVE_ITEM(S3C2410_REFRESH), | ||
77 | #endif | ||
78 | SAVE_ITEM(S3C2410_UPLLCON), | ||
79 | SAVE_ITEM(S3C2410_CLKSLOW), | ||
80 | #endif /* CONFIG_SAMSUNG_CLOCK */ | ||
81 | }; | 69 | }; |
82 | 70 | ||
83 | /* s3c_pm_check_resume_pin | 71 | /* s3c_pm_check_resume_pin |