summaryrefslogtreecommitdiffstats
path: root/arch/sh/Kconfig
diff options
context:
space:
mode:
authorPaul Mundt2009-05-22 07:00:34 +0200
committerPaul Mundt2009-05-22 07:00:34 +0200
commit36aa1e32f451b664adaf3fc9a77d8279b7a833b2 (patch)
treef33555992b09fcd0aa97debfa1d5d2b4b8694283 /arch/sh/Kconfig
parentsh: clkfwk: beyond ARRAY_SIZE of onchip_ops for sh7722. (diff)
downloadkernel-qcow2-linux-36aa1e32f451b664adaf3fc9a77d8279b7a833b2.tar.gz
kernel-qcow2-linux-36aa1e32f451b664adaf3fc9a77d8279b7a833b2.tar.xz
kernel-qcow2-linux-36aa1e32f451b664adaf3fc9a77d8279b7a833b2.zip
sh: clkfwk: Make clock-cpg usable for non-legacy platforms.
This adds a new SH_CLK_CPG for parts that have CPG support. SH_CLK_CPG_LEGACY is made to depend on this, and still needs to be set for platforms that want clock-cpg to register the legacy clocks. With this new config item in place, it is now possible to start layering more generic CPG code in place while other platforms transition off of the legacy clocks. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/Kconfig')
-rw-r--r--arch/sh/Kconfig4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index df764c56b050..c815975b8d75 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -513,7 +513,11 @@ config SH_PCLK_FREQ
This is necessary for determining the reference clock value on
platforms lacking an RTC.
+config SH_CLK_CPG
+ def_bool y
+
config SH_CLK_CPG_LEGACY
+ depends on SH_CLK_CPG
def_bool y if !CPU_SUBTYPE_SH7785
config SH_CLK_MD