xref: /openbmc/linux/drivers/soc/renesas/Kconfig (revision 980c3799)
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 SOC_BUS
6
7if SOC_RENESAS
8
9config 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
16
17config 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
25
26config 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
34
35config 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
42
43config ARCH_RZG2L
44	bool
45	select PM
46	select PM_GENERIC_DOMAINS
47
48config ARCH_RZN1
49	bool
50	select ARM_AMBA
51
52if ARM && ARCH_RENESAS
53
54#comment "Renesas ARM SoCs System Type"
55
56config ARCH_EMEV2
57	bool "ARM32 Platform support for Emma Mobile EV2"
58	select HAVE_ARM_SCU if SMP
59	select SYS_SUPPORTS_EM_STI
60
61config ARCH_R8A7794
62	bool "ARM32 Platform support for R-Car E2"
63	select ARCH_RCAR_GEN2
64	select ARM_ERRATA_814220
65	select SYSC_R8A7794
66
67config ARCH_R8A7779
68	bool "ARM32 Platform support for R-Car H1"
69	select ARCH_RCAR_GEN1
70	select ARM_ERRATA_754322
71	select ARM_GLOBAL_TIMER
72	select HAVE_ARM_SCU if SMP
73	select HAVE_ARM_TWD if SMP
74	select SYSC_R8A7779
75
76config ARCH_R8A7790
77	bool "ARM32 Platform support for R-Car H2"
78	select ARCH_RCAR_GEN2
79	select ARM_ERRATA_798181 if SMP
80	select ARM_ERRATA_814220
81	select I2C
82	select SYSC_R8A7790
83
84config ARCH_R8A7778
85	bool "ARM32 Platform support for R-Car M1A"
86	select ARCH_RCAR_GEN1
87	select ARM_ERRATA_754322
88
89config ARCH_R8A7793
90	bool "ARM32 Platform support for R-Car M2-N"
91	select ARCH_RCAR_GEN2
92	select ARM_ERRATA_798181 if SMP
93	select I2C
94	select SYSC_R8A7791
95
96config ARCH_R8A7791
97	bool "ARM32 Platform support for R-Car M2-W"
98	select ARCH_RCAR_GEN2
99	select ARM_ERRATA_798181 if SMP
100	select I2C
101	select SYSC_R8A7791
102
103config ARCH_R8A7792
104	bool "ARM32 Platform support for R-Car V2H"
105	select ARCH_RCAR_GEN2
106	select ARM_ERRATA_798181 if SMP
107	select SYSC_R8A7792
108
109config ARCH_R8A7740
110	bool "ARM32 Platform support for R-Mobile A1"
111	select ARCH_RMOBILE
112	select ARM_ERRATA_754322
113	select RENESAS_INTC_IRQPIN
114
115config ARCH_R8A73A4
116	bool "ARM32 Platform support for R-Mobile APE6"
117	select ARCH_RMOBILE
118	select ARM_ERRATA_798181 if SMP
119	select ARM_ERRATA_814220
120	select HAVE_ARM_ARCH_TIMER
121	select RENESAS_IRQC
122
123config ARCH_R7S72100
124	bool "ARM32 Platform support for RZ/A1H"
125	select ARM_ERRATA_754322
126	select PM
127	select PM_GENERIC_DOMAINS
128	select RENESAS_OSTM
129	select RENESAS_RZA1_IRQC
130	select SYS_SUPPORTS_SH_MTU2
131
132config ARCH_R7S9210
133	bool "ARM32 Platform support for RZ/A2"
134	select PM
135	select PM_GENERIC_DOMAINS
136	select RENESAS_OSTM
137	select RENESAS_RZA1_IRQC
138
139config ARCH_R8A77470
140	bool "ARM32 Platform support for RZ/G1C"
141	select ARCH_RCAR_GEN2
142	select ARM_ERRATA_814220
143	select SYSC_R8A77470
144
145config ARCH_R8A7745
146	bool "ARM32 Platform support for RZ/G1E"
147	select ARCH_RCAR_GEN2
148	select ARM_ERRATA_814220
149	select SYSC_R8A7745
150
151config ARCH_R8A7742
152	bool "ARM32 Platform support for RZ/G1H"
153	select ARCH_RCAR_GEN2
154	select ARM_ERRATA_798181 if SMP
155	select ARM_ERRATA_814220
156	select SYSC_R8A7742
157
158config ARCH_R8A7743
159	bool "ARM32 Platform support for RZ/G1M"
160	select ARCH_RCAR_GEN2
161	select ARM_ERRATA_798181 if SMP
162	select SYSC_R8A7743
163
164config ARCH_R8A7744
165	bool "ARM32 Platform support for RZ/G1N"
166	select ARCH_RCAR_GEN2
167	select ARM_ERRATA_798181 if SMP
168	select SYSC_R8A7743
169
170config ARCH_R9A06G032
171	bool "ARM32 Platform support for RZ/N1D"
172	select ARCH_RZN1
173	select ARM_ERRATA_814220
174
175config ARCH_SH73A0
176	bool "ARM32 Platform support for SH-Mobile AG5"
177	select ARCH_RMOBILE
178	select ARM_ERRATA_754322
179	select ARM_GLOBAL_TIMER
180	select HAVE_ARM_SCU if SMP
181	select HAVE_ARM_TWD if SMP
182	select RENESAS_INTC_IRQPIN
183
184endif # ARM
185
186if ARM64
187
188config ARCH_R8A77995
189	bool "ARM64 Platform support for R-Car D3"
190	select ARCH_RCAR_GEN3
191	select SYSC_R8A77995
192	help
193	  This enables support for the Renesas R-Car D3 SoC.
194	  This includes different gradings like R-Car D3e.
195
196config ARCH_R8A77990
197	bool "ARM64 Platform support for R-Car E3"
198	select ARCH_RCAR_GEN3
199	select SYSC_R8A77990
200	help
201	  This enables support for the Renesas R-Car E3 SoC.
202	  This includes different gradings like R-Car E3e.
203
204config ARCH_R8A77950
205	bool "ARM64 Platform support for R-Car H3 ES1.x"
206	select ARCH_RCAR_GEN3
207	select SYSC_R8A7795
208	help
209	  This enables support for the Renesas R-Car H3 SoC (revision 1.x).
210
211config ARCH_R8A77951
212	bool "ARM64 Platform support for R-Car H3 ES2.0+"
213	select ARCH_RCAR_GEN3
214	select SYSC_R8A7795
215	help
216	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
217	  later).
218	  This includes different gradings like R-Car H3e, H3e-2G, and H3Ne.
219
220config ARCH_R8A77965
221	bool "ARM64 Platform support for R-Car M3-N"
222	select ARCH_RCAR_GEN3
223	select SYSC_R8A77965
224	help
225	  This enables support for the Renesas R-Car M3-N SoC.
226	  This includes different gradings like R-Car M3Ne and M3Ne-2G.
227
228config ARCH_R8A77960
229	bool "ARM64 Platform support for R-Car M3-W"
230	select ARCH_RCAR_GEN3
231	select SYSC_R8A77960
232	help
233	  This enables support for the Renesas R-Car M3-W SoC.
234
235config ARCH_R8A77961
236	bool "ARM64 Platform support for R-Car M3-W+"
237	select ARCH_RCAR_GEN3
238	select SYSC_R8A77961
239	help
240	  This enables support for the Renesas R-Car M3-W+ SoC.
241	  This includes different gradings like R-Car M3e and M3e-2G.
242
243config ARCH_R8A779F0
244	bool "ARM64 Platform support for R-Car S4-8"
245	select ARCH_RCAR_GEN3
246	select SYSC_R8A779F0
247	help
248	  This enables support for the Renesas R-Car S4-8 SoC.
249
250config ARCH_R8A77980
251	bool "ARM64 Platform support for R-Car V3H"
252	select ARCH_RCAR_GEN3
253	select SYSC_R8A77980
254	help
255	  This enables support for the Renesas R-Car V3H SoC.
256
257config ARCH_R8A77970
258	bool "ARM64 Platform support for R-Car V3M"
259	select ARCH_RCAR_GEN3
260	select SYSC_R8A77970
261	help
262	  This enables support for the Renesas R-Car V3M SoC.
263
264config ARCH_R8A779A0
265	bool "ARM64 Platform support for R-Car V3U"
266	select ARCH_RCAR_GEN3
267	select SYSC_R8A779A0
268	help
269	  This enables support for the Renesas R-Car V3U SoC.
270
271config ARCH_R8A774C0
272	bool "ARM64 Platform support for RZ/G2E"
273	select ARCH_RCAR_GEN3
274	select SYSC_R8A774C0
275	help
276	  This enables support for the Renesas RZ/G2E SoC.
277
278config ARCH_R8A774E1
279	bool "ARM64 Platform support for RZ/G2H"
280	select ARCH_RCAR_GEN3
281	select SYSC_R8A774E1
282	help
283	  This enables support for the Renesas RZ/G2H SoC.
284
285config ARCH_R8A774A1
286	bool "ARM64 Platform support for RZ/G2M"
287	select ARCH_RCAR_GEN3
288	select SYSC_R8A774A1
289	help
290	  This enables support for the Renesas RZ/G2M SoC.
291
292config ARCH_R8A774B1
293	bool "ARM64 Platform support for RZ/G2N"
294	select ARCH_RCAR_GEN3
295	select SYSC_R8A774B1
296	help
297	  This enables support for the Renesas RZ/G2N SoC.
298
299config ARCH_R9A07G044
300	bool "ARM64 Platform support for RZ/G2L"
301	select ARCH_RZG2L
302	help
303	  This enables support for the Renesas RZ/G2L SoC variants.
304
305config ARCH_R9A07G054
306	bool "ARM64 Platform support for RZ/V2L"
307	select ARCH_RZG2L
308	help
309	  This enables support for the Renesas RZ/V2L SoC variants.
310
311endif # ARM64
312
313config RST_RCAR
314	bool "Reset Controller support for R-Car" if COMPILE_TEST
315
316config SYSC_RCAR
317	bool "System Controller support for R-Car" if COMPILE_TEST
318
319config SYSC_RCAR_GEN4
320	bool "System Controller support for R-Car Gen4" if COMPILE_TEST
321
322config SYSC_R8A77995
323	bool "System Controller support for R-Car D3" if COMPILE_TEST
324	select SYSC_RCAR
325
326config SYSC_R8A7794
327	bool "System Controller support for R-Car E2" if COMPILE_TEST
328	select SYSC_RCAR
329
330config SYSC_R8A77990
331	bool "System Controller support for R-Car E3" if COMPILE_TEST
332	select SYSC_RCAR
333
334config SYSC_R8A7779
335	bool "System Controller support for R-Car H1" if COMPILE_TEST
336	select SYSC_RCAR
337
338config SYSC_R8A7790
339	bool "System Controller support for R-Car H2" if COMPILE_TEST
340	select SYSC_RCAR
341
342config SYSC_R8A7795
343	bool "System Controller support for R-Car H3" if COMPILE_TEST
344	select SYSC_RCAR
345
346config SYSC_R8A7791
347	bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST
348	select SYSC_RCAR
349
350config SYSC_R8A77965
351	bool "System Controller support for R-Car M3-N" if COMPILE_TEST
352	select SYSC_RCAR
353
354config SYSC_R8A77960
355	bool "System Controller support for R-Car M3-W" if COMPILE_TEST
356	select SYSC_RCAR
357
358config SYSC_R8A77961
359	bool "System Controller support for R-Car M3-W+" if COMPILE_TEST
360	select SYSC_RCAR
361
362config SYSC_R8A779F0
363	bool "System Controller support for R-Car S4-8" if COMPILE_TEST
364	select SYSC_RCAR_GEN4
365
366config SYSC_R8A7792
367	bool "System Controller support for R-Car V2H" if COMPILE_TEST
368	select SYSC_RCAR
369
370config SYSC_R8A77980
371	bool "System Controller support for R-Car V3H" if COMPILE_TEST
372	select SYSC_RCAR
373
374config SYSC_R8A77970
375	bool "System Controller support for R-Car V3M" if COMPILE_TEST
376	select SYSC_RCAR
377
378config SYSC_R8A779A0
379	bool "System Controller support for R-Car V3U" if COMPILE_TEST
380	select SYSC_RCAR_GEN4
381
382config SYSC_RMOBILE
383	bool "System Controller support for R-Mobile" if COMPILE_TEST
384
385config SYSC_R8A77470
386	bool "System Controller support for RZ/G1C" if COMPILE_TEST
387	select SYSC_RCAR
388
389config SYSC_R8A7745
390	bool "System Controller support for RZ/G1E" if COMPILE_TEST
391	select SYSC_RCAR
392
393config SYSC_R8A7742
394	bool "System Controller support for RZ/G1H" if COMPILE_TEST
395	select SYSC_RCAR
396
397config SYSC_R8A7743
398	bool "System Controller support for RZ/G1M" if COMPILE_TEST
399	select SYSC_RCAR
400
401config SYSC_R8A774C0
402	bool "System Controller support for RZ/G2E" if COMPILE_TEST
403	select SYSC_RCAR
404
405config SYSC_R8A774E1
406	bool "System Controller support for RZ/G2H" if COMPILE_TEST
407	select SYSC_RCAR
408
409config SYSC_R8A774A1
410	bool "System Controller support for RZ/G2M" if COMPILE_TEST
411	select SYSC_RCAR
412
413config SYSC_R8A774B1
414	bool "System Controller support for RZ/G2N" if COMPILE_TEST
415	select SYSC_RCAR
416
417endif # SOC_RENESAS
418