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