xref: /linux/drivers/soc/renesas/Kconfig (revision fcb3ad4366b9c810cbb9da34c076a9a52d8aa1e0)
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	select HAVE_ARM_SCU if SMP
69	select SYS_SUPPORTS_EM_STI
70
71config ARCH_R8A7794
72	bool "ARM32 Platform support for R-Car E2"
73	select ARCH_RCAR_GEN2
74	select ARM_ERRATA_814220
75	select SYSC_R8A7794
76
77config ARCH_R8A7779
78	bool "ARM32 Platform support for R-Car H1"
79	select ARCH_RCAR_GEN1
80	select ARM_ERRATA_754322
81	select ARM_GLOBAL_TIMER
82	select HAVE_ARM_SCU if SMP
83	select HAVE_ARM_TWD if SMP
84	select SYSC_R8A7779
85
86config ARCH_R8A7790
87	bool "ARM32 Platform support for R-Car H2"
88	select ARCH_RCAR_GEN2
89	select ARM_ERRATA_798181 if SMP
90	select ARM_ERRATA_814220
91	select I2C
92	select SYSC_R8A7790
93
94config ARCH_R8A7778
95	bool "ARM32 Platform support for R-Car M1A"
96	select ARCH_RCAR_GEN1
97	select ARM_ERRATA_754322
98
99config ARCH_R8A7793
100	bool "ARM32 Platform support for R-Car M2-N"
101	select ARCH_RCAR_GEN2
102	select ARM_ERRATA_798181 if SMP
103	select I2C
104	select SYSC_R8A7791
105
106config ARCH_R8A7791
107	bool "ARM32 Platform support for R-Car M2-W"
108	select ARCH_RCAR_GEN2
109	select ARM_ERRATA_798181 if SMP
110	select I2C
111	select SYSC_R8A7791
112
113config ARCH_R8A7792
114	bool "ARM32 Platform support for R-Car V2H"
115	select ARCH_RCAR_GEN2
116	select ARM_ERRATA_798181 if SMP
117	select SYSC_R8A7792
118
119config ARCH_R8A7740
120	bool "ARM32 Platform support for R-Mobile A1"
121	select ARCH_RMOBILE
122	select ARM_ERRATA_754322
123	select RENESAS_INTC_IRQPIN
124
125config ARCH_R8A73A4
126	bool "ARM32 Platform support for R-Mobile APE6"
127	select ARCH_RMOBILE
128	select ARM_ERRATA_798181 if SMP
129	select ARM_ERRATA_814220
130	select HAVE_ARM_ARCH_TIMER
131	select RENESAS_IRQC
132
133config ARCH_R7S72100
134	bool "ARM32 Platform support for RZ/A1H"
135	select ARM_ERRATA_754322
136	select PM
137	select PM_GENERIC_DOMAINS
138	select RENESAS_OSTM
139	select RENESAS_RZA1_IRQC
140	select SYS_SUPPORTS_SH_MTU2
141
142config ARCH_R7S9210
143	bool "ARM32 Platform support for RZ/A2"
144	select PM
145	select PM_GENERIC_DOMAINS
146	select RENESAS_OSTM
147	select RENESAS_RZA1_IRQC
148
149config ARCH_R8A77470
150	bool "ARM32 Platform support for RZ/G1C"
151	select ARCH_RCAR_GEN2
152	select ARM_ERRATA_814220
153	select SYSC_R8A77470
154
155config ARCH_R8A7745
156	bool "ARM32 Platform support for RZ/G1E"
157	select ARCH_RCAR_GEN2
158	select ARM_ERRATA_814220
159	select SYSC_R8A7745
160
161config ARCH_R8A7742
162	bool "ARM32 Platform support for RZ/G1H"
163	select ARCH_RCAR_GEN2
164	select ARM_ERRATA_798181 if SMP
165	select ARM_ERRATA_814220
166	select SYSC_R8A7742
167
168config ARCH_R8A7743
169	bool "ARM32 Platform support for RZ/G1M"
170	select ARCH_RCAR_GEN2
171	select ARM_ERRATA_798181 if SMP
172	select SYSC_R8A7743
173
174config ARCH_R8A7744
175	bool "ARM32 Platform support for RZ/G1N"
176	select ARCH_RCAR_GEN2
177	select ARM_ERRATA_798181 if SMP
178	select SYSC_R8A7743
179
180config ARCH_R9A06G032
181	bool "ARM32 Platform support for RZ/N1D"
182	select ARCH_RZN1
183	select ARM_ERRATA_814220
184
185config ARCH_SH73A0
186	bool "ARM32 Platform support for SH-Mobile AG5"
187	select ARCH_RMOBILE
188	select ARM_ERRATA_754322
189	select ARM_GLOBAL_TIMER
190	select HAVE_ARM_SCU if SMP
191	select HAVE_ARM_TWD if SMP
192	select RENESAS_INTC_IRQPIN
193
194endif # ARM
195
196if ARM64
197
198config ARCH_R8A77995
199	bool "ARM64 Platform support for R-Car D3"
200	select ARCH_RCAR_GEN3
201	select SYSC_R8A77995
202	help
203	  This enables support for the Renesas R-Car D3 SoC.
204	  This includes different gradings like R-Car D3e.
205
206config ARCH_R8A77990
207	bool "ARM64 Platform support for R-Car E3"
208	select ARCH_RCAR_GEN3
209	select SYSC_R8A77990
210	help
211	  This enables support for the Renesas R-Car E3 SoC.
212	  This includes different gradings like R-Car E3e.
213
214config ARCH_R8A77951
215	bool "ARM64 Platform support for R-Car H3 ES2.0+"
216	select ARCH_RCAR_GEN3
217	select SYSC_R8A7795
218	help
219	  This enables support for the Renesas R-Car H3 SoC (revisions 2.0 and
220	  later).
221	  This includes different gradings like R-Car H3e, H3e-2G, and H3Ne.
222
223config ARCH_R8A77965
224	bool "ARM64 Platform support for R-Car M3-N"
225	select ARCH_RCAR_GEN3
226	select SYSC_R8A77965
227	help
228	  This enables support for the Renesas R-Car M3-N SoC.
229	  This includes different gradings like R-Car M3Ne and M3Ne-2G.
230
231config ARCH_R8A77960
232	bool "ARM64 Platform support for R-Car M3-W"
233	select ARCH_RCAR_GEN3
234	select SYSC_R8A77960
235	help
236	  This enables support for the Renesas R-Car M3-W SoC.
237
238config ARCH_R8A77961
239	bool "ARM64 Platform support for R-Car M3-W+"
240	select ARCH_RCAR_GEN3
241	select SYSC_R8A77961
242	help
243	  This enables support for the Renesas R-Car M3-W+ SoC.
244	  This includes different gradings like R-Car M3e and M3e-2G.
245
246config ARCH_R8A779F0
247	bool "ARM64 Platform support for R-Car S4-8"
248	select ARCH_RCAR_GEN4
249	select SYSC_R8A779F0
250	help
251	  This enables support for the Renesas R-Car S4-8 SoC.
252
253config ARCH_R8A77980
254	bool "ARM64 Platform support for R-Car V3H"
255	select ARCH_RCAR_GEN3
256	select SYSC_R8A77980
257	help
258	  This enables support for the Renesas R-Car V3H SoC.
259
260config ARCH_R8A77970
261	bool "ARM64 Platform support for R-Car V3M"
262	select ARCH_RCAR_GEN3
263	select SYSC_R8A77970
264	help
265	  This enables support for the Renesas R-Car V3M SoC.
266
267config ARCH_R8A779A0
268	bool "ARM64 Platform support for R-Car V3U"
269	select ARCH_RCAR_GEN4
270	select SYSC_R8A779A0
271	help
272	  This enables support for the Renesas R-Car V3U SoC.
273
274config ARCH_R8A779G0
275	bool "ARM64 Platform support for R-Car V4H"
276	select ARCH_RCAR_GEN4
277	select SYSC_R8A779G0
278	help
279	  This enables support for the Renesas R-Car V4H SoC.
280
281config ARCH_R8A779H0
282	bool "ARM64 Platform support for R-Car V4M"
283	select ARCH_RCAR_GEN4
284	select SYSC_R8A779H0
285	help
286	  This enables support for the Renesas R-Car V4M SoC.
287
288config ARCH_R8A774C0
289	bool "ARM64 Platform support for RZ/G2E"
290	select ARCH_RCAR_GEN3
291	select SYSC_R8A774C0
292	help
293	  This enables support for the Renesas RZ/G2E SoC.
294
295config ARCH_R8A774E1
296	bool "ARM64 Platform support for RZ/G2H"
297	select ARCH_RCAR_GEN3
298	select SYSC_R8A774E1
299	help
300	  This enables support for the Renesas RZ/G2H SoC.
301
302config ARCH_R8A774A1
303	bool "ARM64 Platform support for RZ/G2M"
304	select ARCH_RCAR_GEN3
305	select SYSC_R8A774A1
306	help
307	  This enables support for the Renesas RZ/G2M SoC.
308
309config ARCH_R8A774B1
310	bool "ARM64 Platform support for RZ/G2N"
311	select ARCH_RCAR_GEN3
312	select SYSC_R8A774B1
313	help
314	  This enables support for the Renesas RZ/G2N SoC.
315
316config ARCH_R9A07G043
317	bool "ARM64 Platform support for RZ/G2UL"
318	select ARCH_RZG2L
319	help
320	  This enables support for the Renesas RZ/G2UL SoC variants.
321
322config ARCH_R9A07G044
323	bool "ARM64 Platform support for RZ/G2L"
324	select ARCH_RZG2L
325	help
326	  This enables support for the Renesas RZ/G2L SoC variants.
327
328config ARCH_R9A07G054
329	bool "ARM64 Platform support for RZ/V2L"
330	select ARCH_RZG2L
331	help
332	  This enables support for the Renesas RZ/V2L SoC variants.
333
334config ARCH_R9A08G045
335	bool "ARM64 Platform support for RZ/G3S"
336	select ARCH_RZG2L
337	help
338	  This enables support for the Renesas RZ/G3S SoC variants.
339
340config ARCH_R9A09G011
341	bool "ARM64 Platform support for RZ/V2M"
342	select PM
343	select PM_GENERIC_DOMAINS
344	select PWC_RZV2M
345	help
346	  This enables support for the Renesas RZ/V2M SoC.
347
348config ARCH_R9A09G057
349	bool "ARM64 Platform support for RZ/V2H(P)"
350	select RENESAS_RZV2H_ICU
351	help
352	  This enables support for the Renesas RZ/V2H(P) SoC variants.
353
354endif # ARM64
355
356if RISCV
357
358config ARCH_R9A07G043
359	bool "RISC-V Platform support for RZ/Five"
360	depends on NONPORTABLE
361	depends on !DMA_DIRECT_REMAP
362	depends on RISCV_ALTERNATIVE
363	depends on !RISCV_ISA_ZICBOM
364	depends on RISCV_SBI
365	select ARCH_RZG2L
366	select AX45MP_L2_CACHE
367	select DMA_GLOBAL_POOL
368	select ERRATA_ANDES
369	select ERRATA_ANDES_CMO
370	help
371	  This enables support for the Renesas RZ/Five SoC.
372
373endif # RISCV
374
375config PWC_RZV2M
376	bool "Renesas RZ/V2M PWC support" if COMPILE_TEST
377
378config RST_RCAR
379	bool "Reset Controller support for R-Car" if COMPILE_TEST
380
381endif # SOC_RENESAS
382