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