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