xref: /linux/arch/arm/mach-shmobile/Kconfig (revision fd071b669ee2405e986636e389a3d1b6776e50a0)
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 HAVE_ARM_ARCH_TIMER
65	select SH_CLK_CPG
66	select RENESAS_IRQC
67
68config ARCH_R8A7740
69	bool "R-Mobile A1 (R8A77400)"
70	select ARCH_WANT_OPTIONAL_GPIOLIB
71	select ARM_GIC
72	select CPU_V7
73	select SH_CLK_CPG
74	select RENESAS_INTC_IRQPIN
75
76config ARCH_R8A7778
77	bool "R-Car M1A (R8A77781)"
78	select ARCH_WANT_OPTIONAL_GPIOLIB
79	select CPU_V7
80	select SH_CLK_CPG
81	select ARM_GIC
82	select USB_ARCH_HAS_EHCI
83	select USB_ARCH_HAS_OHCI
84
85config ARCH_R8A7779
86	bool "R-Car H1 (R8A77790)"
87	select ARCH_WANT_OPTIONAL_GPIOLIB
88	select ARM_GIC
89	select CPU_V7
90	select SH_CLK_CPG
91	select USB_ARCH_HAS_EHCI
92	select USB_ARCH_HAS_OHCI
93	select RENESAS_INTC_IRQPIN
94
95config ARCH_R8A7790
96	bool "R-Car H2 (R8A77900)"
97	select ARCH_WANT_OPTIONAL_GPIOLIB
98	select ARM_GIC
99	select CPU_V7
100	select HAVE_ARM_ARCH_TIMER
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_AG5EVM
113	bool "AG5EVM board"
114	depends on ARCH_SH73A0
115	select ARCH_REQUIRE_GPIOLIB
116	select REGULATOR_FIXED_VOLTAGE if REGULATOR
117	select SH_LCD_MIPI_DSI
118
119config MACH_APE6EVM
120	bool "APE6EVM board"
121	depends on ARCH_R8A73A4
122	select USE_OF
123
124config MACH_MACKEREL
125	bool "mackerel board"
126	depends on ARCH_SH7372
127	select ARCH_REQUIRE_GPIOLIB
128	select REGULATOR_FIXED_VOLTAGE if REGULATOR
129	select SND_SOC_AK4642 if SND_SIMPLE_CARD
130	select USE_OF
131
132config MACH_KOTA2
133	bool "KOTA2 board"
134	depends on ARCH_SH73A0
135	select ARCH_REQUIRE_GPIOLIB
136	select REGULATOR_FIXED_VOLTAGE if REGULATOR
137
138config MACH_ARMADILLO800EVA
139	bool "Armadillo-800 EVA board"
140	depends on ARCH_R8A7740
141	select ARCH_REQUIRE_GPIOLIB
142	select REGULATOR_FIXED_VOLTAGE if REGULATOR
143	select SND_SOC_WM8978 if SND_SIMPLE_CARD
144	select USE_OF
145
146config MACH_ARMADILLO800EVA_REFERENCE
147	bool "Armadillo-800 EVA board - Reference Device Tree Implementation"
148	depends on ARCH_R8A7740
149	select ARCH_REQUIRE_GPIOLIB
150	select REGULATOR_FIXED_VOLTAGE if REGULATOR
151	select SND_SOC_WM8978 if SND_SIMPLE_CARD
152	select USE_OF
153	---help---
154	   Use reference implementation of Aramdillo800 EVA board support
155	   which makes a greater use of device tree at the expense
156	   of not supporting a number of devices.
157
158	   This is intended to aid developers
159
160config MACH_BOCKW
161	bool "BOCK-W platform"
162	depends on ARCH_R8A7778
163	select ARCH_REQUIRE_GPIOLIB
164	select RENESAS_INTC_IRQPIN
165	select USE_OF
166
167config MACH_MARZEN
168	bool "MARZEN board"
169	depends on ARCH_R8A7779
170	select ARCH_REQUIRE_GPIOLIB
171	select REGULATOR_FIXED_VOLTAGE if REGULATOR
172
173config MACH_MARZEN_REFERENCE
174	bool "MARZEN board - Reference Device Tree Implementation"
175	depends on ARCH_R8A7779
176	select ARCH_REQUIRE_GPIOLIB
177	select REGULATOR_FIXED_VOLTAGE if REGULATOR
178	select USE_OF
179	---help---
180	   Use reference implementation of Marzen board support
181	   which makes use of device tree at the expense
182	   of not supporting a number of devices.
183
184	   This is intended to aid developers
185
186config MACH_LAGER
187	bool "Lager board"
188	depends on ARCH_R8A7790
189	select USE_OF
190
191config MACH_KZM9D
192	bool "KZM9D board"
193	depends on ARCH_EMEV2
194	select REGULATOR_FIXED_VOLTAGE if REGULATOR
195	select USE_OF
196
197config MACH_KZM9D_REFERENCE
198	bool "KZM9D board - Reference Device Tree Implementation"
199	depends on ARCH_EMEV2
200	select REGULATOR_FIXED_VOLTAGE if REGULATOR
201	select USE_OF
202	---help---
203	   Use reference implementation of KZM9D board support
204	   which makes a 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_KZM9G
210	bool "KZM-A9-GT board"
211	depends on ARCH_SH73A0
212	select ARCH_HAS_CPUFREQ
213	select ARCH_HAS_OPP
214	select ARCH_REQUIRE_GPIOLIB
215	select REGULATOR_FIXED_VOLTAGE if REGULATOR
216	select SND_SOC_AK4642 if SND_SIMPLE_CARD
217	select USE_OF
218
219config MACH_KZM9G_REFERENCE
220	bool "KZM-A9-GT board - Reference Device Tree Implementation"
221	depends on ARCH_SH73A0
222	select ARCH_REQUIRE_GPIOLIB
223	select REGULATOR_FIXED_VOLTAGE if REGULATOR
224	select SND_SOC_AK4642 if SND_SIMPLE_CARD
225	select USE_OF
226	---help---
227	   Use reference implementation of KZM-A9-GT board support
228	   which makes as greater use of device tree at the expense
229	   of not supporting a number of devices.
230
231	   This is intended to aid developers
232
233comment "SH-Mobile System Configuration"
234
235config CPU_HAS_INTEVT
236        bool
237	default y
238
239config SH_CLK_CPG
240	bool
241
242source "drivers/sh/Kconfig"
243
244endif
245
246if ARCH_SHMOBILE || ARCH_SHMOBILE_MULTI
247
248menu "Timer and clock configuration"
249
250config SHMOBILE_TIMER_HZ
251	int "Kernel HZ (jiffies per second)"
252	range 32 1024
253	default "128"
254	help
255	  Allows the configuration of the timer frequency. It is customary
256	  to have the timer interrupt run at 1000 Hz or 100 Hz, but in the
257	  case of low timer frequencies other values may be more suitable.
258	  SH-Mobile systems using a 32768 Hz RCLK for clock events may want
259	  to select a HZ value such as 128 that can evenly divide RCLK.
260	  A HZ value that does not divide evenly may cause timer drift.
261
262config SH_TIMER_CMT
263	bool "CMT timer driver"
264	default y
265	help
266	  This enables build of the CMT timer driver.
267
268config SH_TIMER_TMU
269	bool "TMU timer driver"
270	default y
271	help
272	  This enables build of the TMU timer driver.
273
274config EM_TIMER_STI
275	bool "STI timer driver"
276	default y
277	help
278	  This enables build of the STI timer driver.
279
280endmenu
281
282endif
283