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