xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 57cc67d1422ebee313a62ff7b30981d945728094)
1config ARCH_SHMOBILE
2	bool
3
4config ARCH_RCAR_GEN1
5	bool
6	select RENESAS_INTC_IRQPIN
7	select SYS_SUPPORTS_SH_TMU
8
9config ARCH_RMOBILE
10	bool
11	select SYS_SUPPORTS_SH_CMT
12	select SYS_SUPPORTS_SH_TMU
13
14menuconfig ARCH_SHMOBILE_MULTI
15	bool "Renesas ARM SoCs" if ARCH_MULTI_V7
16	depends on MMU
17	select ARCH_SHMOBILE
18	select HAVE_ARM_SCU if SMP
19	select HAVE_ARM_TWD if SMP
20	select ARM_GIC
21	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
22	select NO_IOPORT_MAP
23	select PINCTRL
24	select ARCH_REQUIRE_GPIOLIB
25	select ARCH_HAS_OPP
26
27if ARCH_SHMOBILE_MULTI
28
29#comment "Renesas ARM SoCs System Type"
30
31config ARCH_EMEV2
32	bool "Emma Mobile EV2"
33	select SYS_SUPPORTS_EM_STI
34
35config ARCH_R7S72100
36	bool "RZ/A1H (R7S72100)"
37	select SYS_SUPPORTS_SH_MTU2
38
39config ARCH_R8A7779
40	bool "R-Car H1 (R8A77790)"
41	select ARCH_RCAR_GEN1
42
43config ARCH_R8A7790
44	bool "R-Car H2 (R8A77900)"
45	select RENESAS_IRQC
46	select SYS_SUPPORTS_SH_CMT
47
48config ARCH_R8A7791
49	bool "R-Car M2 (R8A77910)"
50	select RENESAS_IRQC
51	select SYS_SUPPORTS_SH_CMT
52
53comment "Renesas ARM SoCs Board Type"
54
55config MACH_GENMAI
56	bool "Genmai board"
57	depends on ARCH_R7S72100
58
59config MACH_KOELSCH
60	bool "Koelsch board"
61	depends on ARCH_R8A7791
62	select MICREL_PHY if SH_ETH
63
64config MACH_LAGER
65	bool "Lager board"
66	depends on ARCH_R8A7790
67	select MICREL_PHY if SH_ETH
68
69config MACH_MARZEN
70	bool "MARZEN board"
71	depends on ARCH_R8A7779
72	select REGULATOR_FIXED_VOLTAGE if REGULATOR
73
74comment "Renesas ARM SoCs System Configuration"
75endif
76
77if ARCH_SHMOBILE_LEGACY
78
79comment "Renesas ARM SoCs System Type"
80
81config ARCH_SH7372
82	bool "SH-Mobile AP4 (SH7372)"
83	select ARCH_RMOBILE
84	select ARCH_WANT_OPTIONAL_GPIOLIB
85	select ARM_CPU_SUSPEND if PM || CPU_IDLE
86	select CPU_V7
87	select SH_CLK_CPG
88	select SH_INTC
89
90config ARCH_SH73A0
91	bool "SH-Mobile AG5 (R8A73A00)"
92	select ARCH_RMOBILE
93	select ARCH_WANT_OPTIONAL_GPIOLIB
94	select ARM_GIC
95	select CPU_V7
96	select I2C
97	select SH_CLK_CPG
98	select SH_INTC
99	select RENESAS_INTC_IRQPIN
100
101config ARCH_R8A73A4
102	bool "R-Mobile APE6 (R8A73A40)"
103	select ARCH_RMOBILE
104	select ARCH_WANT_OPTIONAL_GPIOLIB
105	select ARM_GIC
106	select CPU_V7
107	select SH_CLK_CPG
108	select RENESAS_IRQC
109
110config ARCH_R8A7740
111	bool "R-Mobile A1 (R8A77400)"
112	select ARCH_RMOBILE
113	select ARCH_WANT_OPTIONAL_GPIOLIB
114	select ARM_GIC
115	select CPU_V7
116	select SH_CLK_CPG
117	select RENESAS_INTC_IRQPIN
118
119config ARCH_R8A7778
120	bool "R-Car M1A (R8A77781)"
121	select ARCH_RCAR_GEN1
122	select ARCH_WANT_OPTIONAL_GPIOLIB
123	select CPU_V7
124	select SH_CLK_CPG
125	select ARM_GIC
126
127config ARCH_R8A7779
128	bool "R-Car H1 (R8A77790)"
129	select ARCH_RCAR_GEN1
130	select ARCH_WANT_OPTIONAL_GPIOLIB
131	select ARM_GIC
132	select CPU_V7
133	select SH_CLK_CPG
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