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