Commit 5ab9a428 authored by Heiko Stuebner's avatar Heiko Stuebner Committed by Kukjin Kim

ARM: S3C24XX: prevent conflicts between ccf and non-ccf s3c24xx-socs

As the conversion to the common-clock-framework is done in multiple
steps, it is necessary to prevent conflicts between the different
struct clk implementations.

For this include the s3c24xx_setup_clocks function only when
SAMSUNG_CLOCK is selected and make the socs we don't convert this
time explicitly depend on SAMSUNG_CLOCK, which gets only selected
automatically if COMMON_CLK is not enabled.
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Reviewed-by: default avatarTomasz Figa <t.figa@samsung.com>
Signed-off-by: default avatarKukjin Kim <kgene.kim@samsung.com>
parent 61fbb1d2
...@@ -25,6 +25,7 @@ comment "S3C24XX SoCs" ...@@ -25,6 +25,7 @@ comment "S3C24XX SoCs"
config CPU_S3C2410 config CPU_S3C2410
bool "SAMSUNG S3C2410" bool "SAMSUNG S3C2410"
default y default y
depends on SAMSUNG_CLOCK
select CPU_ARM920T select CPU_ARM920T
select CPU_LLSERIAL_S3C2410 select CPU_LLSERIAL_S3C2410
select S3C2410_CLOCK select S3C2410_CLOCK
...@@ -38,6 +39,7 @@ config CPU_S3C2410 ...@@ -38,6 +39,7 @@ config CPU_S3C2410
config CPU_S3C2412 config CPU_S3C2412
bool "SAMSUNG S3C2412" bool "SAMSUNG S3C2412"
depends on SAMSUNG_CLOCK
select CPU_ARM926T select CPU_ARM926T
select CPU_LLSERIAL_S3C2440 select CPU_LLSERIAL_S3C2440
select S3C2412_DMA if S3C24XX_DMA select S3C2412_DMA if S3C24XX_DMA
...@@ -58,6 +60,7 @@ config CPU_S3C2416 ...@@ -58,6 +60,7 @@ config CPU_S3C2416
config CPU_S3C2440 config CPU_S3C2440
bool "SAMSUNG S3C2440" bool "SAMSUNG S3C2440"
depends on SAMSUNG_CLOCK
select CPU_ARM920T select CPU_ARM920T
select CPU_LLSERIAL_S3C2440 select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK select S3C2410_CLOCK
...@@ -68,6 +71,7 @@ config CPU_S3C2440 ...@@ -68,6 +71,7 @@ config CPU_S3C2440
config CPU_S3C2442 config CPU_S3C2442
bool "SAMSUNG S3C2442" bool "SAMSUNG S3C2442"
depends on SAMSUNG_CLOCK
select CPU_ARM920T select CPU_ARM920T
select CPU_LLSERIAL_S3C2440 select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK select S3C2410_CLOCK
......
...@@ -318,6 +318,7 @@ struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = { ...@@ -318,6 +318,7 @@ struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = {
/* initialise all the clocks */ /* initialise all the clocks */
#ifdef CONFIG_SAMSUNG_CLOCK
void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk, void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk,
unsigned long hclk, unsigned long hclk,
unsigned long pclk) unsigned long pclk)
...@@ -330,6 +331,7 @@ void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk, ...@@ -330,6 +331,7 @@ void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk,
clk_p.rate = pclk; clk_p.rate = pclk;
clk_f.rate = fclk; clk_f.rate = fclk;
} }
#endif
#if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \ #if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \
defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442) defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment