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