1# SPDX-License-Identifier: GPL-2.0 2config MIPS 3 bool 4 default y 5 select ARCH_32BIT_OFF_T if !64BIT 6 select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT 7 select ARCH_HAS_FORTIFY_SOURCE 8 select ARCH_HAS_KCOV 9 select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA 10 select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI) 11 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST 12 select ARCH_HAS_UBSAN_SANITIZE_ALL 13 select ARCH_SUPPORTS_UPROBES 14 select ARCH_USE_BUILTIN_BSWAP 15 select ARCH_USE_CMPXCHG_LOCKREF if 64BIT 16 select ARCH_USE_QUEUED_RWLOCKS 17 select ARCH_USE_QUEUED_SPINLOCKS 18 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU 19 select ARCH_WANT_IPC_PARSE_VERSION 20 select BUILDTIME_TABLE_SORT 21 select CLONE_BACKWARDS 22 select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1) 23 select CPU_PM if CPU_IDLE 24 select GENERIC_ATOMIC64 if !64BIT 25 select GENERIC_CLOCKEVENTS 26 select GENERIC_CMOS_UPDATE 27 select GENERIC_CPU_AUTOPROBE 28 select GENERIC_GETTIMEOFDAY 29 select GENERIC_IOMAP 30 select GENERIC_IRQ_PROBE 31 select GENERIC_IRQ_SHOW 32 select GENERIC_ISA_DMA if EISA 33 select GENERIC_LIB_ASHLDI3 34 select GENERIC_LIB_ASHRDI3 35 select GENERIC_LIB_CMPDI2 36 select GENERIC_LIB_LSHRDI3 37 select GENERIC_LIB_UCMPDI2 38 select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC 39 select GENERIC_SMP_IDLE_THREAD 40 select GENERIC_TIME_VSYSCALL 41 select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT 42 select HANDLE_DOMAIN_IRQ 43 select HAVE_ARCH_COMPILER_H 44 select HAVE_ARCH_JUMP_LABEL 45 select HAVE_ARCH_KGDB 46 select HAVE_ARCH_MMAP_RND_BITS if MMU 47 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT 48 select HAVE_ARCH_SECCOMP_FILTER 49 select HAVE_ARCH_TRACEHOOK 50 select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES 51 select HAVE_ASM_MODVERSIONS 52 select HAVE_CBPF_JIT if !64BIT && !CPU_MICROMIPS 53 select HAVE_CONTEXT_TRACKING 54 select HAVE_TIF_NOHZ 55 select HAVE_C_RECORDMCOUNT 56 select HAVE_DEBUG_KMEMLEAK 57 select HAVE_DEBUG_STACKOVERFLOW 58 select HAVE_DMA_CONTIGUOUS 59 select HAVE_DYNAMIC_FTRACE 60 select HAVE_EBPF_JIT if 64BIT && !CPU_MICROMIPS && TARGET_ISA_REV >= 2 61 select HAVE_EXIT_THREAD 62 select HAVE_FAST_GUP 63 select HAVE_FTRACE_MCOUNT_RECORD 64 select HAVE_FUNCTION_GRAPH_TRACER 65 select HAVE_FUNCTION_TRACER 66 select HAVE_GCC_PLUGINS 67 select HAVE_GENERIC_VDSO 68 select HAVE_IDE 69 select HAVE_IOREMAP_PROT 70 select HAVE_IRQ_EXIT_ON_IRQ_STACK 71 select HAVE_IRQ_TIME_ACCOUNTING 72 select HAVE_KPROBES 73 select HAVE_KRETPROBES 74 select HAVE_LD_DEAD_CODE_DATA_ELIMINATION 75 select HAVE_MOD_ARCH_SPECIFIC 76 select HAVE_NMI 77 select HAVE_OPROFILE 78 select HAVE_PERF_EVENTS 79 select HAVE_REGS_AND_STACK_ACCESS_API 80 select HAVE_RSEQ 81 select HAVE_SPARSE_SYSCALL_NR 82 select HAVE_STACKPROTECTOR 83 select HAVE_SYSCALL_TRACEPOINTS 84 select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP 85 select IRQ_FORCED_THREADING 86 select ISA if EISA 87 select MODULES_USE_ELF_REL if MODULES 88 select MODULES_USE_ELF_RELA if MODULES && 64BIT 89 select PERF_USE_VMALLOC 90 select PCI_MSI_ARCH_FALLBACKS if PCI_MSI 91 select RTC_LIB 92 select SET_FS 93 select SYSCTL_EXCEPTION_TRACE 94 select VIRT_TO_BUS 95 96config MIPS_FIXUP_BIGPHYS_ADDR 97 bool 98 99config MIPS_GENERIC 100 bool 101 102config MACH_INGENIC 103 bool 104 select SYS_SUPPORTS_32BIT_KERNEL 105 select SYS_SUPPORTS_LITTLE_ENDIAN 106 select SYS_SUPPORTS_ZBOOT 107 select DMA_NONCOHERENT 108 select IRQ_MIPS_CPU 109 select PINCTRL 110 select GPIOLIB 111 select COMMON_CLK 112 select GENERIC_IRQ_CHIP 113 select BUILTIN_DTB if MIPS_NO_APPENDED_DTB 114 select USE_OF 115 select CPU_SUPPORTS_CPUFREQ 116 select MIPS_EXTERNAL_TIMER 117 118menu "Machine selection" 119 120choice 121 prompt "System type" 122 default MIPS_GENERIC_KERNEL 123 124config MIPS_GENERIC_KERNEL 125 bool "Generic board-agnostic MIPS kernel" 126 select MIPS_GENERIC 127 select BOOT_RAW 128 select BUILTIN_DTB 129 select CEVT_R4K 130 select CLKSRC_MIPS_GIC 131 select COMMON_CLK 132 select CPU_MIPSR2_IRQ_EI 133 select CPU_MIPSR2_IRQ_VI 134 select CSRC_R4K 135 select DMA_PERDEV_COHERENT 136 select HAVE_PCI 137 select IRQ_MIPS_CPU 138 select MIPS_AUTO_PFN_OFFSET 139 select MIPS_CPU_SCACHE 140 select MIPS_GIC 141 select MIPS_L1_CACHE_SHIFT_7 142 select NO_EXCEPT_FILL 143 select PCI_DRIVERS_GENERIC 144 select SMP_UP if SMP 145 select SWAP_IO_SPACE 146 select SYS_HAS_CPU_MIPS32_R1 147 select SYS_HAS_CPU_MIPS32_R2 148 select SYS_HAS_CPU_MIPS32_R6 149 select SYS_HAS_CPU_MIPS64_R1 150 select SYS_HAS_CPU_MIPS64_R2 151 select SYS_HAS_CPU_MIPS64_R6 152 select SYS_SUPPORTS_32BIT_KERNEL 153 select SYS_SUPPORTS_64BIT_KERNEL 154 select SYS_SUPPORTS_BIG_ENDIAN 155 select SYS_SUPPORTS_HIGHMEM 156 select SYS_SUPPORTS_LITTLE_ENDIAN 157 select SYS_SUPPORTS_MICROMIPS 158 select SYS_SUPPORTS_MIPS16 159 select SYS_SUPPORTS_MIPS_CPS 160 select SYS_SUPPORTS_MULTITHREADING 161 select SYS_SUPPORTS_RELOCATABLE 162 select SYS_SUPPORTS_SMARTMIPS 163 select SYS_SUPPORTS_ZBOOT 164 select UHI_BOOT 165 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 166 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 167 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 168 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 169 select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 170 select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 171 select USE_OF 172 help 173 Select this to build a kernel which aims to support multiple boards, 174 generally using a flattened device tree passed from the bootloader 175 using the boot protocol defined in the UHI (Unified Hosting 176 Interface) specification. 177 178config MIPS_ALCHEMY 179 bool "Alchemy processor based machines" 180 select PHYS_ADDR_T_64BIT 181 select CEVT_R4K 182 select CSRC_R4K 183 select IRQ_MIPS_CPU 184 select DMA_MAYBE_COHERENT # Au1000,1500,1100 aren't, rest is 185 select MIPS_FIXUP_BIGPHYS_ADDR if PCI 186 select SYS_HAS_CPU_MIPS32_R1 187 select SYS_SUPPORTS_32BIT_KERNEL 188 select SYS_SUPPORTS_APM_EMULATION 189 select GPIOLIB 190 select SYS_SUPPORTS_ZBOOT 191 select COMMON_CLK 192 193config AR7 194 bool "Texas Instruments AR7" 195 select BOOT_ELF32 196 select DMA_NONCOHERENT 197 select CEVT_R4K 198 select CSRC_R4K 199 select IRQ_MIPS_CPU 200 select NO_EXCEPT_FILL 201 select SWAP_IO_SPACE 202 select SYS_HAS_CPU_MIPS32_R1 203 select SYS_HAS_EARLY_PRINTK 204 select SYS_SUPPORTS_32BIT_KERNEL 205 select SYS_SUPPORTS_LITTLE_ENDIAN 206 select SYS_SUPPORTS_MIPS16 207 select SYS_SUPPORTS_ZBOOT_UART16550 208 select GPIOLIB 209 select VLYNQ 210 select HAVE_LEGACY_CLK 211 help 212 Support for the Texas Instruments AR7 System-on-a-Chip 213 family: TNETD7100, 7200 and 7300. 214 215config ATH25 216 bool "Atheros AR231x/AR531x SoC support" 217 select CEVT_R4K 218 select CSRC_R4K 219 select DMA_NONCOHERENT 220 select IRQ_MIPS_CPU 221 select IRQ_DOMAIN 222 select SYS_HAS_CPU_MIPS32_R1 223 select SYS_SUPPORTS_BIG_ENDIAN 224 select SYS_SUPPORTS_32BIT_KERNEL 225 select SYS_HAS_EARLY_PRINTK 226 help 227 Support for Atheros AR231x and Atheros AR531x based boards 228 229config ATH79 230 bool "Atheros AR71XX/AR724X/AR913X based boards" 231 select ARCH_HAS_RESET_CONTROLLER 232 select BOOT_RAW 233 select CEVT_R4K 234 select CSRC_R4K 235 select DMA_NONCOHERENT 236 select GPIOLIB 237 select PINCTRL 238 select COMMON_CLK 239 select IRQ_MIPS_CPU 240 select SYS_HAS_CPU_MIPS32_R2 241 select SYS_HAS_EARLY_PRINTK 242 select SYS_SUPPORTS_32BIT_KERNEL 243 select SYS_SUPPORTS_BIG_ENDIAN 244 select SYS_SUPPORTS_MIPS16 245 select SYS_SUPPORTS_ZBOOT_UART_PROM 246 select USE_OF 247 select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM 248 help 249 Support for the Atheros AR71XX/AR724X/AR913X SoCs. 250 251config BMIPS_GENERIC 252 bool "Broadcom Generic BMIPS kernel" 253 select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL 254 select ARCH_HAS_PHYS_TO_DMA 255 select BOOT_RAW 256 select NO_EXCEPT_FILL 257 select USE_OF 258 select CEVT_R4K 259 select CSRC_R4K 260 select SYNC_R4K 261 select COMMON_CLK 262 select BCM6345_L1_IRQ 263 select BCM7038_L1_IRQ 264 select BCM7120_L2_IRQ 265 select BRCMSTB_L2_IRQ 266 select IRQ_MIPS_CPU 267 select DMA_NONCOHERENT 268 select SYS_SUPPORTS_32BIT_KERNEL 269 select SYS_SUPPORTS_LITTLE_ENDIAN 270 select SYS_SUPPORTS_BIG_ENDIAN 271 select SYS_SUPPORTS_HIGHMEM 272 select SYS_HAS_CPU_BMIPS32_3300 273 select SYS_HAS_CPU_BMIPS4350 274 select SYS_HAS_CPU_BMIPS4380 275 select SYS_HAS_CPU_BMIPS5000 276 select SWAP_IO_SPACE 277 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 278 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 279 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 280 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 281 select HARDIRQS_SW_RESEND 282 help 283 Build a generic DT-based kernel image that boots on select 284 BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top 285 box chips. Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN 286 must be set appropriately for your board. 287 288config BCM47XX 289 bool "Broadcom BCM47XX based boards" 290 select BOOT_RAW 291 select CEVT_R4K 292 select CSRC_R4K 293 select DMA_NONCOHERENT 294 select HAVE_PCI 295 select IRQ_MIPS_CPU 296 select SYS_HAS_CPU_MIPS32_R1 297 select NO_EXCEPT_FILL 298 select SYS_SUPPORTS_32BIT_KERNEL 299 select SYS_SUPPORTS_LITTLE_ENDIAN 300 select SYS_SUPPORTS_MIPS16 301 select SYS_SUPPORTS_ZBOOT 302 select SYS_HAS_EARLY_PRINTK 303 select USE_GENERIC_EARLY_PRINTK_8250 304 select GPIOLIB 305 select LEDS_GPIO_REGISTER 306 select BCM47XX_NVRAM 307 select BCM47XX_SPROM 308 select BCM47XX_SSB if !BCM47XX_BCMA 309 help 310 Support for BCM47XX based boards 311 312config BCM63XX 313 bool "Broadcom BCM63XX based boards" 314 select BOOT_RAW 315 select CEVT_R4K 316 select CSRC_R4K 317 select SYNC_R4K 318 select DMA_NONCOHERENT 319 select IRQ_MIPS_CPU 320 select SYS_SUPPORTS_32BIT_KERNEL 321 select SYS_SUPPORTS_BIG_ENDIAN 322 select SYS_HAS_EARLY_PRINTK 323 select SYS_HAS_CPU_BMIPS32_3300 324 select SYS_HAS_CPU_BMIPS4350 325 select SYS_HAS_CPU_BMIPS4380 326 select SWAP_IO_SPACE 327 select GPIOLIB 328 select MIPS_L1_CACHE_SHIFT_4 329 select CLKDEV_LOOKUP 330 select HAVE_LEGACY_CLK 331 help 332 Support for BCM63XX based boards 333 334config MIPS_COBALT 335 bool "Cobalt Server" 336 select CEVT_R4K 337 select CSRC_R4K 338 select CEVT_GT641XX 339 select DMA_NONCOHERENT 340 select FORCE_PCI 341 select I8253 342 select I8259 343 select IRQ_MIPS_CPU 344 select IRQ_GT641XX 345 select PCI_GT64XXX_PCI0 346 select SYS_HAS_CPU_NEVADA 347 select SYS_HAS_EARLY_PRINTK 348 select SYS_SUPPORTS_32BIT_KERNEL 349 select SYS_SUPPORTS_64BIT_KERNEL 350 select SYS_SUPPORTS_LITTLE_ENDIAN 351 select USE_GENERIC_EARLY_PRINTK_8250 352 353config MACH_DECSTATION 354 bool "DECstations" 355 select BOOT_ELF32 356 select CEVT_DS1287 357 select CEVT_R4K if CPU_R4X00 358 select CSRC_IOASIC 359 select CSRC_R4K if CPU_R4X00 360 select CPU_DADDI_WORKAROUNDS if 64BIT 361 select CPU_R4000_WORKAROUNDS if 64BIT 362 select CPU_R4400_WORKAROUNDS if 64BIT 363 select DMA_NONCOHERENT 364 select NO_IOPORT_MAP 365 select IRQ_MIPS_CPU 366 select SYS_HAS_CPU_R3000 367 select SYS_HAS_CPU_R4X00 368 select SYS_SUPPORTS_32BIT_KERNEL 369 select SYS_SUPPORTS_64BIT_KERNEL 370 select SYS_SUPPORTS_LITTLE_ENDIAN 371 select SYS_SUPPORTS_128HZ 372 select SYS_SUPPORTS_256HZ 373 select SYS_SUPPORTS_1024HZ 374 select MIPS_L1_CACHE_SHIFT_4 375 help 376 This enables support for DEC's MIPS based workstations. For details 377 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the 378 DECstation porting pages on <http://decstation.unix-ag.org/>. 379 380 If you have one of the following DECstation Models you definitely 381 want to choose R4xx0 for the CPU Type: 382 383 DECstation 5000/50 384 DECstation 5000/150 385 DECstation 5000/260 386 DECsystem 5900/260 387 388 otherwise choose R3000. 389 390config MACH_JAZZ 391 bool "Jazz family of machines" 392 select ARC_MEMORY 393 select ARC_PROMLIB 394 select ARCH_MIGHT_HAVE_PC_PARPORT 395 select ARCH_MIGHT_HAVE_PC_SERIO 396 select DMA_OPS 397 select FW_ARC 398 select FW_ARC32 399 select ARCH_MAY_HAVE_PC_FDC 400 select CEVT_R4K 401 select CSRC_R4K 402 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN 403 select GENERIC_ISA_DMA 404 select HAVE_PCSPKR_PLATFORM 405 select IRQ_MIPS_CPU 406 select I8253 407 select I8259 408 select ISA 409 select SYS_HAS_CPU_R4X00 410 select SYS_SUPPORTS_32BIT_KERNEL 411 select SYS_SUPPORTS_64BIT_KERNEL 412 select SYS_SUPPORTS_100HZ 413 help 414 This a family of machines based on the MIPS R4030 chipset which was 415 used by several vendors to build RISC/os and Windows NT workstations. 416 Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and 417 Olivetti M700-10 workstations. 418 419config MACH_INGENIC_SOC 420 bool "Ingenic SoC based machines" 421 select MIPS_GENERIC 422 select MACH_INGENIC 423 select SYS_SUPPORTS_ZBOOT_UART16550 424 select CPU_SUPPORTS_CPUFREQ 425 select MIPS_EXTERNAL_TIMER 426 427config LANTIQ 428 bool "Lantiq based platforms" 429 select DMA_NONCOHERENT 430 select IRQ_MIPS_CPU 431 select CEVT_R4K 432 select CSRC_R4K 433 select SYS_HAS_CPU_MIPS32_R1 434 select SYS_HAS_CPU_MIPS32_R2 435 select SYS_SUPPORTS_BIG_ENDIAN 436 select SYS_SUPPORTS_32BIT_KERNEL 437 select SYS_SUPPORTS_MIPS16 438 select SYS_SUPPORTS_MULTITHREADING 439 select SYS_SUPPORTS_VPE_LOADER 440 select SYS_HAS_EARLY_PRINTK 441 select GPIOLIB 442 select SWAP_IO_SPACE 443 select BOOT_RAW 444 select CLKDEV_LOOKUP 445 select HAVE_LEGACY_CLK 446 select USE_OF 447 select PINCTRL 448 select PINCTRL_LANTIQ 449 select ARCH_HAS_RESET_CONTROLLER 450 select RESET_CONTROLLER 451 452config MACH_LOONGSON32 453 bool "Loongson 32-bit family of machines" 454 select SYS_SUPPORTS_ZBOOT 455 help 456 This enables support for the Loongson-1 family of machines. 457 458 Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by 459 the Institute of Computing Technology (ICT), Chinese Academy of 460 Sciences (CAS). 461 462config MACH_LOONGSON2EF 463 bool "Loongson-2E/F family of machines" 464 select SYS_SUPPORTS_ZBOOT 465 help 466 This enables the support of early Loongson-2E/F family of machines. 467 468config MACH_LOONGSON64 469 bool "Loongson 64-bit family of machines" 470 select ARCH_SPARSEMEM_ENABLE 471 select ARCH_MIGHT_HAVE_PC_PARPORT 472 select ARCH_MIGHT_HAVE_PC_SERIO 473 select GENERIC_ISA_DMA_SUPPORT_BROKEN 474 select BOOT_ELF32 475 select BOARD_SCACHE 476 select CSRC_R4K 477 select CEVT_R4K 478 select CPU_HAS_WB 479 select FORCE_PCI 480 select ISA 481 select I8259 482 select IRQ_MIPS_CPU 483 select NO_EXCEPT_FILL 484 select NR_CPUS_DEFAULT_64 485 select USE_GENERIC_EARLY_PRINTK_8250 486 select PCI_DRIVERS_GENERIC 487 select SYS_HAS_CPU_LOONGSON64 488 select SYS_HAS_EARLY_PRINTK 489 select SYS_SUPPORTS_SMP 490 select SYS_SUPPORTS_HOTPLUG_CPU 491 select SYS_SUPPORTS_NUMA 492 select SYS_SUPPORTS_64BIT_KERNEL 493 select SYS_SUPPORTS_HIGHMEM 494 select SYS_SUPPORTS_LITTLE_ENDIAN 495 select SYS_SUPPORTS_ZBOOT 496 select ZONE_DMA32 497 select NUMA 498 select SMP 499 select COMMON_CLK 500 select USE_OF 501 select BUILTIN_DTB 502 select PCI_HOST_GENERIC 503 help 504 This enables the support of Loongson-2/3 family of machines. 505 506 Loongson-2 and Loongson-3 are 64-bit general-purpose processors with 507 GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E 508 and Loongson-2F which will be removed), developed by the Institute 509 of Computing Technology (ICT), Chinese Academy of Sciences (CAS). 510 511config MACH_PISTACHIO 512 bool "IMG Pistachio SoC based boards" 513 select BOOT_ELF32 514 select BOOT_RAW 515 select CEVT_R4K 516 select CLKSRC_MIPS_GIC 517 select COMMON_CLK 518 select CSRC_R4K 519 select DMA_NONCOHERENT 520 select GPIOLIB 521 select IRQ_MIPS_CPU 522 select MFD_SYSCON 523 select MIPS_CPU_SCACHE 524 select MIPS_GIC 525 select PINCTRL 526 select REGULATOR 527 select SYS_HAS_CPU_MIPS32_R2 528 select SYS_SUPPORTS_32BIT_KERNEL 529 select SYS_SUPPORTS_LITTLE_ENDIAN 530 select SYS_SUPPORTS_MIPS_CPS 531 select SYS_SUPPORTS_MULTITHREADING 532 select SYS_SUPPORTS_RELOCATABLE 533 select SYS_SUPPORTS_ZBOOT 534 select SYS_HAS_EARLY_PRINTK 535 select USE_GENERIC_EARLY_PRINTK_8250 536 select USE_OF 537 help 538 This enables support for the IMG Pistachio SoC platform. 539 540config MIPS_MALTA 541 bool "MIPS Malta board" 542 select ARCH_MAY_HAVE_PC_FDC 543 select ARCH_MIGHT_HAVE_PC_PARPORT 544 select ARCH_MIGHT_HAVE_PC_SERIO 545 select BOOT_ELF32 546 select BOOT_RAW 547 select BUILTIN_DTB 548 select CEVT_R4K 549 select CLKSRC_MIPS_GIC 550 select COMMON_CLK 551 select CSRC_R4K 552 select DMA_MAYBE_COHERENT 553 select GENERIC_ISA_DMA 554 select HAVE_PCSPKR_PLATFORM 555 select HAVE_PCI 556 select I8253 557 select I8259 558 select IRQ_MIPS_CPU 559 select MIPS_BONITO64 560 select MIPS_CPU_SCACHE 561 select MIPS_GIC 562 select MIPS_L1_CACHE_SHIFT_6 563 select MIPS_MSC 564 select PCI_GT64XXX_PCI0 565 select SMP_UP if SMP 566 select SWAP_IO_SPACE 567 select SYS_HAS_CPU_MIPS32_R1 568 select SYS_HAS_CPU_MIPS32_R2 569 select SYS_HAS_CPU_MIPS32_R3_5 570 select SYS_HAS_CPU_MIPS32_R5 571 select SYS_HAS_CPU_MIPS32_R6 572 select SYS_HAS_CPU_MIPS64_R1 573 select SYS_HAS_CPU_MIPS64_R2 574 select SYS_HAS_CPU_MIPS64_R6 575 select SYS_HAS_CPU_NEVADA 576 select SYS_HAS_CPU_RM7000 577 select SYS_SUPPORTS_32BIT_KERNEL 578 select SYS_SUPPORTS_64BIT_KERNEL 579 select SYS_SUPPORTS_BIG_ENDIAN 580 select SYS_SUPPORTS_HIGHMEM 581 select SYS_SUPPORTS_LITTLE_ENDIAN 582 select SYS_SUPPORTS_MICROMIPS 583 select SYS_SUPPORTS_MIPS16 584 select SYS_SUPPORTS_MIPS_CMP 585 select SYS_SUPPORTS_MIPS_CPS 586 select SYS_SUPPORTS_MULTITHREADING 587 select SYS_SUPPORTS_RELOCATABLE 588 select SYS_SUPPORTS_SMARTMIPS 589 select SYS_SUPPORTS_VPE_LOADER 590 select SYS_SUPPORTS_ZBOOT 591 select USE_OF 592 select WAR_ICACHE_REFILLS 593 select ZONE_DMA32 if 64BIT 594 help 595 This enables support for the MIPS Technologies Malta evaluation 596 board. 597 598config MACH_PIC32 599 bool "Microchip PIC32 Family" 600 help 601 This enables support for the Microchip PIC32 family of platforms. 602 603 Microchip PIC32 is a family of general-purpose 32 bit MIPS core 604 microcontrollers. 605 606config MACH_VR41XX 607 bool "NEC VR4100 series based machines" 608 select CEVT_R4K 609 select CSRC_R4K 610 select SYS_HAS_CPU_VR41XX 611 select SYS_SUPPORTS_MIPS16 612 select GPIOLIB 613 614config RALINK 615 bool "Ralink based machines" 616 select CEVT_R4K 617 select CSRC_R4K 618 select BOOT_RAW 619 select DMA_NONCOHERENT 620 select IRQ_MIPS_CPU 621 select USE_OF 622 select SYS_HAS_CPU_MIPS32_R1 623 select SYS_HAS_CPU_MIPS32_R2 624 select SYS_SUPPORTS_32BIT_KERNEL 625 select SYS_SUPPORTS_LITTLE_ENDIAN 626 select SYS_SUPPORTS_MIPS16 627 select SYS_SUPPORTS_ZBOOT 628 select SYS_HAS_EARLY_PRINTK 629 select CLKDEV_LOOKUP 630 select ARCH_HAS_RESET_CONTROLLER 631 select RESET_CONTROLLER 632 633config SGI_IP22 634 bool "SGI IP22 (Indy/Indigo2)" 635 select ARC_MEMORY 636 select ARC_PROMLIB 637 select FW_ARC 638 select FW_ARC32 639 select ARCH_MIGHT_HAVE_PC_SERIO 640 select BOOT_ELF32 641 select CEVT_R4K 642 select CSRC_R4K 643 select DEFAULT_SGI_PARTITION 644 select DMA_NONCOHERENT 645 select HAVE_EISA 646 select I8253 647 select I8259 648 select IP22_CPU_SCACHE 649 select IRQ_MIPS_CPU 650 select GENERIC_ISA_DMA_SUPPORT_BROKEN 651 select SGI_HAS_I8042 652 select SGI_HAS_INDYDOG 653 select SGI_HAS_HAL2 654 select SGI_HAS_SEEQ 655 select SGI_HAS_WD93 656 select SGI_HAS_ZILOG 657 select SWAP_IO_SPACE 658 select SYS_HAS_CPU_R4X00 659 select SYS_HAS_CPU_R5000 660 select SYS_HAS_EARLY_PRINTK 661 select SYS_SUPPORTS_32BIT_KERNEL 662 select SYS_SUPPORTS_64BIT_KERNEL 663 select SYS_SUPPORTS_BIG_ENDIAN 664 select WAR_R4600_V1_INDEX_ICACHEOP 665 select WAR_R4600_V1_HIT_CACHEOP 666 select WAR_R4600_V2_HIT_CACHEOP 667 select MIPS_L1_CACHE_SHIFT_7 668 help 669 This are the SGI Indy, Challenge S and Indigo2, as well as certain 670 OEM variants like the Tandem CMN B006S. To compile a Linux kernel 671 that runs on these, say Y here. 672 673config SGI_IP27 674 bool "SGI IP27 (Origin200/2000)" 675 select ARCH_HAS_PHYS_TO_DMA 676 select ARCH_SPARSEMEM_ENABLE 677 select FW_ARC 678 select FW_ARC64 679 select ARC_CMDLINE_ONLY 680 select BOOT_ELF64 681 select DEFAULT_SGI_PARTITION 682 select SYS_HAS_EARLY_PRINTK 683 select HAVE_PCI 684 select IRQ_MIPS_CPU 685 select IRQ_DOMAIN_HIERARCHY 686 select NR_CPUS_DEFAULT_64 687 select PCI_DRIVERS_GENERIC 688 select PCI_XTALK_BRIDGE 689 select SYS_HAS_CPU_R10000 690 select SYS_SUPPORTS_64BIT_KERNEL 691 select SYS_SUPPORTS_BIG_ENDIAN 692 select SYS_SUPPORTS_NUMA 693 select SYS_SUPPORTS_SMP 694 select WAR_R10000_LLSC 695 select MIPS_L1_CACHE_SHIFT_7 696 select NUMA 697 help 698 This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics 699 workstations. To compile a Linux kernel that runs on these, say Y 700 here. 701 702config SGI_IP28 703 bool "SGI IP28 (Indigo2 R10k)" 704 select ARC_MEMORY 705 select ARC_PROMLIB 706 select FW_ARC 707 select FW_ARC64 708 select ARCH_MIGHT_HAVE_PC_SERIO 709 select BOOT_ELF64 710 select CEVT_R4K 711 select CSRC_R4K 712 select DEFAULT_SGI_PARTITION 713 select DMA_NONCOHERENT 714 select GENERIC_ISA_DMA_SUPPORT_BROKEN 715 select IRQ_MIPS_CPU 716 select HAVE_EISA 717 select I8253 718 select I8259 719 select SGI_HAS_I8042 720 select SGI_HAS_INDYDOG 721 select SGI_HAS_HAL2 722 select SGI_HAS_SEEQ 723 select SGI_HAS_WD93 724 select SGI_HAS_ZILOG 725 select SWAP_IO_SPACE 726 select SYS_HAS_CPU_R10000 727 select SYS_HAS_EARLY_PRINTK 728 select SYS_SUPPORTS_64BIT_KERNEL 729 select SYS_SUPPORTS_BIG_ENDIAN 730 select WAR_R10000_LLSC 731 select MIPS_L1_CACHE_SHIFT_7 732 help 733 This is the SGI Indigo2 with R10000 processor. To compile a Linux 734 kernel that runs on these, say Y here. 735 736config SGI_IP30 737 bool "SGI IP30 (Octane/Octane2)" 738 select ARCH_HAS_PHYS_TO_DMA 739 select FW_ARC 740 select FW_ARC64 741 select BOOT_ELF64 742 select CEVT_R4K 743 select CSRC_R4K 744 select SYNC_R4K if SMP 745 select ZONE_DMA32 746 select HAVE_PCI 747 select IRQ_MIPS_CPU 748 select IRQ_DOMAIN_HIERARCHY 749 select NR_CPUS_DEFAULT_2 750 select PCI_DRIVERS_GENERIC 751 select PCI_XTALK_BRIDGE 752 select SYS_HAS_EARLY_PRINTK 753 select SYS_HAS_CPU_R10000 754 select SYS_SUPPORTS_64BIT_KERNEL 755 select SYS_SUPPORTS_BIG_ENDIAN 756 select SYS_SUPPORTS_SMP 757 select WAR_R10000_LLSC 758 select MIPS_L1_CACHE_SHIFT_7 759 select ARC_MEMORY 760 help 761 These are the SGI Octane and Octane2 graphics workstations. To 762 compile a Linux kernel that runs on these, say Y here. 763 764config SGI_IP32 765 bool "SGI IP32 (O2)" 766 select ARC_MEMORY 767 select ARC_PROMLIB 768 select ARCH_HAS_PHYS_TO_DMA 769 select FW_ARC 770 select FW_ARC32 771 select BOOT_ELF32 772 select CEVT_R4K 773 select CSRC_R4K 774 select DMA_NONCOHERENT 775 select HAVE_PCI 776 select IRQ_MIPS_CPU 777 select R5000_CPU_SCACHE 778 select RM7000_CPU_SCACHE 779 select SYS_HAS_CPU_R5000 780 select SYS_HAS_CPU_R10000 if BROKEN 781 select SYS_HAS_CPU_RM7000 782 select SYS_HAS_CPU_NEVADA 783 select SYS_SUPPORTS_64BIT_KERNEL 784 select SYS_SUPPORTS_BIG_ENDIAN 785 select WAR_ICACHE_REFILLS 786 help 787 If you want this kernel to run on SGI O2 workstation, say Y here. 788 789config SIBYTE_CRHINE 790 bool "Sibyte BCM91120C-CRhine" 791 select BOOT_ELF32 792 select SIBYTE_BCM1120 793 select SWAP_IO_SPACE 794 select SYS_HAS_CPU_SB1 795 select SYS_SUPPORTS_BIG_ENDIAN 796 select SYS_SUPPORTS_LITTLE_ENDIAN 797 798config SIBYTE_CARMEL 799 bool "Sibyte BCM91120x-Carmel" 800 select BOOT_ELF32 801 select SIBYTE_BCM1120 802 select SWAP_IO_SPACE 803 select SYS_HAS_CPU_SB1 804 select SYS_SUPPORTS_BIG_ENDIAN 805 select SYS_SUPPORTS_LITTLE_ENDIAN 806 807config SIBYTE_CRHONE 808 bool "Sibyte BCM91125C-CRhone" 809 select BOOT_ELF32 810 select SIBYTE_BCM1125 811 select SWAP_IO_SPACE 812 select SYS_HAS_CPU_SB1 813 select SYS_SUPPORTS_BIG_ENDIAN 814 select SYS_SUPPORTS_HIGHMEM 815 select SYS_SUPPORTS_LITTLE_ENDIAN 816 817config SIBYTE_RHONE 818 bool "Sibyte BCM91125E-Rhone" 819 select BOOT_ELF32 820 select SIBYTE_BCM1125H 821 select SWAP_IO_SPACE 822 select SYS_HAS_CPU_SB1 823 select SYS_SUPPORTS_BIG_ENDIAN 824 select SYS_SUPPORTS_LITTLE_ENDIAN 825 826config SIBYTE_SWARM 827 bool "Sibyte BCM91250A-SWARM" 828 select BOOT_ELF32 829 select HAVE_PATA_PLATFORM 830 select SIBYTE_SB1250 831 select SWAP_IO_SPACE 832 select SYS_HAS_CPU_SB1 833 select SYS_SUPPORTS_BIG_ENDIAN 834 select SYS_SUPPORTS_HIGHMEM 835 select SYS_SUPPORTS_LITTLE_ENDIAN 836 select ZONE_DMA32 if 64BIT 837 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 838 839config SIBYTE_LITTLESUR 840 bool "Sibyte BCM91250C2-LittleSur" 841 select BOOT_ELF32 842 select HAVE_PATA_PLATFORM 843 select SIBYTE_SB1250 844 select SWAP_IO_SPACE 845 select SYS_HAS_CPU_SB1 846 select SYS_SUPPORTS_BIG_ENDIAN 847 select SYS_SUPPORTS_HIGHMEM 848 select SYS_SUPPORTS_LITTLE_ENDIAN 849 select ZONE_DMA32 if 64BIT 850 851config SIBYTE_SENTOSA 852 bool "Sibyte BCM91250E-Sentosa" 853 select BOOT_ELF32 854 select SIBYTE_SB1250 855 select SWAP_IO_SPACE 856 select SYS_HAS_CPU_SB1 857 select SYS_SUPPORTS_BIG_ENDIAN 858 select SYS_SUPPORTS_LITTLE_ENDIAN 859 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 860 861config SIBYTE_BIGSUR 862 bool "Sibyte BCM91480B-BigSur" 863 select BOOT_ELF32 864 select NR_CPUS_DEFAULT_4 865 select SIBYTE_BCM1x80 866 select SWAP_IO_SPACE 867 select SYS_HAS_CPU_SB1 868 select SYS_SUPPORTS_BIG_ENDIAN 869 select SYS_SUPPORTS_HIGHMEM 870 select SYS_SUPPORTS_LITTLE_ENDIAN 871 select ZONE_DMA32 if 64BIT 872 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 873 874config SNI_RM 875 bool "SNI RM200/300/400" 876 select ARC_MEMORY 877 select ARC_PROMLIB 878 select FW_ARC if CPU_LITTLE_ENDIAN 879 select FW_ARC32 if CPU_LITTLE_ENDIAN 880 select FW_SNIPROM if CPU_BIG_ENDIAN 881 select ARCH_MAY_HAVE_PC_FDC 882 select ARCH_MIGHT_HAVE_PC_PARPORT 883 select ARCH_MIGHT_HAVE_PC_SERIO 884 select BOOT_ELF32 885 select CEVT_R4K 886 select CSRC_R4K 887 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN 888 select DMA_NONCOHERENT 889 select GENERIC_ISA_DMA 890 select HAVE_EISA 891 select HAVE_PCSPKR_PLATFORM 892 select HAVE_PCI 893 select IRQ_MIPS_CPU 894 select I8253 895 select I8259 896 select ISA 897 select MIPS_L1_CACHE_SHIFT_6 898 select SWAP_IO_SPACE if CPU_BIG_ENDIAN 899 select SYS_HAS_CPU_R4X00 900 select SYS_HAS_CPU_R5000 901 select SYS_HAS_CPU_R10000 902 select R5000_CPU_SCACHE 903 select SYS_HAS_EARLY_PRINTK 904 select SYS_SUPPORTS_32BIT_KERNEL 905 select SYS_SUPPORTS_64BIT_KERNEL 906 select SYS_SUPPORTS_BIG_ENDIAN 907 select SYS_SUPPORTS_HIGHMEM 908 select SYS_SUPPORTS_LITTLE_ENDIAN 909 select WAR_R4600_V2_HIT_CACHEOP 910 help 911 The SNI RM200/300/400 are MIPS-based machines manufactured by 912 Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid 913 Technology and now in turn merged with Fujitsu. Say Y here to 914 support this machine type. 915 916config MACH_TX39XX 917 bool "Toshiba TX39 series based machines" 918 919config MACH_TX49XX 920 bool "Toshiba TX49 series based machines" 921 select WAR_TX49XX_ICACHE_INDEX_INV 922 923config MIKROTIK_RB532 924 bool "Mikrotik RB532 boards" 925 select CEVT_R4K 926 select CSRC_R4K 927 select DMA_NONCOHERENT 928 select HAVE_PCI 929 select IRQ_MIPS_CPU 930 select SYS_HAS_CPU_MIPS32_R1 931 select SYS_SUPPORTS_32BIT_KERNEL 932 select SYS_SUPPORTS_LITTLE_ENDIAN 933 select SWAP_IO_SPACE 934 select BOOT_RAW 935 select GPIOLIB 936 select MIPS_L1_CACHE_SHIFT_4 937 help 938 Support the Mikrotik(tm) RouterBoard 532 series, 939 based on the IDT RC32434 SoC. 940 941config CAVIUM_OCTEON_SOC 942 bool "Cavium Networks Octeon SoC based boards" 943 select CEVT_R4K 944 select ARCH_HAS_PHYS_TO_DMA 945 select HAVE_RAPIDIO 946 select PHYS_ADDR_T_64BIT 947 select SYS_SUPPORTS_64BIT_KERNEL 948 select SYS_SUPPORTS_BIG_ENDIAN 949 select EDAC_SUPPORT 950 select EDAC_ATOMIC_SCRUB 951 select SYS_SUPPORTS_LITTLE_ENDIAN 952 select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN 953 select SYS_HAS_EARLY_PRINTK 954 select SYS_HAS_CPU_CAVIUM_OCTEON 955 select HAVE_PCI 956 select HAVE_PLAT_DELAY 957 select HAVE_PLAT_FW_INIT_CMDLINE 958 select HAVE_PLAT_MEMCPY 959 select ZONE_DMA32 960 select HOLES_IN_ZONE 961 select GPIOLIB 962 select USE_OF 963 select ARCH_SPARSEMEM_ENABLE 964 select SYS_SUPPORTS_SMP 965 select NR_CPUS_DEFAULT_64 966 select MIPS_NR_CPU_NR_MAP_1024 967 select BUILTIN_DTB 968 select MTD_COMPLEX_MAPPINGS 969 select SWIOTLB 970 select SYS_SUPPORTS_RELOCATABLE 971 help 972 This option supports all of the Octeon reference boards from Cavium 973 Networks. It builds a kernel that dynamically determines the Octeon 974 CPU type and supports all known board reference implementations. 975 Some of the supported boards are: 976 EBT3000 977 EBH3000 978 EBH3100 979 Thunder 980 Kodama 981 Hikari 982 Say Y here for most Octeon reference boards. 983 984config NLM_XLR_BOARD 985 bool "Netlogic XLR/XLS based systems" 986 select BOOT_ELF32 987 select NLM_COMMON 988 select SYS_HAS_CPU_XLR 989 select SYS_SUPPORTS_SMP 990 select HAVE_PCI 991 select SWAP_IO_SPACE 992 select SYS_SUPPORTS_32BIT_KERNEL 993 select SYS_SUPPORTS_64BIT_KERNEL 994 select PHYS_ADDR_T_64BIT 995 select SYS_SUPPORTS_BIG_ENDIAN 996 select SYS_SUPPORTS_HIGHMEM 997 select NR_CPUS_DEFAULT_32 998 select CEVT_R4K 999 select CSRC_R4K 1000 select IRQ_MIPS_CPU 1001 select ZONE_DMA32 if 64BIT 1002 select SYNC_R4K 1003 select SYS_HAS_EARLY_PRINTK 1004 select SYS_SUPPORTS_ZBOOT 1005 select SYS_SUPPORTS_ZBOOT_UART16550 1006 help 1007 Support for systems based on Netlogic XLR and XLS processors. 1008 Say Y here if you have a XLR or XLS based board. 1009 1010config NLM_XLP_BOARD 1011 bool "Netlogic XLP based systems" 1012 select BOOT_ELF32 1013 select NLM_COMMON 1014 select SYS_HAS_CPU_XLP 1015 select SYS_SUPPORTS_SMP 1016 select HAVE_PCI 1017 select SYS_SUPPORTS_32BIT_KERNEL 1018 select SYS_SUPPORTS_64BIT_KERNEL 1019 select PHYS_ADDR_T_64BIT 1020 select GPIOLIB 1021 select SYS_SUPPORTS_BIG_ENDIAN 1022 select SYS_SUPPORTS_LITTLE_ENDIAN 1023 select SYS_SUPPORTS_HIGHMEM 1024 select NR_CPUS_DEFAULT_32 1025 select CEVT_R4K 1026 select CSRC_R4K 1027 select IRQ_MIPS_CPU 1028 select ZONE_DMA32 if 64BIT 1029 select SYNC_R4K 1030 select SYS_HAS_EARLY_PRINTK 1031 select USE_OF 1032 select SYS_SUPPORTS_ZBOOT 1033 select SYS_SUPPORTS_ZBOOT_UART16550 1034 help 1035 This board is based on Netlogic XLP Processor. 1036 Say Y here if you have a XLP based board. 1037 1038endchoice 1039 1040source "arch/mips/alchemy/Kconfig" 1041source "arch/mips/ath25/Kconfig" 1042source "arch/mips/ath79/Kconfig" 1043source "arch/mips/bcm47xx/Kconfig" 1044source "arch/mips/bcm63xx/Kconfig" 1045source "arch/mips/bmips/Kconfig" 1046source "arch/mips/generic/Kconfig" 1047source "arch/mips/ingenic/Kconfig" 1048source "arch/mips/jazz/Kconfig" 1049source "arch/mips/lantiq/Kconfig" 1050source "arch/mips/pic32/Kconfig" 1051source "arch/mips/pistachio/Kconfig" 1052source "arch/mips/ralink/Kconfig" 1053source "arch/mips/sgi-ip27/Kconfig" 1054source "arch/mips/sibyte/Kconfig" 1055source "arch/mips/txx9/Kconfig" 1056source "arch/mips/vr41xx/Kconfig" 1057source "arch/mips/cavium-octeon/Kconfig" 1058source "arch/mips/loongson2ef/Kconfig" 1059source "arch/mips/loongson32/Kconfig" 1060source "arch/mips/loongson64/Kconfig" 1061source "arch/mips/netlogic/Kconfig" 1062 1063endmenu 1064 1065config GENERIC_HWEIGHT 1066 bool 1067 default y 1068 1069config GENERIC_CALIBRATE_DELAY 1070 bool 1071 default y 1072 1073config SCHED_OMIT_FRAME_POINTER 1074 bool 1075 default y 1076 1077# 1078# Select some configuration options automatically based on user selections. 1079# 1080config FW_ARC 1081 bool 1082 1083config ARCH_MAY_HAVE_PC_FDC 1084 bool 1085 1086config BOOT_RAW 1087 bool 1088 1089config CEVT_BCM1480 1090 bool 1091 1092config CEVT_DS1287 1093 bool 1094 1095config CEVT_GT641XX 1096 bool 1097 1098config CEVT_R4K 1099 bool 1100 1101config CEVT_SB1250 1102 bool 1103 1104config CEVT_TXX9 1105 bool 1106 1107config CSRC_BCM1480 1108 bool 1109 1110config CSRC_IOASIC 1111 bool 1112 1113config CSRC_R4K 1114 select CLOCKSOURCE_WATCHDOG if CPU_FREQ 1115 bool 1116 1117config CSRC_SB1250 1118 bool 1119 1120config MIPS_CLOCK_VSYSCALL 1121 def_bool CSRC_R4K || CLKSRC_MIPS_GIC 1122 1123config GPIO_TXX9 1124 select GPIOLIB 1125 bool 1126 1127config FW_CFE 1128 bool 1129 1130config ARCH_SUPPORTS_UPROBES 1131 bool 1132 1133config DMA_MAYBE_COHERENT 1134 select ARCH_HAS_DMA_COHERENCE_H 1135 select DMA_NONCOHERENT 1136 bool 1137 1138config DMA_PERDEV_COHERENT 1139 bool 1140 select ARCH_HAS_SETUP_DMA_OPS 1141 select DMA_NONCOHERENT 1142 1143config DMA_NONCOHERENT 1144 bool 1145 # 1146 # MIPS allows mixing "slightly different" Cacheability and Coherency 1147 # Attribute bits. It is believed that the uncached access through 1148 # KSEG1 and the implementation specific "uncached accelerated" used 1149 # by pgprot_writcombine can be mixed, and the latter sometimes provides 1150 # significant advantages. 1151 # 1152 select ARCH_HAS_DMA_WRITE_COMBINE 1153 select ARCH_HAS_DMA_PREP_COHERENT 1154 select ARCH_HAS_SYNC_DMA_FOR_DEVICE 1155 select ARCH_HAS_DMA_SET_UNCACHED 1156 select DMA_NONCOHERENT_MMAP 1157 select NEED_DMA_MAP_STATE 1158 1159config SYS_HAS_EARLY_PRINTK 1160 bool 1161 1162config SYS_SUPPORTS_HOTPLUG_CPU 1163 bool 1164 1165config MIPS_BONITO64 1166 bool 1167 1168config MIPS_MSC 1169 bool 1170 1171config SYNC_R4K 1172 bool 1173 1174config NO_IOPORT_MAP 1175 def_bool n 1176 1177config GENERIC_CSUM 1178 def_bool CPU_NO_LOAD_STORE_LR 1179 1180config GENERIC_ISA_DMA 1181 bool 1182 select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n 1183 select ISA_DMA_API 1184 1185config GENERIC_ISA_DMA_SUPPORT_BROKEN 1186 bool 1187 select GENERIC_ISA_DMA 1188 1189config HAVE_PLAT_DELAY 1190 bool 1191 1192config HAVE_PLAT_FW_INIT_CMDLINE 1193 bool 1194 1195config HAVE_PLAT_MEMCPY 1196 bool 1197 1198config ISA_DMA_API 1199 bool 1200 1201config HOLES_IN_ZONE 1202 bool 1203 1204config SYS_SUPPORTS_RELOCATABLE 1205 bool 1206 help 1207 Selected if the platform supports relocating the kernel. 1208 The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF 1209 to allow access to command line and entropy sources. 1210 1211config MIPS_CBPF_JIT 1212 def_bool y 1213 depends on BPF_JIT && HAVE_CBPF_JIT 1214 1215config MIPS_EBPF_JIT 1216 def_bool y 1217 depends on BPF_JIT && HAVE_EBPF_JIT 1218 1219 1220# 1221# Endianness selection. Sufficiently obscure so many users don't know what to 1222# answer,so we try hard to limit the available choices. Also the use of a 1223# choice statement should be more obvious to the user. 1224# 1225choice 1226 prompt "Endianness selection" 1227 help 1228 Some MIPS machines can be configured for either little or big endian 1229 byte order. These modes require different kernels and a different 1230 Linux distribution. In general there is one preferred byteorder for a 1231 particular system but some systems are just as commonly used in the 1232 one or the other endianness. 1233 1234config CPU_BIG_ENDIAN 1235 bool "Big endian" 1236 depends on SYS_SUPPORTS_BIG_ENDIAN 1237 1238config CPU_LITTLE_ENDIAN 1239 bool "Little endian" 1240 depends on SYS_SUPPORTS_LITTLE_ENDIAN 1241 1242endchoice 1243 1244config EXPORT_UASM 1245 bool 1246 1247config SYS_SUPPORTS_APM_EMULATION 1248 bool 1249 1250config SYS_SUPPORTS_BIG_ENDIAN 1251 bool 1252 1253config SYS_SUPPORTS_LITTLE_ENDIAN 1254 bool 1255 1256config SYS_SUPPORTS_HUGETLBFS 1257 bool 1258 depends on CPU_SUPPORTS_HUGEPAGES 1259 default y 1260 1261config MIPS_HUGE_TLB_SUPPORT 1262 def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE 1263 1264config IRQ_CPU_RM7K 1265 bool 1266 1267config IRQ_MSP_SLP 1268 bool 1269 1270config IRQ_MSP_CIC 1271 bool 1272 1273config IRQ_TXX9 1274 bool 1275 1276config IRQ_GT641XX 1277 bool 1278 1279config PCI_GT64XXX_PCI0 1280 bool 1281 1282config PCI_XTALK_BRIDGE 1283 bool 1284 1285config NO_EXCEPT_FILL 1286 bool 1287 1288config MIPS_SPRAM 1289 bool 1290 1291config SWAP_IO_SPACE 1292 bool 1293 1294config SGI_HAS_INDYDOG 1295 bool 1296 1297config SGI_HAS_HAL2 1298 bool 1299 1300config SGI_HAS_SEEQ 1301 bool 1302 1303config SGI_HAS_WD93 1304 bool 1305 1306config SGI_HAS_ZILOG 1307 bool 1308 1309config SGI_HAS_I8042 1310 bool 1311 1312config DEFAULT_SGI_PARTITION 1313 bool 1314 1315config FW_ARC32 1316 bool 1317 1318config FW_SNIPROM 1319 bool 1320 1321config BOOT_ELF32 1322 bool 1323 1324config MIPS_L1_CACHE_SHIFT_4 1325 bool 1326 1327config MIPS_L1_CACHE_SHIFT_5 1328 bool 1329 1330config MIPS_L1_CACHE_SHIFT_6 1331 bool 1332 1333config MIPS_L1_CACHE_SHIFT_7 1334 bool 1335 1336config MIPS_L1_CACHE_SHIFT 1337 int 1338 default "7" if MIPS_L1_CACHE_SHIFT_7 1339 default "6" if MIPS_L1_CACHE_SHIFT_6 1340 default "5" if MIPS_L1_CACHE_SHIFT_5 1341 default "4" if MIPS_L1_CACHE_SHIFT_4 1342 default "5" 1343 1344config ARC_CMDLINE_ONLY 1345 bool 1346 1347config ARC_CONSOLE 1348 bool "ARC console support" 1349 depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN) 1350 1351config ARC_MEMORY 1352 bool 1353 1354config ARC_PROMLIB 1355 bool 1356 1357config FW_ARC64 1358 bool 1359 1360config BOOT_ELF64 1361 bool 1362 1363menu "CPU selection" 1364 1365choice 1366 prompt "CPU type" 1367 default CPU_R4X00 1368 1369config CPU_LOONGSON64 1370 bool "Loongson 64-bit CPU" 1371 depends on SYS_HAS_CPU_LOONGSON64 1372 select ARCH_HAS_PHYS_TO_DMA 1373 select CPU_MIPSR2 1374 select CPU_HAS_PREFETCH 1375 select CPU_SUPPORTS_64BIT_KERNEL 1376 select CPU_SUPPORTS_HIGHMEM 1377 select CPU_SUPPORTS_HUGEPAGES 1378 select CPU_SUPPORTS_MSA 1379 select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT 1380 select CPU_MIPSR2_IRQ_VI 1381 select WEAK_ORDERING 1382 select WEAK_REORDERING_BEYOND_LLSC 1383 select MIPS_ASID_BITS_VARIABLE 1384 select MIPS_PGD_C0_CONTEXT 1385 select MIPS_L1_CACHE_SHIFT_6 1386 select MIPS_FP_SUPPORT 1387 select GPIOLIB 1388 select SWIOTLB 1389 select HAVE_KVM 1390 help 1391 The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor 1392 cores implements the MIPS64R2 instruction set with many extensions, 1393 including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000, 1394 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old 1395 Loongson-2E/2F is not covered here and will be removed in future. 1396 1397config LOONGSON3_ENHANCEMENT 1398 bool "New Loongson-3 CPU Enhancements" 1399 default n 1400 depends on CPU_LOONGSON64 1401 help 1402 New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A 1403 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as 1404 FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User 1405 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer), 1406 Fast TLB refill support, etc. 1407 1408 This option enable those enhancements which are not probed at run 1409 time. If you want a generic kernel to run on all Loongson 3 machines, 1410 please say 'N' here. If you want a high-performance kernel to run on 1411 new Loongson-3 machines only, please say 'Y' here. 1412 1413config CPU_LOONGSON3_WORKAROUNDS 1414 bool "Old Loongson-3 LLSC Workarounds" 1415 default y if SMP 1416 depends on CPU_LOONGSON64 1417 help 1418 Loongson-3 processors have the llsc issues which require workarounds. 1419 Without workarounds the system may hang unexpectedly. 1420 1421 Newer Loongson-3 will fix these issues and no workarounds are needed. 1422 The workarounds have no significant side effect on them but may 1423 decrease the performance of the system so this option should be 1424 disabled unless the kernel is intended to be run on old systems. 1425 1426 If unsure, please say Y. 1427 1428config CPU_LOONGSON3_CPUCFG_EMULATION 1429 bool "Emulate the CPUCFG instruction on older Loongson cores" 1430 default y 1431 depends on CPU_LOONGSON64 1432 help 1433 Loongson-3A R4 and newer have the CPUCFG instruction available for 1434 userland to query CPU capabilities, much like CPUID on x86. This 1435 option provides emulation of the instruction on older Loongson 1436 cores, back to Loongson-3A1000. 1437 1438 If unsure, please say Y. 1439 1440config CPU_LOONGSON2E 1441 bool "Loongson 2E" 1442 depends on SYS_HAS_CPU_LOONGSON2E 1443 select CPU_LOONGSON2EF 1444 help 1445 The Loongson 2E processor implements the MIPS III instruction set 1446 with many extensions. 1447 1448 It has an internal FPGA northbridge, which is compatible to 1449 bonito64. 1450 1451config CPU_LOONGSON2F 1452 bool "Loongson 2F" 1453 depends on SYS_HAS_CPU_LOONGSON2F 1454 select CPU_LOONGSON2EF 1455 select GPIOLIB 1456 help 1457 The Loongson 2F processor implements the MIPS III instruction set 1458 with many extensions. 1459 1460 Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller 1461 have a similar programming interface with FPGA northbridge used in 1462 Loongson2E. 1463 1464config CPU_LOONGSON1B 1465 bool "Loongson 1B" 1466 depends on SYS_HAS_CPU_LOONGSON1B 1467 select CPU_LOONGSON32 1468 select LEDS_GPIO_REGISTER 1469 help 1470 The Loongson 1B is a 32-bit SoC, which implements the MIPS32 1471 Release 1 instruction set and part of the MIPS32 Release 2 1472 instruction set. 1473 1474config CPU_LOONGSON1C 1475 bool "Loongson 1C" 1476 depends on SYS_HAS_CPU_LOONGSON1C 1477 select CPU_LOONGSON32 1478 select LEDS_GPIO_REGISTER 1479 help 1480 The Loongson 1C is a 32-bit SoC, which implements the MIPS32 1481 Release 1 instruction set and part of the MIPS32 Release 2 1482 instruction set. 1483 1484config CPU_MIPS32_R1 1485 bool "MIPS32 Release 1" 1486 depends on SYS_HAS_CPU_MIPS32_R1 1487 select CPU_HAS_PREFETCH 1488 select CPU_SUPPORTS_32BIT_KERNEL 1489 select CPU_SUPPORTS_HIGHMEM 1490 help 1491 Choose this option to build a kernel for release 1 or later of the 1492 MIPS32 architecture. Most modern embedded systems with a 32-bit 1493 MIPS processor are based on a MIPS32 processor. If you know the 1494 specific type of processor in your system, choose those that one 1495 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 1496 Release 2 of the MIPS32 architecture is available since several 1497 years so chances are you even have a MIPS32 Release 2 processor 1498 in which case you should choose CPU_MIPS32_R2 instead for better 1499 performance. 1500 1501config CPU_MIPS32_R2 1502 bool "MIPS32 Release 2" 1503 depends on SYS_HAS_CPU_MIPS32_R2 1504 select CPU_HAS_PREFETCH 1505 select CPU_SUPPORTS_32BIT_KERNEL 1506 select CPU_SUPPORTS_HIGHMEM 1507 select CPU_SUPPORTS_MSA 1508 select HAVE_KVM 1509 help 1510 Choose this option to build a kernel for release 2 or later of the 1511 MIPS32 architecture. Most modern embedded systems with a 32-bit 1512 MIPS processor are based on a MIPS32 processor. If you know the 1513 specific type of processor in your system, choose those that one 1514 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 1515 1516config CPU_MIPS32_R5 1517 bool "MIPS32 Release 5" 1518 depends on SYS_HAS_CPU_MIPS32_R5 1519 select CPU_HAS_PREFETCH 1520 select CPU_SUPPORTS_32BIT_KERNEL 1521 select CPU_SUPPORTS_HIGHMEM 1522 select CPU_SUPPORTS_MSA 1523 select HAVE_KVM 1524 select MIPS_O32_FP64_SUPPORT 1525 help 1526 Choose this option to build a kernel for release 5 or later of the 1527 MIPS32 architecture. New MIPS processors, starting with the Warrior 1528 family, are based on a MIPS32r5 processor. If you own an older 1529 processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 1530 1531config CPU_MIPS32_R6 1532 bool "MIPS32 Release 6" 1533 depends on SYS_HAS_CPU_MIPS32_R6 1534 select CPU_HAS_PREFETCH 1535 select CPU_NO_LOAD_STORE_LR 1536 select CPU_SUPPORTS_32BIT_KERNEL 1537 select CPU_SUPPORTS_HIGHMEM 1538 select CPU_SUPPORTS_MSA 1539 select HAVE_KVM 1540 select MIPS_O32_FP64_SUPPORT 1541 help 1542 Choose this option to build a kernel for release 6 or later of the 1543 MIPS32 architecture. New MIPS processors, starting with the Warrior 1544 family, are based on a MIPS32r6 processor. If you own an older 1545 processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 1546 1547config CPU_MIPS64_R1 1548 bool "MIPS64 Release 1" 1549 depends on SYS_HAS_CPU_MIPS64_R1 1550 select CPU_HAS_PREFETCH 1551 select CPU_SUPPORTS_32BIT_KERNEL 1552 select CPU_SUPPORTS_64BIT_KERNEL 1553 select CPU_SUPPORTS_HIGHMEM 1554 select CPU_SUPPORTS_HUGEPAGES 1555 help 1556 Choose this option to build a kernel for release 1 or later of the 1557 MIPS64 architecture. Many modern embedded systems with a 64-bit 1558 MIPS processor are based on a MIPS64 processor. If you know the 1559 specific type of processor in your system, choose those that one 1560 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 1561 Release 2 of the MIPS64 architecture is available since several 1562 years so chances are you even have a MIPS64 Release 2 processor 1563 in which case you should choose CPU_MIPS64_R2 instead for better 1564 performance. 1565 1566config CPU_MIPS64_R2 1567 bool "MIPS64 Release 2" 1568 depends on SYS_HAS_CPU_MIPS64_R2 1569 select CPU_HAS_PREFETCH 1570 select CPU_SUPPORTS_32BIT_KERNEL 1571 select CPU_SUPPORTS_64BIT_KERNEL 1572 select CPU_SUPPORTS_HIGHMEM 1573 select CPU_SUPPORTS_HUGEPAGES 1574 select CPU_SUPPORTS_MSA 1575 select HAVE_KVM 1576 help 1577 Choose this option to build a kernel for release 2 or later of the 1578 MIPS64 architecture. Many modern embedded systems with a 64-bit 1579 MIPS processor are based on a MIPS64 processor. If you know the 1580 specific type of processor in your system, choose those that one 1581 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 1582 1583config CPU_MIPS64_R5 1584 bool "MIPS64 Release 5" 1585 depends on SYS_HAS_CPU_MIPS64_R5 1586 select CPU_HAS_PREFETCH 1587 select CPU_SUPPORTS_32BIT_KERNEL 1588 select CPU_SUPPORTS_64BIT_KERNEL 1589 select CPU_SUPPORTS_HIGHMEM 1590 select CPU_SUPPORTS_HUGEPAGES 1591 select CPU_SUPPORTS_MSA 1592 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 1593 select HAVE_KVM 1594 help 1595 Choose this option to build a kernel for release 5 or later of the 1596 MIPS64 architecture. This is a intermediate MIPS architecture 1597 release partly implementing release 6 features. Though there is no 1598 any hardware known to be based on this release. 1599 1600config CPU_MIPS64_R6 1601 bool "MIPS64 Release 6" 1602 depends on SYS_HAS_CPU_MIPS64_R6 1603 select CPU_HAS_PREFETCH 1604 select CPU_NO_LOAD_STORE_LR 1605 select CPU_SUPPORTS_32BIT_KERNEL 1606 select CPU_SUPPORTS_64BIT_KERNEL 1607 select CPU_SUPPORTS_HIGHMEM 1608 select CPU_SUPPORTS_HUGEPAGES 1609 select CPU_SUPPORTS_MSA 1610 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 1611 select HAVE_KVM 1612 help 1613 Choose this option to build a kernel for release 6 or later of the 1614 MIPS64 architecture. New MIPS processors, starting with the Warrior 1615 family, are based on a MIPS64r6 processor. If you own an older 1616 processor, you probably need to select MIPS64r1 or MIPS64r2 instead. 1617 1618config CPU_P5600 1619 bool "MIPS Warrior P5600" 1620 depends on SYS_HAS_CPU_P5600 1621 select CPU_HAS_PREFETCH 1622 select CPU_SUPPORTS_32BIT_KERNEL 1623 select CPU_SUPPORTS_HIGHMEM 1624 select CPU_SUPPORTS_MSA 1625 select CPU_SUPPORTS_CPUFREQ 1626 select CPU_MIPSR2_IRQ_VI 1627 select CPU_MIPSR2_IRQ_EI 1628 select HAVE_KVM 1629 select MIPS_O32_FP64_SUPPORT 1630 help 1631 Choose this option to build a kernel for MIPS Warrior P5600 CPU. 1632 It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes, 1633 MMU with two-levels TLB, UCA, MSA, MDU core level features and system 1634 level features like up to six P5600 calculation cores, CM2 with L2 1635 cache, IOCU/IOMMU (though might be unused depending on the system- 1636 specific IP core configuration), GIC, CPC, virtualisation module, 1637 eJTAG and PDtrace. 1638 1639config CPU_R3000 1640 bool "R3000" 1641 depends on SYS_HAS_CPU_R3000 1642 select CPU_HAS_WB 1643 select CPU_R3K_TLB 1644 select CPU_SUPPORTS_32BIT_KERNEL 1645 select CPU_SUPPORTS_HIGHMEM 1646 help 1647 Please make sure to pick the right CPU type. Linux/MIPS is not 1648 designed to be generic, i.e. Kernels compiled for R3000 CPUs will 1649 *not* work on R4000 machines and vice versa. However, since most 1650 of the supported machines have an R4000 (or similar) CPU, R4x00 1651 might be a safe bet. If the resulting kernel does not work, 1652 try to recompile with R3000. 1653 1654config CPU_TX39XX 1655 bool "R39XX" 1656 depends on SYS_HAS_CPU_TX39XX 1657 select CPU_SUPPORTS_32BIT_KERNEL 1658 select CPU_R3K_TLB 1659 1660config CPU_VR41XX 1661 bool "R41xx" 1662 depends on SYS_HAS_CPU_VR41XX 1663 select CPU_SUPPORTS_32BIT_KERNEL 1664 select CPU_SUPPORTS_64BIT_KERNEL 1665 help 1666 The options selects support for the NEC VR4100 series of processors. 1667 Only choose this option if you have one of these processors as a 1668 kernel built with this option will not run on any other type of 1669 processor or vice versa. 1670 1671config CPU_R4X00 1672 bool "R4x00" 1673 depends on SYS_HAS_CPU_R4X00 1674 select CPU_SUPPORTS_32BIT_KERNEL 1675 select CPU_SUPPORTS_64BIT_KERNEL 1676 select CPU_SUPPORTS_HUGEPAGES 1677 help 1678 MIPS Technologies R4000-series processors other than 4300, including 1679 the R4000, R4400, R4600, and 4700. 1680 1681config CPU_TX49XX 1682 bool "R49XX" 1683 depends on SYS_HAS_CPU_TX49XX 1684 select CPU_HAS_PREFETCH 1685 select CPU_SUPPORTS_32BIT_KERNEL 1686 select CPU_SUPPORTS_64BIT_KERNEL 1687 select CPU_SUPPORTS_HUGEPAGES 1688 1689config CPU_R5000 1690 bool "R5000" 1691 depends on SYS_HAS_CPU_R5000 1692 select CPU_SUPPORTS_32BIT_KERNEL 1693 select CPU_SUPPORTS_64BIT_KERNEL 1694 select CPU_SUPPORTS_HUGEPAGES 1695 help 1696 MIPS Technologies R5000-series processors other than the Nevada. 1697 1698config CPU_R5500 1699 bool "R5500" 1700 depends on SYS_HAS_CPU_R5500 1701 select CPU_SUPPORTS_32BIT_KERNEL 1702 select CPU_SUPPORTS_64BIT_KERNEL 1703 select CPU_SUPPORTS_HUGEPAGES 1704 help 1705 NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV 1706 instruction set. 1707 1708config CPU_NEVADA 1709 bool "RM52xx" 1710 depends on SYS_HAS_CPU_NEVADA 1711 select CPU_SUPPORTS_32BIT_KERNEL 1712 select CPU_SUPPORTS_64BIT_KERNEL 1713 select CPU_SUPPORTS_HUGEPAGES 1714 help 1715 QED / PMC-Sierra RM52xx-series ("Nevada") processors. 1716 1717config CPU_R10000 1718 bool "R10000" 1719 depends on SYS_HAS_CPU_R10000 1720 select CPU_HAS_PREFETCH 1721 select CPU_SUPPORTS_32BIT_KERNEL 1722 select CPU_SUPPORTS_64BIT_KERNEL 1723 select CPU_SUPPORTS_HIGHMEM 1724 select CPU_SUPPORTS_HUGEPAGES 1725 help 1726 MIPS Technologies R10000-series processors. 1727 1728config CPU_RM7000 1729 bool "RM7000" 1730 depends on SYS_HAS_CPU_RM7000 1731 select CPU_HAS_PREFETCH 1732 select CPU_SUPPORTS_32BIT_KERNEL 1733 select CPU_SUPPORTS_64BIT_KERNEL 1734 select CPU_SUPPORTS_HIGHMEM 1735 select CPU_SUPPORTS_HUGEPAGES 1736 1737config CPU_SB1 1738 bool "SB1" 1739 depends on SYS_HAS_CPU_SB1 1740 select CPU_SUPPORTS_32BIT_KERNEL 1741 select CPU_SUPPORTS_64BIT_KERNEL 1742 select CPU_SUPPORTS_HIGHMEM 1743 select CPU_SUPPORTS_HUGEPAGES 1744 select WEAK_ORDERING 1745 1746config CPU_CAVIUM_OCTEON 1747 bool "Cavium Octeon processor" 1748 depends on SYS_HAS_CPU_CAVIUM_OCTEON 1749 select CPU_HAS_PREFETCH 1750 select CPU_SUPPORTS_64BIT_KERNEL 1751 select WEAK_ORDERING 1752 select CPU_SUPPORTS_HIGHMEM 1753 select CPU_SUPPORTS_HUGEPAGES 1754 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1755 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1756 select MIPS_L1_CACHE_SHIFT_7 1757 select HAVE_KVM 1758 help 1759 The Cavium Octeon processor is a highly integrated chip containing 1760 many ethernet hardware widgets for networking tasks. The processor 1761 can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets. 1762 Full details can be found at http://www.caviumnetworks.com. 1763 1764config CPU_BMIPS 1765 bool "Broadcom BMIPS" 1766 depends on SYS_HAS_CPU_BMIPS 1767 select CPU_MIPS32 1768 select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300 1769 select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350 1770 select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380 1771 select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000 1772 select CPU_SUPPORTS_32BIT_KERNEL 1773 select DMA_NONCOHERENT 1774 select IRQ_MIPS_CPU 1775 select SWAP_IO_SPACE 1776 select WEAK_ORDERING 1777 select CPU_SUPPORTS_HIGHMEM 1778 select CPU_HAS_PREFETCH 1779 select CPU_SUPPORTS_CPUFREQ 1780 select MIPS_EXTERNAL_TIMER 1781 help 1782 Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors. 1783 1784config CPU_XLR 1785 bool "Netlogic XLR SoC" 1786 depends on SYS_HAS_CPU_XLR 1787 select CPU_SUPPORTS_32BIT_KERNEL 1788 select CPU_SUPPORTS_64BIT_KERNEL 1789 select CPU_SUPPORTS_HIGHMEM 1790 select CPU_SUPPORTS_HUGEPAGES 1791 select WEAK_ORDERING 1792 select WEAK_REORDERING_BEYOND_LLSC 1793 help 1794 Netlogic Microsystems XLR/XLS processors. 1795 1796config CPU_XLP 1797 bool "Netlogic XLP SoC" 1798 depends on SYS_HAS_CPU_XLP 1799 select CPU_SUPPORTS_32BIT_KERNEL 1800 select CPU_SUPPORTS_64BIT_KERNEL 1801 select CPU_SUPPORTS_HIGHMEM 1802 select WEAK_ORDERING 1803 select WEAK_REORDERING_BEYOND_LLSC 1804 select CPU_HAS_PREFETCH 1805 select CPU_MIPSR2 1806 select CPU_SUPPORTS_HUGEPAGES 1807 select MIPS_ASID_BITS_VARIABLE 1808 help 1809 Netlogic Microsystems XLP processors. 1810endchoice 1811 1812config CPU_MIPS32_3_5_FEATURES 1813 bool "MIPS32 Release 3.5 Features" 1814 depends on SYS_HAS_CPU_MIPS32_R3_5 1815 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \ 1816 CPU_P5600 1817 help 1818 Choose this option to build a kernel for release 2 or later of the 1819 MIPS32 architecture including features from the 3.5 release such as 1820 support for Enhanced Virtual Addressing (EVA). 1821 1822config CPU_MIPS32_3_5_EVA 1823 bool "Enhanced Virtual Addressing (EVA)" 1824 depends on CPU_MIPS32_3_5_FEATURES 1825 select EVA 1826 default y 1827 help 1828 Choose this option if you want to enable the Enhanced Virtual 1829 Addressing (EVA) on your MIPS32 core (such as proAptiv). 1830 One of its primary benefits is an increase in the maximum size 1831 of lowmem (up to 3GB). If unsure, say 'N' here. 1832 1833config CPU_MIPS32_R5_FEATURES 1834 bool "MIPS32 Release 5 Features" 1835 depends on SYS_HAS_CPU_MIPS32_R5 1836 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600 1837 help 1838 Choose this option to build a kernel for release 2 or later of the 1839 MIPS32 architecture including features from release 5 such as 1840 support for Extended Physical Addressing (XPA). 1841 1842config CPU_MIPS32_R5_XPA 1843 bool "Extended Physical Addressing (XPA)" 1844 depends on CPU_MIPS32_R5_FEATURES 1845 depends on !EVA 1846 depends on !PAGE_SIZE_4KB 1847 depends on SYS_SUPPORTS_HIGHMEM 1848 select XPA 1849 select HIGHMEM 1850 select PHYS_ADDR_T_64BIT 1851 default n 1852 help 1853 Choose this option if you want to enable the Extended Physical 1854 Addressing (XPA) on your MIPS32 core (such as P5600 series). The 1855 benefit is to increase physical addressing equal to or greater 1856 than 40 bits. Note that this has the side effect of turning on 1857 64-bit addressing which in turn makes the PTEs 64-bit in size. 1858 If unsure, say 'N' here. 1859 1860if CPU_LOONGSON2F 1861config CPU_NOP_WORKAROUNDS 1862 bool 1863 1864config CPU_JUMP_WORKAROUNDS 1865 bool 1866 1867config CPU_LOONGSON2F_WORKAROUNDS 1868 bool "Loongson 2F Workarounds" 1869 default y 1870 select CPU_NOP_WORKAROUNDS 1871 select CPU_JUMP_WORKAROUNDS 1872 help 1873 Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which 1874 require workarounds. Without workarounds the system may hang 1875 unexpectedly. For more information please refer to the gas 1876 -mfix-loongson2f-nop and -mfix-loongson2f-jump options. 1877 1878 Loongson 2F03 and later have fixed these issues and no workarounds 1879 are needed. The workarounds have no significant side effect on them 1880 but may decrease the performance of the system so this option should 1881 be disabled unless the kernel is intended to be run on 2F01 or 2F02 1882 systems. 1883 1884 If unsure, please say Y. 1885endif # CPU_LOONGSON2F 1886 1887config SYS_SUPPORTS_ZBOOT 1888 bool 1889 select HAVE_KERNEL_GZIP 1890 select HAVE_KERNEL_BZIP2 1891 select HAVE_KERNEL_LZ4 1892 select HAVE_KERNEL_LZMA 1893 select HAVE_KERNEL_LZO 1894 select HAVE_KERNEL_XZ 1895 select HAVE_KERNEL_ZSTD 1896 1897config SYS_SUPPORTS_ZBOOT_UART16550 1898 bool 1899 select SYS_SUPPORTS_ZBOOT 1900 1901config SYS_SUPPORTS_ZBOOT_UART_PROM 1902 bool 1903 select SYS_SUPPORTS_ZBOOT 1904 1905config CPU_LOONGSON2EF 1906 bool 1907 select CPU_SUPPORTS_32BIT_KERNEL 1908 select CPU_SUPPORTS_64BIT_KERNEL 1909 select CPU_SUPPORTS_HIGHMEM 1910 select CPU_SUPPORTS_HUGEPAGES 1911 select ARCH_HAS_PHYS_TO_DMA 1912 1913config CPU_LOONGSON32 1914 bool 1915 select CPU_MIPS32 1916 select CPU_MIPSR2 1917 select CPU_HAS_PREFETCH 1918 select CPU_SUPPORTS_32BIT_KERNEL 1919 select CPU_SUPPORTS_HIGHMEM 1920 select CPU_SUPPORTS_CPUFREQ 1921 1922config CPU_BMIPS32_3300 1923 select SMP_UP if SMP 1924 bool 1925 1926config CPU_BMIPS4350 1927 bool 1928 select SYS_SUPPORTS_SMP 1929 select SYS_SUPPORTS_HOTPLUG_CPU 1930 1931config CPU_BMIPS4380 1932 bool 1933 select MIPS_L1_CACHE_SHIFT_6 1934 select SYS_SUPPORTS_SMP 1935 select SYS_SUPPORTS_HOTPLUG_CPU 1936 select CPU_HAS_RIXI 1937 1938config CPU_BMIPS5000 1939 bool 1940 select MIPS_CPU_SCACHE 1941 select MIPS_L1_CACHE_SHIFT_7 1942 select SYS_SUPPORTS_SMP 1943 select SYS_SUPPORTS_HOTPLUG_CPU 1944 select CPU_HAS_RIXI 1945 1946config SYS_HAS_CPU_LOONGSON64 1947 bool 1948 select CPU_SUPPORTS_CPUFREQ 1949 select CPU_HAS_RIXI 1950 1951config SYS_HAS_CPU_LOONGSON2E 1952 bool 1953 1954config SYS_HAS_CPU_LOONGSON2F 1955 bool 1956 select CPU_SUPPORTS_CPUFREQ 1957 select CPU_SUPPORTS_ADDRWINCFG if 64BIT 1958 1959config SYS_HAS_CPU_LOONGSON1B 1960 bool 1961 1962config SYS_HAS_CPU_LOONGSON1C 1963 bool 1964 1965config SYS_HAS_CPU_MIPS32_R1 1966 bool 1967 1968config SYS_HAS_CPU_MIPS32_R2 1969 bool 1970 1971config SYS_HAS_CPU_MIPS32_R3_5 1972 bool 1973 1974config SYS_HAS_CPU_MIPS32_R5 1975 bool 1976 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1977 1978config SYS_HAS_CPU_MIPS32_R6 1979 bool 1980 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1981 1982config SYS_HAS_CPU_MIPS64_R1 1983 bool 1984 1985config SYS_HAS_CPU_MIPS64_R2 1986 bool 1987 1988config SYS_HAS_CPU_MIPS64_R5 1989 bool 1990 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1991 1992config SYS_HAS_CPU_MIPS64_R6 1993 bool 1994 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1995 1996config SYS_HAS_CPU_P5600 1997 bool 1998 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1999 2000config SYS_HAS_CPU_R3000 2001 bool 2002 2003config SYS_HAS_CPU_TX39XX 2004 bool 2005 2006config SYS_HAS_CPU_VR41XX 2007 bool 2008 2009config SYS_HAS_CPU_R4X00 2010 bool 2011 2012config SYS_HAS_CPU_TX49XX 2013 bool 2014 2015config SYS_HAS_CPU_R5000 2016 bool 2017 2018config SYS_HAS_CPU_R5500 2019 bool 2020 2021config SYS_HAS_CPU_NEVADA 2022 bool 2023 2024config SYS_HAS_CPU_R10000 2025 bool 2026 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 2027 2028config SYS_HAS_CPU_RM7000 2029 bool 2030 2031config SYS_HAS_CPU_SB1 2032 bool 2033 2034config SYS_HAS_CPU_CAVIUM_OCTEON 2035 bool 2036 2037config SYS_HAS_CPU_BMIPS 2038 bool 2039 2040config SYS_HAS_CPU_BMIPS32_3300 2041 bool 2042 select SYS_HAS_CPU_BMIPS 2043 2044config SYS_HAS_CPU_BMIPS4350 2045 bool 2046 select SYS_HAS_CPU_BMIPS 2047 2048config SYS_HAS_CPU_BMIPS4380 2049 bool 2050 select SYS_HAS_CPU_BMIPS 2051 2052config SYS_HAS_CPU_BMIPS5000 2053 bool 2054 select SYS_HAS_CPU_BMIPS 2055 select ARCH_HAS_SYNC_DMA_FOR_CPU 2056 2057config SYS_HAS_CPU_XLR 2058 bool 2059 2060config SYS_HAS_CPU_XLP 2061 bool 2062 2063# 2064# CPU may reorder R->R, R->W, W->R, W->W 2065# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC 2066# 2067config WEAK_ORDERING 2068 bool 2069 2070# 2071# CPU may reorder reads and writes beyond LL/SC 2072# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC 2073# 2074config WEAK_REORDERING_BEYOND_LLSC 2075 bool 2076endmenu 2077 2078# 2079# These two indicate any level of the MIPS32 and MIPS64 architecture 2080# 2081config CPU_MIPS32 2082 bool 2083 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \ 2084 CPU_MIPS32_R6 || CPU_P5600 2085 2086config CPU_MIPS64 2087 bool 2088 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \ 2089 CPU_MIPS64_R6 2090 2091# 2092# These indicate the revision of the architecture 2093# 2094config CPU_MIPSR1 2095 bool 2096 default y if CPU_MIPS32_R1 || CPU_MIPS64_R1 2097 2098config CPU_MIPSR2 2099 bool 2100 default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON 2101 select CPU_HAS_RIXI 2102 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2103 select MIPS_SPRAM 2104 2105config CPU_MIPSR5 2106 bool 2107 default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600 2108 select CPU_HAS_RIXI 2109 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2110 select MIPS_SPRAM 2111 2112config CPU_MIPSR6 2113 bool 2114 default y if CPU_MIPS32_R6 || CPU_MIPS64_R6 2115 select CPU_HAS_RIXI 2116 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2117 select HAVE_ARCH_BITREVERSE 2118 select MIPS_ASID_BITS_VARIABLE 2119 select MIPS_CRC_SUPPORT 2120 select MIPS_SPRAM 2121 2122config TARGET_ISA_REV 2123 int 2124 default 1 if CPU_MIPSR1 2125 default 2 if CPU_MIPSR2 2126 default 5 if CPU_MIPSR5 2127 default 6 if CPU_MIPSR6 2128 default 0 2129 help 2130 Reflects the ISA revision being targeted by the kernel build. This 2131 is effectively the Kconfig equivalent of MIPS_ISA_REV. 2132 2133config EVA 2134 bool 2135 2136config XPA 2137 bool 2138 2139config SYS_SUPPORTS_32BIT_KERNEL 2140 bool 2141config SYS_SUPPORTS_64BIT_KERNEL 2142 bool 2143config CPU_SUPPORTS_32BIT_KERNEL 2144 bool 2145config CPU_SUPPORTS_64BIT_KERNEL 2146 bool 2147config CPU_SUPPORTS_CPUFREQ 2148 bool 2149config CPU_SUPPORTS_ADDRWINCFG 2150 bool 2151config CPU_SUPPORTS_HUGEPAGES 2152 bool 2153 depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA)) 2154config MIPS_PGD_C0_CONTEXT 2155 bool 2156 default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP 2157 2158# 2159# Set to y for ptrace access to watch registers. 2160# 2161config HARDWARE_WATCHPOINTS 2162 bool 2163 default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6 2164 2165menu "Kernel type" 2166 2167choice 2168 prompt "Kernel code model" 2169 help 2170 You should only select this option if you have a workload that 2171 actually benefits from 64-bit processing or if your machine has 2172 large memory. You will only be presented a single option in this 2173 menu if your system does not support both 32-bit and 64-bit kernels. 2174 2175config 32BIT 2176 bool "32-bit kernel" 2177 depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL 2178 select TRAD_SIGNALS 2179 help 2180 Select this option if you want to build a 32-bit kernel. 2181 2182config 64BIT 2183 bool "64-bit kernel" 2184 depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL 2185 help 2186 Select this option if you want to build a 64-bit kernel. 2187 2188endchoice 2189 2190config KVM_GUEST 2191 bool "KVM Guest Kernel" 2192 depends on CPU_MIPS32_R2 2193 depends on BROKEN_ON_SMP 2194 help 2195 Select this option if building a guest kernel for KVM (Trap & Emulate) 2196 mode. 2197 2198config KVM_GUEST_TIMER_FREQ 2199 int "Count/Compare Timer Frequency (MHz)" 2200 depends on KVM_GUEST 2201 default 100 2202 help 2203 Set this to non-zero if building a guest kernel for KVM to skip RTC 2204 emulation when determining guest CPU Frequency. Instead, the guest's 2205 timer frequency is specified directly. 2206 2207config MIPS_VA_BITS_48 2208 bool "48 bits virtual memory" 2209 depends on 64BIT 2210 help 2211 Support a maximum at least 48 bits of application virtual 2212 memory. Default is 40 bits or less, depending on the CPU. 2213 For page sizes 16k and above, this option results in a small 2214 memory overhead for page tables. For 4k page size, a fourth 2215 level of page tables is added which imposes both a memory 2216 overhead as well as slower TLB fault handling. 2217 2218 If unsure, say N. 2219 2220choice 2221 prompt "Kernel page size" 2222 default PAGE_SIZE_4KB 2223 2224config PAGE_SIZE_4KB 2225 bool "4kB" 2226 depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64 2227 help 2228 This option select the standard 4kB Linux page size. On some 2229 R3000-family processors this is the only available page size. Using 2230 4kB page size will minimize memory consumption and is therefore 2231 recommended for low memory systems. 2232 2233config PAGE_SIZE_8KB 2234 bool "8kB" 2235 depends on CPU_CAVIUM_OCTEON 2236 depends on !MIPS_VA_BITS_48 2237 help 2238 Using 8kB page size will result in higher performance kernel at 2239 the price of higher memory consumption. This option is available 2240 only on cnMIPS processors. Note that you will need a suitable Linux 2241 distribution to support this. 2242 2243config PAGE_SIZE_16KB 2244 bool "16kB" 2245 depends on !CPU_R3000 && !CPU_TX39XX 2246 help 2247 Using 16kB page size will result in higher performance kernel at 2248 the price of higher memory consumption. This option is available on 2249 all non-R3000 family processors. Note that you will need a suitable 2250 Linux distribution to support this. 2251 2252config PAGE_SIZE_32KB 2253 bool "32kB" 2254 depends on CPU_CAVIUM_OCTEON 2255 depends on !MIPS_VA_BITS_48 2256 help 2257 Using 32kB page size will result in higher performance kernel at 2258 the price of higher memory consumption. This option is available 2259 only on cnMIPS cores. Note that you will need a suitable Linux 2260 distribution to support this. 2261 2262config PAGE_SIZE_64KB 2263 bool "64kB" 2264 depends on !CPU_R3000 && !CPU_TX39XX 2265 help 2266 Using 64kB page size will result in higher performance kernel at 2267 the price of higher memory consumption. This option is available on 2268 all non-R3000 family processor. Not that at the time of this 2269 writing this option is still high experimental. 2270 2271endchoice 2272 2273config FORCE_MAX_ZONEORDER 2274 int "Maximum zone order" 2275 range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2276 default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2277 range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2278 default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2279 range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2280 default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2281 range 0 64 2282 default "11" 2283 help 2284 The kernel memory allocator divides physically contiguous memory 2285 blocks into "zones", where each zone is a power of two number of 2286 pages. This option selects the largest power of two that the kernel 2287 keeps in the memory allocator. If you need to allocate very large 2288 blocks of physically contiguous memory, then you may need to 2289 increase this value. 2290 2291 This config option is actually maximum order plus one. For example, 2292 a value of 11 means that the largest free memory block is 2^10 pages. 2293 2294 The page size is not necessarily 4KB. Keep this in mind 2295 when choosing a value for this option. 2296 2297config BOARD_SCACHE 2298 bool 2299 2300config IP22_CPU_SCACHE 2301 bool 2302 select BOARD_SCACHE 2303 2304# 2305# Support for a MIPS32 / MIPS64 style S-caches 2306# 2307config MIPS_CPU_SCACHE 2308 bool 2309 select BOARD_SCACHE 2310 2311config R5000_CPU_SCACHE 2312 bool 2313 select BOARD_SCACHE 2314 2315config RM7000_CPU_SCACHE 2316 bool 2317 select BOARD_SCACHE 2318 2319config SIBYTE_DMA_PAGEOPS 2320 bool "Use DMA to clear/copy pages" 2321 depends on CPU_SB1 2322 help 2323 Instead of using the CPU to zero and copy pages, use a Data Mover 2324 channel. These DMA channels are otherwise unused by the standard 2325 SiByte Linux port. Seems to give a small performance benefit. 2326 2327config CPU_HAS_PREFETCH 2328 bool 2329 2330config CPU_GENERIC_DUMP_TLB 2331 bool 2332 default y if !(CPU_R3000 || CPU_TX39XX) 2333 2334config MIPS_FP_SUPPORT 2335 bool "Floating Point support" if EXPERT 2336 default y 2337 help 2338 Select y to include support for floating point in the kernel 2339 including initialization of FPU hardware, FP context save & restore 2340 and emulation of an FPU where necessary. Without this support any 2341 userland program attempting to use floating point instructions will 2342 receive a SIGILL. 2343 2344 If you know that your userland will not attempt to use floating point 2345 instructions then you can say n here to shrink the kernel a little. 2346 2347 If unsure, say y. 2348 2349config CPU_R2300_FPU 2350 bool 2351 depends on MIPS_FP_SUPPORT 2352 default y if CPU_R3000 || CPU_TX39XX 2353 2354config CPU_R3K_TLB 2355 bool 2356 2357config CPU_R4K_FPU 2358 bool 2359 depends on MIPS_FP_SUPPORT 2360 default y if !CPU_R2300_FPU 2361 2362config CPU_R4K_CACHE_TLB 2363 bool 2364 default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON) 2365 2366config MIPS_MT_SMP 2367 bool "MIPS MT SMP support (1 TC on each available VPE)" 2368 default y 2369 depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS 2370 select CPU_MIPSR2_IRQ_VI 2371 select CPU_MIPSR2_IRQ_EI 2372 select SYNC_R4K 2373 select MIPS_MT 2374 select SMP 2375 select SMP_UP 2376 select SYS_SUPPORTS_SMP 2377 select SYS_SUPPORTS_SCHED_SMT 2378 select MIPS_PERF_SHARED_TC_COUNTERS 2379 help 2380 This is a kernel model which is known as SMVP. This is supported 2381 on cores with the MT ASE and uses the available VPEs to implement 2382 virtual processors which supports SMP. This is equivalent to the 2383 Intel Hyperthreading feature. For further information go to 2384 <http://www.imgtec.com/mips/mips-multithreading.asp>. 2385 2386config MIPS_MT 2387 bool 2388 2389config SCHED_SMT 2390 bool "SMT (multithreading) scheduler support" 2391 depends on SYS_SUPPORTS_SCHED_SMT 2392 default n 2393 help 2394 SMT scheduler support improves the CPU scheduler's decision making 2395 when dealing with MIPS MT enabled cores at a cost of slightly 2396 increased overhead in some places. If unsure say N here. 2397 2398config SYS_SUPPORTS_SCHED_SMT 2399 bool 2400 2401config SYS_SUPPORTS_MULTITHREADING 2402 bool 2403 2404config MIPS_MT_FPAFF 2405 bool "Dynamic FPU affinity for FP-intensive threads" 2406 default y 2407 depends on MIPS_MT_SMP 2408 2409config MIPSR2_TO_R6_EMULATOR 2410 bool "MIPS R2-to-R6 emulator" 2411 depends on CPU_MIPSR6 2412 depends on MIPS_FP_SUPPORT 2413 default y 2414 help 2415 Choose this option if you want to run non-R6 MIPS userland code. 2416 Even if you say 'Y' here, the emulator will still be disabled by 2417 default. You can enable it using the 'mipsr2emu' kernel option. 2418 The only reason this is a build-time option is to save ~14K from the 2419 final kernel image. 2420 2421config SYS_SUPPORTS_VPE_LOADER 2422 bool 2423 depends on SYS_SUPPORTS_MULTITHREADING 2424 help 2425 Indicates that the platform supports the VPE loader, and provides 2426 physical_memsize. 2427 2428config MIPS_VPE_LOADER 2429 bool "VPE loader support." 2430 depends on SYS_SUPPORTS_VPE_LOADER && MODULES 2431 select CPU_MIPSR2_IRQ_VI 2432 select CPU_MIPSR2_IRQ_EI 2433 select MIPS_MT 2434 help 2435 Includes a loader for loading an elf relocatable object 2436 onto another VPE and running it. 2437 2438config MIPS_VPE_LOADER_CMP 2439 bool 2440 default "y" 2441 depends on MIPS_VPE_LOADER && MIPS_CMP 2442 2443config MIPS_VPE_LOADER_MT 2444 bool 2445 default "y" 2446 depends on MIPS_VPE_LOADER && !MIPS_CMP 2447 2448config MIPS_VPE_LOADER_TOM 2449 bool "Load VPE program into memory hidden from linux" 2450 depends on MIPS_VPE_LOADER 2451 default y 2452 help 2453 The loader can use memory that is present but has been hidden from 2454 Linux using the kernel command line option "mem=xxMB". It's up to 2455 you to ensure the amount you put in the option and the space your 2456 program requires is less or equal to the amount physically present. 2457 2458config MIPS_VPE_APSP_API 2459 bool "Enable support for AP/SP API (RTLX)" 2460 depends on MIPS_VPE_LOADER 2461 2462config MIPS_VPE_APSP_API_CMP 2463 bool 2464 default "y" 2465 depends on MIPS_VPE_APSP_API && MIPS_CMP 2466 2467config MIPS_VPE_APSP_API_MT 2468 bool 2469 default "y" 2470 depends on MIPS_VPE_APSP_API && !MIPS_CMP 2471 2472config MIPS_CMP 2473 bool "MIPS CMP framework support (DEPRECATED)" 2474 depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6 2475 select SMP 2476 select SYNC_R4K 2477 select SYS_SUPPORTS_SMP 2478 select WEAK_ORDERING 2479 default n 2480 help 2481 Select this if you are using a bootloader which implements the "CMP 2482 framework" protocol (ie. YAMON) and want your kernel to make use of 2483 its ability to start secondary CPUs. 2484 2485 Unless you have a specific need, you should use CONFIG_MIPS_CPS 2486 instead of this. 2487 2488config MIPS_CPS 2489 bool "MIPS Coherent Processing System support" 2490 depends on SYS_SUPPORTS_MIPS_CPS 2491 select MIPS_CM 2492 select MIPS_CPS_PM if HOTPLUG_CPU 2493 select SMP 2494 select SYNC_R4K if (CEVT_R4K || CSRC_R4K) 2495 select SYS_SUPPORTS_HOTPLUG_CPU 2496 select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6 2497 select SYS_SUPPORTS_SMP 2498 select WEAK_ORDERING 2499 help 2500 Select this if you wish to run an SMP kernel across multiple cores 2501 within a MIPS Coherent Processing System. When this option is 2502 enabled the kernel will probe for other cores and boot them with 2503 no external assistance. It is safe to enable this when hardware 2504 support is unavailable. 2505 2506config MIPS_CPS_PM 2507 depends on MIPS_CPS 2508 bool 2509 2510config MIPS_CM 2511 bool 2512 select MIPS_CPC 2513 2514config MIPS_CPC 2515 bool 2516 2517config SB1_PASS_2_WORKAROUNDS 2518 bool 2519 depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2) 2520 default y 2521 2522config SB1_PASS_2_1_WORKAROUNDS 2523 bool 2524 depends on CPU_SB1 && CPU_SB1_PASS_2 2525 default y 2526 2527choice 2528 prompt "SmartMIPS or microMIPS ASE support" 2529 2530config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS 2531 bool "None" 2532 help 2533 Select this if you want neither microMIPS nor SmartMIPS support 2534 2535config CPU_HAS_SMARTMIPS 2536 depends on SYS_SUPPORTS_SMARTMIPS 2537 bool "SmartMIPS" 2538 help 2539 SmartMIPS is a extension of the MIPS32 architecture aimed at 2540 increased security at both hardware and software level for 2541 smartcards. Enabling this option will allow proper use of the 2542 SmartMIPS instructions by Linux applications. However a kernel with 2543 this option will not work on a MIPS core without SmartMIPS core. If 2544 you don't know you probably don't have SmartMIPS and should say N 2545 here. 2546 2547config CPU_MICROMIPS 2548 depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6 2549 bool "microMIPS" 2550 help 2551 When this option is enabled the kernel will be built using the 2552 microMIPS ISA 2553 2554endchoice 2555 2556config CPU_HAS_MSA 2557 bool "Support for the MIPS SIMD Architecture" 2558 depends on CPU_SUPPORTS_MSA 2559 depends on MIPS_FP_SUPPORT 2560 depends on 64BIT || MIPS_O32_FP64_SUPPORT 2561 help 2562 MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers 2563 and a set of SIMD instructions to operate on them. When this option 2564 is enabled the kernel will support allocating & switching MSA 2565 vector register contexts. If you know that your kernel will only be 2566 running on CPUs which do not support MSA or that your userland will 2567 not be making use of it then you may wish to say N here to reduce 2568 the size & complexity of your kernel. 2569 2570 If unsure, say Y. 2571 2572config CPU_HAS_WB 2573 bool 2574 2575config XKS01 2576 bool 2577 2578config CPU_HAS_DIEI 2579 depends on !CPU_DIEI_BROKEN 2580 bool 2581 2582config CPU_DIEI_BROKEN 2583 bool 2584 2585config CPU_HAS_RIXI 2586 bool 2587 2588config CPU_NO_LOAD_STORE_LR 2589 bool 2590 help 2591 CPU lacks support for unaligned load and store instructions: 2592 LWL, LWR, SWL, SWR (Load/store word left/right). 2593 LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit 2594 systems). 2595 2596# 2597# Vectored interrupt mode is an R2 feature 2598# 2599config CPU_MIPSR2_IRQ_VI 2600 bool 2601 2602# 2603# Extended interrupt mode is an R2 feature 2604# 2605config CPU_MIPSR2_IRQ_EI 2606 bool 2607 2608config CPU_HAS_SYNC 2609 bool 2610 depends on !CPU_R3000 2611 default y 2612 2613# 2614# CPU non-features 2615# 2616config CPU_DADDI_WORKAROUNDS 2617 bool 2618 2619config CPU_R4000_WORKAROUNDS 2620 bool 2621 select CPU_R4400_WORKAROUNDS 2622 2623config CPU_R4400_WORKAROUNDS 2624 bool 2625 2626config CPU_R4X00_BUGS64 2627 bool 2628 default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1) 2629 2630config MIPS_ASID_SHIFT 2631 int 2632 default 6 if CPU_R3000 || CPU_TX39XX 2633 default 0 2634 2635config MIPS_ASID_BITS 2636 int 2637 default 0 if MIPS_ASID_BITS_VARIABLE 2638 default 6 if CPU_R3000 || CPU_TX39XX 2639 default 8 2640 2641config MIPS_ASID_BITS_VARIABLE 2642 bool 2643 2644config MIPS_CRC_SUPPORT 2645 bool 2646 2647# R4600 erratum. Due to the lack of errata information the exact 2648# technical details aren't known. I've experimentally found that disabling 2649# interrupts during indexed I-cache flushes seems to be sufficient to deal 2650# with the issue. 2651config WAR_R4600_V1_INDEX_ICACHEOP 2652 bool 2653 2654# Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata: 2655# 2656# 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D, 2657# Hit_Invalidate_D and Create_Dirty_Excl_D should only be 2658# executed if there is no other dcache activity. If the dcache is 2659# accessed for another instruction immeidately preceding when these 2660# cache instructions are executing, it is possible that the dcache 2661# tag match outputs used by these cache instructions will be 2662# incorrect. These cache instructions should be preceded by at least 2663# four instructions that are not any kind of load or store 2664# instruction. 2665# 2666# This is not allowed: lw 2667# nop 2668# nop 2669# nop 2670# cache Hit_Writeback_Invalidate_D 2671# 2672# This is allowed: lw 2673# nop 2674# nop 2675# nop 2676# nop 2677# cache Hit_Writeback_Invalidate_D 2678config WAR_R4600_V1_HIT_CACHEOP 2679 bool 2680 2681# Writeback and invalidate the primary cache dcache before DMA. 2682# 2683# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D, 2684# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only 2685# operate correctly if the internal data cache refill buffer is empty. These 2686# CACHE instructions should be separated from any potential data cache miss 2687# by a load instruction to an uncached address to empty the response buffer." 2688# (Revision 2.0 device errata from IDT available on https://www.idt.com/ 2689# in .pdf format.) 2690config WAR_R4600_V2_HIT_CACHEOP 2691 bool 2692 2693# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for 2694# the line which this instruction itself exists, the following 2695# operation is not guaranteed." 2696# 2697# Workaround: do two phase flushing for Index_Invalidate_I 2698config WAR_TX49XX_ICACHE_INDEX_INV 2699 bool 2700 2701# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra 2702# opposes it being called that) where invalid instructions in the same 2703# I-cache line worth of instructions being fetched may case spurious 2704# exceptions. 2705config WAR_ICACHE_REFILLS 2706 bool 2707 2708# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that 2709# may cause ll / sc and lld / scd sequences to execute non-atomically. 2710config WAR_R10000_LLSC 2711 bool 2712 2713# 34K core erratum: "Problems Executing the TLBR Instruction" 2714config WAR_MIPS34K_MISSED_ITLB 2715 bool 2716 2717# 2718# - Highmem only makes sense for the 32-bit kernel. 2719# - The current highmem code will only work properly on physically indexed 2720# caches such as R3000, SB1, R7000 or those that look like they're virtually 2721# indexed such as R4000/R4400 SC and MC versions or R10000. So for the 2722# moment we protect the user and offer the highmem option only on machines 2723# where it's known to be safe. This will not offer highmem on a few systems 2724# such as MIPS32 and MIPS64 CPUs which may have virtual and physically 2725# indexed CPUs but we're playing safe. 2726# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we 2727# know they might have memory configurations that could make use of highmem 2728# support. 2729# 2730config HIGHMEM 2731 bool "High Memory Support" 2732 depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA 2733 2734config CPU_SUPPORTS_HIGHMEM 2735 bool 2736 2737config SYS_SUPPORTS_HIGHMEM 2738 bool 2739 2740config SYS_SUPPORTS_SMARTMIPS 2741 bool 2742 2743config SYS_SUPPORTS_MICROMIPS 2744 bool 2745 2746config SYS_SUPPORTS_MIPS16 2747 bool 2748 help 2749 This option must be set if a kernel might be executed on a MIPS16- 2750 enabled CPU even if MIPS16 is not actually being used. In other 2751 words, it makes the kernel MIPS16-tolerant. 2752 2753config CPU_SUPPORTS_MSA 2754 bool 2755 2756config ARCH_FLATMEM_ENABLE 2757 def_bool y 2758 depends on !NUMA && !CPU_LOONGSON2EF 2759 2760config ARCH_SPARSEMEM_ENABLE 2761 bool 2762 select SPARSEMEM_STATIC if !SGI_IP27 2763 2764config NUMA 2765 bool "NUMA Support" 2766 depends on SYS_SUPPORTS_NUMA 2767 help 2768 Say Y to compile the kernel to support NUMA (Non-Uniform Memory 2769 Access). This option improves performance on systems with more 2770 than two nodes; on two node systems it is generally better to 2771 leave it disabled; on single node systems leave this option 2772 disabled. 2773 2774config SYS_SUPPORTS_NUMA 2775 bool 2776 2777config HAVE_SETUP_PER_CPU_AREA 2778 def_bool y 2779 depends on NUMA 2780 2781config NEED_PER_CPU_EMBED_FIRST_CHUNK 2782 def_bool y 2783 depends on NUMA 2784 2785config RELOCATABLE 2786 bool "Relocatable kernel" 2787 depends on SYS_SUPPORTS_RELOCATABLE 2788 depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \ 2789 CPU_MIPS32_R5 || CPU_MIPS64_R5 || \ 2790 CPU_MIPS32_R6 || CPU_MIPS64_R6 || \ 2791 CPU_P5600 || CAVIUM_OCTEON_SOC 2792 help 2793 This builds a kernel image that retains relocation information 2794 so it can be loaded someplace besides the default 1MB. 2795 The relocations make the kernel binary about 15% larger, 2796 but are discarded at runtime 2797 2798config RELOCATION_TABLE_SIZE 2799 hex "Relocation table size" 2800 depends on RELOCATABLE 2801 range 0x0 0x01000000 2802 default "0x00100000" 2803 help 2804 A table of relocation data will be appended to the kernel binary 2805 and parsed at boot to fix up the relocated kernel. 2806 2807 This option allows the amount of space reserved for the table to be 2808 adjusted, although the default of 1Mb should be ok in most cases. 2809 2810 The build will fail and a valid size suggested if this is too small. 2811 2812 If unsure, leave at the default value. 2813 2814config RANDOMIZE_BASE 2815 bool "Randomize the address of the kernel image" 2816 depends on RELOCATABLE 2817 help 2818 Randomizes the physical and virtual address at which the 2819 kernel image is loaded, as a security feature that 2820 deters exploit attempts relying on knowledge of the location 2821 of kernel internals. 2822 2823 Entropy is generated using any coprocessor 0 registers available. 2824 2825 The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET. 2826 2827 If unsure, say N. 2828 2829config RANDOMIZE_BASE_MAX_OFFSET 2830 hex "Maximum kASLR offset" if EXPERT 2831 depends on RANDOMIZE_BASE 2832 range 0x0 0x40000000 if EVA || 64BIT 2833 range 0x0 0x08000000 2834 default "0x01000000" 2835 help 2836 When kASLR is active, this provides the maximum offset that will 2837 be applied to the kernel image. It should be set according to the 2838 amount of physical RAM available in the target system minus 2839 PHYSICAL_START and must be a power of 2. 2840 2841 This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with 2842 EVA or 64-bit. The default is 16Mb. 2843 2844config NODES_SHIFT 2845 int 2846 default "6" 2847 depends on NEED_MULTIPLE_NODES 2848 2849config HW_PERF_EVENTS 2850 bool "Enable hardware performance counter support for perf events" 2851 depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON64) 2852 default y 2853 help 2854 Enable hardware performance counter support for perf events. If 2855 disabled, perf events will use software events only. 2856 2857config DMI 2858 bool "Enable DMI scanning" 2859 depends on MACH_LOONGSON64 2860 select DMI_SCAN_MACHINE_NON_EFI_FALLBACK 2861 default y 2862 help 2863 Enabled scanning of DMI to identify machine quirks. Say Y 2864 here unless you have verified that your setup is not 2865 affected by entries in the DMI blacklist. Required by PNP 2866 BIOS code. 2867 2868config SMP 2869 bool "Multi-Processing support" 2870 depends on SYS_SUPPORTS_SMP 2871 help 2872 This enables support for systems with more than one CPU. If you have 2873 a system with only one CPU, say N. If you have a system with more 2874 than one CPU, say Y. 2875 2876 If you say N here, the kernel will run on uni- and multiprocessor 2877 machines, but will use only one CPU of a multiprocessor machine. If 2878 you say Y here, the kernel will run on many, but not all, 2879 uniprocessor machines. On a uniprocessor machine, the kernel 2880 will run faster if you say N here. 2881 2882 People using multiprocessor machines who say Y here should also say 2883 Y to "Enhanced Real Time Clock Support", below. 2884 2885 See also the SMP-HOWTO available at 2886 <https://www.tldp.org/docs.html#howto>. 2887 2888 If you don't know what to do here, say N. 2889 2890config HOTPLUG_CPU 2891 bool "Support for hot-pluggable CPUs" 2892 depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU 2893 help 2894 Say Y here to allow turning CPUs off and on. CPUs can be 2895 controlled through /sys/devices/system/cpu. 2896 (Note: power management support will enable this option 2897 automatically on SMP systems. ) 2898 Say N if you want to disable CPU hotplug. 2899 2900config SMP_UP 2901 bool 2902 2903config SYS_SUPPORTS_MIPS_CMP 2904 bool 2905 2906config SYS_SUPPORTS_MIPS_CPS 2907 bool 2908 2909config SYS_SUPPORTS_SMP 2910 bool 2911 2912config NR_CPUS_DEFAULT_4 2913 bool 2914 2915config NR_CPUS_DEFAULT_8 2916 bool 2917 2918config NR_CPUS_DEFAULT_16 2919 bool 2920 2921config NR_CPUS_DEFAULT_32 2922 bool 2923 2924config NR_CPUS_DEFAULT_64 2925 bool 2926 2927config NR_CPUS 2928 int "Maximum number of CPUs (2-256)" 2929 range 2 256 2930 depends on SMP 2931 default "4" if NR_CPUS_DEFAULT_4 2932 default "8" if NR_CPUS_DEFAULT_8 2933 default "16" if NR_CPUS_DEFAULT_16 2934 default "32" if NR_CPUS_DEFAULT_32 2935 default "64" if NR_CPUS_DEFAULT_64 2936 help 2937 This allows you to specify the maximum number of CPUs which this 2938 kernel will support. The maximum supported value is 32 for 32-bit 2939 kernel and 64 for 64-bit kernels; the minimum value which makes 2940 sense is 1 for Qemu (useful only for kernel debugging purposes) 2941 and 2 for all others. 2942 2943 This is purely to save memory - each supported CPU adds 2944 approximately eight kilobytes to the kernel image. For best 2945 performance should round up your number of processors to the next 2946 power of two. 2947 2948config MIPS_PERF_SHARED_TC_COUNTERS 2949 bool 2950 2951config MIPS_NR_CPU_NR_MAP_1024 2952 bool 2953 2954config MIPS_NR_CPU_NR_MAP 2955 int 2956 depends on SMP 2957 default 1024 if MIPS_NR_CPU_NR_MAP_1024 2958 default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024 2959 2960# 2961# Timer Interrupt Frequency Configuration 2962# 2963 2964choice 2965 prompt "Timer frequency" 2966 default HZ_250 2967 help 2968 Allows the configuration of the timer frequency. 2969 2970 config HZ_24 2971 bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ 2972 2973 config HZ_48 2974 bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ 2975 2976 config HZ_100 2977 bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ 2978 2979 config HZ_128 2980 bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ 2981 2982 config HZ_250 2983 bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ 2984 2985 config HZ_256 2986 bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ 2987 2988 config HZ_1000 2989 bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ 2990 2991 config HZ_1024 2992 bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ 2993 2994endchoice 2995 2996config SYS_SUPPORTS_24HZ 2997 bool 2998 2999config SYS_SUPPORTS_48HZ 3000 bool 3001 3002config SYS_SUPPORTS_100HZ 3003 bool 3004 3005config SYS_SUPPORTS_128HZ 3006 bool 3007 3008config SYS_SUPPORTS_250HZ 3009 bool 3010 3011config SYS_SUPPORTS_256HZ 3012 bool 3013 3014config SYS_SUPPORTS_1000HZ 3015 bool 3016 3017config SYS_SUPPORTS_1024HZ 3018 bool 3019 3020config SYS_SUPPORTS_ARBIT_HZ 3021 bool 3022 default y if !SYS_SUPPORTS_24HZ && \ 3023 !SYS_SUPPORTS_48HZ && \ 3024 !SYS_SUPPORTS_100HZ && \ 3025 !SYS_SUPPORTS_128HZ && \ 3026 !SYS_SUPPORTS_250HZ && \ 3027 !SYS_SUPPORTS_256HZ && \ 3028 !SYS_SUPPORTS_1000HZ && \ 3029 !SYS_SUPPORTS_1024HZ 3030 3031config HZ 3032 int 3033 default 24 if HZ_24 3034 default 48 if HZ_48 3035 default 100 if HZ_100 3036 default 128 if HZ_128 3037 default 250 if HZ_250 3038 default 256 if HZ_256 3039 default 1000 if HZ_1000 3040 default 1024 if HZ_1024 3041 3042config SCHED_HRTICK 3043 def_bool HIGH_RES_TIMERS 3044 3045config KEXEC 3046 bool "Kexec system call" 3047 select KEXEC_CORE 3048 help 3049 kexec is a system call that implements the ability to shutdown your 3050 current kernel, and to start another kernel. It is like a reboot 3051 but it is independent of the system firmware. And like a reboot 3052 you can start any kernel with it, not just Linux. 3053 3054 The name comes from the similarity to the exec system call. 3055 3056 It is an ongoing process to be certain the hardware in a machine 3057 is properly shutdown, so do not be surprised if this code does not 3058 initially work for you. As of this writing the exact hardware 3059 interface is strongly in flux, so no good recommendation can be 3060 made. 3061 3062config CRASH_DUMP 3063 bool "Kernel crash dumps" 3064 help 3065 Generate crash dump after being started by kexec. 3066 This should be normally only set in special crash dump kernels 3067 which are loaded in the main kernel with kexec-tools into 3068 a specially reserved region and then later executed after 3069 a crash by kdump/kexec. The crash dump kernel must be compiled 3070 to a memory address not used by the main kernel or firmware using 3071 PHYSICAL_START. 3072 3073config PHYSICAL_START 3074 hex "Physical address where the kernel is loaded" 3075 default "0xffffffff84000000" 3076 depends on CRASH_DUMP 3077 help 3078 This gives the CKSEG0 or KSEG0 address where the kernel is loaded. 3079 If you plan to use kernel for capturing the crash dump change 3080 this value to start of the reserved region (the "X" value as 3081 specified in the "crashkernel=YM@XM" command line boot parameter 3082 passed to the panic-ed kernel). 3083 3084config MIPS_O32_FP64_SUPPORT 3085 bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6 3086 depends on 32BIT || MIPS32_O32 3087 help 3088 When this is enabled, the kernel will support use of 64-bit floating 3089 point registers with binaries using the O32 ABI along with the 3090 EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On 3091 32-bit MIPS systems this support is at the cost of increasing the 3092 size and complexity of the compiled FPU emulator. Thus if you are 3093 running a MIPS32 system and know that none of your userland binaries 3094 will require 64-bit floating point, you may wish to reduce the size 3095 of your kernel & potentially improve FP emulation performance by 3096 saying N here. 3097 3098 Although binutils currently supports use of this flag the details 3099 concerning its effect upon the O32 ABI in userland are still being 3100 worked on. In order to avoid userland becoming dependant upon current 3101 behaviour before the details have been finalised, this option should 3102 be considered experimental and only enabled by those working upon 3103 said details. 3104 3105 If unsure, say N. 3106 3107config USE_OF 3108 bool 3109 select OF 3110 select OF_EARLY_FLATTREE 3111 select IRQ_DOMAIN 3112 3113config UHI_BOOT 3114 bool 3115 3116config BUILTIN_DTB 3117 bool 3118 3119choice 3120 prompt "Kernel appended dtb support" if USE_OF 3121 default MIPS_NO_APPENDED_DTB 3122 3123 config MIPS_NO_APPENDED_DTB 3124 bool "None" 3125 help 3126 Do not enable appended dtb support. 3127 3128 config MIPS_ELF_APPENDED_DTB 3129 bool "vmlinux" 3130 help 3131 With this option, the boot code will look for a device tree binary 3132 DTB) included in the vmlinux ELF section .appended_dtb. By default 3133 it is empty and the DTB can be appended using binutils command 3134 objcopy: 3135 3136 objcopy --update-section .appended_dtb=<filename>.dtb vmlinux 3137 3138 This is meant as a backward compatiblity convenience for those 3139 systems with a bootloader that can't be upgraded to accommodate 3140 the documented boot protocol using a device tree. 3141 3142 config MIPS_RAW_APPENDED_DTB 3143 bool "vmlinux.bin or vmlinuz.bin" 3144 help 3145 With this option, the boot code will look for a device tree binary 3146 DTB) appended to raw vmlinux.bin or vmlinuz.bin. 3147 (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb). 3148 3149 This is meant as a backward compatibility convenience for those 3150 systems with a bootloader that can't be upgraded to accommodate 3151 the documented boot protocol using a device tree. 3152 3153 Beware that there is very little in terms of protection against 3154 this option being confused by leftover garbage in memory that might 3155 look like a DTB header after a reboot if no actual DTB is appended 3156 to vmlinux.bin. Do not leave this option active in a production kernel 3157 if you don't intend to always append a DTB. 3158endchoice 3159 3160choice 3161 prompt "Kernel command line type" if !CMDLINE_OVERRIDE 3162 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \ 3163 !MACH_LOONGSON64 && !MIPS_MALTA && \ 3164 !CAVIUM_OCTEON_SOC 3165 default MIPS_CMDLINE_FROM_BOOTLOADER 3166 3167 config MIPS_CMDLINE_FROM_DTB 3168 depends on USE_OF 3169 bool "Dtb kernel arguments if available" 3170 3171 config MIPS_CMDLINE_DTB_EXTEND 3172 depends on USE_OF 3173 bool "Extend dtb kernel arguments with bootloader arguments" 3174 3175 config MIPS_CMDLINE_FROM_BOOTLOADER 3176 bool "Bootloader kernel arguments if available" 3177 3178 config MIPS_CMDLINE_BUILTIN_EXTEND 3179 depends on CMDLINE_BOOL 3180 bool "Extend builtin kernel arguments with bootloader arguments" 3181endchoice 3182 3183endmenu 3184 3185config LOCKDEP_SUPPORT 3186 bool 3187 default y 3188 3189config STACKTRACE_SUPPORT 3190 bool 3191 default y 3192 3193config PGTABLE_LEVELS 3194 int 3195 default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48 3196 default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48) 3197 default 2 3198 3199config MIPS_AUTO_PFN_OFFSET 3200 bool 3201 3202menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" 3203 3204config PCI_DRIVERS_GENERIC 3205 select PCI_DOMAINS_GENERIC if PCI 3206 bool 3207 3208config PCI_DRIVERS_LEGACY 3209 def_bool !PCI_DRIVERS_GENERIC 3210 select NO_GENERIC_PCI_IOPORT_MAP 3211 select PCI_DOMAINS if PCI 3212 3213# 3214# ISA support is now enabled via select. Too many systems still have the one 3215# or other ISA chip on the board that users don't know about so don't expect 3216# users to choose the right thing ... 3217# 3218config ISA 3219 bool 3220 3221config TC 3222 bool "TURBOchannel support" 3223 depends on MACH_DECSTATION 3224 help 3225 TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS 3226 processors. TURBOchannel programming specifications are available 3227 at: 3228 <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/> 3229 and: 3230 <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/> 3231 Linux driver support status is documented at: 3232 <http://www.linux-mips.org/wiki/DECstation> 3233 3234config MMU 3235 bool 3236 default y 3237 3238config ARCH_MMAP_RND_BITS_MIN 3239 default 12 if 64BIT 3240 default 8 3241 3242config ARCH_MMAP_RND_BITS_MAX 3243 default 18 if 64BIT 3244 default 15 3245 3246config ARCH_MMAP_RND_COMPAT_BITS_MIN 3247 default 8 3248 3249config ARCH_MMAP_RND_COMPAT_BITS_MAX 3250 default 15 3251 3252config I8253 3253 bool 3254 select CLKSRC_I8253 3255 select CLKEVT_I8253 3256 select MIPS_EXTERNAL_TIMER 3257 3258config ZONE_DMA 3259 bool 3260 3261config ZONE_DMA32 3262 bool 3263 3264endmenu 3265 3266config TRAD_SIGNALS 3267 bool 3268 3269config MIPS32_COMPAT 3270 bool 3271 3272config COMPAT 3273 bool 3274 3275config SYSVIPC_COMPAT 3276 bool 3277 3278config MIPS32_O32 3279 bool "Kernel support for o32 binaries" 3280 depends on 64BIT 3281 select ARCH_WANT_OLD_COMPAT_IPC 3282 select COMPAT 3283 select MIPS32_COMPAT 3284 select SYSVIPC_COMPAT if SYSVIPC 3285 help 3286 Select this option if you want to run o32 binaries. These are pure 3287 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of 3288 existing binaries are in this format. 3289 3290 If unsure, say Y. 3291 3292config MIPS32_N32 3293 bool "Kernel support for n32 binaries" 3294 depends on 64BIT 3295 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION 3296 select COMPAT 3297 select MIPS32_COMPAT 3298 select SYSVIPC_COMPAT if SYSVIPC 3299 help 3300 Select this option if you want to run n32 binaries. These are 3301 64-bit binaries using 32-bit quantities for addressing and certain 3302 data that would normally be 64-bit. They are used in special 3303 cases. 3304 3305 If unsure, say N. 3306 3307config BINFMT_ELF32 3308 bool 3309 default y if MIPS32_O32 || MIPS32_N32 3310 select ELFCORE 3311 3312menu "Power management options" 3313 3314config ARCH_HIBERNATION_POSSIBLE 3315 def_bool y 3316 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3317 3318config ARCH_SUSPEND_POSSIBLE 3319 def_bool y 3320 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3321 3322source "kernel/power/Kconfig" 3323 3324endmenu 3325 3326config MIPS_EXTERNAL_TIMER 3327 bool 3328 3329menu "CPU Power Management" 3330 3331if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER 3332source "drivers/cpufreq/Kconfig" 3333endif 3334 3335source "drivers/cpuidle/Kconfig" 3336 3337endmenu 3338 3339source "drivers/firmware/Kconfig" 3340 3341source "arch/mips/kvm/Kconfig" 3342 3343source "arch/mips/vdso/Kconfig" 3344