xref: /linux/drivers/clk/renesas/Kconfig (revision 9f32a03e3e0d372c520d829dd4da6022fe88832a)
1# SPDX-License-Identifier: GPL-2.0
2
3config CLK_RENESAS
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_R8A7742 if ARCH_R8A7742
12	select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
13	select CLK_R8A7745 if ARCH_R8A7745
14	select CLK_R8A77470 if ARCH_R8A77470
15	select CLK_R8A774A1 if ARCH_R8A774A1
16	select CLK_R8A774B1 if ARCH_R8A774B1
17	select CLK_R8A774C0 if ARCH_R8A774C0
18	select CLK_R8A774E1 if ARCH_R8A774E1
19	select CLK_R8A7778 if ARCH_R8A7778
20	select CLK_R8A7779 if ARCH_R8A7779
21	select CLK_R8A7790 if ARCH_R8A7790
22	select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
23	select CLK_R8A7792 if ARCH_R8A7792
24	select CLK_R8A7794 if ARCH_R8A7794
25	select CLK_R8A7795 if ARCH_R8A77951
26	select CLK_R8A77960 if ARCH_R8A77960
27	select CLK_R8A77961 if ARCH_R8A77961
28	select CLK_R8A77965 if ARCH_R8A77965
29	select CLK_R8A77970 if ARCH_R8A77970
30	select CLK_R8A77980 if ARCH_R8A77980
31	select CLK_R8A77990 if ARCH_R8A77990
32	select CLK_R8A77995 if ARCH_R8A77995
33	select CLK_R8A779A0 if ARCH_R8A779A0
34	select CLK_R8A779F0 if ARCH_R8A779F0
35	select CLK_R8A779G0 if ARCH_R8A779G0
36	select CLK_R8A779H0 if ARCH_R8A779H0
37	select CLK_R9A06G032 if ARCH_R9A06G032
38	select CLK_R9A07G043 if ARCH_R9A07G043
39	select CLK_R9A07G044 if ARCH_R9A07G044
40	select CLK_R9A07G054 if ARCH_R9A07G054
41	select CLK_R9A08G045 if ARCH_R9A08G045
42	select CLK_R9A09G011 if ARCH_R9A09G011
43	select CLK_R9A09G047 if ARCH_R9A09G047
44	select CLK_R9A09G056 if ARCH_R9A09G056
45	select CLK_R9A09G057 if ARCH_R9A09G057
46	select CLK_SH73A0 if ARCH_SH73A0
47
48if CLK_RENESAS
49
50# SoC
51config CLK_EMEV2
52	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
53
54config CLK_RZA1
55	bool "RZ/A1H clock support" if COMPILE_TEST
56	select CLK_RENESAS_CPG_MSTP
57
58config CLK_R7S9210
59	bool "RZ/A2 clock support" if COMPILE_TEST
60	select CLK_RENESAS_CPG_MSSR
61
62config CLK_R8A73A4
63	bool "R-Mobile APE6 clock support" if COMPILE_TEST
64	select CLK_RENESAS_CPG_MSTP
65	select CLK_RENESAS_DIV6
66
67config CLK_R8A7740
68	bool "R-Mobile A1 clock support" if COMPILE_TEST
69	select CLK_RENESAS_CPG_MSTP
70	select CLK_RENESAS_DIV6
71
72config CLK_R8A7742
73	bool "RZ/G1H clock support" if COMPILE_TEST
74	select CLK_RCAR_GEN2_CPG
75
76config CLK_R8A7743
77	bool "RZ/G1M clock support" if COMPILE_TEST
78	select CLK_RCAR_GEN2_CPG
79
80config CLK_R8A7745
81	bool "RZ/G1E clock support" if COMPILE_TEST
82	select CLK_RCAR_GEN2_CPG
83
84config CLK_R8A77470
85	bool "RZ/G1C clock support" if COMPILE_TEST
86	select CLK_RCAR_GEN2_CPG
87
88config CLK_R8A774A1
89	bool "RZ/G2M clock support" if COMPILE_TEST
90	select CLK_RCAR_GEN3_CPG
91
92config CLK_R8A774B1
93	bool "RZ/G2N clock support" if COMPILE_TEST
94	select CLK_RCAR_GEN3_CPG
95
96config CLK_R8A774C0
97	bool "RZ/G2E clock support" if COMPILE_TEST
98	select CLK_RCAR_GEN3_CPG
99
100config CLK_R8A774E1
101	bool "RZ/G2H clock support" if COMPILE_TEST
102	select CLK_RCAR_GEN3_CPG
103
104config CLK_R8A7778
105	bool "R-Car M1A clock support" if COMPILE_TEST
106	select CLK_RENESAS_CPG_MSTP
107
108config CLK_R8A7779
109	bool "R-Car H1 clock support" if COMPILE_TEST
110	select CLK_RENESAS_CPG_MSTP
111
112config CLK_R8A7790
113	bool "R-Car H2 clock support" if COMPILE_TEST
114	select CLK_RCAR_GEN2_CPG
115
116config CLK_R8A7791
117	bool "R-Car M2-W/N clock support" if COMPILE_TEST
118	select CLK_RCAR_GEN2_CPG
119
120config CLK_R8A7792
121	bool "R-Car V2H clock support" if COMPILE_TEST
122	select CLK_RCAR_GEN2_CPG
123
124config CLK_R8A7794
125	bool "R-Car E2 clock support" if COMPILE_TEST
126	select CLK_RCAR_GEN2_CPG
127
128config CLK_R8A7795
129	bool "R-Car H3 clock support" if COMPILE_TEST
130	select CLK_RCAR_GEN3_CPG
131
132config CLK_R8A77960
133	bool "R-Car M3-W clock support" if COMPILE_TEST
134	select CLK_RCAR_GEN3_CPG
135
136config CLK_R8A77961
137	bool "R-Car M3-W+ clock support" if COMPILE_TEST
138	select CLK_RCAR_GEN3_CPG
139
140config CLK_R8A77965
141	bool "R-Car M3-N clock support" if COMPILE_TEST
142	select CLK_RCAR_GEN3_CPG
143
144config CLK_R8A77970
145	bool "R-Car V3M clock support" if COMPILE_TEST
146	select CLK_RCAR_GEN3_CPG
147
148config CLK_R8A77980
149	bool "R-Car V3H clock support" if COMPILE_TEST
150	select CLK_RCAR_GEN3_CPG
151
152config CLK_R8A77990
153	bool "R-Car E3 clock support" if COMPILE_TEST
154	select CLK_RCAR_GEN3_CPG
155
156config CLK_R8A77995
157	bool "R-Car D3 clock support" if COMPILE_TEST
158	select CLK_RCAR_GEN3_CPG
159
160config CLK_R8A779A0
161	bool "R-Car V3U clock support" if COMPILE_TEST
162	select CLK_RCAR_GEN4_CPG
163
164config CLK_R8A779F0
165	bool "R-Car S4-8 clock support" if COMPILE_TEST
166	select CLK_RCAR_GEN4_CPG
167
168config CLK_R8A779G0
169	bool "R-Car V4H clock support" if COMPILE_TEST
170	select CLK_RCAR_GEN4_CPG
171
172config CLK_R8A779H0
173	bool "R-Car V4M clock support" if COMPILE_TEST
174	select CLK_RCAR_GEN4_CPG
175
176config CLK_R9A06G032
177	bool "RZ/N1D clock support" if COMPILE_TEST
178
179config CLK_R9A07G043
180	bool "RZ/G2UL clock support" if COMPILE_TEST
181	select CLK_RZG2L
182
183config CLK_R9A07G044
184	bool "RZ/G2L clock support" if COMPILE_TEST
185	select CLK_RZG2L
186
187config CLK_R9A07G054
188	bool "RZ/V2L clock support" if COMPILE_TEST
189	select CLK_RZG2L
190
191config CLK_R9A08G045
192	bool "RZ/G3S clock support" if COMPILE_TEST
193	select CLK_RZG2L
194
195config CLK_R9A09G011
196	bool "RZ/V2M clock support" if COMPILE_TEST
197	select CLK_RZG2L
198
199config CLK_R9A09G047
200       bool "RZ/G3E clock support" if COMPILE_TEST
201       select CLK_RZV2H
202
203config CLK_R9A09G056
204       bool "RZ/V2N clock support" if COMPILE_TEST
205       select CLK_RZV2H
206
207config CLK_R9A09G057
208       bool "RZ/V2H(P) clock support" if COMPILE_TEST
209       select CLK_RZV2H
210
211config CLK_SH73A0
212	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
213	select CLK_RENESAS_CPG_MSTP
214	select CLK_RENESAS_DIV6
215
216
217# Family
218config CLK_RCAR_CPG_LIB
219	bool "CPG/MSSR library functions" if COMPILE_TEST
220
221config CLK_RCAR_GEN2_CPG
222	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
223	select CLK_RENESAS_CPG_MSSR
224
225config CLK_RCAR_GEN3_CPG
226	bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST
227	select CLK_RCAR_CPG_LIB
228	select CLK_RENESAS_CPG_MSSR
229
230config CLK_RCAR_GEN4_CPG
231	bool "R-Car Gen4 clock support" if COMPILE_TEST
232	select CLK_RCAR_CPG_LIB
233	select CLK_RENESAS_CPG_MSSR
234
235config CLK_RCAR_USB2_CLOCK_SEL
236	bool "R-Car USB2 clock selector support"
237	depends on ARCH_RENESAS || COMPILE_TEST
238	select RESET_CONTROLLER
239	help
240	  This is a driver for R-Car USB2 clock selector
241
242config CLK_RZG2L
243	bool "RZ/{G2L,G2UL,G3S,V2L} family clock support" if COMPILE_TEST
244	select RESET_CONTROLLER
245
246config CLK_RZV2H
247	bool "RZ/{G3E,V2H(P)} family clock support" if COMPILE_TEST
248	select RESET_CONTROLLER
249
250config CLK_RENESAS_VBATTB
251	tristate "Renesas VBATTB clock controller"
252	depends on ARCH_RZG2L || COMPILE_TEST
253	select RESET_CONTROLLER
254
255# Generic
256config CLK_RENESAS_CPG_MSSR
257	bool "CPG/MSSR clock support" if COMPILE_TEST
258	select CLK_RENESAS_DIV6
259
260config CLK_RENESAS_CPG_MSTP
261	bool "MSTP clock support" if COMPILE_TEST
262
263config CLK_RENESAS_DIV6
264	bool "DIV6 clock support" if COMPILE_TEST
265
266endif # CLK_RENESAS
267