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