diff options
author | Heiko Stuebner <heiko@sntech.de> | 2014-05-08 16:48:57 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2014-05-12 19:00:01 -0400 |
commit | 51cb128987d96538fdea4ce3704e79257afad4a5 (patch) | |
tree | 1109bd22e3f6a5fb9e3274bd3d158c4a05d17c94 /arch/arm/mach-s3c24xx/mach-rx1950.c | |
parent | 5799ea12a41286d9588155a1abd828f43bc63d6b (diff) |
ARM: S3C24XX: enable usage of common dclk if common clock framework is enabled
Add platform device and select the correct implementation automatically
depending on wether the old samsung_clock or the common clock framework
is enabled.
This is only done for machines already using the old dclk implementation,
as everybody else should move to use dt anyway.
The machine-specific settings for the external clocks will have to be set
by somebody with knowledge about the specific hardware.
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Tomasz Figa <t.figa@samsung.com>
[pebolle@tiscali.nl: pointed out typo and fixed]
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-s3c24xx/mach-rx1950.c')
-rw-r--r-- | arch/arm/mach-s3c24xx/mach-rx1950.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-s3c24xx/mach-rx1950.c b/arch/arm/mach-s3c24xx/mach-rx1950.c index afb784e934c8..219454c93db4 100644 --- a/arch/arm/mach-s3c24xx/mach-rx1950.c +++ b/arch/arm/mach-s3c24xx/mach-rx1950.c | |||
@@ -710,6 +710,7 @@ static struct i2c_board_info rx1950_i2c_devices[] = { | |||
710 | }; | 710 | }; |
711 | 711 | ||
712 | static struct platform_device *rx1950_devices[] __initdata = { | 712 | static struct platform_device *rx1950_devices[] __initdata = { |
713 | &s3c2410_device_dclk, | ||
713 | &s3c_device_lcd, | 714 | &s3c_device_lcd, |
714 | &s3c_device_wdt, | 715 | &s3c_device_wdt, |
715 | &s3c_device_i2c0, | 716 | &s3c_device_i2c0, |
@@ -728,17 +729,21 @@ static struct platform_device *rx1950_devices[] __initdata = { | |||
728 | &rx1950_leds, | 729 | &rx1950_leds, |
729 | }; | 730 | }; |
730 | 731 | ||
732 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
731 | static struct clk *rx1950_clocks[] __initdata = { | 733 | static struct clk *rx1950_clocks[] __initdata = { |
732 | &s3c24xx_clkout0, | 734 | &s3c24xx_clkout0, |
733 | &s3c24xx_clkout1, | 735 | &s3c24xx_clkout1, |
734 | }; | 736 | }; |
737 | #endif | ||
735 | 738 | ||
736 | static void __init rx1950_map_io(void) | 739 | static void __init rx1950_map_io(void) |
737 | { | 740 | { |
741 | #ifdef CONFIG_SAMSUNG_CLOCK | ||
738 | s3c24xx_clkout0.parent = &clk_h; | 742 | s3c24xx_clkout0.parent = &clk_h; |
739 | s3c24xx_clkout1.parent = &clk_f; | 743 | s3c24xx_clkout1.parent = &clk_f; |
740 | 744 | ||
741 | s3c24xx_register_clocks(rx1950_clocks, ARRAY_SIZE(rx1950_clocks)); | 745 | s3c24xx_register_clocks(rx1950_clocks, ARRAY_SIZE(rx1950_clocks)); |
746 | #endif | ||
742 | 747 | ||
743 | s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc)); | 748 | s3c24xx_init_io(rx1950_iodesc, ARRAY_SIZE(rx1950_iodesc)); |
744 | s3c24xx_init_clocks(16934000); | 749 | s3c24xx_init_clocks(16934000); |