xref: /openbmc/linux/drivers/clk/renesas/Kconfig (revision ba61bb17)
1config CLK_RENESAS
2	bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
3	default y if ARCH_RENESAS
4	select CLK_EMEV2 if ARCH_EMEV2
5	select CLK_RZA1 if ARCH_R7S72100
6	select CLK_R8A73A4 if ARCH_R8A73A4
7	select CLK_R8A7740 if ARCH_R8A7740
8	select CLK_R8A7743 if ARCH_R8A7743
9	select CLK_R8A7745 if ARCH_R8A7745
10	select CLK_R8A77470 if ARCH_R8A77470
11	select CLK_R8A7778 if ARCH_R8A7778
12	select CLK_R8A7779 if ARCH_R8A7779
13	select CLK_R8A7790 if ARCH_R8A7790
14	select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
15	select CLK_R8A7792 if ARCH_R8A7792
16	select CLK_R8A7794 if ARCH_R8A7794
17	select CLK_R8A7795 if ARCH_R8A7795
18	select CLK_R8A7796 if ARCH_R8A7796
19	select CLK_R8A77965 if ARCH_R8A77965
20	select CLK_R8A77970 if ARCH_R8A77970
21	select CLK_R8A77980 if ARCH_R8A77980
22	select CLK_R8A77990 if ARCH_R8A77990
23	select CLK_R8A77995 if ARCH_R8A77995
24	select CLK_SH73A0 if ARCH_SH73A0
25
26if CLK_RENESAS
27
28config CLK_RENESAS_LEGACY
29	bool "Legacy DT clock support"
30	depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
31	help
32	  Enable backward compatibility with old device trees describing a
33	  hierarchical representation of the various CPG and MSTP clocks.
34
35	  Say Y if you want your kernel to work with old DTBs.
36	  It is safe to say N if you use the DTS that is supplied with the
37	  current kernel source tree.
38
39# SoC
40config CLK_EMEV2
41	bool "Emma Mobile EV2 clock support" if COMPILE_TEST
42
43config CLK_RZA1
44	bool "RZ/A1H clock support" if COMPILE_TEST
45	select CLK_RENESAS_CPG_MSTP
46
47config CLK_R8A73A4
48	bool "R-Mobile APE6 clock support" if COMPILE_TEST
49	select CLK_RENESAS_CPG_MSTP
50	select CLK_RENESAS_DIV6
51
52config CLK_R8A7740
53	bool "R-Mobile A1 clock support" if COMPILE_TEST
54	select CLK_RENESAS_CPG_MSTP
55	select CLK_RENESAS_DIV6
56
57config CLK_R8A7743
58	bool "RZ/G1M clock support" if COMPILE_TEST
59	select CLK_RCAR_GEN2_CPG
60
61config CLK_R8A7745
62	bool "RZ/G1E clock support" if COMPILE_TEST
63	select CLK_RCAR_GEN2_CPG
64
65config CLK_R8A77470
66	bool "RZ/G1C clock support" if COMPILE_TEST
67	select CLK_RCAR_GEN2_CPG
68
69config CLK_R8A7778
70	bool "R-Car M1A clock support" if COMPILE_TEST
71	select CLK_RENESAS_CPG_MSTP
72
73config CLK_R8A7779
74	bool "R-Car H1 clock support" if COMPILE_TEST
75	select CLK_RENESAS_CPG_MSTP
76
77config CLK_R8A7790
78	bool "R-Car H2 clock support" if COMPILE_TEST
79	select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
80	select CLK_RCAR_GEN2_CPG
81	select CLK_RENESAS_DIV6
82
83config CLK_R8A7791
84	bool "R-Car M2-W/N clock support" if COMPILE_TEST
85	select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
86	select CLK_RCAR_GEN2_CPG
87	select CLK_RENESAS_DIV6
88
89config CLK_R8A7792
90	bool "R-Car V2H clock support" if COMPILE_TEST
91	select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
92	select CLK_RCAR_GEN2_CPG
93
94config CLK_R8A7794
95	bool "R-Car E2 clock support" if COMPILE_TEST
96	select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
97	select CLK_RCAR_GEN2_CPG
98	select CLK_RENESAS_DIV6
99
100config CLK_R8A7795
101	bool "R-Car H3 clock support" if COMPILE_TEST
102	select CLK_RCAR_GEN3_CPG
103
104config CLK_R8A7796
105	bool "R-Car M3-W clock support" if COMPILE_TEST
106	select CLK_RCAR_GEN3_CPG
107
108config CLK_R8A77965
109	bool "R-Car M3-N clock support" if COMPILE_TEST
110	select CLK_RCAR_GEN3_CPG
111
112config CLK_R8A77970
113	bool "R-Car V3M clock support" if COMPILE_TEST
114	select CLK_RCAR_GEN3_CPG
115
116config CLK_R8A77980
117	bool "R-Car V3H clock support" if COMPILE_TEST
118	select CLK_RCAR_GEN3_CPG
119
120config CLK_R8A77990
121	bool "R-Car E3 clock support" if COMPILE_TEST
122	select CLK_RCAR_GEN3_CPG
123
124config CLK_R8A77995
125	bool "R-Car D3 clock support" if COMPILE_TEST
126	select CLK_RCAR_GEN3_CPG
127
128config CLK_SH73A0
129	bool "SH-Mobile AG5 clock support" if COMPILE_TEST
130	select CLK_RENESAS_CPG_MSTP
131	select CLK_RENESAS_DIV6
132
133
134# Family
135config CLK_RCAR_GEN2
136	bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
137	select CLK_RENESAS_CPG_MSTP
138	select CLK_RENESAS_DIV6
139
140config CLK_RCAR_GEN2_CPG
141	bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
142	select CLK_RENESAS_CPG_MSSR
143
144config CLK_RCAR_GEN3_CPG
145	bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
146	select CLK_RENESAS_CPG_MSSR
147
148config CLK_RCAR_USB2_CLOCK_SEL
149	bool "Renesas R-Car USB2 clock selector support"
150	depends on ARCH_RENESAS || COMPILE_TEST
151	help
152	  This is a driver for R-Car USB2 clock selector
153
154# Generic
155config CLK_RENESAS_CPG_MSSR
156	bool "CPG/MSSR clock support" if COMPILE_TEST
157	select CLK_RENESAS_DIV6
158
159config CLK_RENESAS_CPG_MSTP
160	bool "MSTP clock support" if COMPILE_TEST
161
162config CLK_RENESAS_DIV6
163	bool "DIV6 clock support" if COMPILE_TEST
164
165endif # CLK_RENESAS
166