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