aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/renesas/Kconfig
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-04-13 11:08:42 +0200
committerGeert Uytterhoeven <geert+renesas@glider.be>2016-04-20 09:16:58 +0200
commita5bd7f7a726c97698dacb062e4635da13e5ea8c4 (patch)
treeea8d8ae674f669ff4092b3487170150c79c6494a /drivers/clk/renesas/Kconfig
parentclk: renesas: mstp: Clarify cpg_mstp_{at,de}tach_dev() domain parameter (diff)
downloadlinux-dev-a5bd7f7a726c97698dacb062e4635da13e5ea8c4.tar.xz
linux-dev-a5bd7f7a726c97698dacb062e4635da13e5ea8c4.zip
clk: renesas: Provide Kconfig symbols for CPG/MSSR and CPG/MSTP support
Currently the decision whether to build the renesas-cpg-mssr and clk-mstp drivers is handled by Makefile logic. However, the rcar-sysc driver will need to know whether CPG/MSSR and/or CPG/MSTP support are available or not. To avoid having to duplicate this logic, move it to Kconfig. Provide non-visible CLK_RENESAS_CPG_MSSR and CLK_RENESAS_CPG_MSTP Kconfig symbols, which can be used by both Makefiles and C code. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/clk/renesas/Kconfig')
-rw-r--r--drivers/clk/renesas/Kconfig16
1 files changed, 16 insertions, 0 deletions
diff --git a/drivers/clk/renesas/Kconfig b/drivers/clk/renesas/Kconfig
new file mode 100644
index 000000000000..2115ce410cfb
--- /dev/null
+++ b/drivers/clk/renesas/Kconfig
@@ -0,0 +1,16 @@
+config CLK_RENESAS_CPG_MSSR
+ bool
+ default y if ARCH_R8A7795
+
+config CLK_RENESAS_CPG_MSTP
+ bool
+ default y if ARCH_R7S72100
+ default y if ARCH_R8A73A4
+ default y if ARCH_R8A7740
+ default y if ARCH_R8A7778
+ default y if ARCH_R8A7779
+ default y if ARCH_R8A7790
+ default y if ARCH_R8A7791
+ default y if ARCH_R8A7793
+ default y if ARCH_R8A7794
+ default y if ARCH_SH73A0