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