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