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