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