blob: ed0fcdf7e9905cb3050b50c6d467b2a5c8ba5f74 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001config MMU
2 bool
3 default y
4
Christoph Lameter66701b12007-02-10 01:43:09 -08005config ZONE_DMA
6 bool
7 default y
8
Linus Torvalds1da177e2005-04-16 15:20:36 -07009config RWSEM_GENERIC_SPINLOCK
10 bool
11 default y
12
13config RWSEM_XCHGADD_ALGORITHM
14 bool
15
David Howellsf0d1b0b2006-12-08 02:37:49 -080016config ARCH_HAS_ILOG2_U32
17 bool
18 default n
19
20config ARCH_HAS_ILOG2_U64
21 bool
22 default n
23
Akinobu Mitae9f26df2006-03-26 01:39:21 -080024config GENERIC_HWEIGHT
25 bool
26 default y
27
Linus Torvalds1da177e2005-04-16 15:20:36 -070028config GENERIC_CALIBRATE_DELAY
29 bool
30 default y
31
Al Viro5ea81762007-02-11 15:41:31 +000032config NO_IOPORT
33 def_bool y
34
Jesper Nilsson923dd2a2007-12-05 18:10:36 +010035config FORCE_MAX_ZONEORDER
36 int
37 default 6
38
Linus Torvalds1da177e2005-04-16 15:20:36 -070039config CRIS
40 bool
41 default y
Sam Ravnborgec7748b2008-02-09 10:46:40 +010042 select HAVE_IDE
Cong Wang4c9c6a12012-05-29 15:06:15 -070043 select GENERIC_ATOMIC64
Catalin Marinasaf1839e2012-10-08 16:28:08 -070044 select HAVE_UID16
Stephen Rothwell4febd952013-03-07 15:48:16 +110045 select VIRT_TO_BUS
Will Deaconc1d7e012012-07-30 14:42:46 -070046 select ARCH_WANT_IPC_PARSE_VERSION
Thomas Gleixner15825a52011-03-17 13:39:19 +010047 select GENERIC_IRQ_SHOW
Michael S. Tsirkin4673ca82011-11-24 14:54:28 +020048 select GENERIC_IOMAP
Thomas Gleixnera4cfc312012-04-20 13:05:53 +000049 select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32
Anna-Maria Gleixner5227b632012-05-18 16:45:46 +000050 select GENERIC_CMOS_UPDATE
David Howells786d35d2012-09-28 14:31:03 +093051 select MODULES_USE_ELF_RELA
Al Viro27d892f2012-10-26 15:15:13 -040052 select CLONE_BACKWARDS2
Al Viro86df89a2012-12-25 16:28:27 -050053 select OLD_SIGSUSPEND
Al Viroeb2f2562012-12-25 19:30:53 -050054 select OLD_SIGACTION
Linus Torvalds1da177e2005-04-16 15:20:36 -070055
H. Peter Anvinbdc80782008-02-08 04:21:26 -080056config HZ
57 int
58 default 100
59
Linus Torvalds1da177e2005-04-16 15:20:36 -070060source "init/Kconfig"
61
Matt Helsleydc52ddc2008-10-18 20:27:21 -070062source "kernel/Kconfig.freezer"
63
Linus Torvalds1da177e2005-04-16 15:20:36 -070064menu "General setup"
65
66source "fs/Kconfig.binfmt"
67
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
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 +0100101source "kernel/Kconfig.preempt"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102
Dave Hansen3f22ab22005-06-23 00:07:43 -0700103source mm/Kconfig
104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105endmenu
106
107menu "Hardware setup"
108
109choice
110 prompt "Processor type"
111 default ETRAX100LX
112
113config ETRAX100LX
114 bool "ETRAX-100LX-v1"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200115 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700116 help
117 Support version 1 of the ETRAX 100LX.
118
119config ETRAX100LX_V2
120 bool "ETRAX-100LX-v2"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200121 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 help
123 Support version 2 of the ETRAX 100LX.
124
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100125config ETRAXFS
126 bool "ETRAX-FS-V32"
127 help
128 Support CRIS V32.
129
130config CRIS_MACH_ARTPEC3
131 bool "ARTPEC-3"
132 help
133 Support Axis ARTPEC-3.
134
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135endchoice
136
137config ETRAX_ARCH_V10
138 bool
139 default y if ETRAX100LX || ETRAX100LX_V2
140 default n if !(ETRAX100LX || ETRAX100LX_V2)
141
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100142config ETRAX_ARCH_V32
143 bool
144 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
145 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
146
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147config ETRAX_DRAM_SIZE
148 int "DRAM size (dec, in MB)"
149 default "8"
150 help
151 Size of DRAM (decimal in MB) typically 2, 8 or 16.
152
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100153config ETRAX_VMEM_SIZE
154 int "Video memory size (dec, in MB)"
155 depends on ETRAX_ARCH_V32 && !ETRAXFS
156 default 8 if !ETRAXFS
157 help
158 Size of Video accessible memory (decimal, in MB).
159
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100161 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 default "2"
163 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100164 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
165
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100166config ETRAX_FLASH1_SIZE
167 int "FLASH1 size (dec, in MB. 0 = Unknown)"
168 default "0"
169
170choice
171 prompt "Product debug-port"
172 default ETRAX_DEBUG_PORT0
173
174config ETRAX_DEBUG_PORT0
175 bool "Serial-0"
176 help
177 Choose a serial port for the ETRAX debug console. Default to
178 port 0.
179
180config ETRAX_DEBUG_PORT1
181 bool "Serial-1"
182 help
183 Use serial port 1 for the console.
184
185config ETRAX_DEBUG_PORT2
186 bool "Serial-2"
187 help
188 Use serial port 2 for the console.
189
190config ETRAX_DEBUG_PORT3
191 bool "Serial-3"
192 help
193 Use serial port 3 for the console.
194
195config ETRAX_DEBUG_PORT_NULL
196 bool "disabled"
197 help
198 Disable serial-port debugging.
199
200endchoice
201
202choice
203 prompt "Kernel GDB port"
204 depends on ETRAX_KGDB
205 default ETRAX_KGDB_PORT0
206 help
207 Choose a serial port for kernel debugging. NOTE: This port should
208 not be enabled under Drivers for built-in interfaces (as it has its
209 own initialization code) and should not be the same as the debug port.
210
211config ETRAX_KGDB_PORT0
212 bool "Serial-0"
213 help
214 Use serial port 0 for kernel debugging.
215
216config ETRAX_KGDB_PORT1
217 bool "Serial-1"
218 help
219 Use serial port 1 for kernel debugging.
220
221config ETRAX_KGDB_PORT2
222 bool "Serial-2"
223 help
224 Use serial port 2 for kernel debugging.
225
226config ETRAX_KGDB_PORT3
227 bool "Serial-3"
228 help
229 Use serial port 3 for kernel debugging.
230
231endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700232
233source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800234source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700235
236endmenu
237
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700238source "net/Kconfig"
239
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240# bring in ETRAX built-in drivers
241menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800242source arch/cris/arch-v10/drivers/Kconfig
243source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100245config ETRAX_AXISFLASHMAP
246 bool "Axis flash-map support"
247 select MTD
248 select MTD_CFI
249 select MTD_CFI_AMDSTD
250 select MTD_JEDECPROBE if ETRAX_ARCH_V32
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100251 select MTD_BLOCK
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100252 select MTD_COMPLEX_MAPPINGS
253 help
254 This option enables MTD mapping of flash devices. Needed to use
255 flash memories. If unsure, say Y.
256
Jesper Nilssonc974a9e2008-01-21 11:44:11 +0100257config ETRAX_SYNCHRONOUS_SERIAL
258 bool "Synchronous serial-port support"
259 help
260 Select this to enable the synchronous serial port driver.
261
262config ETRAX_SYNCHRONOUS_SERIAL_PORT0
263 bool "Synchronous serial port 0 enabled"
264 depends on ETRAX_SYNCHRONOUS_SERIAL
265 help
266 Enabled synchronous serial port 0.
267
268config ETRAX_SYNCHRONOUS_SERIAL0_DMA
269 bool "Enable DMA on synchronous serial port 0."
270 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
271 help
272 A synchronous serial port can run in manual or DMA mode.
273 Selecting this option will make it run in DMA mode.
274
275config ETRAX_SYNCHRONOUS_SERIAL_PORT1
276 bool "Synchronous serial port 1 enabled"
277 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
278 help
279 Enabled synchronous serial port 1.
280
281config ETRAX_SYNCHRONOUS_SERIAL1_DMA
282 bool "Enable DMA on synchronous serial port 1."
283 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
284 help
285 A synchronous serial port can run in manual or DMA mode.
286 Selecting this option will make it run in DMA mode.
287
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100288choice
289 prompt "Network LED behavior"
290 depends on ETRAX_ETHERNET
291 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
292
293config ETRAX_NETWORK_LED_ON_WHEN_LINK
294 bool "LED_on_when_link"
295 help
296 Selecting LED_on_when_link will light the LED when there is a
297 connection and will flash off when there is activity.
298
299 Selecting LED_on_when_activity will light the LED only when
300 there is activity.
301
302 This setting will also affect the behaviour of other activity LEDs
303 e.g. Bluetooth.
304
305config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
306 bool "LED_on_when_activity"
307 help
308 Selecting LED_on_when_link will light the LED when there is a
309 connection and will flash off when there is activity.
310
311 Selecting LED_on_when_activity will light the LED only when
312 there is activity.
313
314 This setting will also affect the behaviour of other activity LEDs
315 e.g. Bluetooth.
316
317endchoice
318
319choice
320 prompt "Ser0 DMA out channel"
321 depends on ETRAX_SERIAL_PORT0
322 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
323 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
324
325config ETRAX_SERIAL_PORT0_NO_DMA_OUT
326 bool "Ser0 uses no DMA for output"
327 help
328 Do not use DMA for ser0 output.
329
330config ETRAX_SERIAL_PORT0_DMA6_OUT
331 bool "Ser0 uses DMA6 for output"
332 depends on ETRAXFS
333 help
334 Enables the DMA6 output channel for ser0 (ttyS0).
335 If you do not enable DMA, an interrupt for each character will be
336 used when transmitting data.
337 Normally you want to use DMA, unless you use the DMA channel for
338 something else.
339
340config ETRAX_SERIAL_PORT0_DMA0_OUT
341 bool "Ser0 uses DMA0 for output"
342 depends on CRIS_MACH_ARTPEC3
343 help
344 Enables the DMA0 output channel for ser0 (ttyS0).
345 If you do not enable DMA, an interrupt for each character will be
346 used when transmitting data.
347 Normally you want to use DMA, unless you use the DMA channel for
348 something else.
349
350endchoice
351
352choice
353 prompt "Ser0 DMA in channel "
354 depends on ETRAX_SERIAL_PORT0
355 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
356 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
357 help
358 What DMA channel to use for ser0.
359
360config ETRAX_SERIAL_PORT0_NO_DMA_IN
361 bool "Ser0 uses no DMA for input"
362 help
363 Do not use DMA for ser0 input.
364
365config ETRAX_SERIAL_PORT0_DMA7_IN
366 bool "Ser0 uses DMA7 for input"
367 depends on ETRAXFS
368 help
369 Enables the DMA7 input channel for ser0 (ttyS0).
370 If you do not enable DMA, an interrupt for each character will be
371 used when receiving data.
372 Normally you want to use DMA, unless you use the DMA channel for
373 something else.
374
375config ETRAX_SERIAL_PORT0_DMA1_IN
376 bool "Ser0 uses DMA1 for input"
377 depends on CRIS_MACH_ARTPEC3
378 help
379 Enables the DMA1 input channel for ser0 (ttyS0).
380 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100381 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100382 Normally you want to use DMA, unless you use the DMA channel for
383 something else.
384
385endchoice
386
387choice
388 prompt "Ser1 DMA in channel "
389 depends on ETRAX_SERIAL_PORT1
390 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
391 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
392 help
393 What DMA channel to use for ser1.
394
395config ETRAX_SERIAL_PORT1_NO_DMA_IN
396 bool "Ser1 uses no DMA for input"
397 help
398 Do not use DMA for ser1 input.
399
400config ETRAX_SERIAL_PORT1_DMA5_IN
401 bool "Ser1 uses DMA5 for input"
402 depends on ETRAX_ARCH_V32
403 help
404 Enables the DMA5 input channel for ser1 (ttyS1).
405 If you do not enable DMA, an interrupt for each character will be
406 used when receiving data.
407 Normally you want this on, unless you use the DMA channel for
408 something else.
409
410config ETRAX_SERIAL_PORT1_DMA9_IN
411 depends on ETRAX_ARCH_V10
412 bool "Ser1 uses DMA9 for input"
413
414endchoice
415
416
417choice
418 prompt "Ser1 DMA out channel"
419 depends on ETRAX_SERIAL_PORT1
420 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
421 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
422 help
423 What DMA channel to use for ser1.
424
425config ETRAX_SERIAL_PORT1_NO_DMA_OUT
426 bool "Ser1 uses no DMA for output"
427 help
428 Do not use DMA for ser1 output.
429
430config ETRAX_SERIAL_PORT1_DMA8_OUT
431 depends on ETRAX_ARCH_V10
432 bool "Ser1 uses DMA8 for output"
433
434config ETRAX_SERIAL_PORT1_DMA4_OUT
435 depends on ETRAX_ARCH_V32
436 bool "Ser1 uses DMA4 for output"
437 help
438 Enables the DMA4 output channel for ser1 (ttyS1).
439 If you do not enable DMA, an interrupt for each character will be
440 used when transmitting data.
441 Normally you want this on, unless you use the DMA channel for
442 something else.
443
444endchoice
445
446choice
447 prompt "Ser2 DMA out channel"
448 depends on ETRAX_SERIAL_PORT2
449 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
450 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
451
452config ETRAX_SERIAL_PORT2_NO_DMA_OUT
453 bool "Ser2 uses no DMA for output"
454 help
455 Do not use DMA for ser2 output.
456
457config ETRAX_SERIAL_PORT2_DMA2_OUT
458 bool "Ser2 uses DMA2 for output"
459 depends on ETRAXFS || ETRAX_ARCH_V10
460 help
461 Enables the DMA2 output channel for ser2 (ttyS2).
462 If you do not enable DMA, an interrupt for each character will be
463 used when transmitting data.
464 Normally you want to use DMA, unless you use the DMA channel for
465 something else.
466
467config ETRAX_SERIAL_PORT2_DMA6_OUT
468 bool "Ser2 uses DMA6 for output"
469 depends on CRIS_MACH_ARTPEC3
470 help
471 Enables the DMA6 output channel for ser2 (ttyS2).
472 If you do not enable DMA, an interrupt for each character will be
473 used when transmitting data.
474 Normally you want to use DMA, unless you use the DMA channel for
475 something else.
476
477endchoice
478
479choice
480 prompt "Ser2 DMA in channel"
481 depends on ETRAX_SERIAL_PORT2
482 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
483 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
484 help
485 What DMA channel to use for ser2.
486
487config ETRAX_SERIAL_PORT2_NO_DMA_IN
488 bool "Ser2 uses no DMA for input"
489 help
490 Do not use DMA for ser2 input.
491
492config ETRAX_SERIAL_PORT2_DMA3_IN
493 bool "Ser2 uses DMA3 for input"
494 depends on ETRAXFS || ETRAX_ARCH_V10
495 help
496 Enables the DMA3 input channel for ser2 (ttyS2).
497 If you do not enable DMA, an interrupt for each character will be
498 used when receiving data.
499 Normally you want to use DMA, unless you use the DMA channel for
500 something else.
501
502config ETRAX_SERIAL_PORT2_DMA7_IN
503 bool "Ser2 uses DMA7 for input"
504 depends on CRIS_MACH_ARTPEC3
505 help
506 Enables the DMA7 input channel for ser2 (ttyS2).
507 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100508 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100509 Normally you want to use DMA, unless you use the DMA channel for
510 something else.
511
512endchoice
513
514choice
515 prompt "Ser3 DMA in channel"
516 depends on ETRAX_SERIAL_PORT3
517 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
518 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
519 help
520 What DMA channel to use for ser3.
521
522config ETRAX_SERIAL_PORT3_NO_DMA_IN
523 bool "Ser3 uses no DMA for input"
524 help
525 Do not use DMA for ser3 input.
526
527config ETRAX_SERIAL_PORT3_DMA5_IN
528 depends on ETRAX_ARCH_V10
529 bool "DMA 5"
530
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100531endchoice
532
533choice
534 prompt "Ser3 DMA out channel"
535 depends on ETRAX_SERIAL_PORT3
536 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
537 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
538
539config ETRAX_SERIAL_PORT3_NO_DMA_OUT
540 bool "Ser3 uses no DMA for output"
541 help
542 Do not use DMA for ser3 output.
543
544config ETRAX_SERIAL_PORT3_DMA4_OUT
545 depends on ETRAX_ARCH_V10
546 bool "DMA 4"
547
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100548endchoice
549
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550endmenu
551
Geert Uytterhoevenacf83632013-05-14 13:54:21 +0200552source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700553
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554source "fs/Kconfig"
555
Linus Torvalds1da177e2005-04-16 15:20:36 -0700556source "arch/cris/Kconfig.debug"
557
558source "security/Kconfig"
559
560source "crypto/Kconfig"
561
562source "lib/Kconfig"