From: heiko@sntech.de (Heiko Stübner)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 5/7] ARM: S3C24XX: prevent conflicts between ccf and non-ccf s3c24xx-socs
Date: Tue, 10 Dec 2013 16:18:20 +0100 [thread overview]
Message-ID: <201312101618.20317.heiko@sntech.de> (raw)
In-Reply-To: <201312101614.29781.heiko@sntech.de>
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: Heiko Stuebner <heiko@sntech.de>
---
arch/arm/mach-s3c24xx/Kconfig | 4 ++++
arch/arm/mach-s3c24xx/common.c | 2 ++
2 files changed, 6 insertions(+)
diff --git a/arch/arm/mach-s3c24xx/Kconfig b/arch/arm/mach-s3c24xx/Kconfig
index 2eeeb55..3f1547c 100644
--- a/arch/arm/mach-s3c24xx/Kconfig
+++ b/arch/arm/mach-s3c24xx/Kconfig
@@ -25,6 +25,7 @@ comment "S3C24XX SoCs"
config CPU_S3C2410
bool "SAMSUNG S3C2410"
default y
+ depends on SAMSUNG_CLOCK
select CPU_ARM920T
select CPU_LLSERIAL_S3C2410
select S3C2410_CLOCK
@@ -38,6 +39,7 @@ config CPU_S3C2410
config CPU_S3C2412
bool "SAMSUNG S3C2412"
+ depends on SAMSUNG_CLOCK
select CPU_ARM926T
select CPU_LLSERIAL_S3C2440
select S3C2412_DMA if S3C24XX_DMA
@@ -58,6 +60,7 @@ config CPU_S3C2416
config CPU_S3C2440
bool "SAMSUNG S3C2440"
+ depends on SAMSUNG_CLOCK
select CPU_ARM920T
select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK
@@ -68,6 +71,7 @@ config CPU_S3C2440
config CPU_S3C2442
bool "SAMSUNG S3C2442"
+ depends on SAMSUNG_CLOCK
select CPU_ARM920T
select CPU_LLSERIAL_S3C2440
select S3C2410_CLOCK
diff --git a/arch/arm/mach-s3c24xx/common.c b/arch/arm/mach-s3c24xx/common.c
index 4adaa4b..46af4e5 100644
--- a/arch/arm/mach-s3c24xx/common.c
+++ b/arch/arm/mach-s3c24xx/common.c
@@ -319,6 +319,7 @@ struct s3c24xx_uart_resources s3c2410_uart_resources[] __initdata = {
/* initialise all the clocks */
+#ifdef CONFIG_SAMSUNG_CLOCK
void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk,
unsigned long hclk,
unsigned long pclk)
@@ -331,6 +332,7 @@ void __init_or_cpufreq s3c24xx_setup_clocks(unsigned long fclk,
clk_p.rate = pclk;
clk_f.rate = fclk;
}
+#endif
#if defined(CONFIG_CPU_S3C2410) || defined(CONFIG_CPU_S3C2412) || \
defined(CONFIG_CPU_S3C2440) || defined(CONFIG_CPU_S3C2442)
--
1.7.10.4
next prev parent reply other threads:[~2013-12-10 15:18 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-10 15:14 [PATCH v4 0/7] ARM: S3C24XX: Convert s3c2416 and s3c2443 to common clock framework Heiko Stübner
2013-12-10 15:15 ` [PATCH v4 1/7] clk: samsung: add pll_6552 variant for s3c2416 Heiko Stübner
2013-12-23 20:07 ` Mike Turquette
2013-12-10 15:15 ` [PATCH v4 2/7] clk: samsung: add plls used by the s3c2443 Heiko Stübner
2013-12-23 20:07 ` Mike Turquette
2013-12-31 20:03 ` Heiko Stübner
2013-12-10 15:17 ` [PATCH v4 3/7] dt-bindings: add binding for clock-controller of s3c2443 and following Heiko Stübner
2013-12-10 15:17 ` [PATCH v4 4/7] clk: samsung: add clock-driver for s3c2416, s3c2443 and s3c2450 Heiko Stübner
2013-12-10 15:18 ` Heiko Stübner [this message]
2013-12-10 15:19 ` [PATCH v4 6/7] ARM: dt: add clock data for s3c2416 Heiko Stübner
2013-12-10 15:20 ` [PATCH v4 7/7] ARM: S3C24XX: Convert s3c2416 and s3c2443 to common clock framework Heiko Stübner
2013-12-10 15:27 ` [PATCH v4 0/7] " Tomasz Figa
2013-12-23 13:11 ` Heiko Stübner
2013-12-24 1:37 ` Kukjin Kim
2013-12-24 10:20 ` Sachin Kamat
2014-01-10 8:30 ` kgene at kernel.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201312101618.20317.heiko@sntech.de \
--to=heiko@sntech.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).