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