xref: /openbmc/linux/drivers/soc/renesas/Kconfig (revision fb8d6c8d)
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_R8A7743
87	bool "RZ/G1M (R8A77430)"
88	select ARCH_RCAR_GEN2
89	select ARM_ERRATA_798181 if SMP
90	select SYSC_R8A7743
91
92config ARCH_R8A7744
93	bool "RZ/G1N (R8A77440)"
94	select ARCH_RCAR_GEN2
95	select ARM_ERRATA_798181 if SMP
96	select SYSC_R8A7743
97
98config ARCH_R8A7745
99	bool "RZ/G1E (R8A77450)"
100	select ARCH_RCAR_GEN2
101	select ARM_ERRATA_814220
102	select SYSC_R8A7745
103
104config ARCH_R8A77470
105	bool "RZ/G1C (R8A77470)"
106	select ARCH_RCAR_GEN2
107	select ARM_ERRATA_814220
108	select SYSC_R8A77470
109
110config ARCH_R8A7778
111	bool "R-Car M1A (R8A77781)"
112	select ARCH_RCAR_GEN1
113	select ARM_ERRATA_754322
114
115config ARCH_R8A7779
116	bool "R-Car H1 (R8A77790)"
117	select ARCH_RCAR_GEN1
118	select ARM_ERRATA_754322
119	select HAVE_ARM_SCU if SMP
120	select HAVE_ARM_TWD if SMP
121	select SYSC_R8A7779
122
123config ARCH_R8A7790
124	bool "R-Car H2 (R8A77900)"
125	select ARCH_RCAR_GEN2
126	select ARM_ERRATA_798181 if SMP
127	select ARM_ERRATA_814220
128	select I2C
129	select SYSC_R8A7790
130
131config ARCH_R8A7791
132	bool "R-Car M2-W (R8A77910)"
133	select ARCH_RCAR_GEN2
134	select ARM_ERRATA_798181 if SMP
135	select I2C
136	select SYSC_R8A7791
137
138config ARCH_R8A7792
139	bool "R-Car V2H (R8A77920)"
140	select ARCH_RCAR_GEN2
141	select ARM_ERRATA_798181 if SMP
142	select SYSC_R8A7792
143
144config ARCH_R8A7793
145	bool "R-Car M2-N (R8A7793)"
146	select ARCH_RCAR_GEN2
147	select ARM_ERRATA_798181 if SMP
148	select I2C
149	select SYSC_R8A7791
150
151config ARCH_R8A7794
152	bool "R-Car E2 (R8A77940)"
153	select ARCH_RCAR_GEN2
154	select ARM_ERRATA_814220
155	select SYSC_R8A7794
156
157config ARCH_R9A06G032
158	bool "RZ/N1D (R9A06G032)"
159	select ARCH_RZN1
160	select ARM_ERRATA_814220
161
162config ARCH_SH73A0
163	bool "SH-Mobile AG5 (R8A73A00)"
164	select ARCH_RMOBILE
165	select ARM_ERRATA_754322
166	select HAVE_ARM_SCU if SMP
167	select HAVE_ARM_TWD if SMP
168	select RENESAS_INTC_IRQPIN
169
170endif # ARM
171
172if ARM64
173
174config ARCH_R8A774A1
175	bool "Renesas RZ/G2M SoC Platform"
176	select ARCH_RCAR_GEN3
177	select SYSC_R8A774A1
178	help
179	  This enables support for the Renesas RZ/G2M SoC.
180
181config ARCH_R8A774C0
182	bool "Renesas RZ/G2E SoC Platform"
183	select ARCH_RCAR_GEN3
184	select SYSC_R8A774C0
185	help
186	  This enables support for the Renesas RZ/G2E SoC.
187
188config ARCH_R8A7795
189	bool "Renesas R-Car H3 SoC Platform"
190	select ARCH_RCAR_GEN3
191	select SYSC_R8A7795
192	help
193	  This enables support for the Renesas R-Car H3 SoC.
194
195config ARCH_R8A7796
196	bool "Renesas R-Car M3-W SoC Platform"
197	select ARCH_RCAR_GEN3
198	select SYSC_R8A7796
199	help
200	  This enables support for the Renesas R-Car M3-W SoC.
201
202config ARCH_R8A77965
203	bool "Renesas R-Car M3-N SoC Platform"
204	select ARCH_RCAR_GEN3
205	select SYSC_R8A77965
206	help
207	  This enables support for the Renesas R-Car M3-N SoC.
208
209config ARCH_R8A77970
210	bool "Renesas R-Car V3M SoC Platform"
211	select ARCH_RCAR_GEN3
212	select SYSC_R8A77970
213	help
214	  This enables support for the Renesas R-Car V3M SoC.
215
216config ARCH_R8A77980
217	bool "Renesas R-Car V3H SoC Platform"
218	select ARCH_RCAR_GEN3
219	select SYSC_R8A77980
220	help
221	  This enables support for the Renesas R-Car V3H SoC.
222
223config ARCH_R8A77990
224	bool "Renesas R-Car E3 SoC Platform"
225	select ARCH_RCAR_GEN3
226	select SYSC_R8A77990
227	help
228	  This enables support for the Renesas R-Car E3 SoC.
229
230config ARCH_R8A77995
231	bool "Renesas R-Car D3 SoC Platform"
232	select ARCH_RCAR_GEN3
233	select SYSC_R8A77995
234	help
235	  This enables support for the Renesas R-Car D3 SoC.
236
237endif # ARM64
238
239# SoC
240config SYSC_R8A7743
241	bool "RZ/G1M System Controller support" if COMPILE_TEST
242	select SYSC_RCAR
243
244config SYSC_R8A7745
245	bool "RZ/G1E System Controller support" if COMPILE_TEST
246	select SYSC_RCAR
247
248config SYSC_R8A77470
249	bool "RZ/G1C System Controller support" if COMPILE_TEST
250	select SYSC_RCAR
251
252config SYSC_R8A774A1
253	bool "RZ/G2M System Controller support" if COMPILE_TEST
254	select SYSC_RCAR
255
256config SYSC_R8A774C0
257	bool "RZ/G2E System Controller support" if COMPILE_TEST
258	select SYSC_RCAR
259
260config SYSC_R8A7779
261	bool "R-Car H1 System Controller support" if COMPILE_TEST
262	select SYSC_RCAR
263
264config SYSC_R8A7790
265	bool "R-Car H2 System Controller support" if COMPILE_TEST
266	select SYSC_RCAR
267
268config SYSC_R8A7791
269	bool "R-Car M2-W/N System Controller support" if COMPILE_TEST
270	select SYSC_RCAR
271
272config SYSC_R8A7792
273	bool "R-Car V2H System Controller support" if COMPILE_TEST
274	select SYSC_RCAR
275
276config SYSC_R8A7794
277	bool "R-Car E2 System Controller support" if COMPILE_TEST
278	select SYSC_RCAR
279
280config SYSC_R8A7795
281	bool "R-Car H3 System Controller support" if COMPILE_TEST
282	select SYSC_RCAR
283
284config SYSC_R8A7796
285	bool "R-Car M3-W System Controller support" if COMPILE_TEST
286	select SYSC_RCAR
287
288config SYSC_R8A77965
289	bool "R-Car M3-N System Controller support" if COMPILE_TEST
290	select SYSC_RCAR
291
292config SYSC_R8A77970
293	bool "R-Car V3M System Controller support" if COMPILE_TEST
294	select SYSC_RCAR
295
296config SYSC_R8A77980
297	bool "R-Car V3H System Controller support" if COMPILE_TEST
298	select SYSC_RCAR
299
300config SYSC_R8A77990
301	bool "R-Car E3 System Controller support" if COMPILE_TEST
302	select SYSC_RCAR
303
304config SYSC_R8A77995
305	bool "R-Car D3 System Controller support" if COMPILE_TEST
306	select SYSC_RCAR
307
308# Family
309config RST_RCAR
310	bool "R-Car Reset Controller support" if COMPILE_TEST
311
312config SYSC_RCAR
313	bool "R-Car System Controller support" if COMPILE_TEST
314
315config SYSC_RMOBILE
316	bool "R-Mobile System Controller support" if COMPILE_TEST
317
318endif # SOC_RENESAS
319