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