1config MMU 2 bool 3 default y 4 5config ZONE_DMA 6 bool 7 default y 8 9config RWSEM_GENERIC_SPINLOCK 10 bool 11 default y 12 13config RWSEM_XCHGADD_ALGORITHM 14 bool 15 16config ARCH_HAS_ILOG2_U32 17 bool 18 default n 19 20config ARCH_HAS_ILOG2_U64 21 bool 22 default n 23 24config GENERIC_HWEIGHT 25 bool 26 default y 27 28config GENERIC_CALIBRATE_DELAY 29 bool 30 default y 31 32config NO_IOPORT 33 def_bool y 34 35config FORCE_MAX_ZONEORDER 36 int 37 default 6 38 39config CRIS 40 bool 41 default y 42 select HAVE_IDE 43 select GENERIC_ATOMIC64 44 select HAVE_GENERIC_HARDIRQS 45 select HAVE_UID16 46 select ARCH_WANT_IPC_PARSE_VERSION 47 select GENERIC_IRQ_SHOW 48 select GENERIC_IOMAP 49 select GENERIC_SMP_IDLE_THREAD if ETRAX_ARCH_V32 50 select GENERIC_CMOS_UPDATE 51 select MODULES_USE_ELF_RELA 52 53config HZ 54 int 55 default 100 56 57source "init/Kconfig" 58 59source "kernel/Kconfig.freezer" 60 61menu "General setup" 62 63source "fs/Kconfig.binfmt" 64 65config ETRAX_CMDLINE 66 string "Kernel command line" 67 default "root=/dev/mtdblock3" 68 help 69 Pass additional commands to the kernel. 70 71config ETRAX_WATCHDOG 72 bool "Enable ETRAX watchdog" 73 help 74 Enable the built-in watchdog timer support on ETRAX based embedded 75 network computers. 76 77config ETRAX_WATCHDOG_NICE_DOGGY 78 bool "Disable watchdog during Oops printouts" 79 depends on ETRAX_WATCHDOG 80 help 81 By enabling this you make sure that the watchdog does not bite while 82 printing oopses. Recommended for development systems but not for 83 production releases. 84 85config ETRAX_FAST_TIMER 86 bool "Enable ETRAX fast timer API" 87 help 88 This options enables the API to a fast timer implementation using 89 timer1 to get sub jiffie resolution timers (primarily one-shot 90 timers). 91 This is needed if CONFIG_ETRAX_SERIAL_FAST_TIMER is enabled. 92 93config ETRAX_KMALLOCED_MODULES 94 bool "Enable module allocation with kmalloc" 95 help 96 Enable module allocation with kmalloc instead of vmalloc. 97 98config OOM_REBOOT 99 bool "Enable reboot at out of memory" 100 101source "kernel/Kconfig.preempt" 102 103source mm/Kconfig 104 105endmenu 106 107menu "Hardware setup" 108 109choice 110 prompt "Processor type" 111 default ETRAX100LX 112 113config ETRAX100LX 114 bool "ETRAX-100LX-v1" 115 select ARCH_USES_GETTIMEOFFSET 116 help 117 Support version 1 of the ETRAX 100LX. 118 119config ETRAX100LX_V2 120 bool "ETRAX-100LX-v2" 121 select ARCH_USES_GETTIMEOFFSET 122 help 123 Support version 2 of the ETRAX 100LX. 124 125config SVINTO_SIM 126 bool "ETRAX-100LX-for-xsim-simulator" 127 select ARCH_USES_GETTIMEOFFSET 128 help 129 Support the xsim ETRAX Simulator. 130 131config 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 141endchoice 142 143config ETRAX_ARCH_V10 144 bool 145 default y if ETRAX100LX || ETRAX100LX_V2 146 default n if !(ETRAX100LX || ETRAX100LX_V2) 147 148config ETRAX_ARCH_V32 149 bool 150 default y if (ETRAXFS || CRIS_MACH_ARTPEC3) 151 default n if !(ETRAXFS || CRIS_MACH_ARTPEC3) 152 153config ETRAX_DRAM_SIZE 154 int "DRAM size (dec, in MB)" 155 default "8" 156 help 157 Size of DRAM (decimal in MB) typically 2, 8 or 16. 158 159config ETRAX_VMEM_SIZE 160 int "Video memory size (dec, in MB)" 161 depends on ETRAX_ARCH_V32 && !ETRAXFS 162 default 8 if !ETRAXFS 163 help 164 Size of Video accessible memory (decimal, in MB). 165 166config ETRAX_FLASH_BUSWIDTH 167 int "Buswidth of NOR flash in bytes" 168 default "2" 169 help 170 Width in bytes of the NOR Flash bus (1, 2 or 4). Is usually 2. 171 172config ETRAX_NANDFLASH_BUSWIDTH 173 int "Buswidth of NAND flash in bytes" 174 default "1" 175 help 176 Width in bytes of the NAND flash (1 or 2). 177 178config ETRAX_FLASH1_SIZE 179 int "FLASH1 size (dec, in MB. 0 = Unknown)" 180 default "0" 181 182choice 183 prompt "Product debug-port" 184 default ETRAX_DEBUG_PORT0 185 186config ETRAX_DEBUG_PORT0 187 bool "Serial-0" 188 help 189 Choose a serial port for the ETRAX debug console. Default to 190 port 0. 191 192config ETRAX_DEBUG_PORT1 193 bool "Serial-1" 194 help 195 Use serial port 1 for the console. 196 197config ETRAX_DEBUG_PORT2 198 bool "Serial-2" 199 help 200 Use serial port 2 for the console. 201 202config ETRAX_DEBUG_PORT3 203 bool "Serial-3" 204 help 205 Use serial port 3 for the console. 206 207config ETRAX_DEBUG_PORT_NULL 208 bool "disabled" 209 help 210 Disable serial-port debugging. 211 212endchoice 213 214choice 215 prompt "Kernel GDB port" 216 depends on ETRAX_KGDB 217 default ETRAX_KGDB_PORT0 218 help 219 Choose a serial port for kernel debugging. NOTE: This port should 220 not be enabled under Drivers for built-in interfaces (as it has its 221 own initialization code) and should not be the same as the debug port. 222 223config ETRAX_KGDB_PORT0 224 bool "Serial-0" 225 help 226 Use serial port 0 for kernel debugging. 227 228config ETRAX_KGDB_PORT1 229 bool "Serial-1" 230 help 231 Use serial port 1 for kernel debugging. 232 233config ETRAX_KGDB_PORT2 234 bool "Serial-2" 235 help 236 Use serial port 2 for kernel debugging. 237 238config ETRAX_KGDB_PORT3 239 bool "Serial-3" 240 help 241 Use serial port 3 for kernel debugging. 242 243endchoice 244 245source arch/cris/arch-v10/Kconfig 246source arch/cris/arch-v32/Kconfig 247 248endmenu 249 250source "net/Kconfig" 251 252# bring in ETRAX built-in drivers 253menu "Drivers for built-in interfaces" 254source arch/cris/arch-v10/drivers/Kconfig 255source arch/cris/arch-v32/drivers/Kconfig 256 257config ETRAX_AXISFLASHMAP 258 bool "Axis flash-map support" 259 select MTD 260 select MTD_CFI 261 select MTD_CFI_AMDSTD 262 select MTD_JEDECPROBE if ETRAX_ARCH_V32 263 select MTD_CHAR 264 select MTD_BLOCK 265 select MTD_COMPLEX_MAPPINGS 266 help 267 This option enables MTD mapping of flash devices. Needed to use 268 flash memories. If unsure, say Y. 269 270config ETRAX_RTC 271 bool "Real Time Clock support" 272 depends on ETRAX_I2C 273 help 274 Enables drivers for the Real-Time Clock battery-backed chips on 275 some products. The kernel reads the time when booting, and 276 the date can be set using ioctl(fd, RTC_SET_TIME, &rt) with rt a 277 rtc_time struct (see <file:arch/cris/include/asm/rtc.h>) on the 278 /dev/rtc device. You can check the time with cat /proc/rtc, but 279 normal time reading should be done using libc function time and 280 friends. 281 282choice 283 prompt "RTC chip" 284 depends on ETRAX_RTC 285 default ETRAX_DS1302 286 287config ETRAX_DS1302 288 depends on ETRAX_ARCH_V10 289 bool "DS1302" 290 help 291 Enables the driver for the DS1302 Real-Time Clock battery-backed 292 chip on some products. 293 294config ETRAX_PCF8563 295 bool "PCF8563" 296 help 297 Enables the driver for the PCF8563 Real-Time Clock battery-backed 298 chip on some products. 299 300endchoice 301 302config ETRAX_SYNCHRONOUS_SERIAL 303 bool "Synchronous serial-port support" 304 help 305 Select this to enable the synchronous serial port driver. 306 307config ETRAX_SYNCHRONOUS_SERIAL_PORT0 308 bool "Synchronous serial port 0 enabled" 309 depends on ETRAX_SYNCHRONOUS_SERIAL 310 help 311 Enabled synchronous serial port 0. 312 313config ETRAX_SYNCHRONOUS_SERIAL0_DMA 314 bool "Enable DMA on synchronous serial port 0." 315 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT0 316 help 317 A synchronous serial port can run in manual or DMA mode. 318 Selecting this option will make it run in DMA mode. 319 320config ETRAX_SYNCHRONOUS_SERIAL_PORT1 321 bool "Synchronous serial port 1 enabled" 322 depends on ETRAX_SYNCHRONOUS_SERIAL && (ETRAXFS || ETRAX_ARCH_V10) 323 help 324 Enabled synchronous serial port 1. 325 326config ETRAX_SYNCHRONOUS_SERIAL1_DMA 327 bool "Enable DMA on synchronous serial port 1." 328 depends on ETRAX_SYNCHRONOUS_SERIAL_PORT1 329 help 330 A synchronous serial port can run in manual or DMA mode. 331 Selecting this option will make it run in DMA mode. 332 333choice 334 prompt "Network LED behavior" 335 depends on ETRAX_ETHERNET 336 default ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY 337 338config ETRAX_NETWORK_LED_ON_WHEN_LINK 339 bool "LED_on_when_link" 340 help 341 Selecting LED_on_when_link will light the LED when there is a 342 connection and will flash off when there is activity. 343 344 Selecting LED_on_when_activity will light the LED only when 345 there is activity. 346 347 This setting will also affect the behaviour of other activity LEDs 348 e.g. Bluetooth. 349 350config ETRAX_NETWORK_LED_ON_WHEN_ACTIVITY 351 bool "LED_on_when_activity" 352 help 353 Selecting LED_on_when_link will light the LED when there is a 354 connection and will flash off when there is activity. 355 356 Selecting LED_on_when_activity will light the LED only when 357 there is activity. 358 359 This setting will also affect the behaviour of other activity LEDs 360 e.g. Bluetooth. 361 362endchoice 363 364choice 365 prompt "Ser0 DMA out channel" 366 depends on ETRAX_SERIAL_PORT0 367 default ETRAX_SERIAL_PORT0_DMA6_OUT if ETRAX_ARCH_V32 368 default ETRAX_SERIAL_PORT0_NO_DMA_OUT if ETRAX_ARCH_V10 369 370config ETRAX_SERIAL_PORT0_NO_DMA_OUT 371 bool "Ser0 uses no DMA for output" 372 help 373 Do not use DMA for ser0 output. 374 375config ETRAX_SERIAL_PORT0_DMA6_OUT 376 bool "Ser0 uses DMA6 for output" 377 depends on ETRAXFS 378 help 379 Enables the DMA6 output channel for ser0 (ttyS0). 380 If you do not enable DMA, an interrupt for each character will be 381 used when transmitting data. 382 Normally you want to use DMA, unless you use the DMA channel for 383 something else. 384 385config ETRAX_SERIAL_PORT0_DMA0_OUT 386 bool "Ser0 uses DMA0 for output" 387 depends on CRIS_MACH_ARTPEC3 388 help 389 Enables the DMA0 output channel for ser0 (ttyS0). 390 If you do not enable DMA, an interrupt for each character will be 391 used when transmitting data. 392 Normally you want to use DMA, unless you use the DMA channel for 393 something else. 394 395endchoice 396 397choice 398 prompt "Ser0 DMA in channel " 399 depends on ETRAX_SERIAL_PORT0 400 default ETRAX_SERIAL_PORT0_NO_DMA_IN if ETRAX_ARCH_V32 401 default ETRAX_SERIAL_PORT0_DMA7_IN if ETRAX_ARCH_V10 402 help 403 What DMA channel to use for ser0. 404 405config ETRAX_SERIAL_PORT0_NO_DMA_IN 406 bool "Ser0 uses no DMA for input" 407 help 408 Do not use DMA for ser0 input. 409 410config ETRAX_SERIAL_PORT0_DMA7_IN 411 bool "Ser0 uses DMA7 for input" 412 depends on ETRAXFS 413 help 414 Enables the DMA7 input channel for ser0 (ttyS0). 415 If you do not enable DMA, an interrupt for each character will be 416 used when receiving data. 417 Normally you want to use DMA, unless you use the DMA channel for 418 something else. 419 420config ETRAX_SERIAL_PORT0_DMA1_IN 421 bool "Ser0 uses DMA1 for input" 422 depends on CRIS_MACH_ARTPEC3 423 help 424 Enables the DMA1 input channel for ser0 (ttyS0). 425 If you do not enable DMA, an interrupt for each character will be 426 used when receiving data. 427 Normally you want to use DMA, unless you use the DMA channel for 428 something else. 429 430endchoice 431 432choice 433 prompt "Ser1 DMA in channel " 434 depends on ETRAX_SERIAL_PORT1 435 default ETRAX_SERIAL_PORT1_NO_DMA_IN if ETRAX_ARCH_V32 436 default ETRAX_SERIAL_PORT1_DMA9_IN if ETRAX_ARCH_V10 437 help 438 What DMA channel to use for ser1. 439 440config ETRAX_SERIAL_PORT1_NO_DMA_IN 441 bool "Ser1 uses no DMA for input" 442 help 443 Do not use DMA for ser1 input. 444 445config ETRAX_SERIAL_PORT1_DMA5_IN 446 bool "Ser1 uses DMA5 for input" 447 depends on ETRAX_ARCH_V32 448 help 449 Enables the DMA5 input channel for ser1 (ttyS1). 450 If you do not enable DMA, an interrupt for each character will be 451 used when receiving data. 452 Normally you want this on, unless you use the DMA channel for 453 something else. 454 455config ETRAX_SERIAL_PORT1_DMA9_IN 456 depends on ETRAX_ARCH_V10 457 bool "Ser1 uses DMA9 for input" 458 459endchoice 460 461 462choice 463 prompt "Ser1 DMA out channel" 464 depends on ETRAX_SERIAL_PORT1 465 default ETRAX_SERIAL_PORT1_NO_DMA_OUT if ETRAX_ARCH_V32 466 default ETRAX_SERIAL_PORT1_DMA8_OUT if ETRAX_ARCH_V10 467 help 468 What DMA channel to use for ser1. 469 470config ETRAX_SERIAL_PORT1_NO_DMA_OUT 471 bool "Ser1 uses no DMA for output" 472 help 473 Do not use DMA for ser1 output. 474 475config ETRAX_SERIAL_PORT1_DMA8_OUT 476 depends on ETRAX_ARCH_V10 477 bool "Ser1 uses DMA8 for output" 478 479config ETRAX_SERIAL_PORT1_DMA4_OUT 480 depends on ETRAX_ARCH_V32 481 bool "Ser1 uses DMA4 for output" 482 help 483 Enables the DMA4 output channel for ser1 (ttyS1). 484 If you do not enable DMA, an interrupt for each character will be 485 used when transmitting data. 486 Normally you want this on, unless you use the DMA channel for 487 something else. 488 489endchoice 490 491choice 492 prompt "Ser2 DMA out channel" 493 depends on ETRAX_SERIAL_PORT2 494 default ETRAX_SERIAL_PORT2_NO_DMA_OUT if ETRAX_ARCH_V32 495 default ETRAX_SERIAL_PORT2_DMA2_OUT if ETRAX_ARCH_V10 496 497config ETRAX_SERIAL_PORT2_NO_DMA_OUT 498 bool "Ser2 uses no DMA for output" 499 help 500 Do not use DMA for ser2 output. 501 502config ETRAX_SERIAL_PORT2_DMA2_OUT 503 bool "Ser2 uses DMA2 for output" 504 depends on ETRAXFS || ETRAX_ARCH_V10 505 help 506 Enables the DMA2 output channel for ser2 (ttyS2). 507 If you do not enable DMA, an interrupt for each character will be 508 used when transmitting data. 509 Normally you want to use DMA, unless you use the DMA channel for 510 something else. 511 512config ETRAX_SERIAL_PORT2_DMA6_OUT 513 bool "Ser2 uses DMA6 for output" 514 depends on CRIS_MACH_ARTPEC3 515 help 516 Enables the DMA6 output channel for ser2 (ttyS2). 517 If you do not enable DMA, an interrupt for each character will be 518 used when transmitting data. 519 Normally you want to use DMA, unless you use the DMA channel for 520 something else. 521 522endchoice 523 524choice 525 prompt "Ser2 DMA in channel" 526 depends on ETRAX_SERIAL_PORT2 527 default ETRAX_SERIAL_PORT2_NO_DMA_IN if ETRAX_ARCH_V32 528 default ETRAX_SERIAL_PORT2_DMA3_IN if ETRAX_ARCH_V10 529 help 530 What DMA channel to use for ser2. 531 532config ETRAX_SERIAL_PORT2_NO_DMA_IN 533 bool "Ser2 uses no DMA for input" 534 help 535 Do not use DMA for ser2 input. 536 537config ETRAX_SERIAL_PORT2_DMA3_IN 538 bool "Ser2 uses DMA3 for input" 539 depends on ETRAXFS || ETRAX_ARCH_V10 540 help 541 Enables the DMA3 input channel for ser2 (ttyS2). 542 If you do not enable DMA, an interrupt for each character will be 543 used when receiving data. 544 Normally you want to use DMA, unless you use the DMA channel for 545 something else. 546 547config ETRAX_SERIAL_PORT2_DMA7_IN 548 bool "Ser2 uses DMA7 for input" 549 depends on CRIS_MACH_ARTPEC3 550 help 551 Enables the DMA7 input channel for ser2 (ttyS2). 552 If you do not enable DMA, an interrupt for each character will be 553 used when receiving data. 554 Normally you want to use DMA, unless you use the DMA channel for 555 something else. 556 557endchoice 558 559choice 560 prompt "Ser3 DMA in channel" 561 depends on ETRAX_SERIAL_PORT3 562 default ETRAX_SERIAL_PORT3_NO_DMA_IN if ETRAX_ARCH_V32 563 default ETRAX_SERIAL_PORT3_DMA5_IN if ETRAX_ARCH_V10 564 help 565 What DMA channel to use for ser3. 566 567config ETRAX_SERIAL_PORT3_NO_DMA_IN 568 bool "Ser3 uses no DMA for input" 569 help 570 Do not use DMA for ser3 input. 571 572config ETRAX_SERIAL_PORT3_DMA5_IN 573 depends on ETRAX_ARCH_V10 574 bool "DMA 5" 575 576config ETRAX_SERIAL_PORT3_DMA9_IN 577 bool "Ser3 uses DMA9 for input" 578 depends on ETRAXFS 579 help 580 Enables the DMA9 input channel for ser3 (ttyS3). 581 If you do not enable DMA, an interrupt for each character will be 582 used when receiving data. 583 Normally you want to use DMA, unless you use the DMA channel for 584 something else. 585 586config ETRAX_SERIAL_PORT3_DMA3_IN 587 bool "Ser3 uses DMA3 for input" 588 depends on CRIS_MACH_ARTPEC3 589 help 590 Enables the DMA3 input channel for ser3 (ttyS3). 591 If you do not enable DMA, an interrupt for each character will be 592 used when receiving data. 593 Normally you want to use DMA, unless you use the DMA channel for 594 something else. 595 596endchoice 597 598choice 599 prompt "Ser3 DMA out channel" 600 depends on ETRAX_SERIAL_PORT3 601 default ETRAX_SERIAL_PORT3_NO_DMA_OUT if ETRAX_ARCH_V32 602 default ETRAX_SERIAL_PORT3_DMA4_OUT if ETRAX_ARCH_V10 603 604config ETRAX_SERIAL_PORT3_NO_DMA_OUT 605 bool "Ser3 uses no DMA for output" 606 help 607 Do not use DMA for ser3 output. 608 609config ETRAX_SERIAL_PORT3_DMA4_OUT 610 depends on ETRAX_ARCH_V10 611 bool "DMA 4" 612 613config ETRAX_SERIAL_PORT3_DMA8_OUT 614 bool "Ser3 uses DMA8 for output" 615 depends on ETRAXFS 616 help 617 Enables the DMA8 output channel for ser3 (ttyS3). 618 If you do not enable DMA, an interrupt for each character will be 619 used when transmitting data. 620 Normally you want to use DMA, unless you use the DMA channel for 621 something else. 622 623config ETRAX_SERIAL_PORT3_DMA2_OUT 624 bool "Ser3 uses DMA2 for output" 625 depends on CRIS_MACH_ARTPEC3 626 help 627 Enables the DMA2 output channel for ser3 (ttyS3). 628 If you do not enable DMA, an interrupt for each character will be 629 used when transmitting data. 630 Normally you want to use DMA, unless you use the DMA channel for 631 something else. 632 633endchoice 634 635endmenu 636 637source "drivers/base/Kconfig" 638 639# standard linux drivers 640source "drivers/mtd/Kconfig" 641 642source "drivers/parport/Kconfig" 643 644source "drivers/pnp/Kconfig" 645 646source "drivers/block/Kconfig" 647 648source "drivers/ide/Kconfig" 649 650source "drivers/net/Kconfig" 651 652source "drivers/i2c/Kconfig" 653 654source "drivers/rtc/Kconfig" 655 656# 657# input before char - char/joystick depends on it. As does USB. 658# 659source "drivers/input/Kconfig" 660 661source "drivers/char/Kconfig" 662 663source "fs/Kconfig" 664 665source "drivers/usb/Kconfig" 666 667source "drivers/uwb/Kconfig" 668 669source "drivers/staging/Kconfig" 670 671source "arch/cris/Kconfig.debug" 672 673source "security/Kconfig" 674 675source "crypto/Kconfig" 676 677source "lib/Kconfig" 678

