hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/clk/renesas/Kconfig
....@@ -1,41 +1,40 @@
1
+# SPDX-License-Identifier: GPL-2.0
2
+
13 config CLK_RENESAS
24 bool "Renesas SoC clock support" if COMPILE_TEST && !ARCH_RENESAS
35 default y if ARCH_RENESAS
46 select CLK_EMEV2 if ARCH_EMEV2
57 select CLK_RZA1 if ARCH_R7S72100
8
+ select CLK_R7S9210 if ARCH_R7S9210
69 select CLK_R8A73A4 if ARCH_R8A73A4
710 select CLK_R8A7740 if ARCH_R8A7740
8
- select CLK_R8A7743 if ARCH_R8A7743
11
+ select CLK_R8A7742 if ARCH_R8A7742
12
+ select CLK_R8A7743 if ARCH_R8A7743 || ARCH_R8A7744
913 select CLK_R8A7745 if ARCH_R8A7745
1014 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
1119 select CLK_R8A7778 if ARCH_R8A7778
1220 select CLK_R8A7779 if ARCH_R8A7779
1321 select CLK_R8A7790 if ARCH_R8A7790
1422 select CLK_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
1523 select CLK_R8A7792 if ARCH_R8A7792
1624 select CLK_R8A7794 if ARCH_R8A7794
17
- select CLK_R8A7795 if ARCH_R8A7795
18
- select CLK_R8A7796 if ARCH_R8A7796
25
+ select CLK_R8A7795 if ARCH_R8A77950 || ARCH_R8A77951
26
+ select CLK_R8A77960 if ARCH_R8A77960
27
+ select CLK_R8A77961 if ARCH_R8A77961
1928 select CLK_R8A77965 if ARCH_R8A77965
2029 select CLK_R8A77970 if ARCH_R8A77970
2130 select CLK_R8A77980 if ARCH_R8A77980
2231 select CLK_R8A77990 if ARCH_R8A77990
2332 select CLK_R8A77995 if ARCH_R8A77995
33
+ select CLK_R8A779A0 if ARCH_R8A779A0
2434 select CLK_R9A06G032 if ARCH_R9A06G032
2535 select CLK_SH73A0 if ARCH_SH73A0
2636
2737 if CLK_RENESAS
28
-
29
-config CLK_RENESAS_LEGACY
30
- bool "Legacy DT clock support"
31
- depends on CLK_R8A7790 || CLK_R8A7791 || CLK_R8A7792 || CLK_R8A7794
32
- help
33
- Enable backward compatibility with old device trees describing a
34
- hierarchical representation of the various CPG and MSTP clocks.
35
-
36
- Say Y if you want your kernel to work with old DTBs.
37
- It is safe to say N if you use the DTS that is supplied with the
38
- current kernel source tree.
3938
4039 # SoC
4140 config CLK_EMEV2
....@@ -44,6 +43,10 @@
4443 config CLK_RZA1
4544 bool "RZ/A1H clock support" if COMPILE_TEST
4645 select CLK_RENESAS_CPG_MSTP
46
+
47
+config CLK_R7S9210
48
+ bool "RZ/A2 clock support" if COMPILE_TEST
49
+ select CLK_RENESAS_CPG_MSSR
4750
4851 config CLK_R8A73A4
4952 bool "R-Mobile APE6 clock support" if COMPILE_TEST
....@@ -54,6 +57,10 @@
5457 bool "R-Mobile A1 clock support" if COMPILE_TEST
5558 select CLK_RENESAS_CPG_MSTP
5659 select CLK_RENESAS_DIV6
60
+
61
+config CLK_R8A7742
62
+ bool "RZ/G1H clock support" if COMPILE_TEST
63
+ select CLK_RCAR_GEN2_CPG
5764
5865 config CLK_R8A7743
5966 bool "RZ/G1M clock support" if COMPILE_TEST
....@@ -67,6 +74,22 @@
6774 bool "RZ/G1C clock support" if COMPILE_TEST
6875 select CLK_RCAR_GEN2_CPG
6976
77
+config CLK_R8A774A1
78
+ bool "RZ/G2M clock support" if COMPILE_TEST
79
+ select CLK_RCAR_GEN3_CPG
80
+
81
+config CLK_R8A774B1
82
+ bool "RZ/G2N clock support" if COMPILE_TEST
83
+ select CLK_RCAR_GEN3_CPG
84
+
85
+config CLK_R8A774C0
86
+ bool "RZ/G2E clock support" if COMPILE_TEST
87
+ select CLK_RCAR_GEN3_CPG
88
+
89
+config CLK_R8A774E1
90
+ bool "RZ/G2H clock support" if COMPILE_TEST
91
+ select CLK_RCAR_GEN3_CPG
92
+
7093 config CLK_R8A7778
7194 bool "R-Car M1A clock support" if COMPILE_TEST
7295 select CLK_RENESAS_CPG_MSTP
....@@ -77,33 +100,30 @@
77100
78101 config CLK_R8A7790
79102 bool "R-Car H2 clock support" if COMPILE_TEST
80
- select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
81103 select CLK_RCAR_GEN2_CPG
82
- select CLK_RENESAS_DIV6
83104
84105 config CLK_R8A7791
85106 bool "R-Car M2-W/N clock support" if COMPILE_TEST
86
- select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
87107 select CLK_RCAR_GEN2_CPG
88
- select CLK_RENESAS_DIV6
89108
90109 config CLK_R8A7792
91110 bool "R-Car V2H clock support" if COMPILE_TEST
92
- select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
93111 select CLK_RCAR_GEN2_CPG
94112
95113 config CLK_R8A7794
96114 bool "R-Car E2 clock support" if COMPILE_TEST
97
- select CLK_RCAR_GEN2 if CLK_RENESAS_LEGACY
98115 select CLK_RCAR_GEN2_CPG
99
- select CLK_RENESAS_DIV6
100116
101117 config CLK_R8A7795
102118 bool "R-Car H3 clock support" if COMPILE_TEST
103119 select CLK_RCAR_GEN3_CPG
104120
105
-config CLK_R8A7796
121
+config CLK_R8A77960
106122 bool "R-Car M3-W clock support" if COMPILE_TEST
123
+ select CLK_RCAR_GEN3_CPG
124
+
125
+config CLK_R8A77961
126
+ bool "R-Car M3-W+ clock support" if COMPILE_TEST
107127 select CLK_RCAR_GEN3_CPG
108128
109129 config CLK_R8A77965
....@@ -126,6 +146,10 @@
126146 bool "R-Car D3 clock support" if COMPILE_TEST
127147 select CLK_RCAR_GEN3_CPG
128148
149
+config CLK_R8A779A0
150
+ bool "R-Car V3U clock support" if COMPILE_TEST
151
+ select CLK_RENESAS_CPG_MSSR
152
+
129153 config CLK_R9A06G032
130154 bool "Renesas R9A06G032 clock driver"
131155 help
....@@ -138,22 +162,18 @@
138162
139163
140164 # Family
141
-config CLK_RCAR_GEN2
142
- bool "R-Car Gen2 legacy clock support" if COMPILE_TEST
143
- select CLK_RENESAS_CPG_MSTP
144
- select CLK_RENESAS_DIV6
145
-
146165 config CLK_RCAR_GEN2_CPG
147166 bool "R-Car Gen2 CPG clock support" if COMPILE_TEST
148167 select CLK_RENESAS_CPG_MSSR
149168
150169 config CLK_RCAR_GEN3_CPG
151
- bool "R-Car Gen3 CPG clock support" if COMPILE_TEST
170
+ bool "R-Car Gen3 and RZ/G2 CPG clock support" if COMPILE_TEST
152171 select CLK_RENESAS_CPG_MSSR
153172
154173 config CLK_RCAR_USB2_CLOCK_SEL
155174 bool "Renesas R-Car USB2 clock selector support"
156175 depends on ARCH_RENESAS || COMPILE_TEST
176
+ select RESET_CONTROLLER
157177 help
158178 This is a driver for R-Car USB2 clock selector
159179