xref: /openbmc/linux/drivers/soc/renesas/Kconfig (revision 0ed66cb7)
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
190config ARCH_R8A77990
191	bool "ARM64 Platform support for R-Car E3"
192	select ARCH_RCAR_GEN3
193	select SYSC_R8A77990
194	help
195	  This enables support for the Renesas R-Car E3 SoC.
196
197config ARCH_R8A77950
198	bool "ARM64 Platform support for R-Car H3 ES1.x"
199	select ARCH_RCAR_GEN3
200	select SYSC_R8A7795
201	help
202	  This enables support for the Renesas R-Car H3 SoC (revision 1.x).
203
204config ARCH_R8A77951
205	bool "ARM64 Platform support for R-Car H3 ES2.0+"
206	select ARCH_RCAR_GEN3
207	select SYSC_R8A7795
208	help
209	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
210	  later).
211	  This includes different gradings like R-Car H3e-2G.
212
213config ARCH_R8A77965
214	bool "ARM64 Platform support for R-Car M3-N"
215	select ARCH_RCAR_GEN3
216	select SYSC_R8A77965
217	help
218	  This enables support for the Renesas R-Car M3-N SoC.
219
220config ARCH_R8A77960
221	bool "ARM64 Platform support for R-Car M3-W"
222	select ARCH_RCAR_GEN3
223	select SYSC_R8A77960
224	help
225	  This enables support for the Renesas R-Car M3-W SoC.
226
227config ARCH_R8A77961
228	bool "ARM64 Platform support for R-Car M3-W+"
229	select ARCH_RCAR_GEN3
230	select SYSC_R8A77961
231	help
232	  This enables support for the Renesas R-Car M3-W+ SoC.
233	  This includes different gradings like R-Car M3e-2G.
234
235config ARCH_R8A77980
236	bool "ARM64 Platform support for R-Car V3H"
237	select ARCH_RCAR_GEN3
238	select SYSC_R8A77980
239	help
240	  This enables support for the Renesas R-Car V3H SoC.
241
242config ARCH_R8A77970
243	bool "ARM64 Platform support for R-Car V3M"
244	select ARCH_RCAR_GEN3
245	select SYSC_R8A77970
246	help
247	  This enables support for the Renesas R-Car V3M SoC.
248
249config ARCH_R8A779A0
250	bool "ARM64 Platform support for R-Car V3U"
251	select ARCH_RCAR_GEN3
252	select SYSC_R8A779A0
253	help
254	  This enables support for the Renesas R-Car V3U SoC.
255
256config ARCH_R8A774C0
257	bool "ARM64 Platform support for RZ/G2E"
258	select ARCH_RCAR_GEN3
259	select SYSC_R8A774C0
260	help
261	  This enables support for the Renesas RZ/G2E SoC.
262
263config ARCH_R8A774E1
264	bool "ARM64 Platform support for RZ/G2H"
265	select ARCH_RCAR_GEN3
266	select SYSC_R8A774E1
267	help
268	  This enables support for the Renesas RZ/G2H SoC.
269
270config ARCH_R8A774A1
271	bool "ARM64 Platform support for RZ/G2M"
272	select ARCH_RCAR_GEN3
273	select SYSC_R8A774A1
274	help
275	  This enables support for the Renesas RZ/G2M SoC.
276
277config ARCH_R8A774B1
278	bool "ARM64 Platform support for RZ/G2N"
279	select ARCH_RCAR_GEN3
280	select SYSC_R8A774B1
281	help
282	  This enables support for the Renesas RZ/G2N SoC.
283
284config ARCH_R9A07G044
285	bool "ARM64 Platform support for RZ/G2L"
286	help
287	  This enables support for the Renesas RZ/G2L SoC variants.
288
289endif # ARM64
290
291config RST_RCAR
292	bool "Reset Controller support for R-Car" if COMPILE_TEST
293
294config SYSC_RCAR
295	bool "System Controller support for R-Car" if COMPILE_TEST
296
297config SYSC_R8A77995
298	bool "System Controller support for R-Car D3" if COMPILE_TEST
299	select SYSC_RCAR
300
301config SYSC_R8A7794
302	bool "System Controller support for R-Car E2" if COMPILE_TEST
303	select SYSC_RCAR
304
305config SYSC_R8A77990
306	bool "System Controller support for R-Car E3" if COMPILE_TEST
307	select SYSC_RCAR
308
309config SYSC_R8A7779
310	bool "System Controller support for R-Car H1" if COMPILE_TEST
311	select SYSC_RCAR
312
313config SYSC_R8A7790
314	bool "System Controller support for R-Car H2" if COMPILE_TEST
315	select SYSC_RCAR
316
317config SYSC_R8A7795
318	bool "System Controller support for R-Car H3" if COMPILE_TEST
319	select SYSC_RCAR
320
321config SYSC_R8A7791
322	bool "System Controller support for R-Car M2-W/N" if COMPILE_TEST
323	select SYSC_RCAR
324
325config SYSC_R8A77965
326	bool "System Controller support for R-Car M3-N" if COMPILE_TEST
327	select SYSC_RCAR
328
329config SYSC_R8A77960
330	bool "System Controller support for R-Car M3-W" if COMPILE_TEST
331	select SYSC_RCAR
332
333config SYSC_R8A77961
334	bool "System Controller support for R-Car M3-W+" if COMPILE_TEST
335	select SYSC_RCAR
336
337config SYSC_R8A7792
338	bool "System Controller support for R-Car V2H" if COMPILE_TEST
339	select SYSC_RCAR
340
341config SYSC_R8A77980
342	bool "System Controller support for R-Car V3H" if COMPILE_TEST
343	select SYSC_RCAR
344
345config SYSC_R8A77970
346	bool "System Controller support for R-Car V3M" if COMPILE_TEST
347	select SYSC_RCAR
348
349config SYSC_R8A779A0
350	bool "System Controller support for R-Car V3U" if COMPILE_TEST
351
352config SYSC_RMOBILE
353	bool "System Controller support for R-Mobile" if COMPILE_TEST
354
355config SYSC_R8A77470
356	bool "System Controller support for RZ/G1C" if COMPILE_TEST
357	select SYSC_RCAR
358
359config SYSC_R8A7745
360	bool "System Controller support for RZ/G1E" if COMPILE_TEST
361	select SYSC_RCAR
362
363config SYSC_R8A7742
364	bool "System Controller support for RZ/G1H" if COMPILE_TEST
365	select SYSC_RCAR
366
367config SYSC_R8A7743
368	bool "System Controller support for RZ/G1M" if COMPILE_TEST
369	select SYSC_RCAR
370
371config SYSC_R8A774C0
372	bool "System Controller support for RZ/G2E" if COMPILE_TEST
373	select SYSC_RCAR
374
375config SYSC_R8A774E1
376	bool "System Controller support for RZ/G2H" if COMPILE_TEST
377	select SYSC_RCAR
378
379config SYSC_R8A774A1
380	bool "System Controller support for RZ/G2M" if COMPILE_TEST
381	select SYSC_RCAR
382
383config SYSC_R8A774B1
384	bool "System Controller support for RZ/G2N" if COMPILE_TEST
385	select SYSC_RCAR
386
387endif # SOC_RENESAS
388