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