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