xref: /linux/drivers/soc/renesas/Kconfig (revision 297d9111e9fcf47dd1dcc6f79bba915f35378d01)
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_R8A7794
73	bool "ARM32 Platform support for R-Car E2"
74	default ARCH_RENESAS
75	select ARCH_RCAR_GEN2
76	select ARM_ERRATA_814220
77	select SYSC_R8A7794
78
79config ARCH_R8A7779
80	bool "ARM32 Platform support for R-Car H1"
81	default ARCH_RENESAS
82	select ARCH_RCAR_GEN1
83	select ARM_ERRATA_754322
84	select ARM_GLOBAL_TIMER
85	select HAVE_ARM_SCU if SMP
86	select HAVE_ARM_TWD if SMP
87	select SYSC_R8A7779
88
89config ARCH_R8A7790
90	bool "ARM32 Platform support for R-Car H2"
91	default ARCH_RENESAS
92	select ARCH_RCAR_GEN2
93	select ARM_ERRATA_798181 if SMP
94	select ARM_ERRATA_814220
95	select I2C
96	select SYSC_R8A7790
97
98config ARCH_R8A7778
99	bool "ARM32 Platform support for R-Car M1A"
100	default ARCH_RENESAS
101	select ARCH_RCAR_GEN1
102	select ARM_ERRATA_754322
103
104config ARCH_R8A7793
105	bool "ARM32 Platform support for R-Car M2-N"
106	default ARCH_RENESAS
107	select ARCH_RCAR_GEN2
108	select ARM_ERRATA_798181 if SMP
109	select I2C
110	select SYSC_R8A7791
111
112config ARCH_R8A7791
113	bool "ARM32 Platform support for R-Car M2-W"
114	default ARCH_RENESAS
115	select ARCH_RCAR_GEN2
116	select ARM_ERRATA_798181 if SMP
117	select I2C
118	select SYSC_R8A7791
119
120config ARCH_R8A7792
121	bool "ARM32 Platform support for R-Car V2H"
122	default ARCH_RENESAS
123	select ARCH_RCAR_GEN2
124	select ARM_ERRATA_798181 if SMP
125	select SYSC_R8A7792
126
127config ARCH_R8A7740
128	bool "ARM32 Platform support for R-Mobile A1"
129	default ARCH_RENESAS
130	select ARCH_RMOBILE
131	select ARM_ERRATA_754322
132	select RENESAS_INTC_IRQPIN
133
134config ARCH_R8A73A4
135	bool "ARM32 Platform support for R-Mobile APE6"
136	default ARCH_RENESAS
137	select ARCH_RMOBILE
138	select ARM_ERRATA_798181 if SMP
139	select ARM_ERRATA_814220
140	select HAVE_ARM_ARCH_TIMER
141	select RENESAS_IRQC
142
143config ARCH_R7S72100
144	bool "ARM32 Platform support for RZ/A1H"
145	default ARCH_RENESAS
146	select ARM_ERRATA_754322
147	select PM
148	select PM_GENERIC_DOMAINS
149	select RENESAS_OSTM
150	select RENESAS_RZA1_IRQC
151	select SYS_SUPPORTS_SH_MTU2
152
153config ARCH_R7S9210
154	bool "ARM32 Platform support for RZ/A2"
155	default ARCH_RENESAS
156	select PM
157	select PM_GENERIC_DOMAINS
158	select RENESAS_OSTM
159	select RENESAS_RZA1_IRQC
160
161config ARCH_R8A77470
162	bool "ARM32 Platform support for RZ/G1C"
163	default ARCH_RENESAS
164	select ARCH_RCAR_GEN2
165	select ARM_ERRATA_814220
166	select SYSC_R8A77470
167
168config ARCH_R8A7745
169	bool "ARM32 Platform support for RZ/G1E"
170	default ARCH_RENESAS
171	select ARCH_RCAR_GEN2
172	select ARM_ERRATA_814220
173	select SYSC_R8A7745
174
175config ARCH_R8A7742
176	bool "ARM32 Platform support for RZ/G1H"
177	default ARCH_RENESAS
178	select ARCH_RCAR_GEN2
179	select ARM_ERRATA_798181 if SMP
180	select ARM_ERRATA_814220
181	select SYSC_R8A7742
182
183config ARCH_R8A7743
184	bool "ARM32 Platform support for RZ/G1M"
185	default ARCH_RENESAS
186	select ARCH_RCAR_GEN2
187	select ARM_ERRATA_798181 if SMP
188	select SYSC_R8A7743
189
190config ARCH_R8A7744
191	bool "ARM32 Platform support for RZ/G1N"
192	default ARCH_RENESAS
193	select ARCH_RCAR_GEN2
194	select ARM_ERRATA_798181 if SMP
195	select SYSC_R8A7743
196
197config ARCH_R9A06G032
198	bool "ARM32 Platform support for 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 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_R8A77995
218	bool "ARM64 Platform support for R-Car D3"
219	default y if ARCH_RENESAS
220	select ARCH_RCAR_GEN3
221	select SYSC_R8A77995
222	help
223	  This enables support for the Renesas R-Car D3 SoC.
224	  This includes different gradings like R-Car D3e.
225
226config ARCH_R8A77990
227	bool "ARM64 Platform support for R-Car E3"
228	default y if ARCH_RENESAS
229	select ARCH_RCAR_GEN3
230	select SYSC_R8A77990
231	help
232	  This enables support for the Renesas R-Car E3 SoC.
233	  This includes different gradings like R-Car E3e.
234
235config ARCH_R8A77951
236	bool "ARM64 Platform support for R-Car H3 ES2.0+"
237	default y if ARCH_RENESAS
238	select ARCH_RCAR_GEN3
239	select SYSC_R8A7795
240	help
241	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
242	  later).
243	  This includes different gradings like R-Car H3e, H3e-2G, and H3Ne.
244
245config ARCH_R8A77965
246	bool "ARM64 Platform support for R-Car M3-N"
247	default y if ARCH_RENESAS
248	select ARCH_RCAR_GEN3
249	select SYSC_R8A77965
250	help
251	  This enables support for the Renesas R-Car M3-N SoC.
252	  This includes different gradings like R-Car M3Ne and M3Ne-2G.
253
254config ARCH_R8A77960
255	bool "ARM64 Platform support for R-Car M3-W"
256	default y if ARCH_RENESAS
257	select ARCH_RCAR_GEN3
258	select SYSC_R8A77960
259	help
260	  This enables support for the Renesas R-Car M3-W SoC.
261
262config ARCH_R8A77961
263	bool "ARM64 Platform support for R-Car M3-W+"
264	default y if ARCH_RENESAS
265	select ARCH_RCAR_GEN3
266	select SYSC_R8A77961
267	help
268	  This enables support for the Renesas R-Car M3-W+ SoC.
269	  This includes different gradings like R-Car M3e and M3e-2G.
270
271config ARCH_R8A779F0
272	bool "ARM64 Platform support for R-Car S4-8"
273	default y if ARCH_RENESAS
274	select ARCH_RCAR_GEN4
275	select SYSC_R8A779F0
276	help
277	  This enables support for the Renesas R-Car S4-8 SoC.
278
279config ARCH_R8A77980
280	bool "ARM64 Platform support for R-Car V3H"
281	default y if ARCH_RENESAS
282	select ARCH_RCAR_GEN3
283	select SYSC_R8A77980
284	help
285	  This enables support for the Renesas R-Car V3H SoC.
286
287config ARCH_R8A77970
288	bool "ARM64 Platform support for R-Car V3M"
289	default y if ARCH_RENESAS
290	select ARCH_RCAR_GEN3
291	select SYSC_R8A77970
292	help
293	  This enables support for the Renesas R-Car V3M SoC.
294
295config ARCH_R8A779A0
296	bool "ARM64 Platform support for R-Car V3U"
297	default y if ARCH_RENESAS
298	select ARCH_RCAR_GEN4
299	select SYSC_R8A779A0
300	help
301	  This enables support for the Renesas R-Car V3U SoC.
302
303config ARCH_R8A779G0
304	bool "ARM64 Platform support for R-Car V4H"
305	default y if ARCH_RENESAS
306	select ARCH_RCAR_GEN4
307	select SYSC_R8A779G0
308	help
309	  This enables support for the Renesas R-Car V4H SoC.
310
311config ARCH_R8A779H0
312	bool "ARM64 Platform support for R-Car V4M"
313	default y if ARCH_RENESAS
314	select ARCH_RCAR_GEN4
315	select SYSC_R8A779H0
316	help
317	  This enables support for the Renesas R-Car V4M SoC.
318
319config ARCH_R8A774C0
320	bool "ARM64 Platform support for RZ/G2E"
321	default y if ARCH_RENESAS
322	select ARCH_RCAR_GEN3
323	select SYSC_R8A774C0
324	help
325	  This enables support for the Renesas RZ/G2E SoC.
326
327config ARCH_R8A774E1
328	bool "ARM64 Platform support for RZ/G2H"
329	default y if ARCH_RENESAS
330	select ARCH_RCAR_GEN3
331	select SYSC_R8A774E1
332	help
333	  This enables support for the Renesas RZ/G2H SoC.
334
335config ARCH_R8A774A1
336	bool "ARM64 Platform support for RZ/G2M"
337	default y if ARCH_RENESAS
338	select ARCH_RCAR_GEN3
339	select SYSC_R8A774A1
340	help
341	  This enables support for the Renesas RZ/G2M SoC.
342
343config ARCH_R8A774B1
344	bool "ARM64 Platform support for RZ/G2N"
345	default y if ARCH_RENESAS
346	select ARCH_RCAR_GEN3
347	select SYSC_R8A774B1
348	help
349	  This enables support for the Renesas RZ/G2N SoC.
350
351config ARCH_R9A07G043
352	bool "ARM64 Platform support for 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 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 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 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 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 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 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 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
411endif # ARM64
412
413if RISCV
414
415config ARCH_R9A07G043
416	bool "RISC-V Platform support for RZ/Five"
417	depends on NONPORTABLE
418	depends on !DMA_DIRECT_REMAP
419	depends on RISCV_ALTERNATIVE
420	depends on !RISCV_ISA_ZICBOM
421	depends on RISCV_SBI
422	select ARCH_RZG2L
423	select AX45MP_L2_CACHE
424	select DMA_GLOBAL_POOL
425	select ERRATA_ANDES
426	select ERRATA_ANDES_CMO
427	help
428	  This enables support for the Renesas RZ/Five SoC.
429
430endif # RISCV
431
432config PWC_RZV2M
433	bool "Renesas RZ/V2M PWC support" if COMPILE_TEST
434
435config RST_RCAR
436	bool "Reset Controller support for R-Car" if COMPILE_TEST
437
438config SYSC_RZ
439	bool "System controller for RZ SoCs" if COMPILE_TEST
440
441config SYSC_R9A08G045
442	bool "Renesas RZ/G3S System controller support" if COMPILE_TEST
443	select SYSC_RZ
444
445config SYS_R9A09G047
446	bool "Renesas RZ/G3E System controller support" if COMPILE_TEST
447	select SYSC_RZ
448
449config SYS_R9A09G056
450	bool "Renesas RZ/V2N System controller support" if COMPILE_TEST
451	select SYSC_RZ
452
453config SYS_R9A09G057
454	bool "Renesas RZ/V2H System controller support" if COMPILE_TEST
455	select SYSC_RZ
456
457endif # SOC_RENESAS
458