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