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