blob: 02380bed189c6fda4920412a18f1baab6203d1c1 [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
125config SVINTO_SIM
126 bool "ETRAX-100LX-for-xsim-simulator"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200127 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 help
129 Support the xsim ETRAX Simulator.
130
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100131config ETRAXFS
132 bool "ETRAX-FS-V32"
Viresh Kumar1cdff572013-06-12 12:10:41 +0530133 select CPU_FREQ_TABLE if CPU_FREQ
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100134 help
135 Support CRIS V32.
136
137config CRIS_MACH_ARTPEC3
138 bool "ARTPEC-3"
Viresh Kumar1cdff572013-06-12 12:10:41 +0530139 select CPU_FREQ_TABLE if CPU_FREQ
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100140 help
141 Support Axis ARTPEC-3.
142
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143endchoice
144
145config ETRAX_ARCH_V10
146 bool
147 default y if ETRAX100LX || ETRAX100LX_V2
148 default n if !(ETRAX100LX || ETRAX100LX_V2)
149
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100150config ETRAX_ARCH_V32
151 bool
152 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
153 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
154
Linus Torvalds1da177e2005-04-16 15:20:36 -0700155config ETRAX_DRAM_SIZE
156 int "DRAM size (dec, in MB)"
157 default "8"
158 help
159 Size of DRAM (decimal in MB) typically 2, 8 or 16.
160
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100161config ETRAX_VMEM_SIZE
162 int "Video memory size (dec, in MB)"
163 depends on ETRAX_ARCH_V32 && !ETRAXFS
164 default 8 if !ETRAXFS
165 help
166 Size of Video accessible memory (decimal, in MB).
167
Linus Torvalds1da177e2005-04-16 15:20:36 -0700168config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100169 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700170 default "2"
171 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100172 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
173
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100174config ETRAX_FLASH1_SIZE
175 int "FLASH1 size (dec, in MB. 0 = Unknown)"
176 default "0"
177
178choice
179 prompt "Product debug-port"
180 default ETRAX_DEBUG_PORT0
181
182config ETRAX_DEBUG_PORT0
183 bool "Serial-0"
184 help
185 Choose a serial port for the ETRAX debug console. Default to
186 port 0.
187
188config ETRAX_DEBUG_PORT1
189 bool "Serial-1"
190 help
191 Use serial port 1 for the console.
192
193config ETRAX_DEBUG_PORT2
194 bool "Serial-2"
195 help
196 Use serial port 2 for the console.
197
198config ETRAX_DEBUG_PORT3
199 bool "Serial-3"
200 help
201 Use serial port 3 for the console.
202
203config ETRAX_DEBUG_PORT_NULL
204 bool "disabled"
205 help
206 Disable serial-port debugging.
207
208endchoice
209
210choice
211 prompt "Kernel GDB port"
212 depends on ETRAX_KGDB
213 default ETRAX_KGDB_PORT0
214 help
215 Choose a serial port for kernel debugging. NOTE: This port should
216 not be enabled under Drivers for built-in interfaces (as it has its
217 own initialization code) and should not be the same as the debug port.
218
219config ETRAX_KGDB_PORT0
220 bool "Serial-0"
221 help
222 Use serial port 0 for kernel debugging.
223
224config ETRAX_KGDB_PORT1
225 bool "Serial-1"
226 help
227 Use serial port 1 for kernel debugging.
228
229config ETRAX_KGDB_PORT2
230 bool "Serial-2"
231 help
232 Use serial port 2 for kernel debugging.
233
234config ETRAX_KGDB_PORT3
235 bool "Serial-3"
236 help
237 Use serial port 3 for kernel debugging.
238
239endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240
241source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800242source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700243
244endmenu
245
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700246source "net/Kconfig"
247
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248# bring in ETRAX built-in drivers
249menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800250source arch/cris/arch-v10/drivers/Kconfig
251source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700252
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100253config ETRAX_AXISFLASHMAP
254 bool "Axis flash-map support"
255 select MTD
256 select MTD_CFI
257 select MTD_CFI_AMDSTD
258 select MTD_JEDECPROBE if ETRAX_ARCH_V32
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100259 select MTD_BLOCK
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100260 select MTD_COMPLEX_MAPPINGS
261 help
262 This option enables MTD mapping of flash devices. Needed to use
263 flash memories. If unsure, say Y.
264
Jesper Nilssonc974a9e2008-01-21 11:44:11 +0100265config ETRAX_SYNCHRONOUS_SERIAL
266 bool "Synchronous serial-port support"
267 help
268 Select this to enable the synchronous serial port driver.
269
270config ETRAX_SYNCHRONOUS_SERIAL_PORT0
271 bool "Synchronous serial port 0 enabled"
272 depends on ETRAX_SYNCHRONOUS_SERIAL
273 help
274 Enabled synchronous serial port 0.
275
276config ETRAX_SYNCHRONOUS_SERIAL0_DMA
277 bool "Enable DMA on synchronous serial port 0."
278 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
279 help
280 A synchronous serial port can run in manual or DMA mode.
281 Selecting this option will make it run in DMA mode.
282
283config ETRAX_SYNCHRONOUS_SERIAL_PORT1
284 bool "Synchronous serial port 1 enabled"
285 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
286 help
287 Enabled synchronous serial port 1.
288
289config ETRAX_SYNCHRONOUS_SERIAL1_DMA
290 bool "Enable DMA on synchronous serial port 1."
291 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
292 help
293 A synchronous serial port can run in manual or DMA mode.
294 Selecting this option will make it run in DMA mode.
295
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100296choice
297 prompt "Network LED behavior"
298 depends on ETRAX_ETHERNET
299 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
300
301config ETRAX_NETWORK_LED_ON_WHEN_LINK
302 bool "LED_on_when_link"
303 help
304 Selecting LED_on_when_link will light the LED when there is a
305 connection and will flash off when there is activity.
306
307 Selecting LED_on_when_activity will light the LED only when
308 there is activity.
309
310 This setting will also affect the behaviour of other activity LEDs
311 e.g. Bluetooth.
312
313config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
314 bool "LED_on_when_activity"
315 help
316 Selecting LED_on_when_link will light the LED when there is a
317 connection and will flash off when there is activity.
318
319 Selecting LED_on_when_activity will light the LED only when
320 there is activity.
321
322 This setting will also affect the behaviour of other activity LEDs
323 e.g. Bluetooth.
324
325endchoice
326
327choice
328 prompt "Ser0 DMA out channel"
329 depends on ETRAX_SERIAL_PORT0
330 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
331 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
332
333config ETRAX_SERIAL_PORT0_NO_DMA_OUT
334 bool "Ser0 uses no DMA for output"
335 help
336 Do not use DMA for ser0 output.
337
338config ETRAX_SERIAL_PORT0_DMA6_OUT
339 bool "Ser0 uses DMA6 for output"
340 depends on ETRAXFS
341 help
342 Enables the DMA6 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
348config ETRAX_SERIAL_PORT0_DMA0_OUT
349 bool "Ser0 uses DMA0 for output"
350 depends on CRIS_MACH_ARTPEC3
351 help
352 Enables the DMA0 output channel for ser0 (ttyS0).
353 If you do not enable DMA, an interrupt for each character will be
354 used when transmitting data.
355 Normally you want to use DMA, unless you use the DMA channel for
356 something else.
357
358endchoice
359
360choice
361 prompt "Ser0 DMA in channel "
362 depends on ETRAX_SERIAL_PORT0
363 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
364 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
365 help
366 What DMA channel to use for ser0.
367
368config ETRAX_SERIAL_PORT0_NO_DMA_IN
369 bool "Ser0 uses no DMA for input"
370 help
371 Do not use DMA for ser0 input.
372
373config ETRAX_SERIAL_PORT0_DMA7_IN
374 bool "Ser0 uses DMA7 for input"
375 depends on ETRAXFS
376 help
377 Enables the DMA7 input channel for ser0 (ttyS0).
378 If you do not enable DMA, an interrupt for each character will be
379 used when receiving data.
380 Normally you want to use DMA, unless you use the DMA channel for
381 something else.
382
383config ETRAX_SERIAL_PORT0_DMA1_IN
384 bool "Ser0 uses DMA1 for input"
385 depends on CRIS_MACH_ARTPEC3
386 help
387 Enables the DMA1 input channel for ser0 (ttyS0).
388 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100389 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100390 Normally you want to use DMA, unless you use the DMA channel for
391 something else.
392
393endchoice
394
395choice
396 prompt "Ser1 DMA in channel "
397 depends on ETRAX_SERIAL_PORT1
398 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
399 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
400 help
401 What DMA channel to use for ser1.
402
403config ETRAX_SERIAL_PORT1_NO_DMA_IN
404 bool "Ser1 uses no DMA for input"
405 help
406 Do not use DMA for ser1 input.
407
408config ETRAX_SERIAL_PORT1_DMA5_IN
409 bool "Ser1 uses DMA5 for input"
410 depends on ETRAX_ARCH_V32
411 help
412 Enables the DMA5 input channel for ser1 (ttyS1).
413 If you do not enable DMA, an interrupt for each character will be
414 used when receiving data.
415 Normally you want this on, unless you use the DMA channel for
416 something else.
417
418config ETRAX_SERIAL_PORT1_DMA9_IN
419 depends on ETRAX_ARCH_V10
420 bool "Ser1 uses DMA9 for input"
421
422endchoice
423
424
425choice
426 prompt "Ser1 DMA out channel"
427 depends on ETRAX_SERIAL_PORT1
428 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
429 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
430 help
431 What DMA channel to use for ser1.
432
433config ETRAX_SERIAL_PORT1_NO_DMA_OUT
434 bool "Ser1 uses no DMA for output"
435 help
436 Do not use DMA for ser1 output.
437
438config ETRAX_SERIAL_PORT1_DMA8_OUT
439 depends on ETRAX_ARCH_V10
440 bool "Ser1 uses DMA8 for output"
441
442config ETRAX_SERIAL_PORT1_DMA4_OUT
443 depends on ETRAX_ARCH_V32
444 bool "Ser1 uses DMA4 for output"
445 help
446 Enables the DMA4 output channel for ser1 (ttyS1).
447 If you do not enable DMA, an interrupt for each character will be
448 used when transmitting data.
449 Normally you want this on, unless you use the DMA channel for
450 something else.
451
452endchoice
453
454choice
455 prompt "Ser2 DMA out channel"
456 depends on ETRAX_SERIAL_PORT2
457 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
458 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
459
460config ETRAX_SERIAL_PORT2_NO_DMA_OUT
461 bool "Ser2 uses no DMA for output"
462 help
463 Do not use DMA for ser2 output.
464
465config ETRAX_SERIAL_PORT2_DMA2_OUT
466 bool "Ser2 uses DMA2 for output"
467 depends on ETRAXFS || ETRAX_ARCH_V10
468 help
469 Enables the DMA2 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
475config ETRAX_SERIAL_PORT2_DMA6_OUT
476 bool "Ser2 uses DMA6 for output"
477 depends on CRIS_MACH_ARTPEC3
478 help
479 Enables the DMA6 output channel for ser2 (ttyS2).
480 If you do not enable DMA, an interrupt for each character will be
481 used when transmitting data.
482 Normally you want to use DMA, unless you use the DMA channel for
483 something else.
484
485endchoice
486
487choice
488 prompt "Ser2 DMA in channel"
489 depends on ETRAX_SERIAL_PORT2
490 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
491 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
492 help
493 What DMA channel to use for ser2.
494
495config ETRAX_SERIAL_PORT2_NO_DMA_IN
496 bool "Ser2 uses no DMA for input"
497 help
498 Do not use DMA for ser2 input.
499
500config ETRAX_SERIAL_PORT2_DMA3_IN
501 bool "Ser2 uses DMA3 for input"
502 depends on ETRAXFS || ETRAX_ARCH_V10
503 help
504 Enables the DMA3 input channel for ser2 (ttyS2).
505 If you do not enable DMA, an interrupt for each character will be
506 used when receiving data.
507 Normally you want to use DMA, unless you use the DMA channel for
508 something else.
509
510config ETRAX_SERIAL_PORT2_DMA7_IN
511 bool "Ser2 uses DMA7 for input"
512 depends on CRIS_MACH_ARTPEC3
513 help
514 Enables the DMA7 input channel for ser2 (ttyS2).
515 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100516 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100517 Normally you want to use DMA, unless you use the DMA channel for
518 something else.
519
520endchoice
521
522choice
523 prompt "Ser3 DMA in channel"
524 depends on ETRAX_SERIAL_PORT3
525 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
526 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
527 help
528 What DMA channel to use for ser3.
529
530config ETRAX_SERIAL_PORT3_NO_DMA_IN
531 bool "Ser3 uses no DMA for input"
532 help
533 Do not use DMA for ser3 input.
534
535config ETRAX_SERIAL_PORT3_DMA5_IN
536 depends on ETRAX_ARCH_V10
537 bool "DMA 5"
538
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100539endchoice
540
541choice
542 prompt "Ser3 DMA out channel"
543 depends on ETRAX_SERIAL_PORT3
544 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
545 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
546
547config ETRAX_SERIAL_PORT3_NO_DMA_OUT
548 bool "Ser3 uses no DMA for output"
549 help
550 Do not use DMA for ser3 output.
551
552config ETRAX_SERIAL_PORT3_DMA4_OUT
553 depends on ETRAX_ARCH_V10
554 bool "DMA 4"
555
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100556endchoice
557
Linus Torvalds1da177e2005-04-16 15:20:36 -0700558endmenu
559
Geert Uytterhoevenacf83632013-05-14 13:54:21 +0200560source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700561
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562source "fs/Kconfig"
563
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564source "arch/cris/Kconfig.debug"
565
566source "security/Kconfig"
567
568source "crypto/Kconfig"
569
570source "lib/Kconfig"