blob: 0e9926d71a31bc34b3f00dfa7a89afedb40cc509 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
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
Christoph Lameter66701b12007-02-10 01:43:09 -080012config ZONE_DMA
13 bool
14 default y
15
Linus Torvalds1da177e2005-04-16 15:20:36 -070016config RWSEM_GENERIC_SPINLOCK
17 bool
18 default y
19
20config RWSEM_XCHGADD_ALGORITHM
21 bool
22
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010023config GENERIC_IOMAP
24 bool
25 default y
26
David Howellsf0d1b0b2006-12-08 02:37:49 -080027config ARCH_HAS_ILOG2_U32
28 bool
29 default n
30
31config ARCH_HAS_ILOG2_U64
32 bool
33 default n
34
Akinobu Mitae9f26df2006-03-26 01:39:21 -080035config GENERIC_FIND_NEXT_BIT
36 bool
37 default y
38
39config GENERIC_HWEIGHT
40 bool
41 default y
42
Linus Torvalds1da177e2005-04-16 15:20:36 -070043config GENERIC_CALIBRATE_DELAY
44 bool
45 default y
46
Al Viro5ea81762007-02-11 15:41:31 +000047config NO_IOPORT
48 def_bool y
49
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010050config NO_IOMEM
51 def_bool y
52
53config FORCE_MAX_ZONEORDER
54 int
55 default 6
56
Linus Torvalds1da177e2005-04-16 15:20:36 -070057config CRIS
58 bool
59 default y
60
61source "init/Kconfig"
62
63menu "General setup"
64
65source "fs/Kconfig.binfmt"
66
Jesper Nilssoneb2746d2007-11-14 17:00:52 -080067config GENERIC_HARDIRQS
68 bool
69 default y
70
Linus Torvalds1da177e2005-04-16 15:20:36 -070071config ETRAX_CMDLINE
72 string "Kernel command line"
73 default "root=/dev/mtdblock3"
74 help
75 Pass additional commands to the kernel.
76
77config 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
83config 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
91config 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
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010099config ETRAX_KMALLOCED_MODULES
100 bool "Enable module allocation with kmalloc"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100102 Enable module allocation with kmalloc instead of vmalloc.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100104config OOM_REBOOT
105 bool "Enable reboot at out of memory"
106
107source "kernel/Kconfig.preempt"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108
Dave Hansen3f22ab22005-06-23 00:07:43 -0700109source mm/Kconfig
110
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111endmenu
112
113menu "Hardware setup"
114
115choice
116 prompt "Processor type"
117 default ETRAX100LX
118
119config ETRAX100LX
120 bool "ETRAX-100LX-v1"
121 help
122 Support version 1 of the ETRAX 100LX.
123
124config ETRAX100LX_V2
125 bool "ETRAX-100LX-v2"
126 help
127 Support version 2 of the ETRAX 100LX.
128
129config SVINTO_SIM
130 bool "ETRAX-100LX-for-xsim-simulator"
131 help
132 Support the xsim ETRAX Simulator.
133
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100134config ETRAXFS
135 bool "ETRAX-FS-V32"
136 help
137 Support CRIS V32.
138
139config CRIS_MACH_ARTPEC3
140 bool "ARTPEC-3"
141 help
142 Support Axis ARTPEC-3.
143
Linus Torvalds1da177e2005-04-16 15:20:36 -0700144endchoice
145
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100146config ETRAX_VCS_SIM
147 bool "VCS Simulator"
148 help
149 Setup hardware to be run in the VCS simulator.
150
Linus Torvalds1da177e2005-04-16 15:20:36 -0700151config ETRAX_ARCH_V10
152 bool
153 default y if ETRAX100LX || ETRAX100LX_V2
154 default n if !(ETRAX100LX || ETRAX100LX_V2)
155
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100156config ETRAX_ARCH_V32
157 bool
158 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
159 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
160
Linus Torvalds1da177e2005-04-16 15:20:36 -0700161config 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
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100167config 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700174config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100175 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700176 default "2"
177 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100178 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
179
180config 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
186config ETRAX_FLASH1_SIZE
187 int "FLASH1 size (dec, in MB. 0 = Unknown)"
188 default "0"
189
190choice
191 prompt "Product debug-port"
192 default ETRAX_DEBUG_PORT0
193
194config 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
200config ETRAX_DEBUG_PORT1
201 bool "Serial-1"
202 help
203 Use serial port 1 for the console.
204
205config ETRAX_DEBUG_PORT2
206 bool "Serial-2"
207 help
208 Use serial port 2 for the console.
209
210config ETRAX_DEBUG_PORT3
211 bool "Serial-3"
212 help
213 Use serial port 3 for the console.
214
215config ETRAX_DEBUG_PORT_NULL
216 bool "disabled"
217 help
218 Disable serial-port debugging.
219
220endchoice
221
222choice
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
231config ETRAX_KGDB_PORT0
232 bool "Serial-0"
233 help
234 Use serial port 0 for kernel debugging.
235
236config ETRAX_KGDB_PORT1
237 bool "Serial-1"
238 help
239 Use serial port 1 for kernel debugging.
240
241config ETRAX_KGDB_PORT2
242 bool "Serial-2"
243 help
244 Use serial port 2 for kernel debugging.
245
246config ETRAX_KGDB_PORT3
247 bool "Serial-3"
248 help
249 Use serial port 3 for kernel debugging.
250
251endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700252
253source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800254source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255
256endmenu
257
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700258source "net/Kconfig"
259
Linus Torvalds1da177e2005-04-16 15:20:36 -0700260# bring in ETRAX built-in drivers
261menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800262source arch/cris/arch-v10/drivers/Kconfig
263source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700264
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100265choice
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
271config 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
278config 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
284endchoice
285
286choice
287 prompt "Network LED behavior"
288 depends on ETRAX_ETHERNET
289 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
290
291config 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
303config 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
315endchoice
316
317choice
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
323config 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
328config 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
338config 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
348endchoice
349
350choice
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
358config 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
363config 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
373config 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
383endchoice
384
385choice
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
393config 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
398config 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
408config ETRAX_SERIAL_PORT1_DMA9_IN
409 depends on ETRAX_ARCH_V10
410 bool "Ser1 uses DMA9 for input"
411
412endchoice
413
414
415choice
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
423config 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
428config ETRAX_SERIAL_PORT1_DMA8_OUT
429 depends on ETRAX_ARCH_V10
430 bool "Ser1 uses DMA8 for output"
431
432config 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
442endchoice
443
444choice
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
450config 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
455config 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
465config 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
475endchoice
476
477choice
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
485config 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
490config 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
500config 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
510endchoice
511
512choice
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
520config 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
525config ETRAX_SERIAL_PORT3_DMA5_IN
526 depends on ETRAX_ARCH_V10
527 bool "DMA 5"
528
529config 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
539config 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
549endchoice
550
551choice
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
557config 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
562config ETRAX_SERIAL_PORT3_DMA4_OUT
563 depends on ETRAX_ARCH_V10
564 bool "DMA 4"
565
566config 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
576config 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
586endchoice
587
Linus Torvalds1da177e2005-04-16 15:20:36 -0700588endmenu
589
590source "drivers/base/Kconfig"
591
592# standard linux drivers
593source "drivers/mtd/Kconfig"
594
595source "drivers/parport/Kconfig"
596
597source "drivers/pnp/Kconfig"
598
599source "drivers/block/Kconfig"
600
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601source "drivers/ide/Kconfig"
602
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700603source "drivers/net/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700604
Jesper Nilsson7b275522007-11-14 17:00:59 -0800605source "drivers/i2c/Kconfig"
606
607source "drivers/rtc/Kconfig"
608
Linus Torvalds1da177e2005-04-16 15:20:36 -0700609#
610# input before char - char/joystick depends on it. As does USB.
611#
612source "drivers/input/Kconfig"
613
614source "drivers/char/Kconfig"
615
Linus Torvalds1da177e2005-04-16 15:20:36 -0700616source "fs/Kconfig"
617
Linus Torvalds1da177e2005-04-16 15:20:36 -0700618source "drivers/usb/Kconfig"
619
Linus Torvalds1da177e2005-04-16 15:20:36 -0700620source "arch/cris/Kconfig.debug"
621
622source "security/Kconfig"
623
624source "crypto/Kconfig"
625
626source "lib/Kconfig"