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