hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/drivers/soc/renesas/Kconfig
....@@ -1,95 +1,380 @@
1
-config SOC_RENESAS
1
+# SPDX-License-Identifier: GPL-2.0
2
+menuconfig SOC_RENESAS
23 bool "Renesas SoC driver support" if COMPILE_TEST && !ARCH_RENESAS
34 default y if ARCH_RENESAS
45 select SOC_BUS
5
- select RST_RCAR if ARCH_RCAR_GEN1 || ARCH_RCAR_GEN2 || \
6
- ARCH_R8A7795 || ARCH_R8A7796 || ARCH_R8A77965 || \
7
- ARCH_R8A77970 || ARCH_R8A77980 || ARCH_R8A77990 || \
8
- ARCH_R8A77995
9
- select SYSC_R8A7743 if ARCH_R8A7743
10
- select SYSC_R8A7745 if ARCH_R8A7745
11
- select SYSC_R8A77470 if ARCH_R8A77470
12
- select SYSC_R8A7779 if ARCH_R8A7779
13
- select SYSC_R8A7790 if ARCH_R8A7790
14
- select SYSC_R8A7791 if ARCH_R8A7791 || ARCH_R8A7793
15
- select SYSC_R8A7792 if ARCH_R8A7792
16
- select SYSC_R8A7794 if ARCH_R8A7794
17
- select SYSC_R8A7795 if ARCH_R8A7795
18
- select SYSC_R8A7796 if ARCH_R8A7796
19
- select SYSC_R8A77965 if ARCH_R8A77965
20
- select SYSC_R8A77970 if ARCH_R8A77970
21
- select SYSC_R8A77980 if ARCH_R8A77980
22
- select SYSC_R8A77990 if ARCH_R8A77990
23
- select SYSC_R8A77995 if ARCH_R8A77995
246
257 if SOC_RENESAS
268
27
-# SoC
28
-config SYSC_R8A7743
29
- bool "RZ/G1M System Controller support" if COMPILE_TEST
30
- select SYSC_RCAR
9
+config ARCH_RCAR_GEN1
10
+ bool
11
+ select PM
12
+ select PM_GENERIC_DOMAINS
13
+ select RENESAS_INTC_IRQPIN
14
+ select RST_RCAR
15
+ select SYS_SUPPORTS_SH_TMU
3116
32
-config SYSC_R8A7745
33
- bool "RZ/G1E System Controller support" if COMPILE_TEST
34
- select SYSC_RCAR
17
+config ARCH_RCAR_GEN2
18
+ bool
19
+ select HAVE_ARM_ARCH_TIMER
20
+ select PM
21
+ select PM_GENERIC_DOMAINS
22
+ select RENESAS_IRQC
23
+ select RST_RCAR
24
+ select SYS_SUPPORTS_SH_CMT
3525
36
-config SYSC_R8A77470
37
- bool "RZ/G1C System Controller support" if COMPILE_TEST
38
- select SYSC_RCAR
26
+config ARCH_RCAR_GEN3
27
+ bool
28
+ select PM
29
+ select PM_GENERIC_DOMAINS
30
+ select RENESAS_IRQC
31
+ select RST_RCAR
32
+ select SYS_SUPPORTS_SH_CMT
33
+ select SYS_SUPPORTS_SH_TMU
3934
40
-config SYSC_R8A7779
41
- bool "R-Car H1 System Controller support" if COMPILE_TEST
42
- select SYSC_RCAR
35
+config ARCH_RMOBILE
36
+ bool
37
+ select PM
38
+ select PM_GENERIC_DOMAINS
39
+ select SYS_SUPPORTS_SH_CMT
40
+ select SYS_SUPPORTS_SH_TMU
41
+ select SYSC_RMOBILE
4342
44
-config SYSC_R8A7790
45
- bool "R-Car H2 System Controller support" if COMPILE_TEST
46
- select SYSC_RCAR
43
+config ARCH_RZN1
44
+ bool
45
+ select ARM_AMBA
4746
48
-config SYSC_R8A7791
49
- bool "R-Car M2-W/N System Controller support" if COMPILE_TEST
50
- select SYSC_RCAR
47
+if ARM && ARCH_RENESAS
5148
52
-config SYSC_R8A7792
53
- bool "R-Car V2H System Controller support" if COMPILE_TEST
49
+#comment "Renesas ARM SoCs System Type"
50
+
51
+config ARCH_EMEV2
52
+ bool "ARM32 Platform support for Emma Mobile EV2"
53
+ select HAVE_ARM_SCU if SMP
54
+ select SYS_SUPPORTS_EM_STI
55
+
56
+config ARCH_R8A7794
57
+ bool "ARM32 Platform support for R-Car E2"
58
+ select ARCH_RCAR_GEN2
59
+ select ARM_ERRATA_814220
60
+ select SYSC_R8A7794
61
+
62
+config ARCH_R8A7779
63
+ bool "ARM32 Platform support for R-Car H1"
64
+ select ARCH_RCAR_GEN1
65
+ select ARM_ERRATA_754322
66
+ select ARM_GLOBAL_TIMER
67
+ select HAVE_ARM_SCU if SMP
68
+ select HAVE_ARM_TWD if SMP
69
+ select SYSC_R8A7779
70
+
71
+config ARCH_R8A7790
72
+ bool "ARM32 Platform support for R-Car H2"
73
+ select ARCH_RCAR_GEN2
74
+ select ARM_ERRATA_798181 if SMP
75
+ select ARM_ERRATA_814220
76
+ select I2C
77
+ select SYSC_R8A7790
78
+
79
+config ARCH_R8A7778
80
+ bool "ARM32 Platform support for R-Car M1A"
81
+ select ARCH_RCAR_GEN1
82
+ select ARM_ERRATA_754322
83
+
84
+config ARCH_R8A7793
85
+ bool "ARM32 Platform support for R-Car M2-N"
86
+ select ARCH_RCAR_GEN2
87
+ select ARM_ERRATA_798181 if SMP
88
+ select I2C
89
+ select SYSC_R8A7791
90
+
91
+config ARCH_R8A7791
92
+ bool "ARM32 Platform support for R-Car M2-W"
93
+ select ARCH_RCAR_GEN2
94
+ select ARM_ERRATA_798181 if SMP
95
+ select I2C
96
+ select SYSC_R8A7791
97
+
98
+config ARCH_R8A7792
99
+ bool "ARM32 Platform support for R-Car V2H"
100
+ select ARCH_RCAR_GEN2
101
+ select ARM_ERRATA_798181 if SMP
102
+ select SYSC_R8A7792
103
+
104
+config ARCH_R8A7740
105
+ bool "ARM32 Platform support for R-Mobile A1"
106
+ select ARCH_RMOBILE
107
+ select ARM_ERRATA_754322
108
+ select RENESAS_INTC_IRQPIN
109
+
110
+config ARCH_R8A73A4
111
+ bool "ARM32 Platform support for R-Mobile APE6"
112
+ select ARCH_RMOBILE
113
+ select ARM_ERRATA_798181 if SMP
114
+ select ARM_ERRATA_814220
115
+ select HAVE_ARM_ARCH_TIMER
116
+ select RENESAS_IRQC
117
+
118
+config ARCH_R7S72100
119
+ bool "ARM32 Platform support for RZ/A1H"
120
+ select ARM_ERRATA_754322
121
+ select PM
122
+ select PM_GENERIC_DOMAINS
123
+ select RENESAS_OSTM
124
+ select RENESAS_RZA1_IRQC
125
+ select SYS_SUPPORTS_SH_MTU2
126
+
127
+config ARCH_R7S9210
128
+ bool "ARM32 Platform support for RZ/A2"
129
+ select PM
130
+ select PM_GENERIC_DOMAINS
131
+ select RENESAS_OSTM
132
+ select RENESAS_RZA1_IRQC
133
+
134
+config ARCH_R8A77470
135
+ bool "ARM32 Platform support for RZ/G1C"
136
+ select ARCH_RCAR_GEN2
137
+ select ARM_ERRATA_814220
138
+ select SYSC_R8A77470
139
+
140
+config ARCH_R8A7745
141
+ bool "ARM32 Platform support for RZ/G1E"
142
+ select ARCH_RCAR_GEN2
143
+ select ARM_ERRATA_814220
144
+ select SYSC_R8A7745
145
+
146
+config ARCH_R8A7742
147
+ bool "ARM32 Platform support for RZ/G1H"
148
+ select ARCH_RCAR_GEN2
149
+ select ARM_ERRATA_798181 if SMP
150
+ select ARM_ERRATA_814220
151
+ select SYSC_R8A7742
152
+
153
+config ARCH_R8A7743
154
+ bool "ARM32 Platform support for RZ/G1M"
155
+ select ARCH_RCAR_GEN2
156
+ select ARM_ERRATA_798181 if SMP
157
+ select SYSC_R8A7743
158
+
159
+config ARCH_R8A7744
160
+ bool "ARM32 Platform support for RZ/G1N"
161
+ select ARCH_RCAR_GEN2
162
+ select ARM_ERRATA_798181 if SMP
163
+ select SYSC_R8A7743
164
+
165
+config ARCH_R9A06G032
166
+ bool "ARM32 Platform support for RZ/N1D"
167
+ select ARCH_RZN1
168
+ select ARM_ERRATA_814220
169
+
170
+config ARCH_SH73A0
171
+ bool "ARM32 Platform support for SH-Mobile AG5"
172
+ select ARCH_RMOBILE
173
+ select ARM_ERRATA_754322
174
+ select ARM_GLOBAL_TIMER
175
+ select HAVE_ARM_SCU if SMP
176
+ select HAVE_ARM_TWD if SMP
177
+ select RENESAS_INTC_IRQPIN
178
+
179
+endif # ARM
180
+
181
+if ARM64
182
+
183
+config ARCH_R8A77995
184
+ bool "ARM64 Platform support for R-Car D3"
185
+ select ARCH_RCAR_GEN3
186
+ select SYSC_R8A77995
187
+ help
188
+ This enables support for the Renesas R-Car D3 SoC.
189
+
190
+config ARCH_R8A77990
191
+ bool "ARM64 Platform support for R-Car E3"
192
+ select ARCH_RCAR_GEN3
193
+ select SYSC_R8A77990
194
+ help
195
+ This enables support for the Renesas R-Car E3 SoC.
196
+
197
+config ARCH_R8A77950
198
+ bool "ARM64 Platform support for R-Car H3 ES1.x"
199
+ select ARCH_RCAR_GEN3
200
+ select SYSC_R8A7795
201
+ help
202
+ This enables support for the Renesas R-Car H3 SoC (revision 1.x).
203
+
204
+config ARCH_R8A77951
205
+ bool "ARM64 Platform support for R-Car H3 ES2.0+"
206
+ select ARCH_RCAR_GEN3
207
+ select SYSC_R8A7795
208
+ help
209
+ This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
210
+ later).
211
+
212
+config ARCH_R8A77965
213
+ bool "ARM64 Platform support for R-Car M3-N"
214
+ select ARCH_RCAR_GEN3
215
+ select SYSC_R8A77965
216
+ help
217
+ This enables support for the Renesas R-Car M3-N SoC.
218
+
219
+config ARCH_R8A77960
220
+ bool "ARM64 Platform support for R-Car M3-W"
221
+ select ARCH_RCAR_GEN3
222
+ select SYSC_R8A77960
223
+ help
224
+ This enables support for the Renesas R-Car M3-W SoC.
225
+
226
+config ARCH_R8A77961
227
+ bool "ARM64 Platform support for R-Car M3-W+"
228
+ select ARCH_RCAR_GEN3
229
+ select SYSC_R8A77961
230
+ help
231
+ This enables support for the Renesas R-Car M3-W+ SoC.
232
+
233
+config ARCH_R8A77980
234
+ bool "ARM64 Platform support for R-Car V3H"
235
+ select ARCH_RCAR_GEN3
236
+ select SYSC_R8A77980
237
+ help
238
+ This enables support for the Renesas R-Car V3H SoC.
239
+
240
+config ARCH_R8A77970
241
+ bool "ARM64 Platform support for R-Car V3M"
242
+ select ARCH_RCAR_GEN3
243
+ select SYSC_R8A77970
244
+ help
245
+ This enables support for the Renesas R-Car V3M SoC.
246
+
247
+config ARCH_R8A779A0
248
+ bool "ARM64 Platform support for R-Car V3U"
249
+ select ARCH_RCAR_GEN3
250
+ select SYSC_R8A779A0
251
+ help
252
+ This enables support for the Renesas R-Car V3U SoC.
253
+
254
+config ARCH_R8A774C0
255
+ bool "ARM64 Platform support for RZ/G2E"
256
+ select ARCH_RCAR_GEN3
257
+ select SYSC_R8A774C0
258
+ help
259
+ This enables support for the Renesas RZ/G2E SoC.
260
+
261
+config ARCH_R8A774E1
262
+ bool "ARM64 Platform support for RZ/G2H"
263
+ select ARCH_RCAR_GEN3
264
+ select SYSC_R8A774E1
265
+ help
266
+ This enables support for the Renesas RZ/G2H SoC.
267
+
268
+config ARCH_R8A774A1
269
+ bool "ARM64 Platform support for RZ/G2M"
270
+ select ARCH_RCAR_GEN3
271
+ select SYSC_R8A774A1
272
+ help
273
+ This enables support for the Renesas RZ/G2M SoC.
274
+
275
+config ARCH_R8A774B1
276
+ bool "ARM64 Platform support for RZ/G2N"
277
+ select ARCH_RCAR_GEN3
278
+ select SYSC_R8A774B1
279
+ help
280
+ This enables support for the Renesas RZ/G2N SoC.
281
+
282
+endif # ARM64
283
+
284
+config RST_RCAR
285
+ bool "Reset Controller support for R-Car" if COMPILE_TEST
286
+
287
+config SYSC_RCAR
288
+ bool "System Controller support for R-Car" if COMPILE_TEST
289
+
290
+config SYSC_R8A77995
291
+ bool "System Controller support for R-Car D3" if COMPILE_TEST
54292 select SYSC_RCAR
55293
56294 config SYSC_R8A7794
57
- bool "R-Car E2 System Controller support" if COMPILE_TEST
58
- select SYSC_RCAR
59
-
60
-config SYSC_R8A7795
61
- bool "R-Car H3 System Controller support" if COMPILE_TEST
62
- select SYSC_RCAR
63
-
64
-config SYSC_R8A7796
65
- bool "R-Car M3-W System Controller support" if COMPILE_TEST
66
- select SYSC_RCAR
67
-
68
-config SYSC_R8A77965
69
- bool "R-Car M3-N System Controller support" if COMPILE_TEST
70
- select SYSC_RCAR
71
-
72
-config SYSC_R8A77970
73
- bool "R-Car V3M System Controller support" if COMPILE_TEST
74
- select SYSC_RCAR
75
-
76
-config SYSC_R8A77980
77
- bool "R-Car V3H System Controller support" if COMPILE_TEST
295
+ bool "System Controller support for R-Car E2" if COMPILE_TEST
78296 select SYSC_RCAR
79297
80298 config SYSC_R8A77990
81
- bool "R-Car E3 System Controller support" if COMPILE_TEST
299
+ bool "System Controller support for R-Car E3" if COMPILE_TEST
82300 select SYSC_RCAR
83301
84
-config SYSC_R8A77995
85
- bool "R-Car D3 System Controller support" if COMPILE_TEST
302
+config SYSC_R8A7779
303
+ bool "System Controller support for R-Car H1" if COMPILE_TEST
86304 select SYSC_RCAR
87305
88
-# Family
89
-config RST_RCAR
90
- bool "R-Car Reset Controller support" if COMPILE_TEST
306
+config SYSC_R8A7790
307
+ bool "System Controller support for R-Car H2" if COMPILE_TEST
308
+ select SYSC_RCAR
91309
92
-config SYSC_RCAR
93
- bool "R-Car System Controller support" if COMPILE_TEST
310
+config SYSC_R8A7795
311
+ bool "System Controller support for R-Car H3" if COMPILE_TEST
312
+ select SYSC_RCAR
313
+
314
+config SYSC_R8A7791
315
+ bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST
316
+ select SYSC_RCAR
317
+
318
+config SYSC_R8A77965
319
+ bool "System Controller support for R-Car M3-N" if COMPILE_TEST
320
+ select SYSC_RCAR
321
+
322
+config SYSC_R8A77960
323
+ bool "System Controller support for R-Car M3-W" if COMPILE_TEST
324
+ select SYSC_RCAR
325
+
326
+config SYSC_R8A77961
327
+ bool "System Controller support for R-Car M3-W+" if COMPILE_TEST
328
+ select SYSC_RCAR
329
+
330
+config SYSC_R8A7792
331
+ bool "System Controller support for R-Car V2H" if COMPILE_TEST
332
+ select SYSC_RCAR
333
+
334
+config SYSC_R8A77980
335
+ bool "System Controller support for R-Car V3H" if COMPILE_TEST
336
+ select SYSC_RCAR
337
+
338
+config SYSC_R8A77970
339
+ bool "System Controller support for R-Car V3M" if COMPILE_TEST
340
+ select SYSC_RCAR
341
+
342
+config SYSC_R8A779A0
343
+ bool "System Controller support for R-Car V3U" if COMPILE_TEST
344
+
345
+config SYSC_RMOBILE
346
+ bool "System Controller support for R-Mobile" if COMPILE_TEST
347
+
348
+config SYSC_R8A77470
349
+ bool "System Controller support for RZ/G1C" if COMPILE_TEST
350
+ select SYSC_RCAR
351
+
352
+config SYSC_R8A7745
353
+ bool "System Controller support for RZ/G1E" if COMPILE_TEST
354
+ select SYSC_RCAR
355
+
356
+config SYSC_R8A7742
357
+ bool "System Controller support for RZ/G1H" if COMPILE_TEST
358
+ select SYSC_RCAR
359
+
360
+config SYSC_R8A7743
361
+ bool "System Controller support for RZ/G1M" if COMPILE_TEST
362
+ select SYSC_RCAR
363
+
364
+config SYSC_R8A774C0
365
+ bool "System Controller support for RZ/G2E" if COMPILE_TEST
366
+ select SYSC_RCAR
367
+
368
+config SYSC_R8A774E1
369
+ bool "System Controller support for RZ/G2H" if COMPILE_TEST
370
+ select SYSC_RCAR
371
+
372
+config SYSC_R8A774A1
373
+ bool "System Controller support for RZ/G2M" if COMPILE_TEST
374
+ select SYSC_RCAR
375
+
376
+config SYSC_R8A774B1
377
+ bool "System Controller support for RZ/G2N" if COMPILE_TEST
378
+ select SYSC_RCAR
94379
95380 endif # SOC_RENESAS