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