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