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