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
36 config FORCE_MAX_ZONEORDER
40 config TRACE_IRQFLAGS_SUPPORT
41 depends on ETRAX_ARCH_V32
44 config STACKTRACE_SUPPORT
47 config LOCKDEP_SUPPORT
48 depends on ETRAX_ARCH_V32
55 select GENERIC_ATOMIC64
58 select ARCH_WANT_IPC_PARSE_VERSION
59 select GENERIC_IRQ_SHOW
61 select MODULES_USE_ELF_RELA
62 select CLONE_BACKWARDS2
63 select HAVE_EXIT_THREAD if ETRAX_ARCH_V32
67 select IRQ_DOMAIN if ETRAX_ARCH_V32
68 select OF if ETRAX_ARCH_V32
69 select OF_EARLY_FLATTREE if ETRAX_ARCH_V32
70 select CLKSRC_MMIO if ETRAX_ARCH_V32
71 select GENERIC_CLOCKEVENTS if ETRAX_ARCH_V32
72 select GENERIC_SCHED_CLOCK if ETRAX_ARCH_V32
73 select HAVE_DEBUG_BUGVERBOSE if ETRAX_ARCH_V32
85 string "DTB to build into the kernel image"
90 source "kernel/Kconfig.freezer"
94 source "fs/Kconfig.binfmt"
97 string "Kernel command line"
98 default "root=/dev/mtdblock3"
100 Pass additional commands to the kernel.
102 config ETRAX_WATCHDOG
103 bool "Enable ETRAX watchdog"
105 Enable the built-in watchdog timer support on ETRAX based embedded
108 config ETRAX_WATCHDOG_NICE_DOGGY
109 bool "Disable watchdog during Oops printouts"
110 depends on ETRAX_WATCHDOG
112 By enabling this you make sure that the watchdog does not bite while
113 printing oopses. Recommended for development systems but not for
116 config ETRAX_FAST_TIMER
117 bool "Enable ETRAX fast timer API"
119 This options enables the API to a fast timer implementation using
120 timer1 to get sub jiffie resolution timers (primarily one-shot
122 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled.
124 config ETRAX_KMALLOCED_MODULES
125 bool "Enable module allocation with kmalloc"
127 Enable module allocation with kmalloc instead of vmalloc.
129 source "kernel/Kconfig.preempt"
135 menu "Hardware setup"
138 prompt "Processor type"
142 bool "ETRAX-100LX-v1"
143 select ARCH_USES_GETTIMEOFFSET
145 Support version 1 of the ETRAX 100LX.
148 bool "ETRAX-100LX-v2"
149 select ARCH_USES_GETTIMEOFFSET
151 Support version 2 of the ETRAX 100LX.
158 config CRIS_MACH_ARTPEC3
161 Support Axis ARTPEC-3.
165 config ETRAX_ARCH_V10
167 default y if ETRAX100LX || ETRAX100LX_V2
168 default n if !(ETRAX100LX || ETRAX100LX_V2)
171 config ETRAX_ARCH_V32
173 default y if (ETRAXFS || CRIS_MACH_ARTPEC3)
174 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3)
176 config ETRAX_DRAM_SIZE
177 int "DRAM size (dec, in MB)"
180 Size of DRAM (decimal in MB) typically 2, 8 or 16.
182 config ETRAX_VMEM_SIZE
183 int "Video memory size (dec, in MB)"
184 depends on ETRAX_ARCH_V32 && !ETRAXFS
185 default 8 if !ETRAXFS
187 Size of Video accessible memory (decimal, in MB).
189 config ETRAX_FLASH_BUSWIDTH
190 int "Buswidth of NOR flash in bytes"
193 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2.
195 config ETRAX_FLASH1_SIZE
196 int "FLASH1 size (dec, in MB. 0 = Unknown)"
200 prompt "Product debug-port"
201 default ETRAX_DEBUG_PORT0
203 config ETRAX_DEBUG_PORT0
206 Choose a serial port for the ETRAX debug console. Default to
209 config ETRAX_DEBUG_PORT1
212 Use serial port 1 for the console.
214 config ETRAX_DEBUG_PORT2
217 Use serial port 2 for the console.
219 config ETRAX_DEBUG_PORT3
222 Use serial port 3 for the console.
224 config ETRAX_DEBUG_PORT_NULL
227 Disable serial-port debugging.
232 prompt "Kernel GDB port"
233 depends on ETRAX_KGDB
234 default ETRAX_KGDB_PORT0
236 Choose a serial port for kernel debugging. NOTE: This port should
237 not be enabled under Drivers for built-in interfaces (as it has its
238 own initialization code) and should not be the same as the debug port.
240 config ETRAX_KGDB_PORT0
243 Use serial port 0 for kernel debugging.
245 config ETRAX_KGDB_PORT1
248 Use serial port 1 for kernel debugging.
250 config ETRAX_KGDB_PORT2
253 Use serial port 2 for kernel debugging.
255 config ETRAX_KGDB_PORT3
258 Use serial port 3 for kernel debugging.
262 source arch/cris/arch-v10/Kconfig
263 source arch/cris/arch-v32/Kconfig
269 # bring in ETRAX built-in drivers
270 menu "Drivers for built-in interfaces"
271 source arch/cris/arch-v10/drivers/Kconfig
272 source arch/cris/arch-v32/drivers/Kconfig
274 config ETRAX_AXISFLASHMAP
275 bool "Axis flash-map support"
278 select MTD_CFI_AMDSTD
279 select MTD_JEDECPROBE if ETRAX_ARCH_V32
281 select MTD_COMPLEX_MAPPINGS
283 This option enables MTD mapping of flash devices. Needed to use
284 flash memories. If unsure, say Y.
286 config ETRAX_SYNCHRONOUS_SERIAL
287 bool "Synchronous serial-port support"
289 Select this to enable the synchronous serial port driver.
291 config ETRAX_SYNCHRONOUS_SERIAL_PORT0
292 bool "Synchronous serial port 0 enabled"
293 depends on ETRAX_SYNCHRONOUS_SERIAL
295 Enabled synchronous serial port 0.
297 config ETRAX_SYNCHRONOUS_SERIAL0_DMA
298 bool "Enable DMA on synchronous serial port 0."
299 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0
301 A synchronous serial port can run in manual or DMA mode.
302 Selecting this option will make it run in DMA mode.
304 config ETRAX_SYNCHRONOUS_SERIAL_PORT1
305 bool "Synchronous serial port 1 enabled"
306 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10)
308 Enabled synchronous serial port 1.
310 config ETRAX_SYNCHRONOUS_SERIAL1_DMA
311 bool "Enable DMA on synchronous serial port 1."
312 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1
314 A synchronous serial port can run in manual or DMA mode.
315 Selecting this option will make it run in DMA mode.
318 prompt "Network LED behavior"
319 depends on ETRAX_ETHERNET
320 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
322 config ETRAX_NETWORK_LED_ON_WHEN_LINK
323 bool "LED_on_when_link"
325 Selecting LED_on_when_link will light the LED when there is a
326 connection and will flash off when there is activity.
328 Selecting LED_on_when_activity will light the LED only when
331 This setting will also affect the behaviour of other activity LEDs
334 config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY
335 bool "LED_on_when_activity"
337 Selecting LED_on_when_link will light the LED when there is a
338 connection and will flash off when there is activity.
340 Selecting LED_on_when_activity will light the LED only when
343 This setting will also affect the behaviour of other activity LEDs
349 prompt "Ser0 DMA out channel"
350 depends on ETRAX_SERIAL_PORT0
351 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32
352 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10
354 config ETRAX_SERIAL_PORT0_NO_DMA_OUT
355 bool "Ser0 uses no DMA for output"
357 Do not use DMA for ser0 output.
359 config ETRAX_SERIAL_PORT0_DMA6_OUT
360 bool "Ser0 uses DMA6 for output"
363 Enables the DMA6 output channel for ser0 (ttyS0).
364 If you do not enable DMA, an interrupt for each character will be
365 used when transmitting data.
366 Normally you want to use DMA, unless you use the DMA channel for
369 config ETRAX_SERIAL_PORT0_DMA0_OUT
370 bool "Ser0 uses DMA0 for output"
371 depends on CRIS_MACH_ARTPEC3
373 Enables the DMA0 output channel for ser0 (ttyS0).
374 If you do not enable DMA, an interrupt for each character will be
375 used when transmitting data.
376 Normally you want to use DMA, unless you use the DMA channel for
382 prompt "Ser0 DMA in channel "
383 depends on ETRAX_SERIAL_PORT0
384 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32
385 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10
387 What DMA channel to use for ser0.
389 config ETRAX_SERIAL_PORT0_NO_DMA_IN
390 bool "Ser0 uses no DMA for input"
392 Do not use DMA for ser0 input.
394 config ETRAX_SERIAL_PORT0_DMA7_IN
395 bool "Ser0 uses DMA7 for input"
398 Enables the DMA7 input channel for ser0 (ttyS0).
399 If you do not enable DMA, an interrupt for each character will be
400 used when receiving data.
401 Normally you want to use DMA, unless you use the DMA channel for
404 config ETRAX_SERIAL_PORT0_DMA1_IN
405 bool "Ser0 uses DMA1 for input"
406 depends on CRIS_MACH_ARTPEC3
408 Enables the DMA1 input channel for ser0 (ttyS0).
409 If you do not enable DMA, an interrupt for each character will be
410 used when receiving data.
411 Normally you want to use DMA, unless you use the DMA channel for
417 prompt "Ser1 DMA in channel "
418 depends on ETRAX_SERIAL_PORT1
419 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32
420 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10
422 What DMA channel to use for ser1.
424 config ETRAX_SERIAL_PORT1_NO_DMA_IN
425 bool "Ser1 uses no DMA for input"
427 Do not use DMA for ser1 input.
429 config ETRAX_SERIAL_PORT1_DMA5_IN
430 bool "Ser1 uses DMA5 for input"
431 depends on ETRAX_ARCH_V32
433 Enables the DMA5 input channel for ser1 (ttyS1).
434 If you do not enable DMA, an interrupt for each character will be
435 used when receiving data.
436 Normally you want this on, unless you use the DMA channel for
439 config ETRAX_SERIAL_PORT1_DMA9_IN
440 depends on ETRAX_ARCH_V10
441 bool "Ser1 uses DMA9 for input"
447 prompt "Ser1 DMA out channel"
448 depends on ETRAX_SERIAL_PORT1
449 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32
450 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10
452 What DMA channel to use for ser1.
454 config ETRAX_SERIAL_PORT1_NO_DMA_OUT
455 bool "Ser1 uses no DMA for output"
457 Do not use DMA for ser1 output.
459 config ETRAX_SERIAL_PORT1_DMA8_OUT
460 depends on ETRAX_ARCH_V10
461 bool "Ser1 uses DMA8 for output"
463 config ETRAX_SERIAL_PORT1_DMA4_OUT
464 depends on ETRAX_ARCH_V32
465 bool "Ser1 uses DMA4 for output"
467 Enables the DMA4 output channel for ser1 (ttyS1).
468 If you do not enable DMA, an interrupt for each character will be
469 used when transmitting data.
470 Normally you want this on, unless you use the DMA channel for
476 prompt "Ser2 DMA out channel"
477 depends on ETRAX_SERIAL_PORT2
478 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32
479 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10
481 config ETRAX_SERIAL_PORT2_NO_DMA_OUT
482 bool "Ser2 uses no DMA for output"
484 Do not use DMA for ser2 output.
486 config ETRAX_SERIAL_PORT2_DMA2_OUT
487 bool "Ser2 uses DMA2 for output"
488 depends on ETRAXFS || ETRAX_ARCH_V10
490 Enables the DMA2 output channel for ser2 (ttyS2).
491 If you do not enable DMA, an interrupt for each character will be
492 used when transmitting data.
493 Normally you want to use DMA, unless you use the DMA channel for
496 config ETRAX_SERIAL_PORT2_DMA6_OUT
497 bool "Ser2 uses DMA6 for output"
498 depends on CRIS_MACH_ARTPEC3
500 Enables the DMA6 output channel for ser2 (ttyS2).
501 If you do not enable DMA, an interrupt for each character will be
502 used when transmitting data.
503 Normally you want to use DMA, unless you use the DMA channel for
509 prompt "Ser2 DMA in channel"
510 depends on ETRAX_SERIAL_PORT2
511 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32
512 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10
514 What DMA channel to use for ser2.
516 config ETRAX_SERIAL_PORT2_NO_DMA_IN
517 bool "Ser2 uses no DMA for input"
519 Do not use DMA for ser2 input.
521 config ETRAX_SERIAL_PORT2_DMA3_IN
522 bool "Ser2 uses DMA3 for input"
523 depends on ETRAXFS || ETRAX_ARCH_V10
525 Enables the DMA3 input channel for ser2 (ttyS2).
526 If you do not enable DMA, an interrupt for each character will be
527 used when receiving data.
528 Normally you want to use DMA, unless you use the DMA channel for
531 config ETRAX_SERIAL_PORT2_DMA7_IN
532 bool "Ser2 uses DMA7 for input"
533 depends on CRIS_MACH_ARTPEC3
535 Enables the DMA7 input channel for ser2 (ttyS2).
536 If you do not enable DMA, an interrupt for each character will be
537 used when receiving data.
538 Normally you want to use DMA, unless you use the DMA channel for
544 prompt "Ser3 DMA in channel"
545 depends on ETRAX_SERIAL_PORT3
546 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32
547 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10
549 What DMA channel to use for ser3.
551 config ETRAX_SERIAL_PORT3_NO_DMA_IN
552 bool "Ser3 uses no DMA for input"
554 Do not use DMA for ser3 input.
556 config ETRAX_SERIAL_PORT3_DMA5_IN
557 depends on ETRAX_ARCH_V10
563 prompt "Ser3 DMA out channel"
564 depends on ETRAX_SERIAL_PORT3
565 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32
566 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10
568 config ETRAX_SERIAL_PORT3_NO_DMA_OUT
569 bool "Ser3 uses no DMA for output"
571 Do not use DMA for ser3 output.
573 config ETRAX_SERIAL_PORT3_DMA4_OUT
574 depends on ETRAX_ARCH_V10
581 source "drivers/Kconfig"
585 source "arch/cris/Kconfig.debug"
587 source "security/Kconfig"
589 source "crypto/Kconfig"