blob: dfddd33c92139fbfabc045b5e8da66f6764216d7 [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 FORCE_MAX_ZONEORDER
51 int
52 default 6
53
Linus Torvalds1da177e2005-04-16 15:20:36 -070054config CRIS
55 bool
56 default y
57
58source "init/Kconfig"
59
60menu "General setup"
61
62source "fs/Kconfig.binfmt"
63
Jesper Nilssoneb2746d2007-11-14 17:00:52 -080064config GENERIC_HARDIRQS
65 bool
66 default y
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068config 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
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010096config ETRAX_KMALLOCED_MODULES
97 bool "Enable module allocation with kmalloc"
Linus Torvalds1da177e2005-04-16 15:20:36 -070098 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010099 Enable module allocation with kmalloc instead of vmalloc.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700100
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100101config OOM_REBOOT
102 bool "Enable reboot at out of memory"
103
104source "kernel/Kconfig.preempt"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105
Dave Hansen3f22ab22005-06-23 00:07:43 -0700106source mm/Kconfig
107
Linus Torvalds1da177e2005-04-16 15:20:36 -0700108endmenu
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
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100131config 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141endchoice
142
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100143config ETRAX_VCS_SIM
144 bool "VCS Simulator"
145 help
146 Setup hardware to be run in the VCS simulator.
147
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148config ETRAX_ARCH_V10
149 bool
150 default y if ETRAX100LX || ETRAX100LX_V2
151 default n if !(ETRAX100LX || ETRAX100LX_V2)
152
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100153config ETRAX_ARCH_V32
154 bool
155 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
156 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
157
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158config 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
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100164config 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100172 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173 default "2"
174 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100175 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
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249
250source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800251source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700252
253endmenu
254
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700255source "net/Kconfig"
256
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257# bring in ETRAX built-in drivers
258menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800259source arch/cris/arch-v10/drivers/Kconfig
260source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100262choice
263 prompt "RTC chip"
264 depends on ETRAX_RTC
265 default ETRAX_PCF8563 if ETRAX_ARCH_V32
266 default ETRAX_DS1302 if ETRAX_ARCH_V10
267
268config ETRAX_DS1302
269 depends on ETRAX_ARCH_V10
270 bool "DS1302"
271 help
272 Enables the driver for the DS1302 Real-Time Clock battery-backed
273 chip on some products.
274
275config ETRAX_PCF8563
276 bool "PCF8563"
277 help
278 Enables the driver for the PCF8563 Real-Time Clock battery-backed
279 chip on some products.
280
281endchoice
282
283choice
284 prompt "Network LED behavior"
285 depends on ETRAX_ETHERNET
286 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
287
288config ETRAX_NETWORK_LED_ON_WHEN_LINK
289 bool "LED_on_when_link"
290 help
291 Selecting LED_on_when_link will light the LED when there is a
292 connection and will flash off when there is activity.
293
294 Selecting LED_on_when_activity will light the LED only when
295 there is activity.
296
297 This setting will also affect the behaviour of other activity LEDs
298 e.g. Bluetooth.
299
300config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
301 bool "LED_on_when_activity"
302 help
303 Selecting LED_on_when_link will light the LED when there is a
304 connection and will flash off when there is activity.
305
306 Selecting LED_on_when_activity will light the LED only when
307 there is activity.
308
309 This setting will also affect the behaviour of other activity LEDs
310 e.g. Bluetooth.
311
312endchoice
313
314choice
315 prompt "Ser0 DMA out channel"
316 depends on ETRAX_SERIAL_PORT0
317 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
318 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
319
320config ETRAX_SERIAL_PORT0_NO_DMA_OUT
321 bool "Ser0 uses no DMA for output"
322 help
323 Do not use DMA for ser0 output.
324
325config ETRAX_SERIAL_PORT0_DMA6_OUT
326 bool "Ser0 uses DMA6 for output"
327 depends on ETRAXFS
328 help
329 Enables the DMA6 output channel for ser0 (ttyS0).
330 If you do not enable DMA, an interrupt for each character will be
331 used when transmitting data.
332 Normally you want to use DMA, unless you use the DMA channel for
333 something else.
334
335config ETRAX_SERIAL_PORT0_DMA0_OUT
336 bool "Ser0 uses DMA0 for output"
337 depends on CRIS_MACH_ARTPEC3
338 help
339 Enables the DMA0 output channel for ser0 (ttyS0).
340 If you do not enable DMA, an interrupt for each character will be
341 used when transmitting data.
342 Normally you want to use DMA, unless you use the DMA channel for
343 something else.
344
345endchoice
346
347choice
348 prompt "Ser0 DMA in channel "
349 depends on ETRAX_SERIAL_PORT0
350 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
351 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
352 help
353 What DMA channel to use for ser0.
354
355config ETRAX_SERIAL_PORT0_NO_DMA_IN
356 bool "Ser0 uses no DMA for input"
357 help
358 Do not use DMA for ser0 input.
359
360config ETRAX_SERIAL_PORT0_DMA7_IN
361 bool "Ser0 uses DMA7 for input"
362 depends on ETRAXFS
363 help
364 Enables the DMA7 input channel for ser0 (ttyS0).
365 If you do not enable DMA, an interrupt for each character will be
366 used when receiving data.
367 Normally you want to use DMA, unless you use the DMA channel for
368 something else.
369
370config ETRAX_SERIAL_PORT0_DMA1_IN
371 bool "Ser0 uses DMA1 for input"
372 depends on CRIS_MACH_ARTPEC3
373 help
374 Enables the DMA1 input channel for ser0 (ttyS0).
375 If you do not enable DMA, an interrupt for each character will be
376 used when receiveing data.
377 Normally you want to use DMA, unless you use the DMA channel for
378 something else.
379
380endchoice
381
382choice
383 prompt "Ser1 DMA in channel "
384 depends on ETRAX_SERIAL_PORT1
385 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
386 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
387 help
388 What DMA channel to use for ser1.
389
390config ETRAX_SERIAL_PORT1_NO_DMA_IN
391 bool "Ser1 uses no DMA for input"
392 help
393 Do not use DMA for ser1 input.
394
395config ETRAX_SERIAL_PORT1_DMA5_IN
396 bool "Ser1 uses DMA5 for input"
397 depends on ETRAX_ARCH_V32
398 help
399 Enables the DMA5 input channel for ser1 (ttyS1).
400 If you do not enable DMA, an interrupt for each character will be
401 used when receiving data.
402 Normally you want this on, unless you use the DMA channel for
403 something else.
404
405config ETRAX_SERIAL_PORT1_DMA9_IN
406 depends on ETRAX_ARCH_V10
407 bool "Ser1 uses DMA9 for input"
408
409endchoice
410
411
412choice
413 prompt "Ser1 DMA out channel"
414 depends on ETRAX_SERIAL_PORT1
415 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
416 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
417 help
418 What DMA channel to use for ser1.
419
420config ETRAX_SERIAL_PORT1_NO_DMA_OUT
421 bool "Ser1 uses no DMA for output"
422 help
423 Do not use DMA for ser1 output.
424
425config ETRAX_SERIAL_PORT1_DMA8_OUT
426 depends on ETRAX_ARCH_V10
427 bool "Ser1 uses DMA8 for output"
428
429config ETRAX_SERIAL_PORT1_DMA4_OUT
430 depends on ETRAX_ARCH_V32
431 bool "Ser1 uses DMA4 for output"
432 help
433 Enables the DMA4 output channel for ser1 (ttyS1).
434 If you do not enable DMA, an interrupt for each character will be
435 used when transmitting data.
436 Normally you want this on, unless you use the DMA channel for
437 something else.
438
439endchoice
440
441choice
442 prompt "Ser2 DMA out channel"
443 depends on ETRAX_SERIAL_PORT2
444 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
445 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
446
447config ETRAX_SERIAL_PORT2_NO_DMA_OUT
448 bool "Ser2 uses no DMA for output"
449 help
450 Do not use DMA for ser2 output.
451
452config ETRAX_SERIAL_PORT2_DMA2_OUT
453 bool "Ser2 uses DMA2 for output"
454 depends on ETRAXFS || ETRAX_ARCH_V10
455 help
456 Enables the DMA2 output channel for ser2 (ttyS2).
457 If you do not enable DMA, an interrupt for each character will be
458 used when transmitting data.
459 Normally you want to use DMA, unless you use the DMA channel for
460 something else.
461
462config ETRAX_SERIAL_PORT2_DMA6_OUT
463 bool "Ser2 uses DMA6 for output"
464 depends on CRIS_MACH_ARTPEC3
465 help
466 Enables the DMA6 output channel for ser2 (ttyS2).
467 If you do not enable DMA, an interrupt for each character will be
468 used when transmitting data.
469 Normally you want to use DMA, unless you use the DMA channel for
470 something else.
471
472endchoice
473
474choice
475 prompt "Ser2 DMA in channel"
476 depends on ETRAX_SERIAL_PORT2
477 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
478 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
479 help
480 What DMA channel to use for ser2.
481
482config ETRAX_SERIAL_PORT2_NO_DMA_IN
483 bool "Ser2 uses no DMA for input"
484 help
485 Do not use DMA for ser2 input.
486
487config ETRAX_SERIAL_PORT2_DMA3_IN
488 bool "Ser2 uses DMA3 for input"
489 depends on ETRAXFS || ETRAX_ARCH_V10
490 help
491 Enables the DMA3 input channel for ser2 (ttyS2).
492 If you do not enable DMA, an interrupt for each character will be
493 used when receiving data.
494 Normally you want to use DMA, unless you use the DMA channel for
495 something else.
496
497config ETRAX_SERIAL_PORT2_DMA7_IN
498 bool "Ser2 uses DMA7 for input"
499 depends on CRIS_MACH_ARTPEC3
500 help
501 Enables the DMA7 input channel for ser2 (ttyS2).
502 If you do not enable DMA, an interrupt for each character will be
503 used when receiveing data.
504 Normally you want to use DMA, unless you use the DMA channel for
505 something else.
506
507endchoice
508
509choice
510 prompt "Ser3 DMA in channel"
511 depends on ETRAX_SERIAL_PORT3
512 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
513 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
514 help
515 What DMA channel to use for ser3.
516
517config ETRAX_SERIAL_PORT3_NO_DMA_IN
518 bool "Ser3 uses no DMA for input"
519 help
520 Do not use DMA for ser3 input.
521
522config ETRAX_SERIAL_PORT3_DMA5_IN
523 depends on ETRAX_ARCH_V10
524 bool "DMA 5"
525
526config ETRAX_SERIAL_PORT3_DMA9_IN
527 bool "Ser3 uses DMA9 for input"
528 depends on ETRAXFS
529 help
530 Enables the DMA9 input channel for ser3 (ttyS3).
531 If you do not enable DMA, an interrupt for each character will be
532 used when receiving data.
533 Normally you want to use DMA, unless you use the DMA channel for
534 something else.
535
536config ETRAX_SERIAL_PORT3_DMA3_IN
537 bool "Ser3 uses DMA3 for input"
538 depends on CRIS_MACH_ARTPEC3
539 help
540 Enables the DMA3 input channel for ser3 (ttyS3).
541 If you do not enable DMA, an interrupt for each character will be
542 used when receiveing data.
543 Normally you want to use DMA, unless you use the DMA channel for
544 something else.
545
546endchoice
547
548choice
549 prompt "Ser3 DMA out channel"
550 depends on ETRAX_SERIAL_PORT3
551 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
552 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
553
554config ETRAX_SERIAL_PORT3_NO_DMA_OUT
555 bool "Ser3 uses no DMA for output"
556 help
557 Do not use DMA for ser3 output.
558
559config ETRAX_SERIAL_PORT3_DMA4_OUT
560 depends on ETRAX_ARCH_V10
561 bool "DMA 4"
562
563config ETRAX_SERIAL_PORT3_DMA8_OUT
564 bool "Ser3 uses DMA8 for output"
565 depends on ETRAXFS
566 help
567 Enables the DMA8 output channel for ser3 (ttyS3).
568 If you do not enable DMA, an interrupt for each character will be
569 used when transmitting data.
570 Normally you want to use DMA, unless you use the DMA channel for
571 something else.
572
573config ETRAX_SERIAL_PORT3_DMA2_OUT
574 bool "Ser3 uses DMA2 for output"
575 depends on CRIS_MACH_ARTPEC3
576 help
577 Enables the DMA2 output channel for ser3 (ttyS3).
578 If you do not enable DMA, an interrupt for each character will be
579 used when transmitting data.
580 Normally you want to use DMA, unless you use the DMA channel for
581 something else.
582
583endchoice
584
Linus Torvalds1da177e2005-04-16 15:20:36 -0700585endmenu
586
587source "drivers/base/Kconfig"
588
589# standard linux drivers
590source "drivers/mtd/Kconfig"
591
592source "drivers/parport/Kconfig"
593
594source "drivers/pnp/Kconfig"
595
596source "drivers/block/Kconfig"
597
Linus Torvalds1da177e2005-04-16 15:20:36 -0700598source "drivers/ide/Kconfig"
599
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700600source "drivers/net/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700601
Jesper Nilsson7b275522007-11-14 17:00:59 -0800602source "drivers/i2c/Kconfig"
603
604source "drivers/rtc/Kconfig"
605
Linus Torvalds1da177e2005-04-16 15:20:36 -0700606#
607# input before char - char/joystick depends on it. As does USB.
608#
609source "drivers/input/Kconfig"
610
611source "drivers/char/Kconfig"
612
Linus Torvalds1da177e2005-04-16 15:20:36 -0700613source "fs/Kconfig"
614
Linus Torvalds1da177e2005-04-16 15:20:36 -0700615source "drivers/usb/Kconfig"
616
Linus Torvalds1da177e2005-04-16 15:20:36 -0700617source "arch/cris/Kconfig.debug"
618
619source "security/Kconfig"
620
621source "crypto/Kconfig"
622
623source "lib/Kconfig"