ARM: SAMSUNG: Introduce Kconfig variable for Samsung custom clk API
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 12 Jul 2012 07:57:19 +0000 (16:57 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Thu, 12 Jul 2012 21:46:08 +0000 (06:46 +0900)
Make it easier to switch to the common clock API by making the existing
clock API implementation depend on a Kconfig symbol which is enabled when
the common clock API is disabled. This means that we can have some SoCs
using the common clock API and some using the existing API rather than
needing a flag day to convert the entire family of devices over.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/plat-samsung/Kconfig
arch/arm/plat-samsung/Makefile

index a2fae4ea0936655b0f3b0131c1be748c943c71ee..9b4cfd412b1b4c285991a9c84bf6cc96e1ee3774 100644 (file)
@@ -78,6 +78,10 @@ config S5P_HRT
 
 # clock options
 
+config SAMSUNG_CLOCK
+       bool
+       default y if !COMMON_CLK
+
 config SAMSUNG_CLKSRC
        bool
        help
index 860b2db4db155062b66361ce6688a11d6b86ff49..abf2f3b6698830a6d6530968b9f6cee109093d4d 100644 (file)
@@ -15,8 +15,8 @@ obj-y                         += init.o cpu.o
 obj-$(CONFIG_ARCH_USES_GETTIMEOFFSET)   += time.o
 obj-$(CONFIG_S5P_HRT)          += s5p-time.o
 
-obj-y                          += clock.o
-obj-y                          += pwm-clock.o
+obj-$(CONFIG_SAMSUNG_CLOCK)    += clock.o
+obj-$(CONFIG_SAMSUNG_CLOCK)    += pwm-clock.o
 
 obj-$(CONFIG_SAMSUNG_CLKSRC)   += clock-clksrc.o
 obj-$(CONFIG_S5P_CLOCK)                += s5p-clock.o