xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 5016c81bf92eb01741fc71ce7fb8380183a6f66a)
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 ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
12	select NO_IOPORT_MAP
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	select SYS_SUPPORTS_EM_STI
23
24config ARCH_R7S72100
25	bool "RZ/A1H (R7S72100)"
26	select SYS_SUPPORTS_SH_MTU2
27
28config ARCH_R8A7779
29	bool "R-Car H1 (R8A77790)"
30	select RENESAS_INTC_IRQPIN
31	select SYS_SUPPORTS_SH_TMU
32
33config ARCH_R8A7790
34	bool "R-Car H2 (R8A77900)"
35	select RENESAS_IRQC
36	select SYS_SUPPORTS_SH_CMT
37
38config ARCH_R8A7791
39	bool "R-Car M2 (R8A77910)"
40	select RENESAS_IRQC
41	select SYS_SUPPORTS_SH_CMT
42
43comment "Renesas ARM SoCs Board Type"
44
45config MACH_GENMAI
46	bool "Genmai board"
47	depends on ARCH_R7S72100
48
49config MACH_KOELSCH
50	bool "Koelsch board"
51	depends on ARCH_R8A7791
52	select MICREL_PHY if SH_ETH
53
54config MACH_LAGER
55	bool "Lager board"
56	depends on ARCH_R8A7790
57	select MICREL_PHY if SH_ETH
58
59config MACH_MARZEN
60	bool "MARZEN board"
61	depends on ARCH_R8A7779
62	select REGULATOR_FIXED_VOLTAGE if REGULATOR
63
64comment "Renesas ARM SoCs System Configuration"
65endif
66
67if ARCH_SHMOBILE_LEGACY
68
69comment "Renesas ARM SoCs System Type"
70
71config ARCH_SH7372
72	bool "SH-Mobile AP4 (SH7372)"
73	select ARCH_WANT_OPTIONAL_GPIOLIB
74	select ARM_CPU_SUSPEND if PM || CPU_IDLE
75	select CPU_V7
76	select SH_CLK_CPG
77	select SYS_SUPPORTS_SH_CMT
78	select SYS_SUPPORTS_SH_TMU
79
80config ARCH_SH73A0
81	bool "SH-Mobile AG5 (R8A73A00)"
82	select ARCH_WANT_OPTIONAL_GPIOLIB
83	select ARM_GIC
84	select CPU_V7
85	select I2C
86	select SH_CLK_CPG
87	select RENESAS_INTC_IRQPIN
88	select SYS_SUPPORTS_SH_CMT
89	select SYS_SUPPORTS_SH_TMU
90
91config ARCH_R8A73A4
92	bool "R-Mobile APE6 (R8A73A40)"
93	select ARCH_WANT_OPTIONAL_GPIOLIB
94	select ARM_GIC
95	select CPU_V7
96	select SH_CLK_CPG
97	select RENESAS_IRQC
98	select ARCH_HAS_CPUFREQ
99	select ARCH_HAS_OPP
100	select SYS_SUPPORTS_SH_CMT
101	select SYS_SUPPORTS_SH_TMU
102
103config ARCH_R8A7740
104	bool "R-Mobile A1 (R8A77400)"
105	select ARCH_WANT_OPTIONAL_GPIOLIB
106	select ARM_GIC
107	select CPU_V7
108	select SH_CLK_CPG
109	select RENESAS_INTC_IRQPIN
110	select SYS_SUPPORTS_SH_CMT
111	select SYS_SUPPORTS_SH_TMU
112
113config ARCH_R8A7778
114	bool "R-Car M1A (R8A77781)"
115	select ARCH_WANT_OPTIONAL_GPIOLIB
116	select CPU_V7
117	select SH_CLK_CPG
118	select ARM_GIC
119	select SYS_SUPPORTS_SH_TMU
120	select RENESAS_INTC_IRQPIN
121
122config ARCH_R8A7779
123	bool "R-Car H1 (R8A77790)"
124	select ARCH_WANT_OPTIONAL_GPIOLIB
125	select ARM_GIC
126	select CPU_V7
127	select SH_CLK_CPG
128	select RENESAS_INTC_IRQPIN
129	select SYS_SUPPORTS_SH_TMU
130
131config ARCH_R8A7790
132	bool "R-Car H2 (R8A77900)"
133	select ARCH_WANT_OPTIONAL_GPIOLIB
134	select ARM_GIC
135	select CPU_V7
136	select MIGHT_HAVE_PCI
137	select SH_CLK_CPG
138	select RENESAS_IRQC
139	select SYS_SUPPORTS_SH_CMT
140	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
141
142config ARCH_R8A7791
143	bool "R-Car M2 (R8A77910)"
144	select ARCH_WANT_OPTIONAL_GPIOLIB
145	select ARM_GIC
146	select CPU_V7
147	select MIGHT_HAVE_PCI
148	select SH_CLK_CPG
149	select RENESAS_IRQC
150	select SYS_SUPPORTS_SH_CMT
151	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
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 Armadillo800 EVA board support
209	   which makes 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 SND_SOC_AK4554 if SND_SIMPLE_CARD
220	select SND_SOC_AK4642 if SND_SIMPLE_CARD
221	select USE_OF
222
223config MACH_BOCKW_REFERENCE
224	bool "BOCK-W  - Reference Device Tree Implementation"
225	depends on ARCH_R8A7778
226	select ARCH_REQUIRE_GPIOLIB
227	select REGULATOR_FIXED_VOLTAGE if REGULATOR
228	select USE_OF
229	---help---
230	   Use reference implementation of BockW board support
231	   which makes use of device tree at the expense
232	   of not supporting a number of devices.
233
234	   This is intended to aid developers
235
236config MACH_GENMAI
237	bool "Genmai board"
238	depends on ARCH_R7S72100
239	select USE_OF
240
241config MACH_MARZEN
242	bool "MARZEN board"
243	depends on ARCH_R8A7779
244	select ARCH_REQUIRE_GPIOLIB
245	select REGULATOR_FIXED_VOLTAGE if REGULATOR
246	select USE_OF
247
248config MACH_MARZEN_REFERENCE
249	bool "MARZEN board - Reference Device Tree Implementation"
250	depends on ARCH_R8A7779
251	select ARCH_REQUIRE_GPIOLIB
252	select REGULATOR_FIXED_VOLTAGE if REGULATOR
253	select USE_OF
254	---help---
255	   Use reference implementation of Marzen board support
256	   which makes use of device tree at the expense
257	   of not supporting a number of devices.
258
259	   This is intended to aid developers
260
261config MACH_LAGER
262	bool "Lager board"
263	depends on ARCH_R8A7790
264	select USE_OF
265	select MICREL_PHY if SH_ETH
266	select SND_SOC_AK4642 if SND_SIMPLE_CARD
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
327endmenu
328
329endif
330