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