xref: /linux/arch/arm/mach-shmobile/Kconfig (revision 03ab3da3b215bac4ebb093c808d54596e03e3225)
1config ARCH_SHMOBILE
2	bool
3
4config 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
16if ARCH_SHMOBILE_MULTI
17
18comment "Renesas ARM SoCs System Type"
19
20config ARCH_EMEV2
21	bool "Emma Mobile EV2"
22	select SYS_SUPPORTS_EM_STI
23
24config ARCH_R7S72100
25	bool "RZ/A1H (R7S72100)"
26	select SYS_SUPPORTS_SH_MTU2
27
28config ARCH_R8A7790
29	bool "R-Car H2 (R8A77900)"
30	select RENESAS_IRQC
31	select SYS_SUPPORTS_SH_CMT
32
33config ARCH_R8A7791
34	bool "R-Car M2 (R8A77910)"
35	select RENESAS_IRQC
36	select SYS_SUPPORTS_SH_CMT
37
38comment "Renesas ARM SoCs Board Type"
39
40config MACH_GENMAI
41	bool "Genmai board"
42	depends on ARCH_R7S72100
43
44config MACH_KOELSCH
45	bool "Koelsch board"
46	depends on ARCH_R8A7791
47	select MICREL_PHY if SH_ETH
48
49config MACH_LAGER
50	bool "Lager board"
51	depends on ARCH_R8A7790
52	select MICREL_PHY if SH_ETH
53
54comment "Renesas ARM SoCs System Configuration"
55endif
56
57if ARCH_SHMOBILE_LEGACY
58
59comment "Renesas ARM SoCs System Type"
60
61config ARCH_SH7372
62	bool "SH-Mobile AP4 (SH7372)"
63	select ARCH_WANT_OPTIONAL_GPIOLIB
64	select ARM_CPU_SUSPEND if PM || CPU_IDLE
65	select CPU_V7
66	select SH_CLK_CPG
67	select SYS_SUPPORTS_SH_CMT
68	select SYS_SUPPORTS_SH_TMU
69
70config ARCH_SH73A0
71	bool "SH-Mobile AG5 (R8A73A00)"
72	select ARCH_WANT_OPTIONAL_GPIOLIB
73	select ARM_GIC
74	select CPU_V7
75	select I2C
76	select SH_CLK_CPG
77	select RENESAS_INTC_IRQPIN
78	select SYS_SUPPORTS_SH_CMT
79	select SYS_SUPPORTS_SH_TMU
80
81config ARCH_R8A73A4
82	bool "R-Mobile APE6 (R8A73A40)"
83	select ARCH_WANT_OPTIONAL_GPIOLIB
84	select ARM_GIC
85	select CPU_V7
86	select SH_CLK_CPG
87	select RENESAS_IRQC
88	select ARCH_HAS_CPUFREQ
89	select ARCH_HAS_OPP
90	select SYS_SUPPORTS_SH_CMT
91	select SYS_SUPPORTS_SH_TMU
92
93config ARCH_R8A7740
94	bool "R-Mobile A1 (R8A77400)"
95	select ARCH_WANT_OPTIONAL_GPIOLIB
96	select ARM_GIC
97	select CPU_V7
98	select SH_CLK_CPG
99	select RENESAS_INTC_IRQPIN
100	select SYS_SUPPORTS_SH_CMT
101	select SYS_SUPPORTS_SH_TMU
102
103config ARCH_R8A7778
104	bool "R-Car M1A (R8A77781)"
105	select ARCH_WANT_OPTIONAL_GPIOLIB
106	select CPU_V7
107	select SH_CLK_CPG
108	select ARM_GIC
109	select SYS_SUPPORTS_SH_TMU
110	select RENESAS_INTC_IRQPIN
111
112config ARCH_R8A7779
113	bool "R-Car H1 (R8A77790)"
114	select ARCH_WANT_OPTIONAL_GPIOLIB
115	select ARM_GIC
116	select CPU_V7
117	select SH_CLK_CPG
118	select RENESAS_INTC_IRQPIN
119	select SYS_SUPPORTS_SH_TMU
120
121config ARCH_R8A7790
122	bool "R-Car H2 (R8A77900)"
123	select ARCH_WANT_OPTIONAL_GPIOLIB
124	select ARM_GIC
125	select CPU_V7
126	select MIGHT_HAVE_PCI
127	select SH_CLK_CPG
128	select RENESAS_IRQC
129	select SYS_SUPPORTS_SH_CMT
130	select ARCH_DMA_ADDR_T_64BIT if ARM_LPAE
131
132config ARCH_R8A7791
133	bool "R-Car M2 (R8A77910)"
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_R7S72100
144	bool "RZ/A1H (R7S72100)"
145	select ARCH_WANT_OPTIONAL_GPIOLIB
146	select ARM_GIC
147	select CPU_V7
148	select SH_CLK_CPG
149	select SYS_SUPPORTS_SH_MTU2
150
151comment "Renesas ARM SoCs Board Type"
152
153config MACH_APE6EVM
154	bool "APE6EVM board"
155	depends on ARCH_R8A73A4
156	select SMSC_PHY if SMSC911X
157	select USE_OF
158
159config MACH_APE6EVM_REFERENCE
160	bool "APE6EVM board - Reference Device Tree Implementation"
161	depends on ARCH_R8A73A4
162	select SMSC_PHY if SMSC911X
163	select USE_OF
164	---help---
165	   Use reference implementation of APE6EVM board support
166	   which makes a greater use of device tree at the expense
167	   of not supporting a number of devices.
168
169	   This is intended to aid developers
170
171config MACH_MACKEREL
172	bool "mackerel board"
173	depends on ARCH_SH7372
174	select ARCH_REQUIRE_GPIOLIB
175	select REGULATOR_FIXED_VOLTAGE if REGULATOR
176	select SMSC_PHY if SMSC911X
177	select SND_SOC_AK4642 if SND_SIMPLE_CARD
178	select USE_OF
179
180config MACH_ARMADILLO800EVA
181	bool "Armadillo-800 EVA board"
182	depends on ARCH_R8A7740
183	select ARCH_REQUIRE_GPIOLIB
184	select REGULATOR_FIXED_VOLTAGE if REGULATOR
185	select SMSC_PHY if SH_ETH
186	select SND_SOC_WM8978 if SND_SIMPLE_CARD
187	select USE_OF
188
189config MACH_ARMADILLO800EVA_REFERENCE
190	bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
191	depends on ARCH_R8A7740
192	select ARCH_REQUIRE_GPIOLIB
193	select REGULATOR_FIXED_VOLTAGE if REGULATOR
194	select SMSC_PHY if SH_ETH
195	select SND_SOC_WM8978 if SND_SIMPLE_CARD
196	select USE_OF
197	---help---
198	   Use reference implementation of Armadillo800 EVA board support
199	   which makes greater use of device tree at the expense
200	   of not supporting a number of devices.
201
202	   This is intended to aid developers
203
204config MACH_BOCKW
205	bool "BOCK-W platform"
206	depends on ARCH_R8A7778
207	select ARCH_REQUIRE_GPIOLIB
208	select REGULATOR_FIXED_VOLTAGE if REGULATOR
209	select SND_SOC_AK4554 if SND_SIMPLE_CARD
210	select SND_SOC_AK4642 if SND_SIMPLE_CARD
211	select USE_OF
212
213config MACH_BOCKW_REFERENCE
214	bool "BOCK-W  - Reference Device Tree Implementation"
215	depends on ARCH_R8A7778
216	select ARCH_REQUIRE_GPIOLIB
217	select REGULATOR_FIXED_VOLTAGE if REGULATOR
218	select USE_OF
219	---help---
220	   Use reference implementation of BockW board support
221	   which makes use of device tree at the expense
222	   of not supporting a number of devices.
223
224	   This is intended to aid developers
225
226config MACH_GENMAI
227	bool "Genmai board"
228	depends on ARCH_R7S72100
229	select USE_OF
230
231config MACH_MARZEN
232	bool "MARZEN board"
233	depends on ARCH_R8A7779
234	select ARCH_REQUIRE_GPIOLIB
235	select REGULATOR_FIXED_VOLTAGE if REGULATOR
236	select USE_OF
237
238config MACH_MARZEN_REFERENCE
239	bool "MARZEN board - Reference Device Tree Implementation"
240	depends on ARCH_R8A7779
241	select ARCH_REQUIRE_GPIOLIB
242	select REGULATOR_FIXED_VOLTAGE if REGULATOR
243	select USE_OF
244	---help---
245	   Use reference implementation of Marzen board support
246	   which makes use of device tree at the expense
247	   of not supporting a number of devices.
248
249	   This is intended to aid developers
250
251config MACH_LAGER
252	bool "Lager board"
253	depends on ARCH_R8A7790
254	select USE_OF
255	select MICREL_PHY if SH_ETH
256	select SND_SOC_AK4642 if SND_SIMPLE_CARD
257
258config MACH_KOELSCH
259	bool "Koelsch board"
260	depends on ARCH_R8A7791
261	select USE_OF
262	select MICREL_PHY if SH_ETH
263
264config MACH_KZM9G
265	bool "KZM-A9-GT board"
266	depends on ARCH_SH73A0
267	select ARCH_HAS_CPUFREQ
268	select ARCH_HAS_OPP
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