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