xref: /openbmc/linux/drivers/clk/renesas/Kconfig (revision 29c37341)
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_R9A06G032 if ARCH_R9A06G032
34	select CLK_SH73A0 if ARCH_SH73A0
35
36if CLK_RENESAS
37
38# SoC
39config CLK_EMEV2
40	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
41
42config CLK_RZA1
43	bool "RZ/A1H clock support" if COMPILE_TEST
44	select CLK_RENESAS_CPG_MSTP
45
46config CLK_R7S9210
47	bool "RZ/A2 clock support" if COMPILE_TEST
48	select CLK_RENESAS_CPG_MSSR
49
50config CLK_R8A73A4
51	bool "R-Mobile APE6 clock support" if COMPILE_TEST
52	select CLK_RENESAS_CPG_MSTP
53	select CLK_RENESAS_DIV6
54
55config CLK_R8A7740
56	bool "R-Mobile A1 clock support" if COMPILE_TEST
57	select CLK_RENESAS_CPG_MSTP
58	select CLK_RENESAS_DIV6
59
60config CLK_R8A7742
61	bool "RZ/G1H clock support" if COMPILE_TEST
62	select CLK_RCAR_GEN2_CPG
63
64config CLK_R8A7743
65	bool "RZ/G1M clock support" if COMPILE_TEST
66	select CLK_RCAR_GEN2_CPG
67
68config CLK_R8A7745
69	bool "RZ/G1E clock support" if COMPILE_TEST
70	select CLK_RCAR_GEN2_CPG
71
72config CLK_R8A77470
73	bool "RZ/G1C clock support" if COMPILE_TEST
74	select CLK_RCAR_GEN2_CPG
75
76config CLK_R8A774A1
77	bool "RZ/G2M clock support" if COMPILE_TEST
78	select CLK_RCAR_GEN3_CPG
79
80config CLK_R8A774B1
81	bool "RZ/G2N clock support" if COMPILE_TEST
82	select CLK_RCAR_GEN3_CPG
83
84config CLK_R8A774C0
85	bool "RZ/G2E clock support" if COMPILE_TEST
86	select CLK_RCAR_GEN3_CPG
87
88config CLK_R8A774E1
89	bool "RZ/G2H clock support" if COMPILE_TEST
90	select CLK_RCAR_GEN3_CPG
91
92config CLK_R8A7778
93	bool "R-Car M1A clock support" if COMPILE_TEST
94	select CLK_RENESAS_CPG_MSTP
95
96config CLK_R8A7779
97	bool "R-Car H1 clock support" if COMPILE_TEST
98	select CLK_RENESAS_CPG_MSTP
99
100config CLK_R8A7790
101	bool "R-Car H2 clock support" if COMPILE_TEST
102	select CLK_RCAR_GEN2_CPG
103
104config CLK_R8A7791
105	bool "R-Car M2-W/N clock support" if COMPILE_TEST
106	select CLK_RCAR_GEN2_CPG
107
108config CLK_R8A7792
109	bool "R-Car V2H clock support" if COMPILE_TEST
110	select CLK_RCAR_GEN2_CPG
111
112config CLK_R8A7794
113	bool "R-Car E2 clock support" if COMPILE_TEST
114	select CLK_RCAR_GEN2_CPG
115
116config CLK_R8A7795
117	bool "R-Car H3 clock support" if COMPILE_TEST
118	select CLK_RCAR_GEN3_CPG
119
120config CLK_R8A77960
121	bool "R-Car M3-W clock support" if COMPILE_TEST
122	select CLK_RCAR_GEN3_CPG
123
124config CLK_R8A77961
125	bool "R-Car M3-W+ clock support" if COMPILE_TEST
126	select CLK_RCAR_GEN3_CPG
127
128config CLK_R8A77965
129	bool "R-Car M3-N clock support" if COMPILE_TEST
130	select CLK_RCAR_GEN3_CPG
131
132config CLK_R8A77970
133	bool "R-Car V3M clock support" if COMPILE_TEST
134	select CLK_RCAR_GEN3_CPG
135
136config CLK_R8A77980
137	bool "R-Car V3H clock support" if COMPILE_TEST
138	select CLK_RCAR_GEN3_CPG
139
140config CLK_R8A77990
141	bool "R-Car E3 clock support" if COMPILE_TEST
142	select CLK_RCAR_GEN3_CPG
143
144config CLK_R8A77995
145	bool "R-Car D3 clock support" if COMPILE_TEST
146	select CLK_RCAR_GEN3_CPG
147
148config CLK_R9A06G032
149	bool "Renesas R9A06G032 clock driver"
150	help
151	  This is a driver for R9A06G032 clocks
152
153config CLK_SH73A0
154	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
155	select CLK_RENESAS_CPG_MSTP
156	select CLK_RENESAS_DIV6
157
158
159# Family
160config CLK_RCAR_GEN2_CPG
161	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
162	select CLK_RENESAS_CPG_MSSR
163
164config CLK_RCAR_GEN3_CPG
165	bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
166	select CLK_RENESAS_CPG_MSSR
167
168config CLK_RCAR_USB2_CLOCK_SEL
169	bool "Renesas R-Car USB2 clock selector support"
170	depends on ARCH_RENESAS || COMPILE_TEST
171	select RESET_CONTROLLER
172	help
173	  This is a driver for R-Car USB2 clock selector
174
175# Generic
176config CLK_RENESAS_CPG_MSSR
177	bool "CPG/MSSR clock support" if COMPILE_TEST
178	select CLK_RENESAS_DIV6
179
180config CLK_RENESAS_CPG_MSTP
181	bool "MSTP clock support" if COMPILE_TEST
182
183config CLK_RENESAS_DIV6
184	bool "DIV6 clock support" if COMPILE_TEST
185
186endif # CLK_RENESAS
187