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