xref: /openbmc/linux/drivers/soc/renesas/Kconfig (revision 2f0754f2)
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_RZN1
44	bool
45	select ARM_AMBA
46
47if ARM && ARCH_RENESAS
48
49#comment "Renesas ARM SoCs System Type"
50
51config 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
56config 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
62config 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
71config 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
79config ARCH_R8A7778
80	bool "ARM32 Platform support for R-Car M1A"
81	select ARCH_RCAR_GEN1
82	select ARM_ERRATA_754322
83
84config 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
91config 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
98config 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
104config 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
110config 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
118config 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
127config 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
134config 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
140config 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
146config 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
153config 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
159config 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
165config ARCH_R9A06G032
166	bool "ARM32 Platform support for RZ/N1D"
167	select ARCH_RZN1
168	select ARM_ERRATA_814220
169
170config 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
179endif # ARM
180
181if ARM64
182
183config 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	  This includes different gradings like R-Car D3e.
190
191config ARCH_R8A77990
192	bool "ARM64 Platform support for R-Car E3"
193	select ARCH_RCAR_GEN3
194	select SYSC_R8A77990
195	help
196	  This enables support for the Renesas R-Car E3 SoC.
197	  This includes different gradings like R-Car E3e.
198
199config ARCH_R8A77950
200	bool "ARM64 Platform support for R-Car H3 ES1.x"
201	select ARCH_RCAR_GEN3
202	select SYSC_R8A7795
203	help
204	  This enables support for the Renesas R-Car H3 SoC (revision 1.x).
205
206config ARCH_R8A77951
207	bool "ARM64 Platform support for R-Car H3 ES2.0+"
208	select ARCH_RCAR_GEN3
209	select SYSC_R8A7795
210	help
211	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
212	  later).
213	  This includes different gradings like R-Car H3e, H3e-2G, and H3Ne.
214
215config ARCH_R8A77965
216	bool "ARM64 Platform support for R-Car M3-N"
217	select ARCH_RCAR_GEN3
218	select SYSC_R8A77965
219	help
220	  This enables support for the Renesas R-Car M3-N SoC.
221	  This includes different gradings like R-Car M3Ne and M3Ne-2G.
222
223config ARCH_R8A77960
224	bool "ARM64 Platform support for R-Car M3-W"
225	select ARCH_RCAR_GEN3
226	select SYSC_R8A77960
227	help
228	  This enables support for the Renesas R-Car M3-W SoC.
229
230config ARCH_R8A77961
231	bool "ARM64 Platform support for R-Car M3-W+"
232	select ARCH_RCAR_GEN3
233	select SYSC_R8A77961
234	help
235	  This enables support for the Renesas R-Car M3-W+ SoC.
236	  This includes different gradings like R-Car M3e and M3e-2G.
237
238config ARCH_R8A779F0
239	bool "ARM64 Platform support for R-Car S4-8"
240	select ARCH_RCAR_GEN3
241	select SYSC_R8A779F0
242	help
243	  This enables support for the Renesas R-Car S4-8 SoC.
244
245config ARCH_R8A77980
246	bool "ARM64 Platform support for R-Car V3H"
247	select ARCH_RCAR_GEN3
248	select SYSC_R8A77980
249	help
250	  This enables support for the Renesas R-Car V3H SoC.
251
252config ARCH_R8A77970
253	bool "ARM64 Platform support for R-Car V3M"
254	select ARCH_RCAR_GEN3
255	select SYSC_R8A77970
256	help
257	  This enables support for the Renesas R-Car V3M SoC.
258
259config ARCH_R8A779A0
260	bool "ARM64 Platform support for R-Car V3U"
261	select ARCH_RCAR_GEN3
262	select SYSC_R8A779A0
263	help
264	  This enables support for the Renesas R-Car V3U SoC.
265
266config ARCH_R8A774C0
267	bool "ARM64 Platform support for RZ/G2E"
268	select ARCH_RCAR_GEN3
269	select SYSC_R8A774C0
270	help
271	  This enables support for the Renesas RZ/G2E SoC.
272
273config ARCH_R8A774E1
274	bool "ARM64 Platform support for RZ/G2H"
275	select ARCH_RCAR_GEN3
276	select SYSC_R8A774E1
277	help
278	  This enables support for the Renesas RZ/G2H SoC.
279
280config ARCH_R8A774A1
281	bool "ARM64 Platform support for RZ/G2M"
282	select ARCH_RCAR_GEN3
283	select SYSC_R8A774A1
284	help
285	  This enables support for the Renesas RZ/G2M SoC.
286
287config ARCH_R8A774B1
288	bool "ARM64 Platform support for RZ/G2N"
289	select ARCH_RCAR_GEN3
290	select SYSC_R8A774B1
291	help
292	  This enables support for the Renesas RZ/G2N SoC.
293
294config ARCH_R9A07G044
295	bool "ARM64 Platform support for RZ/G2L"
296	help
297	  This enables support for the Renesas RZ/G2L SoC variants.
298
299endif # ARM64
300
301config RST_RCAR
302	bool "Reset Controller support for R-Car" if COMPILE_TEST
303
304config SYSC_RCAR
305	bool "System Controller support for R-Car" if COMPILE_TEST
306
307config SYSC_RCAR_GEN4
308	bool "System Controller support for R-Car Gen4" if COMPILE_TEST
309
310config SYSC_R8A77995
311	bool "System Controller support for R-Car D3" if COMPILE_TEST
312	select SYSC_RCAR
313
314config SYSC_R8A7794
315	bool "System Controller support for R-Car E2" if COMPILE_TEST
316	select SYSC_RCAR
317
318config SYSC_R8A77990
319	bool "System Controller support for R-Car E3" if COMPILE_TEST
320	select SYSC_RCAR
321
322config SYSC_R8A7779
323	bool "System Controller support for R-Car H1" if COMPILE_TEST
324	select SYSC_RCAR
325
326config SYSC_R8A7790
327	bool "System Controller support for R-Car H2" if COMPILE_TEST
328	select SYSC_RCAR
329
330config SYSC_R8A7795
331	bool "System Controller support for R-Car H3" if COMPILE_TEST
332	select SYSC_RCAR
333
334config SYSC_R8A7791
335	bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST
336	select SYSC_RCAR
337
338config SYSC_R8A77965
339	bool "System Controller support for R-Car M3-N" if COMPILE_TEST
340	select SYSC_RCAR
341
342config SYSC_R8A77960
343	bool "System Controller support for R-Car M3-W" if COMPILE_TEST
344	select SYSC_RCAR
345
346config SYSC_R8A77961
347	bool "System Controller support for R-Car M3-W+" if COMPILE_TEST
348	select SYSC_RCAR
349
350config SYSC_R8A779F0
351	bool "System Controller support for R-Car S4-8" if COMPILE_TEST
352	select SYSC_RCAR_GEN4
353
354config SYSC_R8A7792
355	bool "System Controller support for R-Car V2H" if COMPILE_TEST
356	select SYSC_RCAR
357
358config SYSC_R8A77980
359	bool "System Controller support for R-Car V3H" if COMPILE_TEST
360	select SYSC_RCAR
361
362config SYSC_R8A77970
363	bool "System Controller support for R-Car V3M" if COMPILE_TEST
364	select SYSC_RCAR
365
366config SYSC_R8A779A0
367	bool "System Controller support for R-Car V3U" if COMPILE_TEST
368	select SYSC_RCAR_GEN4
369
370config SYSC_RMOBILE
371	bool "System Controller support for R-Mobile" if COMPILE_TEST
372
373config SYSC_R8A77470
374	bool "System Controller support for RZ/G1C" if COMPILE_TEST
375	select SYSC_RCAR
376
377config SYSC_R8A7745
378	bool "System Controller support for RZ/G1E" if COMPILE_TEST
379	select SYSC_RCAR
380
381config SYSC_R8A7742
382	bool "System Controller support for RZ/G1H" if COMPILE_TEST
383	select SYSC_RCAR
384
385config SYSC_R8A7743
386	bool "System Controller support for RZ/G1M" if COMPILE_TEST
387	select SYSC_RCAR
388
389config SYSC_R8A774C0
390	bool "System Controller support for RZ/G2E" if COMPILE_TEST
391	select SYSC_RCAR
392
393config SYSC_R8A774E1
394	bool "System Controller support for RZ/G2H" if COMPILE_TEST
395	select SYSC_RCAR
396
397config SYSC_R8A774A1
398	bool "System Controller support for RZ/G2M" if COMPILE_TEST
399	select SYSC_RCAR
400
401config SYSC_R8A774B1
402	bool "System Controller support for RZ/G2N" if COMPILE_TEST
403	select SYSC_RCAR
404
405endif # SOC_RENESAS
406