xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 1ead65812486cda65093683a99b8907a7242fa93)
1config ARCH_SHMOBILE
2	bool
3
4config ARCH_SHMOBILE_MULTI
5	bool "Renesas ARM SoCs" if ARCH_MULTI_V7
6	depends on MMU
7	select ARCH_SHMOBILE
8	select CPU_V7
9	select GENERIC_CLOCKEVENTS
10	select HAVE_ARM_SCU if SMP
11	select HAVE_ARM_TWD if SMP
12	select HAVE_SMP
13	select ARM_GIC
14	select MIGHT_HAVE_CACHE_L2X0
15	select MIGHT_HAVE_PCI
16	select NO_IOPORT
17	select PINCTRL
18	select ARCH_REQUIRE_GPIOLIB
19	select CLKDEV_LOOKUP
20
21if ARCH_SHMOBILE_MULTI
22
23comment "Renesas ARM SoCs System Type"
24
25config ARCH_EMEV2
26	bool "Emma Mobile EV2"
27	select SYS_SUPPORTS_EM_STI
28
29config ARCH_R7S72100
30	bool "RZ/A1H (R7S72100)"
31	select SYS_SUPPORTS_SH_MTU2
32
33config ARCH_R8A7790
34	bool "R-Car H2 (R8A77900)"
35	select RENESAS_IRQC
36	select SYS_SUPPORTS_SH_CMT
37
38config ARCH_R8A7791
39	bool "R-Car M2 (R8A77910)"
40	select RENESAS_IRQC
41	select SYS_SUPPORTS_SH_CMT
42
43comment "Renesas ARM SoCs Board Type"
44
45config MACH_GENMAI
46	bool "Genmai board"
47	depends on ARCH_R7S72100
48
49config MACH_KOELSCH
50	bool "Koelsch board"
51	depends on ARCH_R8A7791
52
53config MACH_KZM9D
54	bool "KZM9D board"
55	depends on ARCH_EMEV2
56	select REGULATOR_FIXED_VOLTAGE if REGULATOR
57
58config MACH_LAGER
59	bool "Lager board"
60	depends on ARCH_R8A7790
61
62comment "Renesas ARM SoCs System Configuration"
63endif
64
65if ARCH_SHMOBILE_LEGACY
66
67comment "Renesas ARM SoCs System Type"
68
69config ARCH_SH7372
70	bool "SH-Mobile AP4 (SH7372)"
71	select ARCH_WANT_OPTIONAL_GPIOLIB
72	select ARM_CPU_SUSPEND if PM || CPU_IDLE
73	select CPU_V7
74	select SH_CLK_CPG
75	select SYS_SUPPORTS_SH_CMT
76	select SYS_SUPPORTS_SH_TMU
77
78config ARCH_SH73A0
79	bool "SH-Mobile AG5 (R8A73A00)"
80	select ARCH_WANT_OPTIONAL_GPIOLIB
81	select ARM_GIC
82	select CPU_V7
83	select I2C
84	select SH_CLK_CPG
85	select RENESAS_INTC_IRQPIN
86	select SYS_SUPPORTS_SH_CMT
87	select SYS_SUPPORTS_SH_TMU
88
89config ARCH_R8A73A4
90	bool "R-Mobile APE6 (R8A73A40)"
91	select ARCH_WANT_OPTIONAL_GPIOLIB
92	select ARM_GIC
93	select CPU_V7
94	select SH_CLK_CPG
95	select RENESAS_IRQC
96	select ARCH_HAS_CPUFREQ
97	select ARCH_HAS_OPP
98	select SYS_SUPPORTS_SH_CMT
99	select SYS_SUPPORTS_SH_TMU
100
101config ARCH_R8A7740
102	bool "R-Mobile A1 (R8A77400)"
103	select ARCH_WANT_OPTIONAL_GPIOLIB
104	select ARM_GIC
105	select CPU_V7
106	select SH_CLK_CPG
107	select RENESAS_INTC_IRQPIN
108	select SYS_SUPPORTS_SH_CMT
109	select SYS_SUPPORTS_SH_TMU
110
111config ARCH_R8A7778
112	bool "R-Car M1A (R8A77781)"
113	select ARCH_WANT_OPTIONAL_GPIOLIB
114	select CPU_V7
115	select SH_CLK_CPG
116	select ARM_GIC
117	select USB_ARCH_HAS_EHCI
118	select USB_ARCH_HAS_OHCI
119	select SYS_SUPPORTS_SH_TMU
120
121config ARCH_R8A7779
122	bool "R-Car H1 (R8A77790)"
123	select ARCH_WANT_OPTIONAL_GPIOLIB
124	select ARM_GIC
125	select CPU_V7
126	select SH_CLK_CPG
127	select USB_ARCH_HAS_EHCI
128	select USB_ARCH_HAS_OHCI
129	select RENESAS_INTC_IRQPIN
130	select SYS_SUPPORTS_SH_TMU
131
132config ARCH_R8A7790
133	bool "R-Car H2 (R8A77900)"
134	select ARCH_WANT_OPTIONAL_GPIOLIB
135	select ARM_GIC
136	select CPU_V7
137	select MIGHT_HAVE_PCI
138	select SH_CLK_CPG
139	select RENESAS_IRQC
140	select SYS_SUPPORTS_SH_CMT
141
142config ARCH_R8A7791
143	bool "R-Car M2 (R8A77910)"
144	select ARCH_WANT_OPTIONAL_GPIOLIB
145	select ARM_GIC
146	select CPU_V7
147	select MIGHT_HAVE_PCI
148	select SH_CLK_CPG
149	select RENESAS_IRQC
150	select SYS_SUPPORTS_SH_CMT
151
152config ARCH_EMEV2
153	bool "Emma Mobile EV2"
154	select ARCH_WANT_OPTIONAL_GPIOLIB
155	select ARM_GIC
156	select CPU_V7
157	select MIGHT_HAVE_PCI
158	select USE_OF
159	select AUTO_ZRELADDR
160	select SYS_SUPPORTS_EM_STI
161
162config ARCH_R7S72100
163	bool "RZ/A1H (R7S72100)"
164	select ARCH_WANT_OPTIONAL_GPIOLIB
165	select ARM_GIC
166	select CPU_V7
167	select SH_CLK_CPG
168	select SYS_SUPPORTS_SH_MTU2
169
170comment "Renesas ARM SoCs Board Type"
171
172config MACH_APE6EVM
173	bool "APE6EVM board"
174	depends on ARCH_R8A73A4
175	select USE_OF
176
177config MACH_APE6EVM_REFERENCE
178	bool "APE6EVM board - Reference Device Tree Implementation"
179	depends on ARCH_R8A73A4
180	select USE_OF
181	---help---
182	   Use reference implementation of APE6EVM board support
183	   which makes a greater use of device tree at the expense
184	   of not supporting a number of devices.
185
186	   This is intended to aid developers
187
188config MACH_MACKEREL
189	bool "mackerel board"
190	depends on ARCH_SH7372
191	select ARCH_REQUIRE_GPIOLIB
192	select REGULATOR_FIXED_VOLTAGE if REGULATOR
193	select SND_SOC_AK4642 if SND_SIMPLE_CARD
194	select USE_OF
195
196config MACH_ARMADILLO800EVA
197	bool "Armadillo-800 EVA board"
198	depends on ARCH_R8A7740
199	select ARCH_REQUIRE_GPIOLIB
200	select REGULATOR_FIXED_VOLTAGE if REGULATOR
201	select SND_SOC_WM8978 if SND_SIMPLE_CARD
202	select USE_OF
203
204config MACH_ARMADILLO800EVA_REFERENCE
205	bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
206	depends on ARCH_R8A7740
207	select ARCH_REQUIRE_GPIOLIB
208	select REGULATOR_FIXED_VOLTAGE if REGULATOR
209	select SND_SOC_WM8978 if SND_SIMPLE_CARD
210	select USE_OF
211	---help---
212	   Use reference implementation of Aramdillo800 EVA board support
213	   which makes a greater use of device tree at the expense
214	   of not supporting a number of devices.
215
216	   This is intended to aid developers
217
218config MACH_BOCKW
219	bool "BOCK-W platform"
220	depends on ARCH_R8A7778
221	select ARCH_REQUIRE_GPIOLIB
222	select RENESAS_INTC_IRQPIN
223	select REGULATOR_FIXED_VOLTAGE if REGULATOR
224	select USE_OF
225	select SND_SOC_AK4554 if SND_SIMPLE_CARD
226	select SND_SOC_AK4642 if SND_SIMPLE_CARD
227
228config MACH_BOCKW_REFERENCE
229	bool "BOCK-W  - Reference Device Tree Implementation"
230	depends on ARCH_R8A7778
231	select ARCH_REQUIRE_GPIOLIB
232	select RENESAS_INTC_IRQPIN
233	select REGULATOR_FIXED_VOLTAGE if REGULATOR
234	select USE_OF
235	---help---
236	   Use reference implementation of BockW board support
237	   which makes use of device tree at the expense
238	   of not supporting a number of devices.
239
240	   This is intended to aid developers
241
242config MACH_GENMAI
243	bool "Genmai board"
244	depends on ARCH_R7S72100
245	select USE_OF
246
247config MACH_GENMAI_REFERENCE
248	bool "Genmai board - Reference Device Tree Implementation"
249	depends on ARCH_R7S72100
250	select USE_OF
251	---help---
252	   Use reference implementation of Genmai board support
253	   which makes use of device tree at the expense
254	   of not supporting a number of devices.
255
256	   This is intended to aid developers
257
258config MACH_MARZEN
259	bool "MARZEN board"
260	depends on ARCH_R8A7779
261	select ARCH_REQUIRE_GPIOLIB
262	select REGULATOR_FIXED_VOLTAGE if REGULATOR
263	select USE_OF
264
265config MACH_MARZEN_REFERENCE
266	bool "MARZEN board - Reference Device Tree Implementation"
267	depends on ARCH_R8A7779
268	select ARCH_REQUIRE_GPIOLIB
269	select REGULATOR_FIXED_VOLTAGE if REGULATOR
270	select USE_OF
271	---help---
272	   Use reference implementation of Marzen board support
273	   which makes use of device tree at the expense
274	   of not supporting a number of devices.
275
276	   This is intended to aid developers
277
278config MACH_LAGER
279	bool "Lager board"
280	depends on ARCH_R8A7790
281	select USE_OF
282
283config MACH_KOELSCH
284	bool "Koelsch board"
285	depends on ARCH_R8A7791
286	select USE_OF
287	select MICREL_PHY if SH_ETH
288
289config MACH_KZM9G
290	bool "KZM-A9-GT board"
291	depends on ARCH_SH73A0
292	select ARCH_HAS_CPUFREQ
293	select ARCH_HAS_OPP
294	select ARCH_REQUIRE_GPIOLIB
295	select REGULATOR_FIXED_VOLTAGE if REGULATOR
296	select SND_SOC_AK4642 if SND_SIMPLE_CARD
297	select USE_OF
298
299config MACH_KZM9G_REFERENCE
300	bool "KZM-A9-GT board - Reference Device Tree Implementation"
301	depends on ARCH_SH73A0
302	select ARCH_REQUIRE_GPIOLIB
303	select REGULATOR_FIXED_VOLTAGE if REGULATOR
304	select SND_SOC_AK4642 if SND_SIMPLE_CARD
305	select USE_OF
306	---help---
307	   Use reference implementation of KZM-A9-GT board support
308	   which makes as greater use of device tree at the expense
309	   of not supporting a number of devices.
310
311	   This is intended to aid developers
312
313comment "Renesas ARM SoCs System Configuration"
314
315config CPU_HAS_INTEVT
316        bool
317	default y
318
319config SH_CLK_CPG
320	bool
321
322source "drivers/sh/Kconfig"
323
324endif
325
326if ARCH_SHMOBILE
327
328menu "Timer and clock configuration"
329
330config SHMOBILE_TIMER_HZ
331	int "Kernel HZ (jiffies per second)"
332	range 32 1024
333	default "128"
334	help
335	  Allows the configuration of the timer frequency. It is customary
336	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
337	  case of low timer frequencies other values may be more suitable.
338	  Renesas ARM SoC systems using a 32768 Hz RCLK for clock events may
339	  want to select a HZ value such as 128 that can evenly divide RCLK.
340	  A HZ value that does not divide evenly may cause timer drift.
341
342endmenu
343
344endif
345