xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 98abaf1370c932db38a23b270f86689b66b34cdf)
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 SYS_SUPPORTS_SH_CMT
79	select SYS_SUPPORTS_SH_TMU
80
81config ARCH_SH73A0
82	bool "SH-Mobile AG5 (R8A73A00)"
83	select ARCH_WANT_OPTIONAL_GPIOLIB
84	select ARM_GIC
85	select CPU_V7
86	select I2C
87	select SH_CLK_CPG
88	select RENESAS_INTC_IRQPIN
89	select SYS_SUPPORTS_SH_CMT
90	select SYS_SUPPORTS_SH_TMU
91
92config ARCH_R8A73A4
93	bool "R-Mobile APE6 (R8A73A40)"
94	select ARCH_WANT_OPTIONAL_GPIOLIB
95	select ARM_GIC
96	select CPU_V7
97	select SH_CLK_CPG
98	select RENESAS_IRQC
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_LAGER
249	bool "Lager board"
250	depends on ARCH_R8A7790
251	select USE_OF
252	select MICREL_PHY if SH_ETH
253	select SND_SOC_AK4642 if SND_SIMPLE_CARD
254
255config MACH_KOELSCH
256	bool "Koelsch board"
257	depends on ARCH_R8A7791
258	select USE_OF
259	select MICREL_PHY if SH_ETH
260
261config MACH_KZM9G
262	bool "KZM-A9-GT board"
263	depends on ARCH_SH73A0
264	select ARCH_HAS_OPP
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