1 # SPDX-License-Identifier: GPL-2.0
4 bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
5 default y if ARCH_RENESAS
6 select CLK_EMEV2 if ARCH_EMEV2
7 select CLK_RZA1 if ARCH_R7S72100
8 select CLK_R7S9210 if ARCH_R7S9210
9 select CLK_R8A73A4 if ARCH_R8A73A4
10 select CLK_R8A7740 if ARCH_R8A7740
11 select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
12 select CLK_R8A7745 if ARCH_R8A7745
13 select CLK_R8A77470 if ARCH_R8A77470
14 select CLK_R8A774A1 if ARCH_R8A774A1
15 select CLK_R8A774C0 if ARCH_R8A774C0
16 select CLK_R8A7778 if ARCH_R8A7778
17 select CLK_R8A7779 if ARCH_R8A7779
18 select CLK_R8A7790 if ARCH_R8A7790
19 select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
20 select CLK_R8A7792 if ARCH_R8A7792
21 select CLK_R8A7794 if ARCH_R8A7794
22 select CLK_R8A7795 if ARCH_R8A7795
23 select CLK_R8A7796 if ARCH_R8A7796
24 select CLK_R8A77965 if ARCH_R8A77965
25 select CLK_R8A77970 if ARCH_R8A77970
26 select CLK_R8A77980 if ARCH_R8A77980
27 select CLK_R8A77990 if ARCH_R8A77990
28 select CLK_R8A77995 if ARCH_R8A77995
29 select CLK_R9A06G032 if ARCH_R9A06G032
30 select CLK_SH73A0 if ARCH_SH73A0
34 config CLK_RENESAS_LEGACY
35 bool "Legacy DT clock support"
36 depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
38 Enable backward compatibility with old device trees describing a
39 hierarchical representation of the various CPG and MSTP clocks.
41 Say Y if you want your kernel to work with old DTBs.
42 It is safe to say N if you use the DTS that is supplied with the
43 current kernel source tree.
47 bool "Emma Mobile EV2 clock support" if COMPILE_TEST
50 bool "RZ/A1H clock support" if COMPILE_TEST
51 select CLK_RENESAS_CPG_MSTP
54 bool "RZ/A2 clock support" if COMPILE_TEST
55 select CLK_RENESAS_CPG_MSSR
58 bool "R-Mobile APE6 clock support" if COMPILE_TEST
59 select CLK_RENESAS_CPG_MSTP
60 select CLK_RENESAS_DIV6
63 bool "R-Mobile A1 clock support" if COMPILE_TEST
64 select CLK_RENESAS_CPG_MSTP
65 select CLK_RENESAS_DIV6
68 bool "RZ/G1M clock support" if COMPILE_TEST
69 select CLK_RCAR_GEN2_CPG
72 bool "RZ/G1E clock support" if COMPILE_TEST
73 select CLK_RCAR_GEN2_CPG
76 bool "RZ/G1C clock support" if COMPILE_TEST
77 select CLK_RCAR_GEN2_CPG
80 bool "RZ/G2M clock support" if COMPILE_TEST
81 select CLK_RCAR_GEN3_CPG
84 bool "RZ/G2E clock support" if COMPILE_TEST
85 select CLK_RCAR_GEN3_CPG
88 bool "R-Car M1A clock support" if COMPILE_TEST
89 select CLK_RENESAS_CPG_MSTP
92 bool "R-Car H1 clock support" if COMPILE_TEST
93 select CLK_RENESAS_CPG_MSTP
96 bool "R-Car H2 clock support" if COMPILE_TEST
97 select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
98 select CLK_RCAR_GEN2_CPG
99 select CLK_RENESAS_DIV6
102 bool "R-Car M2-W/N clock support" if COMPILE_TEST
103 select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
104 select CLK_RCAR_GEN2_CPG
105 select CLK_RENESAS_DIV6
108 bool "R-Car V2H clock support" if COMPILE_TEST
109 select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
110 select CLK_RCAR_GEN2_CPG
113 bool "R-Car E2 clock support" if COMPILE_TEST
114 select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
115 select CLK_RCAR_GEN2_CPG
116 select CLK_RENESAS_DIV6
119 bool "R-Car H3 clock support" if COMPILE_TEST
120 select CLK_RCAR_GEN3_CPG
123 bool "R-Car M3-W clock support" if COMPILE_TEST
124 select CLK_RCAR_GEN3_CPG
127 bool "R-Car M3-N clock support" if COMPILE_TEST
128 select CLK_RCAR_GEN3_CPG
131 bool "R-Car V3M clock support" if COMPILE_TEST
132 select CLK_RCAR_GEN3_CPG
135 bool "R-Car V3H clock support" if COMPILE_TEST
136 select CLK_RCAR_GEN3_CPG
139 bool "R-Car E3 clock support" if COMPILE_TEST
140 select CLK_RCAR_GEN3_CPG
143 bool "R-Car D3 clock support" if COMPILE_TEST
144 select CLK_RCAR_GEN3_CPG
147 bool "Renesas R9A06G032 clock driver"
149 This is a driver for R9A06G032 clocks
152 bool "SH-Mobile AG5 clock support" if COMPILE_TEST
153 select CLK_RENESAS_CPG_MSTP
154 select CLK_RENESAS_DIV6
159 bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
160 select CLK_RENESAS_CPG_MSTP
161 select CLK_RENESAS_DIV6
163 config CLK_RCAR_GEN2_CPG
164 bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
165 select CLK_RENESAS_CPG_MSSR
167 config CLK_RCAR_GEN3_CPG
168 bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
169 select CLK_RENESAS_CPG_MSSR
171 config CLK_RCAR_USB2_CLOCK_SEL
172 bool "Renesas R-Car USB2 clock selector support"
173 depends on ARCH_RENESAS || COMPILE_TEST
175 This is a driver for R-Car USB2 clock selector
178 config CLK_RENESAS_CPG_MSSR
179 bool "CPG/MSSR clock support" if COMPILE_TEST
180 select CLK_RENESAS_DIV6
182 config CLK_RENESAS_CPG_MSTP
183 bool "MSTP clock support" if COMPILE_TEST
185 config CLK_RENESAS_DIV6
186 bool "DIV6 clock support" if COMPILE_TEST