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