1 # SPDX-License-Identifier: GPL-2.0
10 config RWSEM_GENERIC_SPINLOCK
14 config RWSEM_XCHGADD_ALGORITHM
17 config ARCH_HAS_ILOG2_U32
21 config ARCH_HAS_ILOG2_U64
25 config GENERIC_HWEIGHT
29 config GENERIC_CALIBRATE_DELAY
39 config FORCE_MAX_ZONEORDER
43 config TRACE_IRQFLAGS_SUPPORT
44 depends on ETRAX_ARCH_V32
47 config STACKTRACE_SUPPORT
50 config LOCKDEP_SUPPORT
51 depends on ETRAX_ARCH_V32
58 select GENERIC_ATOMIC64
61 select ARCH_WANT_IPC_PARSE_VERSION
62 select GENERIC_IRQ_SHOW
64 select MODULES_USE_ELF_RELA
65 select CLONE_BACKWARDS2
66 select HAVE_EXIT_THREAD if ETRAX_ARCH_V32
70 select IRQ_DOMAIN if ETRAX_ARCH_V32
71 select OF if ETRAX_ARCH_V32
72 select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
73 select CLKSRC_MMIO if ETRAX_ARCH_V32
74 select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
75 select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
76 select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
78 select DMA_DIRECT_OPS if PCI
89 string "DTB to build into the kernel image"
94 source "kernel/Kconfig.freezer"
98 source "fs/Kconfig.binfmt"
101 string "Kernel command line"
102 default "root=/dev/mtdblock3"
104 Pass additional commands to the kernel.
106 config ETRAX_WATCHDOG
107 bool "Enable ETRAX watchdog"
109 Enable the built-in watchdog timer support on ETRAX based embedded
112 config ETRAX_WATCHDOG_NICE_DOGGY
113 bool "Disable watchdog during Oops printouts"
114 depends on ETRAX_WATCHDOG
116 By enabling this you make sure that the watchdog does not bite while
117 printing oopses. Recommended for development systems but not for
120 config ETRAX_FAST_TIMER
121 bool "Enable ETRAX fast timer API"
123 This options enables the API to a fast timer implementation using
124 timer1 to get sub jiffie resolution timers (primarily one-shot
126 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
128 config ETRAX_KMALLOCED_MODULES
129 bool "Enable module allocation with kmalloc"
131 Enable module allocation with kmalloc instead of vmalloc.
133 source "kernel/Kconfig.preempt"
139 menu "Hardware setup"
142 prompt "Processor type"
146 bool "ETRAX-100LX-v1"
147 select ARCH_USES_GETTIMEOFFSET
149 Support version 1 of the ETRAX 100LX.
152 bool "ETRAX-100LX-v2"
153 select ARCH_USES_GETTIMEOFFSET
155 Support version 2 of the ETRAX 100LX.
162 config CRIS_MACH_ARTPEC3
165 Support Axis ARTPEC-3.
169 config ETRAX_ARCH_V10
171 default y if ETRAX100LX || ETRAX100LX_V2
172 default n if !(ETRAX100LX || ETRAX100LX_V2)
175 config ETRAX_ARCH_V32
177 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
178 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
180 config ETRAX_DRAM_SIZE
181 int "DRAM size (dec, in MB)"
184 Size of DRAM (decimal in MB) typically 2, 8 or 16.
186 config ETRAX_VMEM_SIZE
187 int "Video memory size (dec, in MB)"
188 depends on ETRAX_ARCH_V32 && !ETRAXFS
189 default 8 if !ETRAXFS
191 Size of Video accessible memory (decimal, in MB).
193 config ETRAX_FLASH_BUSWIDTH
194 int "Buswidth of NOR flash in bytes"
197 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
199 config ETRAX_FLASH1_SIZE
200 int "FLASH1 size (dec, in MB. 0 = Unknown)"
204 prompt "Product debug-port"
205 default ETRAX_DEBUG_PORT0
207 config ETRAX_DEBUG_PORT0
210 Choose a serial port for the ETRAX debug console. Default to
213 config ETRAX_DEBUG_PORT1
216 Use serial port 1 for the console.
218 config ETRAX_DEBUG_PORT2
221 Use serial port 2 for the console.
223 config ETRAX_DEBUG_PORT3
226 Use serial port 3 for the console.
228 config ETRAX_DEBUG_PORT_NULL
231 Disable serial-port debugging.
236 prompt "Kernel GDB port"
237 depends on ETRAX_KGDB
238 default ETRAX_KGDB_PORT0
240 Choose a serial port for kernel debugging. NOTE: This port should
241 not be enabled under Drivers for built-in interfaces (as it has its
242 own initialization code) and should not be the same as the debug port.
244 config ETRAX_KGDB_PORT0
247 Use serial port 0 for kernel debugging.
249 config ETRAX_KGDB_PORT1
252 Use serial port 1 for kernel debugging.
254 config ETRAX_KGDB_PORT2
257 Use serial port 2 for kernel debugging.
259 config ETRAX_KGDB_PORT3
262 Use serial port 3 for kernel debugging.
266 source arch/cris/arch-v10/Kconfig
267 source arch/cris/arch-v32/Kconfig
273 # bring in ETRAX built-in drivers
274 menu "Drivers for built-in interfaces"
275 source arch/cris/arch-v10/drivers/Kconfig
276 source arch/cris/arch-v32/drivers/Kconfig
278 config ETRAX_AXISFLASHMAP
279 bool "Axis flash-map support"
282 select MTD_CFI_AMDSTD
283 select MTD_JEDECPROBE if ETRAX_ARCH_V32
285 select MTD_COMPLEX_MAPPINGS
287 This option enables MTD mapping of flash devices. Needed to use
288 flash memories. If unsure, say Y.
290 config ETRAX_SYNCHRONOUS_SERIAL
291 bool "Synchronous serial-port support"
293 Select this to enable the synchronous serial port driver.
295 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
296 bool "Synchronous serial port 0 enabled"
297 depends on ETRAX_SYNCHRONOUS_SERIAL
299 Enabled synchronous serial port 0.
301 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
302 bool "Enable DMA on synchronous serial port 0."
303 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
305 A synchronous serial port can run in manual or DMA mode.
306 Selecting this option will make it run in DMA mode.
308 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
309 bool "Synchronous serial port 1 enabled"
310 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
312 Enabled synchronous serial port 1.
314 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
315 bool "Enable DMA on synchronous serial port 1."
316 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
318 A synchronous serial port can run in manual or DMA mode.
319 Selecting this option will make it run in DMA mode.
322 prompt "Network LED behavior"
323 depends on ETRAX_ETHERNET
324 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
326 config ETRAX_NETWORK_LED_ON_WHEN_LINK
327 bool "LED_on_when_link"
329 Selecting LED_on_when_link will light the LED when there is a
330 connection and will flash off when there is activity.
332 Selecting LED_on_when_activity will light the LED only when
335 This setting will also affect the behaviour of other activity LEDs
338 config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
339 bool "LED_on_when_activity"
341 Selecting LED_on_when_link will light the LED when there is a
342 connection and will flash off when there is activity.
344 Selecting LED_on_when_activity will light the LED only when
347 This setting will also affect the behaviour of other activity LEDs
353 prompt "Ser0 DMA out channel"
354 depends on ETRAX_SERIAL_PORT0
355 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
356 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
358 config ETRAX_SERIAL_PORT0_NO_DMA_OUT
359 bool "Ser0 uses no DMA for output"
361 Do not use DMA for ser0 output.
363 config ETRAX_SERIAL_PORT0_DMA6_OUT
364 bool "Ser0 uses DMA6 for output"
367 Enables the DMA6 output channel for ser0 (ttyS0).
368 If you do not enable DMA, an interrupt for each character will be
369 used when transmitting data.
370 Normally you want to use DMA, unless you use the DMA channel for
373 config ETRAX_SERIAL_PORT0_DMA0_OUT
374 bool "Ser0 uses DMA0 for output"
375 depends on CRIS_MACH_ARTPEC3
377 Enables the DMA0 output channel for ser0 (ttyS0).
378 If you do not enable DMA, an interrupt for each character will be
379 used when transmitting data.
380 Normally you want to use DMA, unless you use the DMA channel for
386 prompt "Ser0 DMA in channel "
387 depends on ETRAX_SERIAL_PORT0
388 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
389 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
391 What DMA channel to use for ser0.
393 config ETRAX_SERIAL_PORT0_NO_DMA_IN
394 bool "Ser0 uses no DMA for input"
396 Do not use DMA for ser0 input.
398 config ETRAX_SERIAL_PORT0_DMA7_IN
399 bool "Ser0 uses DMA7 for input"
402 Enables the DMA7 input channel for ser0 (ttyS0).
403 If you do not enable DMA, an interrupt for each character will be
404 used when receiving data.
405 Normally you want to use DMA, unless you use the DMA channel for
408 config ETRAX_SERIAL_PORT0_DMA1_IN
409 bool "Ser0 uses DMA1 for input"
410 depends on CRIS_MACH_ARTPEC3
412 Enables the DMA1 input channel for ser0 (ttyS0).
413 If you do not enable DMA, an interrupt for each character will be
414 used when receiving data.
415 Normally you want to use DMA, unless you use the DMA channel for
421 prompt "Ser1 DMA in channel "
422 depends on ETRAX_SERIAL_PORT1
423 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
424 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
426 What DMA channel to use for ser1.
428 config ETRAX_SERIAL_PORT1_NO_DMA_IN
429 bool "Ser1 uses no DMA for input"
431 Do not use DMA for ser1 input.
433 config ETRAX_SERIAL_PORT1_DMA5_IN
434 bool "Ser1 uses DMA5 for input"
435 depends on ETRAX_ARCH_V32
437 Enables the DMA5 input channel for ser1 (ttyS1).
438 If you do not enable DMA, an interrupt for each character will be
439 used when receiving data.
440 Normally you want this on, unless you use the DMA channel for
443 config ETRAX_SERIAL_PORT1_DMA9_IN
444 depends on ETRAX_ARCH_V10
445 bool "Ser1 uses DMA9 for input"
451 prompt "Ser1 DMA out channel"
452 depends on ETRAX_SERIAL_PORT1
453 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
454 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
456 What DMA channel to use for ser1.
458 config ETRAX_SERIAL_PORT1_NO_DMA_OUT
459 bool "Ser1 uses no DMA for output"
461 Do not use DMA for ser1 output.
463 config ETRAX_SERIAL_PORT1_DMA8_OUT
464 depends on ETRAX_ARCH_V10
465 bool "Ser1 uses DMA8 for output"
467 config ETRAX_SERIAL_PORT1_DMA4_OUT
468 depends on ETRAX_ARCH_V32
469 bool "Ser1 uses DMA4 for output"
471 Enables the DMA4 output channel for ser1 (ttyS1).
472 If you do not enable DMA, an interrupt for each character will be
473 used when transmitting data.
474 Normally you want this on, unless you use the DMA channel for
480 prompt "Ser2 DMA out channel"
481 depends on ETRAX_SERIAL_PORT2
482 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
483 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
485 config ETRAX_SERIAL_PORT2_NO_DMA_OUT
486 bool "Ser2 uses no DMA for output"
488 Do not use DMA for ser2 output.
490 config ETRAX_SERIAL_PORT2_DMA2_OUT
491 bool "Ser2 uses DMA2 for output"
492 depends on ETRAXFS || ETRAX_ARCH_V10
494 Enables the DMA2 output channel for ser2 (ttyS2).
495 If you do not enable DMA, an interrupt for each character will be
496 used when transmitting data.
497 Normally you want to use DMA, unless you use the DMA channel for
500 config ETRAX_SERIAL_PORT2_DMA6_OUT
501 bool "Ser2 uses DMA6 for output"
502 depends on CRIS_MACH_ARTPEC3
504 Enables the DMA6 output channel for ser2 (ttyS2).
505 If you do not enable DMA, an interrupt for each character will be
506 used when transmitting data.
507 Normally you want to use DMA, unless you use the DMA channel for
513 prompt "Ser2 DMA in channel"
514 depends on ETRAX_SERIAL_PORT2
515 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
516 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
518 What DMA channel to use for ser2.
520 config ETRAX_SERIAL_PORT2_NO_DMA_IN
521 bool "Ser2 uses no DMA for input"
523 Do not use DMA for ser2 input.
525 config ETRAX_SERIAL_PORT2_DMA3_IN
526 bool "Ser2 uses DMA3 for input"
527 depends on ETRAXFS || ETRAX_ARCH_V10
529 Enables the DMA3 input channel for ser2 (ttyS2).
530 If you do not enable DMA, an interrupt for each character will be
531 used when receiving data.
532 Normally you want to use DMA, unless you use the DMA channel for
535 config ETRAX_SERIAL_PORT2_DMA7_IN
536 bool "Ser2 uses DMA7 for input"
537 depends on CRIS_MACH_ARTPEC3
539 Enables the DMA7 input channel for ser2 (ttyS2).
540 If you do not enable DMA, an interrupt for each character will be
541 used when receiving data.
542 Normally you want to use DMA, unless you use the DMA channel for
548 prompt "Ser3 DMA in channel"
549 depends on ETRAX_SERIAL_PORT3
550 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
551 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
553 What DMA channel to use for ser3.
555 config ETRAX_SERIAL_PORT3_NO_DMA_IN
556 bool "Ser3 uses no DMA for input"
558 Do not use DMA for ser3 input.
560 config ETRAX_SERIAL_PORT3_DMA5_IN
561 depends on ETRAX_ARCH_V10
567 prompt "Ser3 DMA out channel"
568 depends on ETRAX_SERIAL_PORT3
569 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
570 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
572 config ETRAX_SERIAL_PORT3_NO_DMA_OUT
573 bool "Ser3 uses no DMA for output"
575 Do not use DMA for ser3 output.
577 config ETRAX_SERIAL_PORT3_DMA4_OUT
578 depends on ETRAX_ARCH_V10
585 source "drivers/Kconfig"
589 source "arch/cris/Kconfig.debug"
591 source "security/Kconfig"
593 source "crypto/Kconfig"