blob: c34561869856ffc5e70cfd020602683bef06058e [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
Rabin Vincent8fda64c2015-02-05 21:20:26 +010055 select ARCH_REQUIRE_GPIOLIB
Rabin Vincent43f70712015-02-08 16:15:19 +010056 select IRQ_DOMAIN if ETRAX_ARCH_V32
Linus Torvalds1da177e2005-04-16 15:20:36 -070057
H. Peter Anvinbdc80782008-02-08 04:21:26 -080058config HZ
59 int
60 default 100
61
Jesper Nilssondd820942015-01-15 17:30:40 +010062config NR_CPUS
63 int
64 default "1"
65
Linus Torvalds1da177e2005-04-16 15:20:36 -070066source "init/Kconfig"
67
Matt Helsleydc52ddc2008-10-18 20:27:21 -070068source "kernel/Kconfig.freezer"
69
Linus Torvalds1da177e2005-04-16 15:20:36 -070070menu "General setup"
71
72source "fs/Kconfig.binfmt"
73
74config ETRAX_CMDLINE
75 string "Kernel command line"
76 default "root=/dev/mtdblock3"
77 help
78 Pass additional commands to the kernel.
79
80config ETRAX_WATCHDOG
81 bool "Enable ETRAX watchdog"
82 help
83 Enable the built-in watchdog timer support on ETRAX based embedded
84 network computers.
85
86config ETRAX_WATCHDOG_NICE_DOGGY
87 bool "Disable watchdog during Oops printouts"
88 depends on ETRAX_WATCHDOG
89 help
90 By enabling this you make sure that the watchdog does not bite while
91 printing oopses. Recommended for development systems but not for
92 production releases.
93
94config ETRAX_FAST_TIMER
95 bool "Enable ETRAX fast timer API"
96 help
97 This options enables the API to a fast timer implementation using
98 timer1 to get sub jiffie resolution timers (primarily one-shot
99 timers).
100 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
101
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100102config ETRAX_KMALLOCED_MODULES
103 bool "Enable module allocation with kmalloc"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700104 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100105 Enable module allocation with kmalloc instead of vmalloc.
Linus Torvalds1da177e2005-04-16 15:20:36 -0700106
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100107source "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"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200121 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122 help
123 Support version 1 of the ETRAX 100LX.
124
125config ETRAX100LX_V2
126 bool "ETRAX-100LX-v2"
Jesper Nilsson60dbd662010-07-30 17:33:07 +0200127 select ARCH_USES_GETTIMEOFFSET
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128 help
129 Support version 2 of the ETRAX 100LX.
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
143config ETRAX_ARCH_V10
144 bool
145 default y if ETRAX100LX || ETRAX100LX_V2
146 default n if !(ETRAX100LX || ETRAX100LX_V2)
Josh Triplettae797bd2014-04-07 15:39:04 -0700147 select TTY
Linus Torvalds1da177e2005-04-16 15:20:36 -0700148
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100149config ETRAX_ARCH_V32
150 bool
151 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
152 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
153
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154config ETRAX_DRAM_SIZE
155 int "DRAM size (dec, in MB)"
156 default "8"
157 help
158 Size of DRAM (decimal in MB) typically 2, 8 or 16.
159
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100160config ETRAX_VMEM_SIZE
161 int "Video memory size (dec, in MB)"
162 depends on ETRAX_ARCH_V32 && !ETRAXFS
163 default 8 if !ETRAXFS
164 help
165 Size of Video accessible memory (decimal, in MB).
166
Linus Torvalds1da177e2005-04-16 15:20:36 -0700167config ETRAX_FLASH_BUSWIDTH
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100168 int "Buswidth of NOR flash in bytes"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169 default "2"
170 help
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100171 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
172
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100173config ETRAX_FLASH1_SIZE
174 int "FLASH1 size (dec, in MB. 0 = Unknown)"
175 default "0"
176
177choice
178 prompt "Product debug-port"
179 default ETRAX_DEBUG_PORT0
180
181config ETRAX_DEBUG_PORT0
182 bool "Serial-0"
183 help
184 Choose a serial port for the ETRAX debug console. Default to
185 port 0.
186
187config ETRAX_DEBUG_PORT1
188 bool "Serial-1"
189 help
190 Use serial port 1 for the console.
191
192config ETRAX_DEBUG_PORT2
193 bool "Serial-2"
194 help
195 Use serial port 2 for the console.
196
197config ETRAX_DEBUG_PORT3
198 bool "Serial-3"
199 help
200 Use serial port 3 for the console.
201
202config ETRAX_DEBUG_PORT_NULL
203 bool "disabled"
204 help
205 Disable serial-port debugging.
206
207endchoice
208
209choice
210 prompt "Kernel GDB port"
211 depends on ETRAX_KGDB
212 default ETRAX_KGDB_PORT0
213 help
214 Choose a serial port for kernel debugging. NOTE: This port should
215 not be enabled under Drivers for built-in interfaces (as it has its
216 own initialization code) and should not be the same as the debug port.
217
218config ETRAX_KGDB_PORT0
219 bool "Serial-0"
220 help
221 Use serial port 0 for kernel debugging.
222
223config ETRAX_KGDB_PORT1
224 bool "Serial-1"
225 help
226 Use serial port 1 for kernel debugging.
227
228config ETRAX_KGDB_PORT2
229 bool "Serial-2"
230 help
231 Use serial port 2 for kernel debugging.
232
233config ETRAX_KGDB_PORT3
234 bool "Serial-3"
235 help
236 Use serial port 3 for kernel debugging.
237
238endchoice
Linus Torvalds1da177e2005-04-16 15:20:36 -0700239
240source arch/cris/arch-v10/Kconfig
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800241source arch/cris/arch-v32/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700242
243endmenu
244
Sam Ravnborgd5950b42005-07-11 21:03:49 -0700245source "net/Kconfig"
246
Linus Torvalds1da177e2005-04-16 15:20:36 -0700247# bring in ETRAX built-in drivers
248menu "Drivers for built-in interfaces"
Jesper Nilsson2d33d562008-02-04 22:30:31 -0800249source arch/cris/arch-v10/drivers/Kconfig
250source arch/cris/arch-v32/drivers/Kconfig
Linus Torvalds1da177e2005-04-16 15:20:36 -0700251
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100252config ETRAX_AXISFLASHMAP
253 bool "Axis flash-map support"
254 select MTD
255 select MTD_CFI
256 select MTD_CFI_AMDSTD
257 select MTD_JEDECPROBE if ETRAX_ARCH_V32
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100258 select MTD_BLOCK
Jesper Nilsson79e04fd2008-02-06 13:21:28 +0100259 select MTD_COMPLEX_MAPPINGS
260 help
261 This option enables MTD mapping of flash devices. Needed to use
262 flash memories. If unsure, say Y.
263
Jesper Nilssonc974a9e2008-01-21 11:44:11 +0100264config ETRAX_SYNCHRONOUS_SERIAL
265 bool "Synchronous serial-port support"
266 help
267 Select this to enable the synchronous serial port driver.
268
269config ETRAX_SYNCHRONOUS_SERIAL_PORT0
270 bool "Synchronous serial port 0 enabled"
271 depends on ETRAX_SYNCHRONOUS_SERIAL
272 help
273 Enabled synchronous serial port 0.
274
275config ETRAX_SYNCHRONOUS_SERIAL0_DMA
276 bool "Enable DMA on synchronous serial port 0."
277 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
278 help
279 A synchronous serial port can run in manual or DMA mode.
280 Selecting this option will make it run in DMA mode.
281
282config ETRAX_SYNCHRONOUS_SERIAL_PORT1
283 bool "Synchronous serial port 1 enabled"
284 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
285 help
286 Enabled synchronous serial port 1.
287
288config ETRAX_SYNCHRONOUS_SERIAL1_DMA
289 bool "Enable DMA on synchronous serial port 1."
290 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
291 help
292 A synchronous serial port can run in manual or DMA mode.
293 Selecting this option will make it run in DMA mode.
294
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100295choice
296 prompt "Network LED behavior"
297 depends on ETRAX_ETHERNET
298 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
299
300config ETRAX_NETWORK_LED_ON_WHEN_LINK
301 bool "LED_on_when_link"
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
312config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
313 bool "LED_on_when_activity"
314 help
315 Selecting LED_on_when_link will light the LED when there is a
316 connection and will flash off when there is activity.
317
318 Selecting LED_on_when_activity will light the LED only when
319 there is activity.
320
321 This setting will also affect the behaviour of other activity LEDs
322 e.g. Bluetooth.
323
324endchoice
325
326choice
327 prompt "Ser0 DMA out channel"
328 depends on ETRAX_SERIAL_PORT0
329 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
330 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
331
332config ETRAX_SERIAL_PORT0_NO_DMA_OUT
333 bool "Ser0 uses no DMA for output"
334 help
335 Do not use DMA for ser0 output.
336
337config ETRAX_SERIAL_PORT0_DMA6_OUT
338 bool "Ser0 uses DMA6 for output"
339 depends on ETRAXFS
340 help
341 Enables the DMA6 output channel for ser0 (ttyS0).
342 If you do not enable DMA, an interrupt for each character will be
343 used when transmitting data.
344 Normally you want to use DMA, unless you use the DMA channel for
345 something else.
346
347config ETRAX_SERIAL_PORT0_DMA0_OUT
348 bool "Ser0 uses DMA0 for output"
349 depends on CRIS_MACH_ARTPEC3
350 help
351 Enables the DMA0 output channel for ser0 (ttyS0).
352 If you do not enable DMA, an interrupt for each character will be
353 used when transmitting data.
354 Normally you want to use DMA, unless you use the DMA channel for
355 something else.
356
357endchoice
358
359choice
360 prompt "Ser0 DMA in channel "
361 depends on ETRAX_SERIAL_PORT0
362 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
363 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
364 help
365 What DMA channel to use for ser0.
366
367config ETRAX_SERIAL_PORT0_NO_DMA_IN
368 bool "Ser0 uses no DMA for input"
369 help
370 Do not use DMA for ser0 input.
371
372config ETRAX_SERIAL_PORT0_DMA7_IN
373 bool "Ser0 uses DMA7 for input"
374 depends on ETRAXFS
375 help
376 Enables the DMA7 input channel for ser0 (ttyS0).
377 If you do not enable DMA, an interrupt for each character will be
378 used when receiving data.
379 Normally you want to use DMA, unless you use the DMA channel for
380 something else.
381
382config ETRAX_SERIAL_PORT0_DMA1_IN
383 bool "Ser0 uses DMA1 for input"
384 depends on CRIS_MACH_ARTPEC3
385 help
386 Enables the DMA1 input channel for ser0 (ttyS0).
387 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100388 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100389 Normally you want to use DMA, unless you use the DMA channel for
390 something else.
391
392endchoice
393
394choice
395 prompt "Ser1 DMA in channel "
396 depends on ETRAX_SERIAL_PORT1
397 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
398 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
399 help
400 What DMA channel to use for ser1.
401
402config ETRAX_SERIAL_PORT1_NO_DMA_IN
403 bool "Ser1 uses no DMA for input"
404 help
405 Do not use DMA for ser1 input.
406
407config ETRAX_SERIAL_PORT1_DMA5_IN
408 bool "Ser1 uses DMA5 for input"
409 depends on ETRAX_ARCH_V32
410 help
411 Enables the DMA5 input channel for ser1 (ttyS1).
412 If you do not enable DMA, an interrupt for each character will be
413 used when receiving data.
414 Normally you want this on, unless you use the DMA channel for
415 something else.
416
417config ETRAX_SERIAL_PORT1_DMA9_IN
418 depends on ETRAX_ARCH_V10
419 bool "Ser1 uses DMA9 for input"
420
421endchoice
422
423
424choice
425 prompt "Ser1 DMA out channel"
426 depends on ETRAX_SERIAL_PORT1
427 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
428 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
429 help
430 What DMA channel to use for ser1.
431
432config ETRAX_SERIAL_PORT1_NO_DMA_OUT
433 bool "Ser1 uses no DMA for output"
434 help
435 Do not use DMA for ser1 output.
436
437config ETRAX_SERIAL_PORT1_DMA8_OUT
438 depends on ETRAX_ARCH_V10
439 bool "Ser1 uses DMA8 for output"
440
441config ETRAX_SERIAL_PORT1_DMA4_OUT
442 depends on ETRAX_ARCH_V32
443 bool "Ser1 uses DMA4 for output"
444 help
445 Enables the DMA4 output channel for ser1 (ttyS1).
446 If you do not enable DMA, an interrupt for each character will be
447 used when transmitting data.
448 Normally you want this on, unless you use the DMA channel for
449 something else.
450
451endchoice
452
453choice
454 prompt "Ser2 DMA out channel"
455 depends on ETRAX_SERIAL_PORT2
456 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
457 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
458
459config ETRAX_SERIAL_PORT2_NO_DMA_OUT
460 bool "Ser2 uses no DMA for output"
461 help
462 Do not use DMA for ser2 output.
463
464config ETRAX_SERIAL_PORT2_DMA2_OUT
465 bool "Ser2 uses DMA2 for output"
466 depends on ETRAXFS || ETRAX_ARCH_V10
467 help
468 Enables the DMA2 output channel for ser2 (ttyS2).
469 If you do not enable DMA, an interrupt for each character will be
470 used when transmitting data.
471 Normally you want to use DMA, unless you use the DMA channel for
472 something else.
473
474config ETRAX_SERIAL_PORT2_DMA6_OUT
475 bool "Ser2 uses DMA6 for output"
476 depends on CRIS_MACH_ARTPEC3
477 help
478 Enables the DMA6 output channel for ser2 (ttyS2).
479 If you do not enable DMA, an interrupt for each character will be
480 used when transmitting data.
481 Normally you want to use DMA, unless you use the DMA channel for
482 something else.
483
484endchoice
485
486choice
487 prompt "Ser2 DMA in channel"
488 depends on ETRAX_SERIAL_PORT2
489 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
490 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
491 help
492 What DMA channel to use for ser2.
493
494config ETRAX_SERIAL_PORT2_NO_DMA_IN
495 bool "Ser2 uses no DMA for input"
496 help
497 Do not use DMA for ser2 input.
498
499config ETRAX_SERIAL_PORT2_DMA3_IN
500 bool "Ser2 uses DMA3 for input"
501 depends on ETRAXFS || ETRAX_ARCH_V10
502 help
503 Enables the DMA3 input channel for ser2 (ttyS2).
504 If you do not enable DMA, an interrupt for each character will be
505 used when receiving data.
506 Normally you want to use DMA, unless you use the DMA channel for
507 something else.
508
509config ETRAX_SERIAL_PORT2_DMA7_IN
510 bool "Ser2 uses DMA7 for input"
511 depends on CRIS_MACH_ARTPEC3
512 help
513 Enables the DMA7 input channel for ser2 (ttyS2).
514 If you do not enable DMA, an interrupt for each character will be
Matt LaPlante692105b2009-01-26 11:12:25 +0100515 used when receiving data.
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100516 Normally you want to use DMA, unless you use the DMA channel for
517 something else.
518
519endchoice
520
521choice
522 prompt "Ser3 DMA in channel"
523 depends on ETRAX_SERIAL_PORT3
524 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
525 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
526 help
527 What DMA channel to use for ser3.
528
529config ETRAX_SERIAL_PORT3_NO_DMA_IN
530 bool "Ser3 uses no DMA for input"
531 help
532 Do not use DMA for ser3 input.
533
534config ETRAX_SERIAL_PORT3_DMA5_IN
535 depends on ETRAX_ARCH_V10
536 bool "DMA 5"
537
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100538endchoice
539
540choice
541 prompt "Ser3 DMA out channel"
542 depends on ETRAX_SERIAL_PORT3
543 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
544 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
545
546config ETRAX_SERIAL_PORT3_NO_DMA_OUT
547 bool "Ser3 uses no DMA for output"
548 help
549 Do not use DMA for ser3 output.
550
551config ETRAX_SERIAL_PORT3_DMA4_OUT
552 depends on ETRAX_ARCH_V10
553 bool "DMA 4"
554
Jesper Nilsson923dd2a2007-12-05 18:10:36 +0100555endchoice
556
Linus Torvalds1da177e2005-04-16 15:20:36 -0700557endmenu
558
Geert Uytterhoevenacf83632013-05-14 13:54:21 +0200559source "drivers/Kconfig"
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560
Linus Torvalds1da177e2005-04-16 15:20:36 -0700561source "fs/Kconfig"
562
Linus Torvalds1da177e2005-04-16 15:20:36 -0700563source "arch/cris/Kconfig.debug"
564
565source "security/Kconfig"
566
567source "crypto/Kconfig"
568
569source "lib/Kconfig"