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