xref: /openbmc/linux/drivers/clk/renesas/Kconfig (revision 0ab55cf1)
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_R8A77950 || 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_R9A06G032 if ARCH_R9A06G032
37	select CLK_R9A07G043 if ARCH_R9A07G043
38	select CLK_R9A07G044 if ARCH_R9A07G044
39	select CLK_R9A07G054 if ARCH_R9A07G054
40	select CLK_SH73A0 if ARCH_SH73A0
41
42if CLK_RENESAS
43
44# SoC
45config CLK_EMEV2
46	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
47
48config CLK_RZA1
49	bool "RZ/A1H clock support" if COMPILE_TEST
50	select CLK_RENESAS_CPG_MSTP
51
52config CLK_R7S9210
53	bool "RZ/A2 clock support" if COMPILE_TEST
54	select CLK_RENESAS_CPG_MSSR
55
56config CLK_R8A73A4
57	bool "R-Mobile APE6 clock support" if COMPILE_TEST
58	select CLK_RENESAS_CPG_MSTP
59	select CLK_RENESAS_DIV6
60
61config CLK_R8A7740
62	bool "R-Mobile A1 clock support" if COMPILE_TEST
63	select CLK_RENESAS_CPG_MSTP
64	select CLK_RENESAS_DIV6
65
66config CLK_R8A7742
67	bool "RZ/G1H clock support" if COMPILE_TEST
68	select CLK_RCAR_GEN2_CPG
69
70config CLK_R8A7743
71	bool "RZ/G1M clock support" if COMPILE_TEST
72	select CLK_RCAR_GEN2_CPG
73
74config CLK_R8A7745
75	bool "RZ/G1E clock support" if COMPILE_TEST
76	select CLK_RCAR_GEN2_CPG
77
78config CLK_R8A77470
79	bool "RZ/G1C clock support" if COMPILE_TEST
80	select CLK_RCAR_GEN2_CPG
81
82config CLK_R8A774A1
83	bool "RZ/G2M clock support" if COMPILE_TEST
84	select CLK_RCAR_GEN3_CPG
85
86config CLK_R8A774B1
87	bool "RZ/G2N clock support" if COMPILE_TEST
88	select CLK_RCAR_GEN3_CPG
89
90config CLK_R8A774C0
91	bool "RZ/G2E clock support" if COMPILE_TEST
92	select CLK_RCAR_GEN3_CPG
93
94config CLK_R8A774E1
95	bool "RZ/G2H clock support" if COMPILE_TEST
96	select CLK_RCAR_GEN3_CPG
97
98config CLK_R8A7778
99	bool "R-Car M1A clock support" if COMPILE_TEST
100	select CLK_RENESAS_CPG_MSTP
101
102config CLK_R8A7779
103	bool "R-Car H1 clock support" if COMPILE_TEST
104	select CLK_RENESAS_CPG_MSTP
105
106config CLK_R8A7790
107	bool "R-Car H2 clock support" if COMPILE_TEST
108	select CLK_RCAR_GEN2_CPG
109
110config CLK_R8A7791
111	bool "R-Car M2-W/N clock support" if COMPILE_TEST
112	select CLK_RCAR_GEN2_CPG
113
114config CLK_R8A7792
115	bool "R-Car V2H clock support" if COMPILE_TEST
116	select CLK_RCAR_GEN2_CPG
117
118config CLK_R8A7794
119	bool "R-Car E2 clock support" if COMPILE_TEST
120	select CLK_RCAR_GEN2_CPG
121
122config CLK_R8A7795
123	bool "R-Car H3 clock support" if COMPILE_TEST
124	select CLK_RCAR_GEN3_CPG
125
126config CLK_R8A77960
127	bool "R-Car M3-W clock support" if COMPILE_TEST
128	select CLK_RCAR_GEN3_CPG
129
130config CLK_R8A77961
131	bool "R-Car M3-W+ clock support" if COMPILE_TEST
132	select CLK_RCAR_GEN3_CPG
133
134config CLK_R8A77965
135	bool "R-Car M3-N clock support" if COMPILE_TEST
136	select CLK_RCAR_GEN3_CPG
137
138config CLK_R8A77970
139	bool "R-Car V3M clock support" if COMPILE_TEST
140	select CLK_RCAR_GEN3_CPG
141
142config CLK_R8A77980
143	bool "R-Car V3H clock support" if COMPILE_TEST
144	select CLK_RCAR_GEN3_CPG
145
146config CLK_R8A77990
147	bool "R-Car E3 clock support" if COMPILE_TEST
148	select CLK_RCAR_GEN3_CPG
149
150config CLK_R8A77995
151	bool "R-Car D3 clock support" if COMPILE_TEST
152	select CLK_RCAR_GEN3_CPG
153
154config CLK_R8A779A0
155	bool "R-Car V3U clock support" if COMPILE_TEST
156	select CLK_RCAR_GEN4_CPG
157
158config CLK_R8A779F0
159	bool "R-Car S4-8 clock support" if COMPILE_TEST
160	select CLK_RCAR_GEN4_CPG
161
162config CLK_R8A779G0
163	bool "R-Car V4H clock support" if COMPILE_TEST
164	select CLK_RCAR_GEN4_CPG
165
166config CLK_R9A06G032
167	bool "RZ/N1D clock support" if COMPILE_TEST
168
169config CLK_R9A07G043
170	bool "RZ/G2UL clock support" if COMPILE_TEST
171	select CLK_RZG2L
172
173config CLK_R9A07G044
174	bool "RZ/G2L clock support" if COMPILE_TEST
175	select CLK_RZG2L
176
177config CLK_R9A07G054
178	bool "RZ/V2L clock support" if COMPILE_TEST
179	select CLK_RZG2L
180
181config CLK_SH73A0
182	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
183	select CLK_RENESAS_CPG_MSTP
184	select CLK_RENESAS_DIV6
185
186
187# Family
188config CLK_RCAR_CPG_LIB
189	bool "CPG/MSSR library functions" if COMPILE_TEST
190
191config CLK_RCAR_GEN2_CPG
192	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
193	select CLK_RENESAS_CPG_MSSR
194
195config CLK_RCAR_GEN3_CPG
196	bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST
197	select CLK_RCAR_CPG_LIB
198	select CLK_RENESAS_CPG_MSSR
199
200config CLK_RCAR_GEN4_CPG
201	bool "R-Car Gen4 clock support" if COMPILE_TEST
202	select CLK_RCAR_CPG_LIB
203	select CLK_RENESAS_CPG_MSSR
204
205config CLK_RCAR_USB2_CLOCK_SEL
206	bool "Renesas R-Car USB2 clock selector support"
207	depends on ARCH_RENESAS || COMPILE_TEST
208	select RESET_CONTROLLER
209	help
210	  This is a driver for R-Car USB2 clock selector
211
212config CLK_RZG2L
213	bool "Renesas RZ/{G2L,G2UL,V2L} family clock support" if COMPILE_TEST
214	select RESET_CONTROLLER
215
216# Generic
217config CLK_RENESAS_CPG_MSSR
218	bool "CPG/MSSR clock support" if COMPILE_TEST
219	select CLK_RENESAS_DIV6
220
221config CLK_RENESAS_CPG_MSTP
222	bool "MSTP clock support" if COMPILE_TEST
223
224config CLK_RENESAS_DIV6
225	bool "DIV6 clock support" if COMPILE_TEST
226
227endif # CLK_RENESAS
228