Merge branch 'fixes' of git://git.linaro.org/people/rmk/linux-arm
[linux-2.6-block.git] / arch / cris / Kconfig
1 config MMU
2         bool
3         default y
4
5 config ZONE_DMA
6         bool
7         default y
8
9 config RWSEM_GENERIC_SPINLOCK
10         bool
11         default y
12
13 config RWSEM_XCHGADD_ALGORITHM
14         bool
15
16 config ARCH_HAS_ILOG2_U32
17         bool
18         default n
19
20 config ARCH_HAS_ILOG2_U64
21         bool
22         default n
23
24 config GENERIC_HWEIGHT
25         bool
26         default y
27
28 config GENERIC_CALIBRATE_DELAY
29         bool
30         default y
31
32 config NO_IOPORT
33         def_bool y
34
35 config FORCE_MAX_ZONEORDER
36         int
37         default 6
38
39 config CRIS
40         bool
41         default y
42         select HAVE_IDE
43         select GENERIC_ATOMIC64
44         select HAVE_GENERIC_HARDIRQS
45         select HAVE_UID16
46         select VIRT_TO_BUS
47         select ARCH_WANT_IPC_PARSE_VERSION
48         select GENERIC_IRQ_SHOW
49         select GENERIC_IOMAP
50         select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
51         select GENERIC_CMOS_UPDATE
52         select MODULES_USE_ELF_RELA
53         select CLONE_BACKWARDS2
54         select OLD_SIGSUSPEND
55         select OLD_SIGACTION
56
57 config HZ
58         int
59         default 100
60
61 source "init/Kconfig"
62
63 source "kernel/Kconfig.freezer"
64
65 menu "General setup"
66
67 source "fs/Kconfig.binfmt"
68
69 config ETRAX_CMDLINE
70         string "Kernel command line"
71         default "root=/dev/mtdblock3"
72         help
73           Pass additional commands to the kernel.
74
75 config ETRAX_WATCHDOG
76         bool "Enable ETRAX watchdog"
77         help
78           Enable the built-in watchdog timer support on ETRAX based embedded
79           network computers.
80
81 config ETRAX_WATCHDOG_NICE_DOGGY
82         bool "Disable watchdog during Oops printouts"
83         depends on ETRAX_WATCHDOG
84         help
85           By enabling this you make sure that the watchdog does not bite while
86           printing oopses. Recommended for development systems but not for
87           production releases.
88
89 config ETRAX_FAST_TIMER
90        bool "Enable ETRAX fast timer API"
91        help
92          This options enables the API to a fast timer implementation using
93          timer1 to get sub jiffie resolution timers (primarily one-shot
94          timers).
95          This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
96
97 config ETRAX_KMALLOCED_MODULES
98         bool "Enable module allocation with kmalloc"
99         help
100           Enable module allocation with kmalloc instead of vmalloc.
101
102 source "kernel/Kconfig.preempt"
103
104 source mm/Kconfig
105
106 endmenu
107
108 menu "Hardware setup"
109
110 choice
111         prompt "Processor type"
112         default ETRAX100LX
113
114 config ETRAX100LX
115         bool "ETRAX-100LX-v1"
116         select ARCH_USES_GETTIMEOFFSET
117         help
118           Support version 1 of the ETRAX 100LX.
119
120 config ETRAX100LX_V2
121         bool "ETRAX-100LX-v2"
122         select ARCH_USES_GETTIMEOFFSET
123         help
124           Support version 2 of the ETRAX 100LX.
125
126 config SVINTO_SIM
127         bool "ETRAX-100LX-for-xsim-simulator"
128         select ARCH_USES_GETTIMEOFFSET
129         help
130           Support the xsim ETRAX Simulator.
131
132 config ETRAXFS
133         bool "ETRAX-FS-V32"
134         select CPU_FREQ_TABLE if CPU_FREQ
135         help
136           Support CRIS V32.
137
138 config CRIS_MACH_ARTPEC3
139         bool "ARTPEC-3"
140         select CPU_FREQ_TABLE if CPU_FREQ
141         help
142           Support Axis ARTPEC-3.
143
144 endchoice
145
146 config ETRAX_ARCH_V10
147        bool
148        default y if ETRAX100LX || ETRAX100LX_V2
149        default n if !(ETRAX100LX || ETRAX100LX_V2)
150
151 config ETRAX_ARCH_V32
152        bool
153        default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
154        default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
155
156 config ETRAX_DRAM_SIZE
157         int "DRAM size (dec, in MB)"
158         default "8"
159         help
160           Size of DRAM (decimal in MB) typically 2, 8 or 16.
161
162 config ETRAX_VMEM_SIZE
163        int "Video memory size (dec, in MB)"
164        depends on ETRAX_ARCH_V32 && !ETRAXFS
165        default 8 if !ETRAXFS
166        help
167         Size of Video accessible memory (decimal, in MB).
168
169 config ETRAX_FLASH_BUSWIDTH
170         int "Buswidth of NOR flash in bytes"
171         default "2"
172         help
173           Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
174
175 config ETRAX_FLASH1_SIZE
176        int "FLASH1 size (dec, in MB. 0 = Unknown)"
177        default "0"
178
179 choice
180         prompt "Product debug-port"
181         default ETRAX_DEBUG_PORT0
182
183 config ETRAX_DEBUG_PORT0
184         bool "Serial-0"
185         help
186           Choose a serial port for the ETRAX debug console.  Default to
187           port 0.
188
189 config ETRAX_DEBUG_PORT1
190         bool "Serial-1"
191         help
192           Use serial port 1 for the console.
193
194 config ETRAX_DEBUG_PORT2
195         bool "Serial-2"
196         help
197           Use serial port 2 for the console.
198
199 config ETRAX_DEBUG_PORT3
200         bool "Serial-3"
201         help
202           Use serial port 3 for the console.
203
204 config ETRAX_DEBUG_PORT_NULL
205         bool "disabled"
206         help
207           Disable serial-port debugging.
208
209 endchoice
210
211 choice
212         prompt "Kernel GDB port"
213         depends on ETRAX_KGDB
214         default ETRAX_KGDB_PORT0
215         help
216           Choose a serial port for kernel debugging.  NOTE: This port should
217           not be enabled under Drivers for built-in interfaces (as it has its
218           own initialization code) and should not be the same as the debug port.
219
220 config ETRAX_KGDB_PORT0
221         bool "Serial-0"
222         help
223           Use serial port 0 for kernel debugging.
224
225 config ETRAX_KGDB_PORT1
226         bool "Serial-1"
227         help
228           Use serial port 1 for kernel debugging.
229
230 config ETRAX_KGDB_PORT2
231         bool "Serial-2"
232         help
233           Use serial port 2 for kernel debugging.
234
235 config ETRAX_KGDB_PORT3
236         bool "Serial-3"
237         help
238           Use serial port 3 for kernel debugging.
239
240 endchoice
241
242 source arch/cris/arch-v10/Kconfig
243 source arch/cris/arch-v32/Kconfig
244
245 endmenu
246
247 source "net/Kconfig"
248
249 # bring in ETRAX built-in drivers
250 menu "Drivers for built-in interfaces"
251 source arch/cris/arch-v10/drivers/Kconfig
252 source arch/cris/arch-v32/drivers/Kconfig
253
254 config ETRAX_AXISFLASHMAP
255         bool "Axis flash-map support"
256         select MTD
257         select MTD_CFI
258         select MTD_CFI_AMDSTD
259         select MTD_JEDECPROBE if ETRAX_ARCH_V32
260         select MTD_BLOCK
261         select MTD_COMPLEX_MAPPINGS
262         help
263           This option enables MTD mapping of flash devices.  Needed to use
264           flash memories.  If unsure, say Y.
265
266 config ETRAX_SYNCHRONOUS_SERIAL
267         bool "Synchronous serial-port support"
268         help
269           Select this to enable the synchronous serial port driver.
270
271 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
272         bool "Synchronous serial port 0 enabled"
273         depends on ETRAX_SYNCHRONOUS_SERIAL
274         help
275           Enabled synchronous serial port 0.
276
277 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
278         bool "Enable DMA on synchronous serial port 0."
279         depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
280         help
281           A synchronous serial port can run in manual or DMA mode.
282           Selecting this option will make it run in DMA mode.
283
284 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
285         bool "Synchronous serial port 1 enabled"
286         depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
287         help
288           Enabled synchronous serial port 1.
289
290 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
291         bool "Enable DMA on synchronous serial port 1."
292         depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
293         help
294           A synchronous serial port can run in manual or DMA mode.
295           Selecting this option will make it run in DMA mode.
296
297 choice
298         prompt "Network LED behavior"
299         depends on ETRAX_ETHERNET
300         default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
301
302 config ETRAX_NETWORK_LED_ON_WHEN_LINK
303         bool "LED_on_when_link"
304         help
305           Selecting LED_on_when_link will light the LED when there is a
306           connection and will flash off when there is activity.
307
308           Selecting LED_on_when_activity will light the LED only when
309           there is activity.
310
311           This setting will also affect the behaviour of other activity LEDs
312           e.g. Bluetooth.
313
314 config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
315         bool "LED_on_when_activity"
316         help
317           Selecting LED_on_when_link will light the LED when there is a
318           connection and will flash off when there is activity.
319
320           Selecting LED_on_when_activity will light the LED only when
321           there is activity.
322
323           This setting will also affect the behaviour of other activity LEDs
324           e.g. Bluetooth.
325
326 endchoice
327
328 choice
329         prompt "Ser0 DMA out channel"
330         depends on ETRAX_SERIAL_PORT0
331         default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
332         default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
333
334 config ETRAX_SERIAL_PORT0_NO_DMA_OUT
335         bool "Ser0 uses no DMA for output"
336         help
337           Do not use DMA for ser0 output.
338
339 config ETRAX_SERIAL_PORT0_DMA6_OUT
340         bool "Ser0 uses DMA6 for output"
341         depends on ETRAXFS
342         help
343           Enables the DMA6 output channel for ser0 (ttyS0).
344           If you do not enable DMA, an interrupt for each character will be
345           used when transmitting data.
346           Normally you want to use DMA, unless you use the DMA channel for
347           something else.
348
349 config ETRAX_SERIAL_PORT0_DMA0_OUT
350         bool "Ser0 uses DMA0 for output"
351         depends on CRIS_MACH_ARTPEC3
352         help
353           Enables the DMA0 output channel for ser0 (ttyS0).
354           If you do not enable DMA, an interrupt for each character will be
355           used when transmitting data.
356           Normally you want to use DMA, unless you use the DMA channel for
357           something else.
358
359 endchoice
360
361 choice
362         prompt "Ser0 DMA in channel "
363         depends on ETRAX_SERIAL_PORT0
364         default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
365         default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
366         help
367           What DMA channel to use for ser0.
368
369 config ETRAX_SERIAL_PORT0_NO_DMA_IN
370         bool "Ser0 uses no DMA for input"
371         help
372           Do not use DMA for ser0 input.
373
374 config ETRAX_SERIAL_PORT0_DMA7_IN
375         bool "Ser0 uses DMA7 for input"
376         depends on ETRAXFS
377         help
378           Enables the DMA7 input channel for ser0 (ttyS0).
379           If you do not enable DMA, an interrupt for each character will be
380           used when receiving data.
381           Normally you want to use DMA, unless you use the DMA channel for
382           something else.
383
384 config ETRAX_SERIAL_PORT0_DMA1_IN
385         bool "Ser0 uses DMA1 for input"
386         depends on CRIS_MACH_ARTPEC3
387         help
388           Enables the DMA1 input channel for ser0 (ttyS0).
389           If you do not enable DMA, an interrupt for each character will be
390           used when receiving data.
391           Normally you want to use DMA, unless you use the DMA channel for
392           something else.
393
394 endchoice
395
396 choice
397         prompt "Ser1 DMA in channel "
398         depends on ETRAX_SERIAL_PORT1
399         default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
400         default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
401         help
402           What DMA channel to use for ser1.
403
404 config ETRAX_SERIAL_PORT1_NO_DMA_IN
405         bool "Ser1 uses no DMA for input"
406         help
407           Do not use DMA for ser1 input.
408
409 config ETRAX_SERIAL_PORT1_DMA5_IN
410         bool "Ser1 uses DMA5 for input"
411         depends on ETRAX_ARCH_V32
412         help
413           Enables the DMA5 input channel for ser1 (ttyS1).
414           If you do not enable DMA, an interrupt for each character will be
415           used when receiving data.
416           Normally you want this on, unless you use the DMA channel for
417           something else.
418
419 config ETRAX_SERIAL_PORT1_DMA9_IN
420         depends on ETRAX_ARCH_V10
421         bool "Ser1 uses DMA9 for input"
422
423 endchoice
424
425
426 choice
427         prompt "Ser1 DMA out channel"
428         depends on ETRAX_SERIAL_PORT1
429         default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
430         default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
431         help
432           What DMA channel to use for ser1.
433
434 config ETRAX_SERIAL_PORT1_NO_DMA_OUT
435         bool "Ser1 uses no DMA for output"
436         help
437           Do not use DMA for ser1 output.
438
439 config ETRAX_SERIAL_PORT1_DMA8_OUT
440         depends on ETRAX_ARCH_V10
441         bool "Ser1 uses DMA8 for output"
442
443 config ETRAX_SERIAL_PORT1_DMA4_OUT
444         depends on ETRAX_ARCH_V32
445         bool "Ser1 uses DMA4 for output"
446         help
447           Enables the DMA4 output channel for ser1 (ttyS1).
448           If you do not enable DMA, an interrupt for each character will be
449           used when transmitting data.
450           Normally you want this on, unless you use the DMA channel for
451           something else.
452
453 endchoice
454
455 choice
456         prompt "Ser2 DMA out channel"
457         depends on ETRAX_SERIAL_PORT2
458         default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
459         default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
460
461 config ETRAX_SERIAL_PORT2_NO_DMA_OUT
462         bool "Ser2 uses no DMA for output"
463         help
464           Do not use DMA for ser2 output.
465
466 config ETRAX_SERIAL_PORT2_DMA2_OUT
467         bool "Ser2 uses DMA2 for output"
468         depends on ETRAXFS || ETRAX_ARCH_V10
469         help
470           Enables the DMA2 output channel for ser2 (ttyS2).
471           If you do not enable DMA, an interrupt for each character will be
472           used when transmitting data.
473           Normally you want to use DMA, unless you use the DMA channel for
474           something else.
475
476 config ETRAX_SERIAL_PORT2_DMA6_OUT
477         bool "Ser2 uses DMA6 for output"
478         depends on CRIS_MACH_ARTPEC3
479         help
480           Enables the DMA6 output channel for ser2 (ttyS2).
481           If you do not enable DMA, an interrupt for each character will be
482           used when transmitting data.
483           Normally you want to use DMA, unless you use the DMA channel for
484           something else.
485
486 endchoice
487
488 choice
489         prompt "Ser2 DMA in channel"
490         depends on ETRAX_SERIAL_PORT2
491         default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
492         default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
493         help
494           What DMA channel to use for ser2.
495
496 config ETRAX_SERIAL_PORT2_NO_DMA_IN
497         bool "Ser2 uses no DMA for input"
498         help
499           Do not use DMA for ser2 input.
500
501 config ETRAX_SERIAL_PORT2_DMA3_IN
502         bool "Ser2 uses DMA3 for input"
503         depends on ETRAXFS || ETRAX_ARCH_V10
504         help
505           Enables the DMA3 input channel for ser2 (ttyS2).
506           If you do not enable DMA, an interrupt for each character will be
507           used when receiving data.
508           Normally you want to use DMA, unless you use the DMA channel for
509           something else.
510
511 config ETRAX_SERIAL_PORT2_DMA7_IN
512         bool "Ser2 uses DMA7 for input"
513         depends on CRIS_MACH_ARTPEC3
514         help
515           Enables the DMA7 input channel for ser2 (ttyS2).
516           If you do not enable DMA, an interrupt for each character will be
517           used when receiving data.
518           Normally you want to use DMA, unless you use the DMA channel for
519           something else.
520
521 endchoice
522
523 choice
524         prompt "Ser3 DMA in channel"
525         depends on ETRAX_SERIAL_PORT3
526         default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
527         default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
528         help
529           What DMA channel to use for ser3.
530
531 config ETRAX_SERIAL_PORT3_NO_DMA_IN
532         bool "Ser3 uses no DMA for input"
533         help
534           Do not use DMA for ser3 input.
535
536 config ETRAX_SERIAL_PORT3_DMA5_IN
537         depends on ETRAX_ARCH_V10
538         bool "DMA 5"
539
540 endchoice
541
542 choice
543         prompt "Ser3 DMA out channel"
544         depends on ETRAX_SERIAL_PORT3
545         default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
546         default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
547
548 config ETRAX_SERIAL_PORT3_NO_DMA_OUT
549         bool "Ser3 uses no DMA for output"
550         help
551           Do not use DMA for ser3 output.
552
553 config ETRAX_SERIAL_PORT3_DMA4_OUT
554         depends on ETRAX_ARCH_V10
555         bool "DMA 4"
556
557 endchoice
558
559 endmenu
560
561 source "drivers/Kconfig"
562
563 source "fs/Kconfig"
564
565 source "arch/cris/Kconfig.debug"
566
567 source "security/Kconfig"
568
569 source "crypto/Kconfig"
570
571 source "lib/Kconfig"