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