xref: /linux/drivers/soc/renesas/Kconfig (revision 55a42f78ffd386e01a5404419f8c5ded7db70a21)
1# SPDX-License-Identifier: GPL-2.0
2menuconfig SOC_RENESAS
3	bool "Renesas SoC driver support" if COMPILE_TEST && !ARCH_RENESAS
4	default y if ARCH_RENESAS
5	select GPIOLIB
6	select PINCTRL
7	select SOC_BUS
8
9if SOC_RENESAS
10
11config ARCH_RCAR_GEN1
12	bool
13	select PM
14	select PM_GENERIC_DOMAINS
15	select RENESAS_INTC_IRQPIN
16	select RST_RCAR
17	select SYS_SUPPORTS_SH_TMU
18
19config ARCH_RCAR_GEN2
20	bool
21	select HAVE_ARM_ARCH_TIMER
22	select PM
23	select PM_GENERIC_DOMAINS
24	select RENESAS_IRQC
25	select RST_RCAR
26	select SYS_SUPPORTS_SH_CMT
27	select SYS_SUPPORTS_SH_TMU
28
29config ARCH_RCAR_GEN3
30	bool
31	select PM
32	select PM_GENERIC_DOMAINS
33	select RENESAS_IRQC
34	select RST_RCAR
35	select SYS_SUPPORTS_SH_CMT
36	select SYS_SUPPORTS_SH_TMU
37
38config ARCH_RCAR_GEN4
39	bool
40	select ARCH_RCAR_GEN3
41
42config ARCH_RCAR_GEN5
43	bool
44	select ARCH_RCAR_GEN4
45
46config ARCH_RMOBILE
47	bool
48	select PM
49	select PM_GENERIC_DOMAINS
50	select SYS_SUPPORTS_SH_CMT
51	select SYS_SUPPORTS_SH_TMU
52	select SYSC_RMOBILE
53
54config ARCH_RZG2L
55	bool
56	select PM
57	select PM_GENERIC_DOMAINS
58	select RENESAS_RZG2L_IRQC
59
60config ARCH_RZN1
61	bool
62	select PM
63	select PM_GENERIC_DOMAINS
64	select ARM_AMBA
65
66if ARM && ARCH_RENESAS
67
68#comment "Renesas ARM SoCs System Type"
69
70config ARCH_EMEV2
71	bool "ARM32 Platform support for Emma Mobile EV2"
72	default ARCH_RENESAS
73	select HAVE_ARM_SCU if SMP
74	select SYS_SUPPORTS_EM_STI
75
76config ARCH_R7S72100
77	bool "ARM32 Platform support for R7S72100 (RZ/A1H)"
78	default ARCH_RENESAS
79	select ARM_ERRATA_754322
80	select PM
81	select PM_GENERIC_DOMAINS
82	select RENESAS_OSTM
83	select RENESAS_RZA1_IRQC
84	select SYS_SUPPORTS_SH_MTU2
85
86config ARCH_R7S9210
87	bool "ARM32 Platform support for R7S9210 (RZ/A2)"
88	default ARCH_RENESAS
89	select PM
90	select PM_GENERIC_DOMAINS
91	select RENESAS_OSTM
92	select RENESAS_RZA1_IRQC
93
94config ARCH_R8A73A4
95	bool "ARM32 Platform support for R8A73A4 (R-Mobile APE6)"
96	default ARCH_RENESAS
97	select ARCH_RMOBILE
98	select ARM_ERRATA_798181 if SMP
99	select ARM_ERRATA_814220
100	select HAVE_ARM_ARCH_TIMER
101	select RENESAS_IRQC
102
103config ARCH_R8A7740
104	bool "ARM32 Platform support for R8A7740 (R-Mobile A1)"
105	default ARCH_RENESAS
106	select ARCH_RMOBILE
107	select ARM_ERRATA_754322
108	select RENESAS_INTC_IRQPIN
109
110config ARCH_R8A7742
111	bool "ARM32 Platform support for R8A7742 (RZ/G1H)"
112	default ARCH_RENESAS
113	select ARCH_RCAR_GEN2
114	select ARM_ERRATA_798181 if SMP
115	select ARM_ERRATA_814220
116	select SYSC_R8A7742
117
118config ARCH_R8A7743
119	bool "ARM32 Platform support for R8A7743 (RZ/G1M)"
120	default ARCH_RENESAS
121	select ARCH_RCAR_GEN2
122	select ARM_ERRATA_798181 if SMP
123	select SYSC_R8A7743
124
125config ARCH_R8A7744
126	bool "ARM32 Platform support for R8A7744 (RZ/G1N)"
127	default ARCH_RENESAS
128	select ARCH_RCAR_GEN2
129	select ARM_ERRATA_798181 if SMP
130	select SYSC_R8A7743
131
132config ARCH_R8A7745
133	bool "ARM32 Platform support for R8A7745 (RZ/G1E)"
134	default ARCH_RENESAS
135	select ARCH_RCAR_GEN2
136	select ARM_ERRATA_814220
137	select SYSC_R8A7745
138
139config ARCH_R8A77470
140	bool "ARM32 Platform support for R8A77470 (RZ/G1C)"
141	default ARCH_RENESAS
142	select ARCH_RCAR_GEN2
143	select ARM_ERRATA_814220
144	select SYSC_R8A77470
145
146config ARCH_R8A7778
147	bool "ARM32 Platform support for R8A7778 (R-Car M1A)"
148	default ARCH_RENESAS
149	select ARCH_RCAR_GEN1
150	select ARM_ERRATA_754322
151
152config ARCH_R8A7779
153	bool "ARM32 Platform support for R8A7779 (R-Car H1)"
154	default ARCH_RENESAS
155	select ARCH_RCAR_GEN1
156	select ARM_ERRATA_754322
157	select ARM_GLOBAL_TIMER
158	select HAVE_ARM_SCU if SMP
159	select HAVE_ARM_TWD if SMP
160	select SYSC_R8A7779
161
162config ARCH_R8A7790
163	bool "ARM32 Platform support for R8A7790 (R-Car H2)"
164	default ARCH_RENESAS
165	select ARCH_RCAR_GEN2
166	select ARM_ERRATA_798181 if SMP
167	select ARM_ERRATA_814220
168	select I2C
169	select SYSC_R8A7790
170
171config ARCH_R8A7791
172	bool "ARM32 Platform support for R8A7791 (R-Car M2-W)"
173	default ARCH_RENESAS
174	select ARCH_RCAR_GEN2
175	select ARM_ERRATA_798181 if SMP
176	select I2C
177	select SYSC_R8A7791
178
179config ARCH_R8A7792
180	bool "ARM32 Platform support for R8A7792 (R-Car V2H)"
181	default ARCH_RENESAS
182	select ARCH_RCAR_GEN2
183	select ARM_ERRATA_798181 if SMP
184	select SYSC_R8A7792
185
186config ARCH_R8A7793
187	bool "ARM32 Platform support for R8A7793 (R-Car M2-N)"
188	default ARCH_RENESAS
189	select ARCH_RCAR_GEN2
190	select ARM_ERRATA_798181 if SMP
191	select I2C
192	select SYSC_R8A7791
193
194config ARCH_R8A7794
195	bool "ARM32 Platform support for R8A7794 (R-Car E2)"
196	default ARCH_RENESAS
197	select ARCH_RCAR_GEN2
198	select ARM_ERRATA_814220
199	select SYSC_R8A7794
200
201config ARCH_R9A06G032
202	bool "ARM32 Platform support for R9A06G032 (RZ/N1D)"
203	default ARCH_RENESAS
204	select ARCH_RZN1
205	select ARM_ERRATA_814220
206
207config ARCH_SH73A0
208	bool "ARM32 Platform support for SH73A0 (SH-Mobile AG5)"
209	default ARCH_RENESAS
210	select ARCH_RMOBILE
211	select ARM_ERRATA_754322
212	select ARM_GLOBAL_TIMER
213	select HAVE_ARM_SCU if SMP
214	select HAVE_ARM_TWD if SMP
215	select RENESAS_INTC_IRQPIN
216
217endif # ARM
218
219if ARM64
220
221config ARCH_R8A774A1
222	bool "ARM64 Platform support for R8A774A1 (RZ/G2M)"
223	default y if ARCH_RENESAS
224	select ARCH_RCAR_GEN3
225	select SYSC_R8A774A1
226	help
227	  This enables support for the Renesas RZ/G2M SoC.
228
229config ARCH_R8A774B1
230	bool "ARM64 Platform support for R8A774B1 (RZ/G2N)"
231	default y if ARCH_RENESAS
232	select ARCH_RCAR_GEN3
233	select SYSC_R8A774B1
234	help
235	  This enables support for the Renesas RZ/G2N SoC.
236
237config ARCH_R8A774C0
238	bool "ARM64 Platform support for R8A774C0 (RZ/G2E)"
239	default y if ARCH_RENESAS
240	select ARCH_RCAR_GEN3
241	select SYSC_R8A774C0
242	help
243	  This enables support for the Renesas RZ/G2E SoC.
244
245config ARCH_R8A774E1
246	bool "ARM64 Platform support for R8A774E1 (RZ/G2H)"
247	default y if ARCH_RENESAS
248	select ARCH_RCAR_GEN3
249	select SYSC_R8A774E1
250	help
251	  This enables support for the Renesas RZ/G2H SoC.
252
253config ARCH_R8A77951
254	bool "ARM64 Platform support for R8A77951 (R-Car H3 ES2.0+)"
255	default y if ARCH_RENESAS
256	select ARCH_RCAR_GEN3
257	select SYSC_R8A7795
258	help
259	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
260	  later).
261	  This includes different gradings like R-Car H3e, H3e-2G, and H3Ne.
262
263config ARCH_R8A77960
264	bool "ARM64 Platform support for R8A77960 (R-Car M3-W)"
265	default y if ARCH_RENESAS
266	select ARCH_RCAR_GEN3
267	select SYSC_R8A77960
268	help
269	  This enables support for the Renesas R-Car M3-W SoC.
270
271config ARCH_R8A77961
272	bool "ARM64 Platform support for R8A77961 (R-Car M3-W+)"
273	default y if ARCH_RENESAS
274	select ARCH_RCAR_GEN3
275	select SYSC_R8A77961
276	help
277	  This enables support for the Renesas R-Car M3-W+ SoC.
278	  This includes different gradings like R-Car M3e and M3e-2G.
279
280config ARCH_R8A77965
281	bool "ARM64 Platform support for R8A77965 (R-Car M3-N)"
282	default y if ARCH_RENESAS
283	select ARCH_RCAR_GEN3
284	select SYSC_R8A77965
285	help
286	  This enables support for the Renesas R-Car M3-N SoC.
287	  This includes different gradings like R-Car M3Ne and M3Ne-2G.
288
289config ARCH_R8A77970
290	bool "ARM64 Platform support for R8A77970 (R-Car V3M)"
291	default y if ARCH_RENESAS
292	select ARCH_RCAR_GEN3
293	select SYSC_R8A77970
294	help
295	  This enables support for the Renesas R-Car V3M SoC.
296
297config ARCH_R8A77980
298	bool "ARM64 Platform support for R8A77980 (R-Car V3H)"
299	default y if ARCH_RENESAS
300	select ARCH_RCAR_GEN3
301	select SYSC_R8A77980
302	help
303	  This enables support for the Renesas R-Car V3H SoC.
304
305config ARCH_R8A77990
306	bool "ARM64 Platform support for R8A77990 (R-Car E3)"
307	default y if ARCH_RENESAS
308	select ARCH_RCAR_GEN3
309	select SYSC_R8A77990
310	help
311	  This enables support for the Renesas R-Car E3 SoC.
312	  This includes different gradings like R-Car E3e.
313
314config ARCH_R8A77995
315	bool "ARM64 Platform support for R8A77995 (R-Car D3)"
316	default y if ARCH_RENESAS
317	select ARCH_RCAR_GEN3
318	select SYSC_R8A77995
319	help
320	  This enables support for the Renesas R-Car D3 SoC.
321	  This includes different gradings like R-Car D3e.
322
323config ARCH_R8A779A0
324	bool "ARM64 Platform support for R8A779A0 (R-Car V3U)"
325	default y if ARCH_RENESAS
326	select ARCH_RCAR_GEN4
327	select SYSC_R8A779A0
328	help
329	  This enables support for the Renesas R-Car V3U SoC.
330
331config ARCH_R8A779F0
332	bool "ARM64 Platform support for R8A779F0 (R-Car S4-8)"
333	default y if ARCH_RENESAS
334	select ARCH_RCAR_GEN4
335	select SYSC_R8A779F0
336	help
337	  This enables support for the Renesas R-Car S4-8 SoC.
338
339config ARCH_R8A779G0
340	bool "ARM64 Platform support for R8A779G0 (R-Car V4H)"
341	default y if ARCH_RENESAS
342	select ARCH_RCAR_GEN4
343	select SYSC_R8A779G0
344	help
345	  This enables support for the Renesas R-Car V4H SoC.
346
347config ARCH_R8A779H0
348	bool "ARM64 Platform support for R8A779H0 (R-Car V4M)"
349	default y if ARCH_RENESAS
350	select ARCH_RCAR_GEN4
351	select SYSC_R8A779H0
352	help
353	  This enables support for the Renesas R-Car V4M SoC.
354
355config ARCH_R8A78000
356	bool "ARM64 Platform support for R8A78000 (R-Car X5H)"
357	default y if ARCH_RENESAS
358	default ARCH_RENESAS
359	select ARCH_RCAR_GEN5
360	help
361	  This enables support for the Renesas R-Car X5H SoC.
362
363config ARCH_R9A07G043
364	bool "ARM64 Platform support for R9A07G043U (RZ/G2UL)"
365	default y if ARCH_RENESAS
366	select ARCH_RZG2L
367	help
368	  This enables support for the Renesas RZ/G2UL SoC variants.
369
370config ARCH_R9A07G044
371	bool "ARM64 Platform support for R9A07G044 (RZ/G2L)"
372	default y if ARCH_RENESAS
373	select ARCH_RZG2L
374	help
375	  This enables support for the Renesas RZ/G2L SoC variants.
376
377config ARCH_R9A07G054
378	bool "ARM64 Platform support for R9A07G054 (RZ/V2L)"
379	default y if ARCH_RENESAS
380	select ARCH_RZG2L
381	help
382	  This enables support for the Renesas RZ/V2L SoC variants.
383
384config ARCH_R9A08G045
385	bool "ARM64 Platform support for R9A08G045 (RZ/G3S)"
386	default y if ARCH_RENESAS
387	select ARCH_RZG2L
388	select SYSC_R9A08G045
389	help
390	  This enables support for the Renesas RZ/G3S SoC variants.
391
392config ARCH_R9A09G011
393	bool "ARM64 Platform support for R9A09G011 (RZ/V2M)"
394	default y if ARCH_RENESAS
395	select PM
396	select PM_GENERIC_DOMAINS
397	select PWC_RZV2M
398	help
399	  This enables support for the Renesas RZ/V2M SoC.
400
401config ARCH_R9A09G047
402	bool "ARM64 Platform support for R9A09G047 (RZ/G3E)"
403	default y if ARCH_RENESAS
404	select SYS_R9A09G047
405	help
406	  This enables support for the Renesas RZ/G3E SoC variants.
407
408config ARCH_R9A09G056
409	bool "ARM64 Platform support for R9A09G056 (RZ/V2N)"
410	default y if ARCH_RENESAS
411	select SYS_R9A09G056
412	help
413	  This enables support for the Renesas RZ/V2N SoC variants.
414
415config ARCH_R9A09G057
416	bool "ARM64 Platform support for R9A09G057 (RZ/V2H(P))"
417	default y if ARCH_RENESAS
418	select RENESAS_RZV2H_ICU
419	select SYS_R9A09G057
420	help
421	  This enables support for the Renesas RZ/V2H(P) SoC variants.
422
423config ARCH_R9A09G077
424	bool "ARM64 Platform support for R9A09G077 (RZ/T2H)"
425	default y if ARCH_RENESAS
426	help
427	  This enables support for the Renesas RZ/T2H SoC variants.
428
429config ARCH_R9A09G087
430	bool "ARM64 Platform support for R9A09G087 (RZ/N2H)"
431	default y if ARCH_RENESAS
432	help
433	  This enables support for the Renesas RZ/N2H SoC variants.
434
435endif # ARM64
436
437if RISCV
438
439config ARCH_R9A07G043
440	bool "RISC-V Platform support for R9A07G043F (RZ/Five)"
441	depends on NONPORTABLE
442	depends on !DMA_DIRECT_REMAP
443	depends on RISCV_ALTERNATIVE
444	depends on !RISCV_ISA_ZICBOM
445	depends on RISCV_SBI
446	select ARCH_RZG2L
447	select AX45MP_L2_CACHE
448	select DMA_GLOBAL_POOL
449	select ERRATA_ANDES
450	select ERRATA_ANDES_CMO
451	help
452	  This enables support for the Renesas RZ/Five SoC.
453
454endif # RISCV
455
456config PWC_RZV2M
457	bool "Renesas RZ/V2M PWC support" if COMPILE_TEST
458
459config RST_RCAR
460	bool "Reset Controller support for R-Car" if COMPILE_TEST
461
462config SYSC_RZ
463	bool "System controller for RZ SoCs" if COMPILE_TEST
464	select MFD_SYSCON
465
466config SYSC_R9A08G045
467	bool "Renesas System controller support for R9A08G045 (RZ/G3S)" if COMPILE_TEST
468	select SYSC_RZ
469
470config SYS_R9A09G047
471	bool "Renesas System controller support for R9A09G047 (RZ/G3E)" if COMPILE_TEST
472	select SYSC_RZ
473
474config SYS_R9A09G056
475	bool "Renesas System controller support for R9A09G056 (RZ/V2N)" if COMPILE_TEST
476	select SYSC_RZ
477
478config SYS_R9A09G057
479	bool "Renesas System controller support for R9A09G057 (RZ/V2H)" if COMPILE_TEST
480	select SYSC_RZ
481
482endif # SOC_RENESAS
483