1# SPDX-License-Identifier: GPL-2.0 2config MMU 3 bool 4 default y 5 6config ZONE_DMA 7 bool 8 default y 9 10config RWSEM_GENERIC_SPINLOCK 11 bool 12 default y 13 14config RWSEM_XCHGADD_ALGORITHM 15 bool 16 17config ARCH_HAS_ILOG2_U32 18 bool 19 default n 20 21config ARCH_HAS_ILOG2_U64 22 bool 23 default n 24 25config GENERIC_HWEIGHT 26 bool 27 default y 28 29config GENERIC_CALIBRATE_DELAY 30 bool 31 default y 32 33config NO_IOPORT_MAP 34 def_bool y if !PCI 35 36config FORCE_MAX_ZONEORDER 37 int 38 default 6 39 40config TRACE_IRQFLAGS_SUPPORT 41 depends on ETRAX_ARCH_V32 42 def_bool y 43 44config STACKTRACE_SUPPORT 45 def_bool y 46 47config LOCKDEP_SUPPORT 48 depends on ETRAX_ARCH_V32 49 def_bool y 50 51config CRIS 52 bool 53 default y 54 select HAVE_IDE 55 select GENERIC_ATOMIC64 56 select HAVE_UID16 57 select VIRT_TO_BUS 58 select ARCH_WANT_IPC_PARSE_VERSION 59 select GENERIC_IRQ_SHOW 60 select GENERIC_IOMAP 61 select MODULES_USE_ELF_RELA 62 select CLONE_BACKWARDS2 63 select HAVE_EXIT_THREAD if ETRAX_ARCH_V32 64 select OLD_SIGSUSPEND 65 select OLD_SIGACTION 66 select GPIOLIB 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 74 select HAVE_NMI 75 76config HZ 77 int 78 default 100 79 80config NR_CPUS 81 int 82 default "1" 83 84config BUILTIN_DTB 85 string "DTB to build into the kernel image" 86 depends on OF 87 88source "init/Kconfig" 89 90source "kernel/Kconfig.freezer" 91 92menu "General setup" 93 94source "fs/Kconfig.binfmt" 95 96config ETRAX_CMDLINE 97 string "Kernel command line" 98 default "root=/dev/mtdblock3" 99 help 100 Pass additional commands to the kernel. 101 102config ETRAX_WATCHDOG 103 bool "Enable ETRAX watchdog" 104 help 105 Enable the built-in watchdog timer support on ETRAX based embedded 106 network computers. 107 108config ETRAX_WATCHDOG_NICE_DOGGY 109 bool "Disable watchdog during Oops printouts" 110 depends on ETRAX_WATCHDOG 111 help 112 By enabling this you make sure that the watchdog does not bite while 113 printing oopses. Recommended for development systems but not for 114 production releases. 115 116config ETRAX_FAST_TIMER 117 bool "Enable ETRAX fast timer API" 118 help 119 This options enables the API to a fast timer implementation using 120 timer1 to get sub jiffie resolution timers (primarily one-shot 121 timers). 122 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled. 123 124config ETRAX_KMALLOCED_MODULES 125 bool "Enable module allocation with kmalloc" 126 help 127 Enable module allocation with kmalloc instead of vmalloc. 128 129source "kernel/Kconfig.preempt" 130 131source mm/Kconfig 132 133endmenu 134 135menu "Hardware setup" 136 137choice 138 prompt "Processor type" 139 default ETRAX100LX 140 141config ETRAX100LX 142 bool "ETRAX-100LX-v1" 143 select ARCH_USES_GETTIMEOFFSET 144 help 145 Support version 1 of the ETRAX 100LX. 146 147config ETRAX100LX_V2 148 bool "ETRAX-100LX-v2" 149 select ARCH_USES_GETTIMEOFFSET 150 help 151 Support version 2 of the ETRAX 100LX. 152 153config ETRAXFS 154 bool "ETRAX-FS-V32" 155 help 156 Support CRIS V32. 157 158config CRIS_MACH_ARTPEC3 159 bool "ARTPEC-3" 160 help 161 Support Axis ARTPEC-3. 162 163endchoice 164 165config ETRAX_ARCH_V10 166 bool 167 default y if ETRAX100LX || ETRAX100LX_V2 168 default n if !(ETRAX100LX || ETRAX100LX_V2) 169 select TTY 170 171config ETRAX_ARCH_V32 172 bool 173 default y if (ETRAXFS || CRIS_MACH_ARTPEC3) 174 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3) 175 176config ETRAX_DRAM_SIZE 177 int "DRAM size (dec, in MB)" 178 default "8" 179 help 180 Size of DRAM (decimal in MB) typically 2, 8 or 16. 181 182config ETRAX_VMEM_SIZE 183 int "Video memory size (dec, in MB)" 184 depends on ETRAX_ARCH_V32 && !ETRAXFS 185 default 8 if !ETRAXFS 186 help 187 Size of Video accessible memory (decimal, in MB). 188 189config ETRAX_FLASH_BUSWIDTH 190 int "Buswidth of NOR flash in bytes" 191 default "2" 192 help 193 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2. 194 195config ETRAX_FLASH1_SIZE 196 int "FLASH1 size (dec, in MB. 0 = Unknown)" 197 default "0" 198 199choice 200 prompt "Product debug-port" 201 default ETRAX_DEBUG_PORT0 202 203config ETRAX_DEBUG_PORT0 204 bool "Serial-0" 205 help 206 Choose a serial port for the ETRAX debug console. Default to 207 port 0. 208 209config ETRAX_DEBUG_PORT1 210 bool "Serial-1" 211 help 212 Use serial port 1 for the console. 213 214config ETRAX_DEBUG_PORT2 215 bool "Serial-2" 216 help 217 Use serial port 2 for the console. 218 219config ETRAX_DEBUG_PORT3 220 bool "Serial-3" 221 help 222 Use serial port 3 for the console. 223 224config ETRAX_DEBUG_PORT_NULL 225 bool "disabled" 226 help 227 Disable serial-port debugging. 228 229endchoice 230 231choice 232 prompt "Kernel GDB port" 233 depends on ETRAX_KGDB 234 default ETRAX_KGDB_PORT0 235 help 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. 239 240config ETRAX_KGDB_PORT0 241 bool "Serial-0" 242 help 243 Use serial port 0 for kernel debugging. 244 245config ETRAX_KGDB_PORT1 246 bool "Serial-1" 247 help 248 Use serial port 1 for kernel debugging. 249 250config ETRAX_KGDB_PORT2 251 bool "Serial-2" 252 help 253 Use serial port 2 for kernel debugging. 254 255config ETRAX_KGDB_PORT3 256 bool "Serial-3" 257 help 258 Use serial port 3 for kernel debugging. 259 260endchoice 261 262source arch/cris/arch-v10/Kconfig 263source arch/cris/arch-v32/Kconfig 264 265endmenu 266 267source "net/Kconfig" 268 269# bring in ETRAX built-in drivers 270menu "Drivers for built-in interfaces" 271source arch/cris/arch-v10/drivers/Kconfig 272source arch/cris/arch-v32/drivers/Kconfig 273 274config ETRAX_AXISFLASHMAP 275 bool "Axis flash-map support" 276 select MTD 277 select MTD_CFI 278 select MTD_CFI_AMDSTD 279 select MTD_JEDECPROBE if ETRAX_ARCH_V32 280 select MTD_BLOCK 281 select MTD_COMPLEX_MAPPINGS 282 help 283 This option enables MTD mapping of flash devices. Needed to use 284 flash memories. If unsure, say Y. 285 286config ETRAX_SYNCHRONOUS_SERIAL 287 bool "Synchronous serial-port support" 288 help 289 Select this to enable the synchronous serial port driver. 290 291config ETRAX_SYNCHRONOUS_SERIAL_PORT0 292 bool "Synchronous serial port 0 enabled" 293 depends on ETRAX_SYNCHRONOUS_SERIAL 294 help 295 Enabled synchronous serial port 0. 296 297config ETRAX_SYNCHRONOUS_SERIAL0_DMA 298 bool "Enable DMA on synchronous serial port 0." 299 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0 300 help 301 A synchronous serial port can run in manual or DMA mode. 302 Selecting this option will make it run in DMA mode. 303 304config ETRAX_SYNCHRONOUS_SERIAL_PORT1 305 bool "Synchronous serial port 1 enabled" 306 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10) 307 help 308 Enabled synchronous serial port 1. 309 310config ETRAX_SYNCHRONOUS_SERIAL1_DMA 311 bool "Enable DMA on synchronous serial port 1." 312 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1 313 help 314 A synchronous serial port can run in manual or DMA mode. 315 Selecting this option will make it run in DMA mode. 316 317choice 318 prompt "Network LED behavior" 319 depends on ETRAX_ETHERNET 320 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY 321 322config ETRAX_NETWORK_LED_ON_WHEN_LINK 323 bool "LED_on_when_link" 324 help 325 Selecting LED_on_when_link will light the LED when there is a 326 connection and will flash off when there is activity. 327 328 Selecting LED_on_when_activity will light the LED only when 329 there is activity. 330 331 This setting will also affect the behaviour of other activity LEDs 332 e.g. Bluetooth. 333 334config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY 335 bool "LED_on_when_activity" 336 help 337 Selecting LED_on_when_link will light the LED when there is a 338 connection and will flash off when there is activity. 339 340 Selecting LED_on_when_activity will light the LED only when 341 there is activity. 342 343 This setting will also affect the behaviour of other activity LEDs 344 e.g. Bluetooth. 345 346endchoice 347 348choice 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 353 354config ETRAX_SERIAL_PORT0_NO_DMA_OUT 355 bool "Ser0 uses no DMA for output" 356 help 357 Do not use DMA for ser0 output. 358 359config ETRAX_SERIAL_PORT0_DMA6_OUT 360 bool "Ser0 uses DMA6 for output" 361 depends on ETRAXFS 362 help 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 367 something else. 368 369config ETRAX_SERIAL_PORT0_DMA0_OUT 370 bool "Ser0 uses DMA0 for output" 371 depends on CRIS_MACH_ARTPEC3 372 help 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 377 something else. 378 379endchoice 380 381choice 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 386 help 387 What DMA channel to use for ser0. 388 389config ETRAX_SERIAL_PORT0_NO_DMA_IN 390 bool "Ser0 uses no DMA for input" 391 help 392 Do not use DMA for ser0 input. 393 394config ETRAX_SERIAL_PORT0_DMA7_IN 395 bool "Ser0 uses DMA7 for input" 396 depends on ETRAXFS 397 help 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 402 something else. 403 404config ETRAX_SERIAL_PORT0_DMA1_IN 405 bool "Ser0 uses DMA1 for input" 406 depends on CRIS_MACH_ARTPEC3 407 help 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 412 something else. 413 414endchoice 415 416choice 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 421 help 422 What DMA channel to use for ser1. 423 424config ETRAX_SERIAL_PORT1_NO_DMA_IN 425 bool "Ser1 uses no DMA for input" 426 help 427 Do not use DMA for ser1 input. 428 429config ETRAX_SERIAL_PORT1_DMA5_IN 430 bool "Ser1 uses DMA5 for input" 431 depends on ETRAX_ARCH_V32 432 help 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 437 something else. 438 439config ETRAX_SERIAL_PORT1_DMA9_IN 440 depends on ETRAX_ARCH_V10 441 bool "Ser1 uses DMA9 for input" 442 443endchoice 444 445 446choice 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 451 help 452 What DMA channel to use for ser1. 453 454config ETRAX_SERIAL_PORT1_NO_DMA_OUT 455 bool "Ser1 uses no DMA for output" 456 help 457 Do not use DMA for ser1 output. 458 459config ETRAX_SERIAL_PORT1_DMA8_OUT 460 depends on ETRAX_ARCH_V10 461 bool "Ser1 uses DMA8 for output" 462 463config ETRAX_SERIAL_PORT1_DMA4_OUT 464 depends on ETRAX_ARCH_V32 465 bool "Ser1 uses DMA4 for output" 466 help 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 471 something else. 472 473endchoice 474 475choice 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 480 481config ETRAX_SERIAL_PORT2_NO_DMA_OUT 482 bool "Ser2 uses no DMA for output" 483 help 484 Do not use DMA for ser2 output. 485 486config ETRAX_SERIAL_PORT2_DMA2_OUT 487 bool "Ser2 uses DMA2 for output" 488 depends on ETRAXFS || ETRAX_ARCH_V10 489 help 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 494 something else. 495 496config ETRAX_SERIAL_PORT2_DMA6_OUT 497 bool "Ser2 uses DMA6 for output" 498 depends on CRIS_MACH_ARTPEC3 499 help 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 504 something else. 505 506endchoice 507 508choice 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 513 help 514 What DMA channel to use for ser2. 515 516config ETRAX_SERIAL_PORT2_NO_DMA_IN 517 bool "Ser2 uses no DMA for input" 518 help 519 Do not use DMA for ser2 input. 520 521config ETRAX_SERIAL_PORT2_DMA3_IN 522 bool "Ser2 uses DMA3 for input" 523 depends on ETRAXFS || ETRAX_ARCH_V10 524 help 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 529 something else. 530 531config ETRAX_SERIAL_PORT2_DMA7_IN 532 bool "Ser2 uses DMA7 for input" 533 depends on CRIS_MACH_ARTPEC3 534 help 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 539 something else. 540 541endchoice 542 543choice 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 548 help 549 What DMA channel to use for ser3. 550 551config ETRAX_SERIAL_PORT3_NO_DMA_IN 552 bool "Ser3 uses no DMA for input" 553 help 554 Do not use DMA for ser3 input. 555 556config ETRAX_SERIAL_PORT3_DMA5_IN 557 depends on ETRAX_ARCH_V10 558 bool "DMA 5" 559 560endchoice 561 562choice 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 567 568config ETRAX_SERIAL_PORT3_NO_DMA_OUT 569 bool "Ser3 uses no DMA for output" 570 help 571 Do not use DMA for ser3 output. 572 573config ETRAX_SERIAL_PORT3_DMA4_OUT 574 depends on ETRAX_ARCH_V10 575 bool "DMA 4" 576 577endchoice 578 579endmenu 580 581source "drivers/Kconfig" 582 583source "fs/Kconfig" 584 585source "arch/cris/Kconfig.debug" 586 587source "security/Kconfig" 588 589source "crypto/Kconfig" 590 591source "lib/Kconfig" 592