xref: /openbmc/linux/drivers/soc/renesas/Kconfig (revision 61bf3293)
1# SPDX-License-Identifier: GPL-2.0
2config 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 "Emma Mobile EV2"
53	select HAVE_ARM_SCU if SMP
54	select SYS_SUPPORTS_EM_STI
55
56config ARCH_R7S72100
57	bool "RZ/A1H (R7S72100)"
58	select ARM_ERRATA_754322
59	select PM
60	select PM_GENERIC_DOMAINS
61	select RENESAS_OSTM
62	select RENESAS_RZA1_IRQC
63	select SYS_SUPPORTS_SH_MTU2
64
65config ARCH_R7S9210
66	bool "RZ/A2 (R7S9210)"
67	select PM
68	select PM_GENERIC_DOMAINS
69	select RENESAS_OSTM
70	select RENESAS_RZA1_IRQC
71
72config ARCH_R8A73A4
73	bool "R-Mobile APE6 (R8A73A40)"
74	select ARCH_RMOBILE
75	select ARM_ERRATA_798181 if SMP
76	select ARM_ERRATA_814220
77	select HAVE_ARM_ARCH_TIMER
78	select RENESAS_IRQC
79
80config ARCH_R8A7740
81	bool "R-Mobile A1 (R8A77400)"
82	select ARCH_RMOBILE
83	select ARM_ERRATA_754322
84	select RENESAS_INTC_IRQPIN
85
86config ARCH_R8A7742
87	bool "RZ/G1H (R8A77420)"
88	select ARCH_RCAR_GEN2
89	select ARM_ERRATA_798181 if SMP
90	select ARM_ERRATA_814220
91	select SYSC_R8A7742
92
93config ARCH_R8A7743
94	bool "RZ/G1M (R8A77430)"
95	select ARCH_RCAR_GEN2
96	select ARM_ERRATA_798181 if SMP
97	select SYSC_R8A7743
98
99config ARCH_R8A7744
100	bool "RZ/G1N (R8A77440)"
101	select ARCH_RCAR_GEN2
102	select ARM_ERRATA_798181 if SMP
103	select SYSC_R8A7743
104
105config ARCH_R8A7745
106	bool "RZ/G1E (R8A77450)"
107	select ARCH_RCAR_GEN2
108	select ARM_ERRATA_814220
109	select SYSC_R8A7745
110
111config ARCH_R8A77470
112	bool "RZ/G1C (R8A77470)"
113	select ARCH_RCAR_GEN2
114	select ARM_ERRATA_814220
115	select SYSC_R8A77470
116
117config ARCH_R8A7778
118	bool "R-Car M1A (R8A77781)"
119	select ARCH_RCAR_GEN1
120	select ARM_ERRATA_754322
121
122config ARCH_R8A7779
123	bool "R-Car H1 (R8A77790)"
124	select ARCH_RCAR_GEN1
125	select ARM_ERRATA_754322
126	select ARM_GLOBAL_TIMER
127	select HAVE_ARM_SCU if SMP
128	select HAVE_ARM_TWD if SMP
129	select SYSC_R8A7779
130
131config ARCH_R8A7790
132	bool "R-Car H2 (R8A77900)"
133	select ARCH_RCAR_GEN2
134	select ARM_ERRATA_798181 if SMP
135	select ARM_ERRATA_814220
136	select I2C
137	select SYSC_R8A7790
138
139config ARCH_R8A7791
140	bool "R-Car M2-W (R8A77910)"
141	select ARCH_RCAR_GEN2
142	select ARM_ERRATA_798181 if SMP
143	select I2C
144	select SYSC_R8A7791
145
146config ARCH_R8A7792
147	bool "R-Car V2H (R8A77920)"
148	select ARCH_RCAR_GEN2
149	select ARM_ERRATA_798181 if SMP
150	select SYSC_R8A7792
151
152config ARCH_R8A7793
153	bool "R-Car M2-N (R8A7793)"
154	select ARCH_RCAR_GEN2
155	select ARM_ERRATA_798181 if SMP
156	select I2C
157	select SYSC_R8A7791
158
159config ARCH_R8A7794
160	bool "R-Car E2 (R8A77940)"
161	select ARCH_RCAR_GEN2
162	select ARM_ERRATA_814220
163	select SYSC_R8A7794
164
165config ARCH_R9A06G032
166	bool "RZ/N1D (R9A06G032)"
167	select ARCH_RZN1
168	select ARM_ERRATA_814220
169
170config ARCH_SH73A0
171	bool "SH-Mobile AG5 (R8A73A00)"
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_R8A774A1
184	bool "Renesas RZ/G2M SoC Platform"
185	select ARCH_RCAR_GEN3
186	select SYSC_R8A774A1
187	help
188	  This enables support for the Renesas RZ/G2M SoC.
189
190config ARCH_R8A774B1
191	bool "Renesas RZ/G2N SoC Platform"
192	select ARCH_RCAR_GEN3
193	select SYSC_R8A774B1
194	help
195	  This enables support for the Renesas RZ/G2N SoC.
196
197config ARCH_R8A774C0
198	bool "Renesas RZ/G2E SoC Platform"
199	select ARCH_RCAR_GEN3
200	select SYSC_R8A774C0
201	help
202	  This enables support for the Renesas RZ/G2E SoC.
203
204config ARCH_R8A77950
205	bool "Renesas R-Car H3 ES1.x SoC Platform"
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 "Renesas R-Car H3 ES2.0+ SoC Platform"
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
219config ARCH_R8A77960
220	bool "Renesas R-Car M3-W SoC Platform"
221	select ARCH_RCAR_GEN3
222	select SYSC_R8A77960
223	help
224	  This enables support for the Renesas R-Car M3-W SoC.
225
226config ARCH_R8A77961
227	bool "Renesas R-Car M3-W+ SoC Platform"
228	select ARCH_RCAR_GEN3
229	select SYSC_R8A77961
230	help
231	  This enables support for the Renesas R-Car M3-W+ SoC.
232
233config ARCH_R8A77965
234	bool "Renesas R-Car M3-N SoC Platform"
235	select ARCH_RCAR_GEN3
236	select SYSC_R8A77965
237	help
238	  This enables support for the Renesas R-Car M3-N SoC.
239
240config ARCH_R8A77970
241	bool "Renesas R-Car V3M SoC Platform"
242	select ARCH_RCAR_GEN3
243	select SYSC_R8A77970
244	help
245	  This enables support for the Renesas R-Car V3M SoC.
246
247config ARCH_R8A77980
248	bool "Renesas R-Car V3H SoC Platform"
249	select ARCH_RCAR_GEN3
250	select SYSC_R8A77980
251	help
252	  This enables support for the Renesas R-Car V3H SoC.
253
254config ARCH_R8A77990
255	bool "Renesas R-Car E3 SoC Platform"
256	select ARCH_RCAR_GEN3
257	select SYSC_R8A77990
258	help
259	  This enables support for the Renesas R-Car E3 SoC.
260
261config ARCH_R8A77995
262	bool "Renesas R-Car D3 SoC Platform"
263	select ARCH_RCAR_GEN3
264	select SYSC_R8A77995
265	help
266	  This enables support for the Renesas R-Car D3 SoC.
267
268endif # ARM64
269
270# SoC
271config SYSC_R8A7742
272	bool "RZ/G1H System Controller support" if COMPILE_TEST
273	select SYSC_RCAR
274
275config SYSC_R8A7743
276	bool "RZ/G1M System Controller support" if COMPILE_TEST
277	select SYSC_RCAR
278
279config SYSC_R8A7745
280	bool "RZ/G1E System Controller support" if COMPILE_TEST
281	select SYSC_RCAR
282
283config SYSC_R8A77470
284	bool "RZ/G1C System Controller support" if COMPILE_TEST
285	select SYSC_RCAR
286
287config SYSC_R8A774A1
288	bool "RZ/G2M System Controller support" if COMPILE_TEST
289	select SYSC_RCAR
290
291config SYSC_R8A774B1
292	bool "RZ/G2N System Controller support" if COMPILE_TEST
293	select SYSC_RCAR
294
295config SYSC_R8A774C0
296	bool "RZ/G2E System Controller support" if COMPILE_TEST
297	select SYSC_RCAR
298
299config SYSC_R8A7779
300	bool "R-Car H1 System Controller support" if COMPILE_TEST
301	select SYSC_RCAR
302
303config SYSC_R8A7790
304	bool "R-Car H2 System Controller support" if COMPILE_TEST
305	select SYSC_RCAR
306
307config SYSC_R8A7791
308	bool "R-Car M2-W/N System Controller support" if COMPILE_TEST
309	select SYSC_RCAR
310
311config SYSC_R8A7792
312	bool "R-Car V2H System Controller support" if COMPILE_TEST
313	select SYSC_RCAR
314
315config SYSC_R8A7794
316	bool "R-Car E2 System Controller support" if COMPILE_TEST
317	select SYSC_RCAR
318
319config SYSC_R8A7795
320	bool "R-Car H3 System Controller support" if COMPILE_TEST
321	select SYSC_RCAR
322
323config SYSC_R8A77960
324	bool "R-Car M3-W System Controller support" if COMPILE_TEST
325	select SYSC_RCAR
326
327config SYSC_R8A77961
328	bool "R-Car M3-W+ System Controller support" if COMPILE_TEST
329	select SYSC_RCAR
330
331config SYSC_R8A77965
332	bool "R-Car M3-N System Controller support" if COMPILE_TEST
333	select SYSC_RCAR
334
335config SYSC_R8A77970
336	bool "R-Car V3M System Controller support" if COMPILE_TEST
337	select SYSC_RCAR
338
339config SYSC_R8A77980
340	bool "R-Car V3H System Controller support" if COMPILE_TEST
341	select SYSC_RCAR
342
343config SYSC_R8A77990
344	bool "R-Car E3 System Controller support" if COMPILE_TEST
345	select SYSC_RCAR
346
347config SYSC_R8A77995
348	bool "R-Car D3 System Controller support" if COMPILE_TEST
349	select SYSC_RCAR
350
351# Family
352config RST_RCAR
353	bool "R-Car Reset Controller support" if COMPILE_TEST
354
355config SYSC_RCAR
356	bool "R-Car System Controller support" if COMPILE_TEST
357
358config SYSC_RMOBILE
359	bool "R-Mobile System Controller support" if COMPILE_TEST
360
361endif # SOC_RENESAS
362