blob: 4a03911053ab8df634cfa200158fb54aa4ac3aca [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
Uwe Kleine-Königce816fa2014-04-07 15:39:19 -070032config NO_IOPORT_MAP
Al Viro5ea81762007-02-11 15:41:31 +000033 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
Jesper Nilssondd820942015-01-15 17:30:40 +010060config NR_CPUS
61 int
62 default "1"
63
Linus Torvalds1da177e2005-04-16 15:20:36 -070064source "init/Kconfig"
65
Matt Helsleydc52ddc2008-10-18 20:27:21 -070066source "kernel/Kconfig.freezer"
67
Linus Torvalds1da177e2005-04-16 15:20:36 -070068menu "General setup"
69
70source "fs/Kconfig.binfmt"
71
72config ETRAX_CMDLINE
73 string "Kernel command line"
74 default "root=/dev/mtdblock3"
75 help
76 Pass additional commands to the kernel.
77
78config ETRAX_WATCHDOG
79 bool "Enable ETRAX watchdog"
80 help
81 Enable the built-in watchdog timer support on ETRAX based embedded
82 network computers.
83
84config ETRAX_WATCHDOG_NICE_DOGGY
85 bool "Disable watchdog during Oops printouts"
86 depends on ETRAX_WATCHDOG
87 help
88 By enabling this you make sure that the watchdog does not bite while
89 printing oopses. Recommended for development systems but not for
90 production releases.
91
92config ETRAX_FAST_TIMER
93 bool "Enable ETRAX fast timer API"
94 help
95 This options enables the API to a fast timer implementation using
96 timer1 to get sub jiffie resolution timers (primarily one-shot
97 timers).
98 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
99
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100100config ETRAX_KMALLOCED_MODULES
101 bool "Enable module allocation with kmalloc"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700102 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100103 Enable module allocation with kmalloc instead of vmalloc.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100105source "kernel/Kconfig.preempt"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106
Dave Hansen3f22ab22005-06-23 00:07:43 -0700107source mm/Kconfig
108
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109endmenu
110
111menu "Hardware setup"
112
113choice
114 prompt "Processor type"
115 default ETRAX100LX
116
117config ETRAX100LX
118 bool "ETRAX-100LX-v1"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200119 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120 help
121 Support version 1 of the ETRAX 100LX.
122
123config ETRAX100LX_V2
124 bool "ETRAX-100LX-v2"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200125 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126 help
127 Support version 2 of the ETRAX 100LX.
128
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100129config ETRAXFS
130 bool "ETRAX-FS-V32"
131 help
132 Support CRIS V32.
133
134config CRIS_MACH_ARTPEC3
135 bool "ARTPEC-3"
136 help
137 Support Axis ARTPEC-3.
138
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139endchoice
140
141config ETRAX_ARCH_V10
142 bool
143 default y if ETRAX100LX || ETRAX100LX_V2
144 default n if !(ETRAX100LX || ETRAX100LX_V2)
Josh Triplettae797bd2014-04-07 15:39:04 -0700145 select TTY
Linus Torvalds1da177e2005-04-16 15:20:36 -0700146
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100147config ETRAX_ARCH_V32
148 bool
149 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
150 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
151
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152config ETRAX_DRAM_SIZE
153 int "DRAM size (dec, in MB)"
154 default "8"
155 help
156 Size of DRAM (decimal in MB) typically 2, 8 or 16.
157
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100158config ETRAX_VMEM_SIZE
159 int "Video memory size (dec, in MB)"
160 depends on ETRAX_ARCH_V32 && !ETRAXFS
161 default 8 if !ETRAXFS
162 help
163 Size of Video accessible memory (decimal, in MB).
164
Linus Torvalds1da177e2005-04-16 15:20:36 -0700165config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100166 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167 default "2"
168 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100169 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
170
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100171config ETRAX_FLASH1_SIZE
172 int "FLASH1 size (dec, in MB. 0 = Unknown)"
173 default "0"
174
175choice
176 prompt "Product debug-port"
177 default ETRAX_DEBUG_PORT0
178
179config ETRAX_DEBUG_PORT0
180 bool "Serial-0"
181 help
182 Choose a serial port for the ETRAX debug console. Default to
183 port 0.
184
185config ETRAX_DEBUG_PORT1
186 bool "Serial-1"
187 help
188 Use serial port 1 for the console.
189
190config ETRAX_DEBUG_PORT2
191 bool "Serial-2"
192 help
193 Use serial port 2 for the console.
194
195config ETRAX_DEBUG_PORT3
196 bool "Serial-3"
197 help
198 Use serial port 3 for the console.
199
200config ETRAX_DEBUG_PORT_NULL
201 bool "disabled"
202 help
203 Disable serial-port debugging.
204
205endchoice
206
207choice
208 prompt "Kernel GDB port"
209 depends on ETRAX_KGDB
210 default ETRAX_KGDB_PORT0
211 help
212 Choose a serial port for kernel debugging. NOTE: This port should
213 not be enabled under Drivers for built-in interfaces (as it has its
214 own initialization code) and should not be the same as the debug port.
215
216config ETRAX_KGDB_PORT0
217 bool "Serial-0"
218 help
219 Use serial port 0 for kernel debugging.
220
221config ETRAX_KGDB_PORT1
222 bool "Serial-1"
223 help
224 Use serial port 1 for kernel debugging.
225
226config ETRAX_KGDB_PORT2
227 bool "Serial-2"
228 help
229 Use serial port 2 for kernel debugging.
230
231config ETRAX_KGDB_PORT3
232 bool "Serial-3"
233 help
234 Use serial port 3 for kernel debugging.
235
236endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237
238source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800239source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240
241endmenu
242
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700243source "net/Kconfig"
244
Linus Torvalds1da177e2005-04-16 15:20:36 -0700245# bring in ETRAX built-in drivers
246menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800247source arch/cris/arch-v10/drivers/Kconfig
248source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700249
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100250config ETRAX_AXISFLASHMAP
251 bool "Axis flash-map support"
252 select MTD
253 select MTD_CFI
254 select MTD_CFI_AMDSTD
255 select MTD_JEDECPROBE if ETRAX_ARCH_V32
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100256 select MTD_BLOCK
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100257 select MTD_COMPLEX_MAPPINGS
258 help
259 This option enables MTD mapping of flash devices. Needed to use
260 flash memories. If unsure, say Y.
261
Jesper Nilssonc974a9e2008-01-21 11:44:11 +0100262config ETRAX_SYNCHRONOUS_SERIAL
263 bool "Synchronous serial-port support"
264 help
265 Select this to enable the synchronous serial port driver.
266
267config ETRAX_SYNCHRONOUS_SERIAL_PORT0
268 bool "Synchronous serial port 0 enabled"
269 depends on ETRAX_SYNCHRONOUS_SERIAL
270 help
271 Enabled synchronous serial port 0.
272
273config ETRAX_SYNCHRONOUS_SERIAL0_DMA
274 bool "Enable DMA on synchronous serial port 0."
275 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
276 help
277 A synchronous serial port can run in manual or DMA mode.
278 Selecting this option will make it run in DMA mode.
279
280config ETRAX_SYNCHRONOUS_SERIAL_PORT1
281 bool "Synchronous serial port 1 enabled"
282 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
283 help
284 Enabled synchronous serial port 1.
285
286config ETRAX_SYNCHRONOUS_SERIAL1_DMA
287 bool "Enable DMA on synchronous serial port 1."
288 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
289 help
290 A synchronous serial port can run in manual or DMA mode.
291 Selecting this option will make it run in DMA mode.
292
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100293choice
294 prompt "Network LED behavior"
295 depends on ETRAX_ETHERNET
296 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
297
298config ETRAX_NETWORK_LED_ON_WHEN_LINK
299 bool "LED_on_when_link"
300 help
301 Selecting LED_on_when_link will light the LED when there is a
302 connection and will flash off when there is activity.
303
304 Selecting LED_on_when_activity will light the LED only when
305 there is activity.
306
307 This setting will also affect the behaviour of other activity LEDs
308 e.g. Bluetooth.
309
310config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
311 bool "LED_on_when_activity"
312 help
313 Selecting LED_on_when_link will light the LED when there is a
314 connection and will flash off when there is activity.
315
316 Selecting LED_on_when_activity will light the LED only when
317 there is activity.
318
319 This setting will also affect the behaviour of other activity LEDs
320 e.g. Bluetooth.
321
322endchoice
323
324choice
325 prompt "Ser0 DMA out channel"
326 depends on ETRAX_SERIAL_PORT0
327 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
328 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
329
330config ETRAX_SERIAL_PORT0_NO_DMA_OUT
331 bool "Ser0 uses no DMA for output"
332 help
333 Do not use DMA for ser0 output.
334
335config ETRAX_SERIAL_PORT0_DMA6_OUT
336 bool "Ser0 uses DMA6 for output"
337 depends on ETRAXFS
338 help
339 Enables the DMA6 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
345config ETRAX_SERIAL_PORT0_DMA0_OUT
346 bool "Ser0 uses DMA0 for output"
347 depends on CRIS_MACH_ARTPEC3
348 help
349 Enables the DMA0 output channel for ser0 (ttyS0).
350 If you do not enable DMA, an interrupt for each character will be
351 used when transmitting data.
352 Normally you want to use DMA, unless you use the DMA channel for
353 something else.
354
355endchoice
356
357choice
358 prompt "Ser0 DMA in channel "
359 depends on ETRAX_SERIAL_PORT0
360 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
361 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
362 help
363 What DMA channel to use for ser0.
364
365config ETRAX_SERIAL_PORT0_NO_DMA_IN
366 bool "Ser0 uses no DMA for input"
367 help
368 Do not use DMA for ser0 input.
369
370config ETRAX_SERIAL_PORT0_DMA7_IN
371 bool "Ser0 uses DMA7 for input"
372 depends on ETRAXFS
373 help
374 Enables the DMA7 input channel for ser0 (ttyS0).
375 If you do not enable DMA, an interrupt for each character will be
376 used when receiving data.
377 Normally you want to use DMA, unless you use the DMA channel for
378 something else.
379
380config ETRAX_SERIAL_PORT0_DMA1_IN
381 bool "Ser0 uses DMA1 for input"
382 depends on CRIS_MACH_ARTPEC3
383 help
384 Enables the DMA1 input channel for ser0 (ttyS0).
385 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100386 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100387 Normally you want to use DMA, unless you use the DMA channel for
388 something else.
389
390endchoice
391
392choice
393 prompt "Ser1 DMA in channel "
394 depends on ETRAX_SERIAL_PORT1
395 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
396 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
397 help
398 What DMA channel to use for ser1.
399
400config ETRAX_SERIAL_PORT1_NO_DMA_IN
401 bool "Ser1 uses no DMA for input"
402 help
403 Do not use DMA for ser1 input.
404
405config ETRAX_SERIAL_PORT1_DMA5_IN
406 bool "Ser1 uses DMA5 for input"
407 depends on ETRAX_ARCH_V32
408 help
409 Enables the DMA5 input channel for ser1 (ttyS1).
410 If you do not enable DMA, an interrupt for each character will be
411 used when receiving data.
412 Normally you want this on, unless you use the DMA channel for
413 something else.
414
415config ETRAX_SERIAL_PORT1_DMA9_IN
416 depends on ETRAX_ARCH_V10
417 bool "Ser1 uses DMA9 for input"
418
419endchoice
420
421
422choice
423 prompt "Ser1 DMA out channel"
424 depends on ETRAX_SERIAL_PORT1
425 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
426 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
427 help
428 What DMA channel to use for ser1.
429
430config ETRAX_SERIAL_PORT1_NO_DMA_OUT
431 bool "Ser1 uses no DMA for output"
432 help
433 Do not use DMA for ser1 output.
434
435config ETRAX_SERIAL_PORT1_DMA8_OUT
436 depends on ETRAX_ARCH_V10
437 bool "Ser1 uses DMA8 for output"
438
439config ETRAX_SERIAL_PORT1_DMA4_OUT
440 depends on ETRAX_ARCH_V32
441 bool "Ser1 uses DMA4 for output"
442 help
443 Enables the DMA4 output channel for ser1 (ttyS1).
444 If you do not enable DMA, an interrupt for each character will be
445 used when transmitting data.
446 Normally you want this on, unless you use the DMA channel for
447 something else.
448
449endchoice
450
451choice
452 prompt "Ser2 DMA out channel"
453 depends on ETRAX_SERIAL_PORT2
454 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
455 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
456
457config ETRAX_SERIAL_PORT2_NO_DMA_OUT
458 bool "Ser2 uses no DMA for output"
459 help
460 Do not use DMA for ser2 output.
461
462config ETRAX_SERIAL_PORT2_DMA2_OUT
463 bool "Ser2 uses DMA2 for output"
464 depends on ETRAXFS || ETRAX_ARCH_V10
465 help
466 Enables the DMA2 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
472config ETRAX_SERIAL_PORT2_DMA6_OUT
473 bool "Ser2 uses DMA6 for output"
474 depends on CRIS_MACH_ARTPEC3
475 help
476 Enables the DMA6 output channel for ser2 (ttyS2).
477 If you do not enable DMA, an interrupt for each character will be
478 used when transmitting data.
479 Normally you want to use DMA, unless you use the DMA channel for
480 something else.
481
482endchoice
483
484choice
485 prompt "Ser2 DMA in channel"
486 depends on ETRAX_SERIAL_PORT2
487 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
488 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
489 help
490 What DMA channel to use for ser2.
491
492config ETRAX_SERIAL_PORT2_NO_DMA_IN
493 bool "Ser2 uses no DMA for input"
494 help
495 Do not use DMA for ser2 input.
496
497config ETRAX_SERIAL_PORT2_DMA3_IN
498 bool "Ser2 uses DMA3 for input"
499 depends on ETRAXFS || ETRAX_ARCH_V10
500 help
501 Enables the DMA3 input channel for ser2 (ttyS2).
502 If you do not enable DMA, an interrupt for each character will be
503 used when receiving data.
504 Normally you want to use DMA, unless you use the DMA channel for
505 something else.
506
507config ETRAX_SERIAL_PORT2_DMA7_IN
508 bool "Ser2 uses DMA7 for input"
509 depends on CRIS_MACH_ARTPEC3
510 help
511 Enables the DMA7 input channel for ser2 (ttyS2).
512 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100513 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100514 Normally you want to use DMA, unless you use the DMA channel for
515 something else.
516
517endchoice
518
519choice
520 prompt "Ser3 DMA in channel"
521 depends on ETRAX_SERIAL_PORT3
522 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
523 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
524 help
525 What DMA channel to use for ser3.
526
527config ETRAX_SERIAL_PORT3_NO_DMA_IN
528 bool "Ser3 uses no DMA for input"
529 help
530 Do not use DMA for ser3 input.
531
532config ETRAX_SERIAL_PORT3_DMA5_IN
533 depends on ETRAX_ARCH_V10
534 bool "DMA 5"
535
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100536endchoice
537
538choice
539 prompt "Ser3 DMA out channel"
540 depends on ETRAX_SERIAL_PORT3
541 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
542 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
543
544config ETRAX_SERIAL_PORT3_NO_DMA_OUT
545 bool "Ser3 uses no DMA for output"
546 help
547 Do not use DMA for ser3 output.
548
549config ETRAX_SERIAL_PORT3_DMA4_OUT
550 depends on ETRAX_ARCH_V10
551 bool "DMA 4"
552
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100553endchoice
554
Linus Torvalds1da177e2005-04-16 15:20:36 -0700555endmenu
556
Geert Uytterhoevenacf83632013-05-14 13:54:21 +0200557source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700558
Linus Torvalds1da177e2005-04-16 15:20:36 -0700559source "fs/Kconfig"
560
Linus Torvalds1da177e2005-04-16 15:20:36 -0700561source "arch/cris/Kconfig.debug"
562
563source "security/Kconfig"
564
565source "crypto/Kconfig"
566
567source "lib/Kconfig"