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