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