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 1217# 1218# Endianness selection. Sufficiently obscure so many users don't know what to 1219# answer,so we try hard to limit the available choices. Also the use of a 1220# choice statement should be more obvious to the user. 1221# 1222choice 1223 prompt "Endianness selection" 1224 help 1225 Some MIPS machines can be configured for either little or big endian 1226 byte order. These modes require different kernels and a different 1227 Linux distribution. In general there is one preferred byteorder for a 1228 particular system but some systems are just as commonly used in the 1229 one or the other endianness. 1230 1231config CPU_BIG_ENDIAN 1232 bool "Big endian" 1233 depends on SYS_SUPPORTS_BIG_ENDIAN 1234 1235config CPU_LITTLE_ENDIAN 1236 bool "Little endian" 1237 depends on SYS_SUPPORTS_LITTLE_ENDIAN 1238 1239endchoice 1240 1241config EXPORT_UASM 1242 bool 1243 1244config SYS_SUPPORTS_APM_EMULATION 1245 bool 1246 1247config SYS_SUPPORTS_BIG_ENDIAN 1248 bool 1249 1250config SYS_SUPPORTS_LITTLE_ENDIAN 1251 bool 1252 1253config MIPS_HUGE_TLB_SUPPORT 1254 def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE 1255 1256config IRQ_MSP_SLP 1257 bool 1258 1259config IRQ_MSP_CIC 1260 bool 1261 1262config IRQ_TXX9 1263 bool 1264 1265config IRQ_GT641XX 1266 bool 1267 1268config PCI_GT64XXX_PCI0 1269 bool 1270 1271config PCI_XTALK_BRIDGE 1272 bool 1273 1274config NO_EXCEPT_FILL 1275 bool 1276 1277config MIPS_SPRAM 1278 bool 1279 1280config SWAP_IO_SPACE 1281 bool 1282 1283config SGI_HAS_INDYDOG 1284 bool 1285 1286config SGI_HAS_HAL2 1287 bool 1288 1289config SGI_HAS_SEEQ 1290 bool 1291 1292config SGI_HAS_WD93 1293 bool 1294 1295config SGI_HAS_ZILOG 1296 bool 1297 1298config SGI_HAS_I8042 1299 bool 1300 1301config DEFAULT_SGI_PARTITION 1302 bool 1303 1304config FW_ARC32 1305 bool 1306 1307config FW_SNIPROM 1308 bool 1309 1310config BOOT_ELF32 1311 bool 1312 1313config MIPS_L1_CACHE_SHIFT_4 1314 bool 1315 1316config MIPS_L1_CACHE_SHIFT_5 1317 bool 1318 1319config MIPS_L1_CACHE_SHIFT_6 1320 bool 1321 1322config MIPS_L1_CACHE_SHIFT_7 1323 bool 1324 1325config MIPS_L1_CACHE_SHIFT 1326 int 1327 default "7" if MIPS_L1_CACHE_SHIFT_7 1328 default "6" if MIPS_L1_CACHE_SHIFT_6 1329 default "5" if MIPS_L1_CACHE_SHIFT_5 1330 default "4" if MIPS_L1_CACHE_SHIFT_4 1331 default "5" 1332 1333config ARC_CMDLINE_ONLY 1334 bool 1335 1336config ARC_CONSOLE 1337 bool "ARC console support" 1338 depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN) 1339 1340config ARC_MEMORY 1341 bool 1342 1343config ARC_PROMLIB 1344 bool 1345 1346config FW_ARC64 1347 bool 1348 1349config BOOT_ELF64 1350 bool 1351 1352menu "CPU selection" 1353 1354choice 1355 prompt "CPU type" 1356 default CPU_R4X00 1357 1358config CPU_LOONGSON64 1359 bool "Loongson 64-bit CPU" 1360 depends on SYS_HAS_CPU_LOONGSON64 1361 select ARCH_HAS_PHYS_TO_DMA 1362 select CPU_MIPSR2 1363 select CPU_HAS_PREFETCH 1364 select CPU_SUPPORTS_64BIT_KERNEL 1365 select CPU_SUPPORTS_HIGHMEM 1366 select CPU_SUPPORTS_HUGEPAGES 1367 select CPU_SUPPORTS_MSA 1368 select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT 1369 select CPU_MIPSR2_IRQ_VI 1370 select WEAK_ORDERING 1371 select WEAK_REORDERING_BEYOND_LLSC 1372 select MIPS_ASID_BITS_VARIABLE 1373 select MIPS_PGD_C0_CONTEXT 1374 select MIPS_L1_CACHE_SHIFT_6 1375 select GPIOLIB 1376 select SWIOTLB 1377 select HAVE_KVM 1378 help 1379 The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor 1380 cores implements the MIPS64R2 instruction set with many extensions, 1381 including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000, 1382 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old 1383 Loongson-2E/2F is not covered here and will be removed in future. 1384 1385config LOONGSON3_ENHANCEMENT 1386 bool "New Loongson-3 CPU Enhancements" 1387 default n 1388 depends on CPU_LOONGSON64 1389 help 1390 New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A 1391 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as 1392 FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User 1393 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer), 1394 Fast TLB refill support, etc. 1395 1396 This option enable those enhancements which are not probed at run 1397 time. If you want a generic kernel to run on all Loongson 3 machines, 1398 please say 'N' here. If you want a high-performance kernel to run on 1399 new Loongson-3 machines only, please say 'Y' here. 1400 1401config CPU_LOONGSON3_WORKAROUNDS 1402 bool "Old Loongson-3 LLSC Workarounds" 1403 default y if SMP 1404 depends on CPU_LOONGSON64 1405 help 1406 Loongson-3 processors have the llsc issues which require workarounds. 1407 Without workarounds the system may hang unexpectedly. 1408 1409 Newer Loongson-3 will fix these issues and no workarounds are needed. 1410 The workarounds have no significant side effect on them but may 1411 decrease the performance of the system so this option should be 1412 disabled unless the kernel is intended to be run on old systems. 1413 1414 If unsure, please say Y. 1415 1416config CPU_LOONGSON3_CPUCFG_EMULATION 1417 bool "Emulate the CPUCFG instruction on older Loongson cores" 1418 default y 1419 depends on CPU_LOONGSON64 1420 help 1421 Loongson-3A R4 and newer have the CPUCFG instruction available for 1422 userland to query CPU capabilities, much like CPUID on x86. This 1423 option provides emulation of the instruction on older Loongson 1424 cores, back to Loongson-3A1000. 1425 1426 If unsure, please say Y. 1427 1428config CPU_LOONGSON2E 1429 bool "Loongson 2E" 1430 depends on SYS_HAS_CPU_LOONGSON2E 1431 select CPU_LOONGSON2EF 1432 help 1433 The Loongson 2E processor implements the MIPS III instruction set 1434 with many extensions. 1435 1436 It has an internal FPGA northbridge, which is compatible to 1437 bonito64. 1438 1439config CPU_LOONGSON2F 1440 bool "Loongson 2F" 1441 depends on SYS_HAS_CPU_LOONGSON2F 1442 select CPU_LOONGSON2EF 1443 select GPIOLIB 1444 help 1445 The Loongson 2F processor implements the MIPS III instruction set 1446 with many extensions. 1447 1448 Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller 1449 have a similar programming interface with FPGA northbridge used in 1450 Loongson2E. 1451 1452config CPU_LOONGSON1B 1453 bool "Loongson 1B" 1454 depends on SYS_HAS_CPU_LOONGSON1B 1455 select CPU_LOONGSON32 1456 select LEDS_GPIO_REGISTER 1457 help 1458 The Loongson 1B is a 32-bit SoC, which implements the MIPS32 1459 Release 1 instruction set and part of the MIPS32 Release 2 1460 instruction set. 1461 1462config CPU_LOONGSON1C 1463 bool "Loongson 1C" 1464 depends on SYS_HAS_CPU_LOONGSON1C 1465 select CPU_LOONGSON32 1466 select LEDS_GPIO_REGISTER 1467 help 1468 The Loongson 1C is a 32-bit SoC, which implements the MIPS32 1469 Release 1 instruction set and part of the MIPS32 Release 2 1470 instruction set. 1471 1472config CPU_MIPS32_R1 1473 bool "MIPS32 Release 1" 1474 depends on SYS_HAS_CPU_MIPS32_R1 1475 select CPU_HAS_PREFETCH 1476 select CPU_SUPPORTS_32BIT_KERNEL 1477 select CPU_SUPPORTS_HIGHMEM 1478 help 1479 Choose this option to build a kernel for release 1 or later of the 1480 MIPS32 architecture. Most modern embedded systems with a 32-bit 1481 MIPS processor are based on a MIPS32 processor. If you know the 1482 specific type of processor in your system, choose those that one 1483 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 1484 Release 2 of the MIPS32 architecture is available since several 1485 years so chances are you even have a MIPS32 Release 2 processor 1486 in which case you should choose CPU_MIPS32_R2 instead for better 1487 performance. 1488 1489config CPU_MIPS32_R2 1490 bool "MIPS32 Release 2" 1491 depends on SYS_HAS_CPU_MIPS32_R2 1492 select CPU_HAS_PREFETCH 1493 select CPU_SUPPORTS_32BIT_KERNEL 1494 select CPU_SUPPORTS_HIGHMEM 1495 select CPU_SUPPORTS_MSA 1496 select HAVE_KVM 1497 help 1498 Choose this option to build a kernel for release 2 or later of the 1499 MIPS32 architecture. Most modern embedded systems with a 32-bit 1500 MIPS processor are based on a MIPS32 processor. If you know the 1501 specific type of processor in your system, choose those that one 1502 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 1503 1504config CPU_MIPS32_R5 1505 bool "MIPS32 Release 5" 1506 depends on SYS_HAS_CPU_MIPS32_R5 1507 select CPU_HAS_PREFETCH 1508 select CPU_SUPPORTS_32BIT_KERNEL 1509 select CPU_SUPPORTS_HIGHMEM 1510 select CPU_SUPPORTS_MSA 1511 select HAVE_KVM 1512 select MIPS_O32_FP64_SUPPORT 1513 help 1514 Choose this option to build a kernel for release 5 or later of the 1515 MIPS32 architecture. New MIPS processors, starting with the Warrior 1516 family, are based on a MIPS32r5 processor. If you own an older 1517 processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 1518 1519config CPU_MIPS32_R6 1520 bool "MIPS32 Release 6" 1521 depends on SYS_HAS_CPU_MIPS32_R6 1522 select CPU_HAS_PREFETCH 1523 select CPU_NO_LOAD_STORE_LR 1524 select CPU_SUPPORTS_32BIT_KERNEL 1525 select CPU_SUPPORTS_HIGHMEM 1526 select CPU_SUPPORTS_MSA 1527 select HAVE_KVM 1528 select MIPS_O32_FP64_SUPPORT 1529 help 1530 Choose this option to build a kernel for release 6 or later of the 1531 MIPS32 architecture. New MIPS processors, starting with the Warrior 1532 family, are based on a MIPS32r6 processor. If you own an older 1533 processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 1534 1535config CPU_MIPS64_R1 1536 bool "MIPS64 Release 1" 1537 depends on SYS_HAS_CPU_MIPS64_R1 1538 select CPU_HAS_PREFETCH 1539 select CPU_SUPPORTS_32BIT_KERNEL 1540 select CPU_SUPPORTS_64BIT_KERNEL 1541 select CPU_SUPPORTS_HIGHMEM 1542 select CPU_SUPPORTS_HUGEPAGES 1543 help 1544 Choose this option to build a kernel for release 1 or later of the 1545 MIPS64 architecture. Many modern embedded systems with a 64-bit 1546 MIPS processor are based on a MIPS64 processor. If you know the 1547 specific type of processor in your system, choose those that one 1548 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 1549 Release 2 of the MIPS64 architecture is available since several 1550 years so chances are you even have a MIPS64 Release 2 processor 1551 in which case you should choose CPU_MIPS64_R2 instead for better 1552 performance. 1553 1554config CPU_MIPS64_R2 1555 bool "MIPS64 Release 2" 1556 depends on SYS_HAS_CPU_MIPS64_R2 1557 select CPU_HAS_PREFETCH 1558 select CPU_SUPPORTS_32BIT_KERNEL 1559 select CPU_SUPPORTS_64BIT_KERNEL 1560 select CPU_SUPPORTS_HIGHMEM 1561 select CPU_SUPPORTS_HUGEPAGES 1562 select CPU_SUPPORTS_MSA 1563 select HAVE_KVM 1564 help 1565 Choose this option to build a kernel for release 2 or later of the 1566 MIPS64 architecture. Many modern embedded systems with a 64-bit 1567 MIPS processor are based on a MIPS64 processor. If you know the 1568 specific type of processor in your system, choose those that one 1569 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 1570 1571config CPU_MIPS64_R5 1572 bool "MIPS64 Release 5" 1573 depends on SYS_HAS_CPU_MIPS64_R5 1574 select CPU_HAS_PREFETCH 1575 select CPU_SUPPORTS_32BIT_KERNEL 1576 select CPU_SUPPORTS_64BIT_KERNEL 1577 select CPU_SUPPORTS_HIGHMEM 1578 select CPU_SUPPORTS_HUGEPAGES 1579 select CPU_SUPPORTS_MSA 1580 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 1581 select HAVE_KVM 1582 help 1583 Choose this option to build a kernel for release 5 or later of the 1584 MIPS64 architecture. This is a intermediate MIPS architecture 1585 release partly implementing release 6 features. Though there is no 1586 any hardware known to be based on this release. 1587 1588config CPU_MIPS64_R6 1589 bool "MIPS64 Release 6" 1590 depends on SYS_HAS_CPU_MIPS64_R6 1591 select CPU_HAS_PREFETCH 1592 select CPU_NO_LOAD_STORE_LR 1593 select CPU_SUPPORTS_32BIT_KERNEL 1594 select CPU_SUPPORTS_64BIT_KERNEL 1595 select CPU_SUPPORTS_HIGHMEM 1596 select CPU_SUPPORTS_HUGEPAGES 1597 select CPU_SUPPORTS_MSA 1598 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 1599 select HAVE_KVM 1600 help 1601 Choose this option to build a kernel for release 6 or later of the 1602 MIPS64 architecture. New MIPS processors, starting with the Warrior 1603 family, are based on a MIPS64r6 processor. If you own an older 1604 processor, you probably need to select MIPS64r1 or MIPS64r2 instead. 1605 1606config CPU_P5600 1607 bool "MIPS Warrior P5600" 1608 depends on SYS_HAS_CPU_P5600 1609 select CPU_HAS_PREFETCH 1610 select CPU_SUPPORTS_32BIT_KERNEL 1611 select CPU_SUPPORTS_HIGHMEM 1612 select CPU_SUPPORTS_MSA 1613 select CPU_SUPPORTS_CPUFREQ 1614 select CPU_MIPSR2_IRQ_VI 1615 select CPU_MIPSR2_IRQ_EI 1616 select HAVE_KVM 1617 select MIPS_O32_FP64_SUPPORT 1618 help 1619 Choose this option to build a kernel for MIPS Warrior P5600 CPU. 1620 It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes, 1621 MMU with two-levels TLB, UCA, MSA, MDU core level features and system 1622 level features like up to six P5600 calculation cores, CM2 with L2 1623 cache, IOCU/IOMMU (though might be unused depending on the system- 1624 specific IP core configuration), GIC, CPC, virtualisation module, 1625 eJTAG and PDtrace. 1626 1627config CPU_R3000 1628 bool "R3000" 1629 depends on SYS_HAS_CPU_R3000 1630 select CPU_HAS_WB 1631 select CPU_R3K_TLB 1632 select CPU_SUPPORTS_32BIT_KERNEL 1633 select CPU_SUPPORTS_HIGHMEM 1634 help 1635 Please make sure to pick the right CPU type. Linux/MIPS is not 1636 designed to be generic, i.e. Kernels compiled for R3000 CPUs will 1637 *not* work on R4000 machines and vice versa. However, since most 1638 of the supported machines have an R4000 (or similar) CPU, R4x00 1639 might be a safe bet. If the resulting kernel does not work, 1640 try to recompile with R3000. 1641 1642config CPU_TX39XX 1643 bool "R39XX" 1644 depends on SYS_HAS_CPU_TX39XX 1645 select CPU_SUPPORTS_32BIT_KERNEL 1646 select CPU_R3K_TLB 1647 1648config CPU_VR41XX 1649 bool "R41xx" 1650 depends on SYS_HAS_CPU_VR41XX 1651 select CPU_SUPPORTS_32BIT_KERNEL 1652 select CPU_SUPPORTS_64BIT_KERNEL 1653 help 1654 The options selects support for the NEC VR4100 series of processors. 1655 Only choose this option if you have one of these processors as a 1656 kernel built with this option will not run on any other type of 1657 processor or vice versa. 1658 1659config CPU_R4300 1660 bool "R4300" 1661 depends on SYS_HAS_CPU_R4300 1662 select CPU_SUPPORTS_32BIT_KERNEL 1663 select CPU_SUPPORTS_64BIT_KERNEL 1664 select CPU_HAS_LOAD_STORE_LR 1665 help 1666 MIPS Technologies R4300-series processors. 1667 1668config CPU_R4X00 1669 bool "R4x00" 1670 depends on SYS_HAS_CPU_R4X00 1671 select CPU_SUPPORTS_32BIT_KERNEL 1672 select CPU_SUPPORTS_64BIT_KERNEL 1673 select CPU_SUPPORTS_HUGEPAGES 1674 help 1675 MIPS Technologies R4000-series processors other than 4300, including 1676 the R4000, R4400, R4600, and 4700. 1677 1678config CPU_TX49XX 1679 bool "R49XX" 1680 depends on SYS_HAS_CPU_TX49XX 1681 select CPU_HAS_PREFETCH 1682 select CPU_SUPPORTS_32BIT_KERNEL 1683 select CPU_SUPPORTS_64BIT_KERNEL 1684 select CPU_SUPPORTS_HUGEPAGES 1685 1686config CPU_R5000 1687 bool "R5000" 1688 depends on SYS_HAS_CPU_R5000 1689 select CPU_SUPPORTS_32BIT_KERNEL 1690 select CPU_SUPPORTS_64BIT_KERNEL 1691 select CPU_SUPPORTS_HUGEPAGES 1692 help 1693 MIPS Technologies R5000-series processors other than the Nevada. 1694 1695config CPU_R5500 1696 bool "R5500" 1697 depends on SYS_HAS_CPU_R5500 1698 select CPU_SUPPORTS_32BIT_KERNEL 1699 select CPU_SUPPORTS_64BIT_KERNEL 1700 select CPU_SUPPORTS_HUGEPAGES 1701 help 1702 NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV 1703 instruction set. 1704 1705config CPU_NEVADA 1706 bool "RM52xx" 1707 depends on SYS_HAS_CPU_NEVADA 1708 select CPU_SUPPORTS_32BIT_KERNEL 1709 select CPU_SUPPORTS_64BIT_KERNEL 1710 select CPU_SUPPORTS_HUGEPAGES 1711 help 1712 QED / PMC-Sierra RM52xx-series ("Nevada") processors. 1713 1714config CPU_R10000 1715 bool "R10000" 1716 depends on SYS_HAS_CPU_R10000 1717 select CPU_HAS_PREFETCH 1718 select CPU_SUPPORTS_32BIT_KERNEL 1719 select CPU_SUPPORTS_64BIT_KERNEL 1720 select CPU_SUPPORTS_HIGHMEM 1721 select CPU_SUPPORTS_HUGEPAGES 1722 help 1723 MIPS Technologies R10000-series processors. 1724 1725config CPU_RM7000 1726 bool "RM7000" 1727 depends on SYS_HAS_CPU_RM7000 1728 select CPU_HAS_PREFETCH 1729 select CPU_SUPPORTS_32BIT_KERNEL 1730 select CPU_SUPPORTS_64BIT_KERNEL 1731 select CPU_SUPPORTS_HIGHMEM 1732 select CPU_SUPPORTS_HUGEPAGES 1733 1734config CPU_SB1 1735 bool "SB1" 1736 depends on SYS_HAS_CPU_SB1 1737 select CPU_SUPPORTS_32BIT_KERNEL 1738 select CPU_SUPPORTS_64BIT_KERNEL 1739 select CPU_SUPPORTS_HIGHMEM 1740 select CPU_SUPPORTS_HUGEPAGES 1741 select WEAK_ORDERING 1742 1743config CPU_CAVIUM_OCTEON 1744 bool "Cavium Octeon processor" 1745 depends on SYS_HAS_CPU_CAVIUM_OCTEON 1746 select CPU_HAS_PREFETCH 1747 select CPU_SUPPORTS_64BIT_KERNEL 1748 select WEAK_ORDERING 1749 select CPU_SUPPORTS_HIGHMEM 1750 select CPU_SUPPORTS_HUGEPAGES 1751 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1752 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1753 select MIPS_L1_CACHE_SHIFT_7 1754 select HAVE_KVM 1755 help 1756 The Cavium Octeon processor is a highly integrated chip containing 1757 many ethernet hardware widgets for networking tasks. The processor 1758 can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets. 1759 Full details can be found at http://www.caviumnetworks.com. 1760 1761config CPU_BMIPS 1762 bool "Broadcom BMIPS" 1763 depends on SYS_HAS_CPU_BMIPS 1764 select CPU_MIPS32 1765 select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300 1766 select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350 1767 select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380 1768 select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000 1769 select CPU_SUPPORTS_32BIT_KERNEL 1770 select DMA_NONCOHERENT 1771 select IRQ_MIPS_CPU 1772 select SWAP_IO_SPACE 1773 select WEAK_ORDERING 1774 select CPU_SUPPORTS_HIGHMEM 1775 select CPU_HAS_PREFETCH 1776 select CPU_SUPPORTS_CPUFREQ 1777 select MIPS_EXTERNAL_TIMER 1778 help 1779 Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors. 1780 1781config CPU_XLR 1782 bool "Netlogic XLR SoC" 1783 depends on SYS_HAS_CPU_XLR 1784 select CPU_SUPPORTS_32BIT_KERNEL 1785 select CPU_SUPPORTS_64BIT_KERNEL 1786 select CPU_SUPPORTS_HIGHMEM 1787 select CPU_SUPPORTS_HUGEPAGES 1788 select WEAK_ORDERING 1789 select WEAK_REORDERING_BEYOND_LLSC 1790 help 1791 Netlogic Microsystems XLR/XLS processors. 1792 1793config CPU_XLP 1794 bool "Netlogic XLP SoC" 1795 depends on SYS_HAS_CPU_XLP 1796 select CPU_SUPPORTS_32BIT_KERNEL 1797 select CPU_SUPPORTS_64BIT_KERNEL 1798 select CPU_SUPPORTS_HIGHMEM 1799 select WEAK_ORDERING 1800 select WEAK_REORDERING_BEYOND_LLSC 1801 select CPU_HAS_PREFETCH 1802 select CPU_MIPSR2 1803 select CPU_SUPPORTS_HUGEPAGES 1804 select MIPS_ASID_BITS_VARIABLE 1805 help 1806 Netlogic Microsystems XLP processors. 1807endchoice 1808 1809config CPU_MIPS32_3_5_FEATURES 1810 bool "MIPS32 Release 3.5 Features" 1811 depends on SYS_HAS_CPU_MIPS32_R3_5 1812 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \ 1813 CPU_P5600 1814 help 1815 Choose this option to build a kernel for release 2 or later of the 1816 MIPS32 architecture including features from the 3.5 release such as 1817 support for Enhanced Virtual Addressing (EVA). 1818 1819config CPU_MIPS32_3_5_EVA 1820 bool "Enhanced Virtual Addressing (EVA)" 1821 depends on CPU_MIPS32_3_5_FEATURES 1822 select EVA 1823 default y 1824 help 1825 Choose this option if you want to enable the Enhanced Virtual 1826 Addressing (EVA) on your MIPS32 core (such as proAptiv). 1827 One of its primary benefits is an increase in the maximum size 1828 of lowmem (up to 3GB). If unsure, say 'N' here. 1829 1830config CPU_MIPS32_R5_FEATURES 1831 bool "MIPS32 Release 5 Features" 1832 depends on SYS_HAS_CPU_MIPS32_R5 1833 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600 1834 help 1835 Choose this option to build a kernel for release 2 or later of the 1836 MIPS32 architecture including features from release 5 such as 1837 support for Extended Physical Addressing (XPA). 1838 1839config CPU_MIPS32_R5_XPA 1840 bool "Extended Physical Addressing (XPA)" 1841 depends on CPU_MIPS32_R5_FEATURES 1842 depends on !EVA 1843 depends on !PAGE_SIZE_4KB 1844 depends on SYS_SUPPORTS_HIGHMEM 1845 select XPA 1846 select HIGHMEM 1847 select PHYS_ADDR_T_64BIT 1848 default n 1849 help 1850 Choose this option if you want to enable the Extended Physical 1851 Addressing (XPA) on your MIPS32 core (such as P5600 series). The 1852 benefit is to increase physical addressing equal to or greater 1853 than 40 bits. Note that this has the side effect of turning on 1854 64-bit addressing which in turn makes the PTEs 64-bit in size. 1855 If unsure, say 'N' here. 1856 1857if CPU_LOONGSON2F 1858config CPU_NOP_WORKAROUNDS 1859 bool 1860 1861config CPU_JUMP_WORKAROUNDS 1862 bool 1863 1864config CPU_LOONGSON2F_WORKAROUNDS 1865 bool "Loongson 2F Workarounds" 1866 default y 1867 select CPU_NOP_WORKAROUNDS 1868 select CPU_JUMP_WORKAROUNDS 1869 help 1870 Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which 1871 require workarounds. Without workarounds the system may hang 1872 unexpectedly. For more information please refer to the gas 1873 -mfix-loongson2f-nop and -mfix-loongson2f-jump options. 1874 1875 Loongson 2F03 and later have fixed these issues and no workarounds 1876 are needed. The workarounds have no significant side effect on them 1877 but may decrease the performance of the system so this option should 1878 be disabled unless the kernel is intended to be run on 2F01 or 2F02 1879 systems. 1880 1881 If unsure, please say Y. 1882endif # CPU_LOONGSON2F 1883 1884config SYS_SUPPORTS_ZBOOT 1885 bool 1886 select HAVE_KERNEL_GZIP 1887 select HAVE_KERNEL_BZIP2 1888 select HAVE_KERNEL_LZ4 1889 select HAVE_KERNEL_LZMA 1890 select HAVE_KERNEL_LZO 1891 select HAVE_KERNEL_XZ 1892 select HAVE_KERNEL_ZSTD 1893 1894config SYS_SUPPORTS_ZBOOT_UART16550 1895 bool 1896 select SYS_SUPPORTS_ZBOOT 1897 1898config SYS_SUPPORTS_ZBOOT_UART_PROM 1899 bool 1900 select SYS_SUPPORTS_ZBOOT 1901 1902config CPU_LOONGSON2EF 1903 bool 1904 select CPU_SUPPORTS_32BIT_KERNEL 1905 select CPU_SUPPORTS_64BIT_KERNEL 1906 select CPU_SUPPORTS_HIGHMEM 1907 select CPU_SUPPORTS_HUGEPAGES 1908 select ARCH_HAS_PHYS_TO_DMA 1909 1910config CPU_LOONGSON32 1911 bool 1912 select CPU_MIPS32 1913 select CPU_MIPSR2 1914 select CPU_HAS_PREFETCH 1915 select CPU_SUPPORTS_32BIT_KERNEL 1916 select CPU_SUPPORTS_HIGHMEM 1917 select CPU_SUPPORTS_CPUFREQ 1918 1919config CPU_BMIPS32_3300 1920 select SMP_UP if SMP 1921 bool 1922 1923config CPU_BMIPS4350 1924 bool 1925 select SYS_SUPPORTS_SMP 1926 select SYS_SUPPORTS_HOTPLUG_CPU 1927 1928config CPU_BMIPS4380 1929 bool 1930 select MIPS_L1_CACHE_SHIFT_6 1931 select SYS_SUPPORTS_SMP 1932 select SYS_SUPPORTS_HOTPLUG_CPU 1933 select CPU_HAS_RIXI 1934 1935config CPU_BMIPS5000 1936 bool 1937 select MIPS_CPU_SCACHE 1938 select MIPS_L1_CACHE_SHIFT_7 1939 select SYS_SUPPORTS_SMP 1940 select SYS_SUPPORTS_HOTPLUG_CPU 1941 select CPU_HAS_RIXI 1942 1943config SYS_HAS_CPU_LOONGSON64 1944 bool 1945 select CPU_SUPPORTS_CPUFREQ 1946 select CPU_HAS_RIXI 1947 1948config SYS_HAS_CPU_LOONGSON2E 1949 bool 1950 1951config SYS_HAS_CPU_LOONGSON2F 1952 bool 1953 select CPU_SUPPORTS_CPUFREQ 1954 select CPU_SUPPORTS_ADDRWINCFG if 64BIT 1955 1956config SYS_HAS_CPU_LOONGSON1B 1957 bool 1958 1959config SYS_HAS_CPU_LOONGSON1C 1960 bool 1961 1962config SYS_HAS_CPU_MIPS32_R1 1963 bool 1964 1965config SYS_HAS_CPU_MIPS32_R2 1966 bool 1967 1968config SYS_HAS_CPU_MIPS32_R3_5 1969 bool 1970 1971config SYS_HAS_CPU_MIPS32_R5 1972 bool 1973 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1974 1975config SYS_HAS_CPU_MIPS32_R6 1976 bool 1977 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1978 1979config SYS_HAS_CPU_MIPS64_R1 1980 bool 1981 1982config SYS_HAS_CPU_MIPS64_R2 1983 bool 1984 1985config SYS_HAS_CPU_MIPS64_R6 1986 bool 1987 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1988 1989config SYS_HAS_CPU_P5600 1990 bool 1991 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1992 1993config SYS_HAS_CPU_R3000 1994 bool 1995 1996config SYS_HAS_CPU_TX39XX 1997 bool 1998 1999config SYS_HAS_CPU_VR41XX 2000 bool 2001 2002config SYS_HAS_CPU_R4300 2003 bool 2004 2005config SYS_HAS_CPU_R4X00 2006 bool 2007 2008config SYS_HAS_CPU_TX49XX 2009 bool 2010 2011config SYS_HAS_CPU_R5000 2012 bool 2013 2014config SYS_HAS_CPU_R5500 2015 bool 2016 2017config SYS_HAS_CPU_NEVADA 2018 bool 2019 2020config SYS_HAS_CPU_R10000 2021 bool 2022 select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 2023 2024config SYS_HAS_CPU_RM7000 2025 bool 2026 2027config SYS_HAS_CPU_SB1 2028 bool 2029 2030config SYS_HAS_CPU_CAVIUM_OCTEON 2031 bool 2032 2033config SYS_HAS_CPU_BMIPS 2034 bool 2035 2036config SYS_HAS_CPU_BMIPS32_3300 2037 bool 2038 select SYS_HAS_CPU_BMIPS 2039 2040config SYS_HAS_CPU_BMIPS4350 2041 bool 2042 select SYS_HAS_CPU_BMIPS 2043 2044config SYS_HAS_CPU_BMIPS4380 2045 bool 2046 select SYS_HAS_CPU_BMIPS 2047 2048config SYS_HAS_CPU_BMIPS5000 2049 bool 2050 select SYS_HAS_CPU_BMIPS 2051 select ARCH_HAS_SYNC_DMA_FOR_CPU 2052 2053config SYS_HAS_CPU_XLR 2054 bool 2055 2056config SYS_HAS_CPU_XLP 2057 bool 2058 2059# 2060# CPU may reorder R->R, R->W, W->R, W->W 2061# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC 2062# 2063config WEAK_ORDERING 2064 bool 2065 2066# 2067# CPU may reorder reads and writes beyond LL/SC 2068# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC 2069# 2070config WEAK_REORDERING_BEYOND_LLSC 2071 bool 2072endmenu 2073 2074# 2075# These two indicate any level of the MIPS32 and MIPS64 architecture 2076# 2077config CPU_MIPS32 2078 bool 2079 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \ 2080 CPU_MIPS32_R6 || CPU_P5600 2081 2082config CPU_MIPS64 2083 bool 2084 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \ 2085 CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON 2086 2087# 2088# These indicate the revision of the architecture 2089# 2090config CPU_MIPSR1 2091 bool 2092 default y if CPU_MIPS32_R1 || CPU_MIPS64_R1 2093 2094config CPU_MIPSR2 2095 bool 2096 default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON 2097 select CPU_HAS_RIXI 2098 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2099 select MIPS_SPRAM 2100 2101config CPU_MIPSR5 2102 bool 2103 default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600 2104 select CPU_HAS_RIXI 2105 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2106 select MIPS_SPRAM 2107 2108config CPU_MIPSR6 2109 bool 2110 default y if CPU_MIPS32_R6 || CPU_MIPS64_R6 2111 select CPU_HAS_RIXI 2112 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 2113 select HAVE_ARCH_BITREVERSE 2114 select MIPS_ASID_BITS_VARIABLE 2115 select MIPS_CRC_SUPPORT 2116 select MIPS_SPRAM 2117 2118config TARGET_ISA_REV 2119 int 2120 default 1 if CPU_MIPSR1 2121 default 2 if CPU_MIPSR2 2122 default 5 if CPU_MIPSR5 2123 default 6 if CPU_MIPSR6 2124 default 0 2125 help 2126 Reflects the ISA revision being targeted by the kernel build. This 2127 is effectively the Kconfig equivalent of MIPS_ISA_REV. 2128 2129config EVA 2130 bool 2131 2132config XPA 2133 bool 2134 2135config SYS_SUPPORTS_32BIT_KERNEL 2136 bool 2137config SYS_SUPPORTS_64BIT_KERNEL 2138 bool 2139config CPU_SUPPORTS_32BIT_KERNEL 2140 bool 2141config CPU_SUPPORTS_64BIT_KERNEL 2142 bool 2143config CPU_SUPPORTS_CPUFREQ 2144 bool 2145config CPU_SUPPORTS_ADDRWINCFG 2146 bool 2147config CPU_SUPPORTS_HUGEPAGES 2148 bool 2149 depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA)) 2150config MIPS_PGD_C0_CONTEXT 2151 bool 2152 depends on 64BIT 2153 default y if (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP 2154 2155# 2156# Set to y for ptrace access to watch registers. 2157# 2158config HARDWARE_WATCHPOINTS 2159 bool 2160 default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6 2161 2162menu "Kernel type" 2163 2164choice 2165 prompt "Kernel code model" 2166 help 2167 You should only select this option if you have a workload that 2168 actually benefits from 64-bit processing or if your machine has 2169 large memory. You will only be presented a single option in this 2170 menu if your system does not support both 32-bit and 64-bit kernels. 2171 2172config 32BIT 2173 bool "32-bit kernel" 2174 depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL 2175 select TRAD_SIGNALS 2176 help 2177 Select this option if you want to build a 32-bit kernel. 2178 2179config 64BIT 2180 bool "64-bit kernel" 2181 depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL 2182 help 2183 Select this option if you want to build a 64-bit kernel. 2184 2185endchoice 2186 2187config MIPS_VA_BITS_48 2188 bool "48 bits virtual memory" 2189 depends on 64BIT 2190 help 2191 Support a maximum at least 48 bits of application virtual 2192 memory. Default is 40 bits or less, depending on the CPU. 2193 For page sizes 16k and above, this option results in a small 2194 memory overhead for page tables. For 4k page size, a fourth 2195 level of page tables is added which imposes both a memory 2196 overhead as well as slower TLB fault handling. 2197 2198 If unsure, say N. 2199 2200choice 2201 prompt "Kernel page size" 2202 default PAGE_SIZE_4KB 2203 2204config PAGE_SIZE_4KB 2205 bool "4kB" 2206 depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64 2207 help 2208 This option select the standard 4kB Linux page size. On some 2209 R3000-family processors this is the only available page size. Using 2210 4kB page size will minimize memory consumption and is therefore 2211 recommended for low memory systems. 2212 2213config PAGE_SIZE_8KB 2214 bool "8kB" 2215 depends on CPU_CAVIUM_OCTEON 2216 depends on !MIPS_VA_BITS_48 2217 help 2218 Using 8kB page size will result in higher performance kernel at 2219 the price of higher memory consumption. This option is available 2220 only on cnMIPS processors. Note that you will need a suitable Linux 2221 distribution to support this. 2222 2223config PAGE_SIZE_16KB 2224 bool "16kB" 2225 depends on !CPU_R3000 && !CPU_TX39XX 2226 help 2227 Using 16kB page size will result in higher performance kernel at 2228 the price of higher memory consumption. This option is available on 2229 all non-R3000 family processors. Note that you will need a suitable 2230 Linux distribution to support this. 2231 2232config PAGE_SIZE_32KB 2233 bool "32kB" 2234 depends on CPU_CAVIUM_OCTEON 2235 depends on !MIPS_VA_BITS_48 2236 help 2237 Using 32kB page size will result in higher performance kernel at 2238 the price of higher memory consumption. This option is available 2239 only on cnMIPS cores. Note that you will need a suitable Linux 2240 distribution to support this. 2241 2242config PAGE_SIZE_64KB 2243 bool "64kB" 2244 depends on !CPU_R3000 && !CPU_TX39XX 2245 help 2246 Using 64kB page size will result in higher performance kernel at 2247 the price of higher memory consumption. This option is available on 2248 all non-R3000 family processor. Not that at the time of this 2249 writing this option is still high experimental. 2250 2251endchoice 2252 2253config FORCE_MAX_ZONEORDER 2254 int "Maximum zone order" 2255 range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2256 default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2257 range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2258 default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2259 range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2260 default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2261 range 0 64 2262 default "11" 2263 help 2264 The kernel memory allocator divides physically contiguous memory 2265 blocks into "zones", where each zone is a power of two number of 2266 pages. This option selects the largest power of two that the kernel 2267 keeps in the memory allocator. If you need to allocate very large 2268 blocks of physically contiguous memory, then you may need to 2269 increase this value. 2270 2271 This config option is actually maximum order plus one. For example, 2272 a value of 11 means that the largest free memory block is 2^10 pages. 2273 2274 The page size is not necessarily 4KB. Keep this in mind 2275 when choosing a value for this option. 2276 2277config BOARD_SCACHE 2278 bool 2279 2280config IP22_CPU_SCACHE 2281 bool 2282 select BOARD_SCACHE 2283 2284# 2285# Support for a MIPS32 / MIPS64 style S-caches 2286# 2287config MIPS_CPU_SCACHE 2288 bool 2289 select BOARD_SCACHE 2290 2291config R5000_CPU_SCACHE 2292 bool 2293 select BOARD_SCACHE 2294 2295config RM7000_CPU_SCACHE 2296 bool 2297 select BOARD_SCACHE 2298 2299config SIBYTE_DMA_PAGEOPS 2300 bool "Use DMA to clear/copy pages" 2301 depends on CPU_SB1 2302 help 2303 Instead of using the CPU to zero and copy pages, use a Data Mover 2304 channel. These DMA channels are otherwise unused by the standard 2305 SiByte Linux port. Seems to give a small performance benefit. 2306 2307config CPU_HAS_PREFETCH 2308 bool 2309 2310config CPU_GENERIC_DUMP_TLB 2311 bool 2312 default y if !(CPU_R3000 || CPU_TX39XX) 2313 2314config MIPS_FP_SUPPORT 2315 bool "Floating Point support" if EXPERT 2316 default y 2317 help 2318 Select y to include support for floating point in the kernel 2319 including initialization of FPU hardware, FP context save & restore 2320 and emulation of an FPU where necessary. Without this support any 2321 userland program attempting to use floating point instructions will 2322 receive a SIGILL. 2323 2324 If you know that your userland will not attempt to use floating point 2325 instructions then you can say n here to shrink the kernel a little. 2326 2327 If unsure, say y. 2328 2329config CPU_R2300_FPU 2330 bool 2331 depends on MIPS_FP_SUPPORT 2332 default y if CPU_R3000 || CPU_TX39XX 2333 2334config CPU_R3K_TLB 2335 bool 2336 2337config CPU_R4K_FPU 2338 bool 2339 depends on MIPS_FP_SUPPORT 2340 default y if !CPU_R2300_FPU 2341 2342config CPU_R4K_CACHE_TLB 2343 bool 2344 default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON) 2345 2346config MIPS_MT_SMP 2347 bool "MIPS MT SMP support (1 TC on each available VPE)" 2348 default y 2349 depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS 2350 select CPU_MIPSR2_IRQ_VI 2351 select CPU_MIPSR2_IRQ_EI 2352 select SYNC_R4K 2353 select MIPS_MT 2354 select SMP 2355 select SMP_UP 2356 select SYS_SUPPORTS_SMP 2357 select SYS_SUPPORTS_SCHED_SMT 2358 select MIPS_PERF_SHARED_TC_COUNTERS 2359 help 2360 This is a kernel model which is known as SMVP. This is supported 2361 on cores with the MT ASE and uses the available VPEs to implement 2362 virtual processors which supports SMP. This is equivalent to the 2363 Intel Hyperthreading feature. For further information go to 2364 <http://www.imgtec.com/mips/mips-multithreading.asp>. 2365 2366config MIPS_MT 2367 bool 2368 2369config SCHED_SMT 2370 bool "SMT (multithreading) scheduler support" 2371 depends on SYS_SUPPORTS_SCHED_SMT 2372 default n 2373 help 2374 SMT scheduler support improves the CPU scheduler's decision making 2375 when dealing with MIPS MT enabled cores at a cost of slightly 2376 increased overhead in some places. If unsure say N here. 2377 2378config SYS_SUPPORTS_SCHED_SMT 2379 bool 2380 2381config SYS_SUPPORTS_MULTITHREADING 2382 bool 2383 2384config MIPS_MT_FPAFF 2385 bool "Dynamic FPU affinity for FP-intensive threads" 2386 default y 2387 depends on MIPS_MT_SMP 2388 2389config MIPSR2_TO_R6_EMULATOR 2390 bool "MIPS R2-to-R6 emulator" 2391 depends on CPU_MIPSR6 2392 depends on MIPS_FP_SUPPORT 2393 default y 2394 help 2395 Choose this option if you want to run non-R6 MIPS userland code. 2396 Even if you say 'Y' here, the emulator will still be disabled by 2397 default. You can enable it using the 'mipsr2emu' kernel option. 2398 The only reason this is a build-time option is to save ~14K from the 2399 final kernel image. 2400 2401config SYS_SUPPORTS_VPE_LOADER 2402 bool 2403 depends on SYS_SUPPORTS_MULTITHREADING 2404 help 2405 Indicates that the platform supports the VPE loader, and provides 2406 physical_memsize. 2407 2408config MIPS_VPE_LOADER 2409 bool "VPE loader support." 2410 depends on SYS_SUPPORTS_VPE_LOADER && MODULES 2411 select CPU_MIPSR2_IRQ_VI 2412 select CPU_MIPSR2_IRQ_EI 2413 select MIPS_MT 2414 help 2415 Includes a loader for loading an elf relocatable object 2416 onto another VPE and running it. 2417 2418config MIPS_VPE_LOADER_CMP 2419 bool 2420 default "y" 2421 depends on MIPS_VPE_LOADER && MIPS_CMP 2422 2423config MIPS_VPE_LOADER_MT 2424 bool 2425 default "y" 2426 depends on MIPS_VPE_LOADER && !MIPS_CMP 2427 2428config MIPS_VPE_LOADER_TOM 2429 bool "Load VPE program into memory hidden from linux" 2430 depends on MIPS_VPE_LOADER 2431 default y 2432 help 2433 The loader can use memory that is present but has been hidden from 2434 Linux using the kernel command line option "mem=xxMB". It's up to 2435 you to ensure the amount you put in the option and the space your 2436 program requires is less or equal to the amount physically present. 2437 2438config MIPS_VPE_APSP_API 2439 bool "Enable support for AP/SP API (RTLX)" 2440 depends on MIPS_VPE_LOADER 2441 2442config MIPS_VPE_APSP_API_CMP 2443 bool 2444 default "y" 2445 depends on MIPS_VPE_APSP_API && MIPS_CMP 2446 2447config MIPS_VPE_APSP_API_MT 2448 bool 2449 default "y" 2450 depends on MIPS_VPE_APSP_API && !MIPS_CMP 2451 2452config MIPS_CMP 2453 bool "MIPS CMP framework support (DEPRECATED)" 2454 depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6 2455 select SMP 2456 select SYNC_R4K 2457 select SYS_SUPPORTS_SMP 2458 select WEAK_ORDERING 2459 default n 2460 help 2461 Select this if you are using a bootloader which implements the "CMP 2462 framework" protocol (ie. YAMON) and want your kernel to make use of 2463 its ability to start secondary CPUs. 2464 2465 Unless you have a specific need, you should use CONFIG_MIPS_CPS 2466 instead of this. 2467 2468config MIPS_CPS 2469 bool "MIPS Coherent Processing System support" 2470 depends on SYS_SUPPORTS_MIPS_CPS 2471 select MIPS_CM 2472 select MIPS_CPS_PM if HOTPLUG_CPU 2473 select SMP 2474 select SYNC_R4K if (CEVT_R4K || CSRC_R4K) 2475 select SYS_SUPPORTS_HOTPLUG_CPU 2476 select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6 2477 select SYS_SUPPORTS_SMP 2478 select WEAK_ORDERING 2479 select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU 2480 help 2481 Select this if you wish to run an SMP kernel across multiple cores 2482 within a MIPS Coherent Processing System. When this option is 2483 enabled the kernel will probe for other cores and boot them with 2484 no external assistance. It is safe to enable this when hardware 2485 support is unavailable. 2486 2487config MIPS_CPS_PM 2488 depends on MIPS_CPS 2489 bool 2490 2491config MIPS_CM 2492 bool 2493 select MIPS_CPC 2494 2495config MIPS_CPC 2496 bool 2497 2498config SB1_PASS_2_WORKAROUNDS 2499 bool 2500 depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2) 2501 default y 2502 2503config SB1_PASS_2_1_WORKAROUNDS 2504 bool 2505 depends on CPU_SB1 && CPU_SB1_PASS_2 2506 default y 2507 2508choice 2509 prompt "SmartMIPS or microMIPS ASE support" 2510 2511config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS 2512 bool "None" 2513 help 2514 Select this if you want neither microMIPS nor SmartMIPS support 2515 2516config CPU_HAS_SMARTMIPS 2517 depends on SYS_SUPPORTS_SMARTMIPS 2518 bool "SmartMIPS" 2519 help 2520 SmartMIPS is a extension of the MIPS32 architecture aimed at 2521 increased security at both hardware and software level for 2522 smartcards. Enabling this option will allow proper use of the 2523 SmartMIPS instructions by Linux applications. However a kernel with 2524 this option will not work on a MIPS core without SmartMIPS core. If 2525 you don't know you probably don't have SmartMIPS and should say N 2526 here. 2527 2528config CPU_MICROMIPS 2529 depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6 2530 bool "microMIPS" 2531 help 2532 When this option is enabled the kernel will be built using the 2533 microMIPS ISA 2534 2535endchoice 2536 2537config CPU_HAS_MSA 2538 bool "Support for the MIPS SIMD Architecture" 2539 depends on CPU_SUPPORTS_MSA 2540 depends on MIPS_FP_SUPPORT 2541 depends on 64BIT || MIPS_O32_FP64_SUPPORT 2542 help 2543 MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers 2544 and a set of SIMD instructions to operate on them. When this option 2545 is enabled the kernel will support allocating & switching MSA 2546 vector register contexts. If you know that your kernel will only be 2547 running on CPUs which do not support MSA or that your userland will 2548 not be making use of it then you may wish to say N here to reduce 2549 the size & complexity of your kernel. 2550 2551 If unsure, say Y. 2552 2553config CPU_HAS_WB 2554 bool 2555 2556config XKS01 2557 bool 2558 2559config CPU_HAS_DIEI 2560 depends on !CPU_DIEI_BROKEN 2561 bool 2562 2563config CPU_DIEI_BROKEN 2564 bool 2565 2566config CPU_HAS_RIXI 2567 bool 2568 2569config CPU_NO_LOAD_STORE_LR 2570 bool 2571 help 2572 CPU lacks support for unaligned load and store instructions: 2573 LWL, LWR, SWL, SWR (Load/store word left/right). 2574 LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit 2575 systems). 2576 2577# 2578# Vectored interrupt mode is an R2 feature 2579# 2580config CPU_MIPSR2_IRQ_VI 2581 bool 2582 2583# 2584# Extended interrupt mode is an R2 feature 2585# 2586config CPU_MIPSR2_IRQ_EI 2587 bool 2588 2589config CPU_HAS_SYNC 2590 bool 2591 depends on !CPU_R3000 2592 default y 2593 2594# 2595# CPU non-features 2596# 2597config CPU_DADDI_WORKAROUNDS 2598 bool 2599 2600config CPU_R4000_WORKAROUNDS 2601 bool 2602 select CPU_R4400_WORKAROUNDS 2603 2604config CPU_R4400_WORKAROUNDS 2605 bool 2606 2607config CPU_R4X00_BUGS64 2608 bool 2609 default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1) 2610 2611config MIPS_ASID_SHIFT 2612 int 2613 default 6 if CPU_R3000 || CPU_TX39XX 2614 default 0 2615 2616config MIPS_ASID_BITS 2617 int 2618 default 0 if MIPS_ASID_BITS_VARIABLE 2619 default 6 if CPU_R3000 || CPU_TX39XX 2620 default 8 2621 2622config MIPS_ASID_BITS_VARIABLE 2623 bool 2624 2625config MIPS_CRC_SUPPORT 2626 bool 2627 2628# R4600 erratum. Due to the lack of errata information the exact 2629# technical details aren't known. I've experimentally found that disabling 2630# interrupts during indexed I-cache flushes seems to be sufficient to deal 2631# with the issue. 2632config WAR_R4600_V1_INDEX_ICACHEOP 2633 bool 2634 2635# Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata: 2636# 2637# 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D, 2638# Hit_Invalidate_D and Create_Dirty_Excl_D should only be 2639# executed if there is no other dcache activity. If the dcache is 2640# accessed for another instruction immediately preceding when these 2641# cache instructions are executing, it is possible that the dcache 2642# tag match outputs used by these cache instructions will be 2643# incorrect. These cache instructions should be preceded by at least 2644# four instructions that are not any kind of load or store 2645# instruction. 2646# 2647# This is not allowed: lw 2648# nop 2649# nop 2650# nop 2651# cache Hit_Writeback_Invalidate_D 2652# 2653# This is allowed: lw 2654# nop 2655# nop 2656# nop 2657# nop 2658# cache Hit_Writeback_Invalidate_D 2659config WAR_R4600_V1_HIT_CACHEOP 2660 bool 2661 2662# Writeback and invalidate the primary cache dcache before DMA. 2663# 2664# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D, 2665# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only 2666# operate correctly if the internal data cache refill buffer is empty. These 2667# CACHE instructions should be separated from any potential data cache miss 2668# by a load instruction to an uncached address to empty the response buffer." 2669# (Revision 2.0 device errata from IDT available on https://www.idt.com/ 2670# in .pdf format.) 2671config WAR_R4600_V2_HIT_CACHEOP 2672 bool 2673 2674# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for 2675# the line which this instruction itself exists, the following 2676# operation is not guaranteed." 2677# 2678# Workaround: do two phase flushing for Index_Invalidate_I 2679config WAR_TX49XX_ICACHE_INDEX_INV 2680 bool 2681 2682# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra 2683# opposes it being called that) where invalid instructions in the same 2684# I-cache line worth of instructions being fetched may case spurious 2685# exceptions. 2686config WAR_ICACHE_REFILLS 2687 bool 2688 2689# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that 2690# may cause ll / sc and lld / scd sequences to execute non-atomically. 2691config WAR_R10000_LLSC 2692 bool 2693 2694# 34K core erratum: "Problems Executing the TLBR Instruction" 2695config WAR_MIPS34K_MISSED_ITLB 2696 bool 2697 2698# 2699# - Highmem only makes sense for the 32-bit kernel. 2700# - The current highmem code will only work properly on physically indexed 2701# caches such as R3000, SB1, R7000 or those that look like they're virtually 2702# indexed such as R4000/R4400 SC and MC versions or R10000. So for the 2703# moment we protect the user and offer the highmem option only on machines 2704# where it's known to be safe. This will not offer highmem on a few systems 2705# such as MIPS32 and MIPS64 CPUs which may have virtual and physically 2706# indexed CPUs but we're playing safe. 2707# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we 2708# know they might have memory configurations that could make use of highmem 2709# support. 2710# 2711config HIGHMEM 2712 bool "High Memory Support" 2713 depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA 2714 select KMAP_LOCAL 2715 2716config CPU_SUPPORTS_HIGHMEM 2717 bool 2718 2719config SYS_SUPPORTS_HIGHMEM 2720 bool 2721 2722config SYS_SUPPORTS_SMARTMIPS 2723 bool 2724 2725config SYS_SUPPORTS_MICROMIPS 2726 bool 2727 2728config SYS_SUPPORTS_MIPS16 2729 bool 2730 help 2731 This option must be set if a kernel might be executed on a MIPS16- 2732 enabled CPU even if MIPS16 is not actually being used. In other 2733 words, it makes the kernel MIPS16-tolerant. 2734 2735config CPU_SUPPORTS_MSA 2736 bool 2737 2738config ARCH_FLATMEM_ENABLE 2739 def_bool y 2740 depends on !NUMA && !CPU_LOONGSON2EF 2741 2742config ARCH_SPARSEMEM_ENABLE 2743 bool 2744 select SPARSEMEM_STATIC if !SGI_IP27 2745 2746config NUMA 2747 bool "NUMA Support" 2748 depends on SYS_SUPPORTS_NUMA 2749 select SMP 2750 help 2751 Say Y to compile the kernel to support NUMA (Non-Uniform Memory 2752 Access). This option improves performance on systems with more 2753 than two nodes; on two node systems it is generally better to 2754 leave it disabled; on single node systems leave this option 2755 disabled. 2756 2757config SYS_SUPPORTS_NUMA 2758 bool 2759 2760config HAVE_SETUP_PER_CPU_AREA 2761 def_bool y 2762 depends on NUMA 2763 2764config NEED_PER_CPU_EMBED_FIRST_CHUNK 2765 def_bool y 2766 depends on NUMA 2767 2768config RELOCATABLE 2769 bool "Relocatable kernel" 2770 depends on SYS_SUPPORTS_RELOCATABLE 2771 depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \ 2772 CPU_MIPS32_R5 || CPU_MIPS64_R5 || \ 2773 CPU_MIPS32_R6 || CPU_MIPS64_R6 || \ 2774 CPU_P5600 || CAVIUM_OCTEON_SOC || \ 2775 CPU_LOONGSON64 2776 help 2777 This builds a kernel image that retains relocation information 2778 so it can be loaded someplace besides the default 1MB. 2779 The relocations make the kernel binary about 15% larger, 2780 but are discarded at runtime 2781 2782config RELOCATION_TABLE_SIZE 2783 hex "Relocation table size" 2784 depends on RELOCATABLE 2785 range 0x0 0x01000000 2786 default "0x00200000" if CPU_LOONGSON64 2787 default "0x00100000" 2788 help 2789 A table of relocation data will be appended to the kernel binary 2790 and parsed at boot to fix up the relocated kernel. 2791 2792 This option allows the amount of space reserved for the table to be 2793 adjusted, although the default of 1Mb should be ok in most cases. 2794 2795 The build will fail and a valid size suggested if this is too small. 2796 2797 If unsure, leave at the default value. 2798 2799config RANDOMIZE_BASE 2800 bool "Randomize the address of the kernel image" 2801 depends on RELOCATABLE 2802 help 2803 Randomizes the physical and virtual address at which the 2804 kernel image is loaded, as a security feature that 2805 deters exploit attempts relying on knowledge of the location 2806 of kernel internals. 2807 2808 Entropy is generated using any coprocessor 0 registers available. 2809 2810 The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET. 2811 2812 If unsure, say N. 2813 2814config RANDOMIZE_BASE_MAX_OFFSET 2815 hex "Maximum kASLR offset" if EXPERT 2816 depends on RANDOMIZE_BASE 2817 range 0x0 0x40000000 if EVA || 64BIT 2818 range 0x0 0x08000000 2819 default "0x01000000" 2820 help 2821 When kASLR is active, this provides the maximum offset that will 2822 be applied to the kernel image. It should be set according to the 2823 amount of physical RAM available in the target system minus 2824 PHYSICAL_START and must be a power of 2. 2825 2826 This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with 2827 EVA or 64-bit. The default is 16Mb. 2828 2829config NODES_SHIFT 2830 int 2831 default "6" 2832 depends on NUMA 2833 2834config HW_PERF_EVENTS 2835 bool "Enable hardware performance counter support for perf events" 2836 depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON64) 2837 default y 2838 help 2839 Enable hardware performance counter support for perf events. If 2840 disabled, perf events will use software events only. 2841 2842config DMI 2843 bool "Enable DMI scanning" 2844 depends on MACH_LOONGSON64 2845 select DMI_SCAN_MACHINE_NON_EFI_FALLBACK 2846 default y 2847 help 2848 Enabled scanning of DMI to identify machine quirks. Say Y 2849 here unless you have verified that your setup is not 2850 affected by entries in the DMI blacklist. Required by PNP 2851 BIOS code. 2852 2853config SMP 2854 bool "Multi-Processing support" 2855 depends on SYS_SUPPORTS_SMP 2856 help 2857 This enables support for systems with more than one CPU. If you have 2858 a system with only one CPU, say N. If you have a system with more 2859 than one CPU, say Y. 2860 2861 If you say N here, the kernel will run on uni- and multiprocessor 2862 machines, but will use only one CPU of a multiprocessor machine. If 2863 you say Y here, the kernel will run on many, but not all, 2864 uniprocessor machines. On a uniprocessor machine, the kernel 2865 will run faster if you say N here. 2866 2867 People using multiprocessor machines who say Y here should also say 2868 Y to "Enhanced Real Time Clock Support", below. 2869 2870 See also the SMP-HOWTO available at 2871 <https://www.tldp.org/docs.html#howto>. 2872 2873 If you don't know what to do here, say N. 2874 2875config HOTPLUG_CPU 2876 bool "Support for hot-pluggable CPUs" 2877 depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU 2878 help 2879 Say Y here to allow turning CPUs off and on. CPUs can be 2880 controlled through /sys/devices/system/cpu. 2881 (Note: power management support will enable this option 2882 automatically on SMP systems. ) 2883 Say N if you want to disable CPU hotplug. 2884 2885config SMP_UP 2886 bool 2887 2888config SYS_SUPPORTS_MIPS_CMP 2889 bool 2890 2891config SYS_SUPPORTS_MIPS_CPS 2892 bool 2893 2894config SYS_SUPPORTS_SMP 2895 bool 2896 2897config NR_CPUS_DEFAULT_4 2898 bool 2899 2900config NR_CPUS_DEFAULT_8 2901 bool 2902 2903config NR_CPUS_DEFAULT_16 2904 bool 2905 2906config NR_CPUS_DEFAULT_32 2907 bool 2908 2909config NR_CPUS_DEFAULT_64 2910 bool 2911 2912config NR_CPUS 2913 int "Maximum number of CPUs (2-256)" 2914 range 2 256 2915 depends on SMP 2916 default "4" if NR_CPUS_DEFAULT_4 2917 default "8" if NR_CPUS_DEFAULT_8 2918 default "16" if NR_CPUS_DEFAULT_16 2919 default "32" if NR_CPUS_DEFAULT_32 2920 default "64" if NR_CPUS_DEFAULT_64 2921 help 2922 This allows you to specify the maximum number of CPUs which this 2923 kernel will support. The maximum supported value is 32 for 32-bit 2924 kernel and 64 for 64-bit kernels; the minimum value which makes 2925 sense is 1 for Qemu (useful only for kernel debugging purposes) 2926 and 2 for all others. 2927 2928 This is purely to save memory - each supported CPU adds 2929 approximately eight kilobytes to the kernel image. For best 2930 performance should round up your number of processors to the next 2931 power of two. 2932 2933config MIPS_PERF_SHARED_TC_COUNTERS 2934 bool 2935 2936config MIPS_NR_CPU_NR_MAP_1024 2937 bool 2938 2939config MIPS_NR_CPU_NR_MAP 2940 int 2941 depends on SMP 2942 default 1024 if MIPS_NR_CPU_NR_MAP_1024 2943 default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024 2944 2945# 2946# Timer Interrupt Frequency Configuration 2947# 2948 2949choice 2950 prompt "Timer frequency" 2951 default HZ_250 2952 help 2953 Allows the configuration of the timer frequency. 2954 2955 config HZ_24 2956 bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ 2957 2958 config HZ_48 2959 bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ 2960 2961 config HZ_100 2962 bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ 2963 2964 config HZ_128 2965 bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ 2966 2967 config HZ_250 2968 bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ 2969 2970 config HZ_256 2971 bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ 2972 2973 config HZ_1000 2974 bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ 2975 2976 config HZ_1024 2977 bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ 2978 2979endchoice 2980 2981config SYS_SUPPORTS_24HZ 2982 bool 2983 2984config SYS_SUPPORTS_48HZ 2985 bool 2986 2987config SYS_SUPPORTS_100HZ 2988 bool 2989 2990config SYS_SUPPORTS_128HZ 2991 bool 2992 2993config SYS_SUPPORTS_250HZ 2994 bool 2995 2996config SYS_SUPPORTS_256HZ 2997 bool 2998 2999config SYS_SUPPORTS_1000HZ 3000 bool 3001 3002config SYS_SUPPORTS_1024HZ 3003 bool 3004 3005config SYS_SUPPORTS_ARBIT_HZ 3006 bool 3007 default y if !SYS_SUPPORTS_24HZ && \ 3008 !SYS_SUPPORTS_48HZ && \ 3009 !SYS_SUPPORTS_100HZ && \ 3010 !SYS_SUPPORTS_128HZ && \ 3011 !SYS_SUPPORTS_250HZ && \ 3012 !SYS_SUPPORTS_256HZ && \ 3013 !SYS_SUPPORTS_1000HZ && \ 3014 !SYS_SUPPORTS_1024HZ 3015 3016config HZ 3017 int 3018 default 24 if HZ_24 3019 default 48 if HZ_48 3020 default 100 if HZ_100 3021 default 128 if HZ_128 3022 default 250 if HZ_250 3023 default 256 if HZ_256 3024 default 1000 if HZ_1000 3025 default 1024 if HZ_1024 3026 3027config SCHED_HRTICK 3028 def_bool HIGH_RES_TIMERS 3029 3030config KEXEC 3031 bool "Kexec system call" 3032 select KEXEC_CORE 3033 help 3034 kexec is a system call that implements the ability to shutdown your 3035 current kernel, and to start another kernel. It is like a reboot 3036 but it is independent of the system firmware. And like a reboot 3037 you can start any kernel with it, not just Linux. 3038 3039 The name comes from the similarity to the exec system call. 3040 3041 It is an ongoing process to be certain the hardware in a machine 3042 is properly shutdown, so do not be surprised if this code does not 3043 initially work for you. As of this writing the exact hardware 3044 interface is strongly in flux, so no good recommendation can be 3045 made. 3046 3047config CRASH_DUMP 3048 bool "Kernel crash dumps" 3049 help 3050 Generate crash dump after being started by kexec. 3051 This should be normally only set in special crash dump kernels 3052 which are loaded in the main kernel with kexec-tools into 3053 a specially reserved region and then later executed after 3054 a crash by kdump/kexec. The crash dump kernel must be compiled 3055 to a memory address not used by the main kernel or firmware using 3056 PHYSICAL_START. 3057 3058config PHYSICAL_START 3059 hex "Physical address where the kernel is loaded" 3060 default "0xffffffff84000000" 3061 depends on CRASH_DUMP 3062 help 3063 This gives the CKSEG0 or KSEG0 address where the kernel is loaded. 3064 If you plan to use kernel for capturing the crash dump change 3065 this value to start of the reserved region (the "X" value as 3066 specified in the "crashkernel=YM@XM" command line boot parameter 3067 passed to the panic-ed kernel). 3068 3069config MIPS_O32_FP64_SUPPORT 3070 bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6 3071 depends on 32BIT || MIPS32_O32 3072 help 3073 When this is enabled, the kernel will support use of 64-bit floating 3074 point registers with binaries using the O32 ABI along with the 3075 EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On 3076 32-bit MIPS systems this support is at the cost of increasing the 3077 size and complexity of the compiled FPU emulator. Thus if you are 3078 running a MIPS32 system and know that none of your userland binaries 3079 will require 64-bit floating point, you may wish to reduce the size 3080 of your kernel & potentially improve FP emulation performance by 3081 saying N here. 3082 3083 Although binutils currently supports use of this flag the details 3084 concerning its effect upon the O32 ABI in userland are still being 3085 worked on. In order to avoid userland becoming dependent upon current 3086 behaviour before the details have been finalised, this option should 3087 be considered experimental and only enabled by those working upon 3088 said details. 3089 3090 If unsure, say N. 3091 3092config USE_OF 3093 bool 3094 select OF 3095 select OF_EARLY_FLATTREE 3096 select IRQ_DOMAIN 3097 3098config UHI_BOOT 3099 bool 3100 3101config BUILTIN_DTB 3102 bool 3103 3104choice 3105 prompt "Kernel appended dtb support" if USE_OF 3106 default MIPS_NO_APPENDED_DTB 3107 3108 config MIPS_NO_APPENDED_DTB 3109 bool "None" 3110 help 3111 Do not enable appended dtb support. 3112 3113 config MIPS_ELF_APPENDED_DTB 3114 bool "vmlinux" 3115 help 3116 With this option, the boot code will look for a device tree binary 3117 DTB) included in the vmlinux ELF section .appended_dtb. By default 3118 it is empty and the DTB can be appended using binutils command 3119 objcopy: 3120 3121 objcopy --update-section .appended_dtb=<filename>.dtb vmlinux 3122 3123 This is meant as a backward compatibility convenience for those 3124 systems with a bootloader that can't be upgraded to accommodate 3125 the documented boot protocol using a device tree. 3126 3127 config MIPS_RAW_APPENDED_DTB 3128 bool "vmlinux.bin or vmlinuz.bin" 3129 help 3130 With this option, the boot code will look for a device tree binary 3131 DTB) appended to raw vmlinux.bin or vmlinuz.bin. 3132 (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb). 3133 3134 This is meant as a backward compatibility convenience for those 3135 systems with a bootloader that can't be upgraded to accommodate 3136 the documented boot protocol using a device tree. 3137 3138 Beware that there is very little in terms of protection against 3139 this option being confused by leftover garbage in memory that might 3140 look like a DTB header after a reboot if no actual DTB is appended 3141 to vmlinux.bin. Do not leave this option active in a production kernel 3142 if you don't intend to always append a DTB. 3143endchoice 3144 3145choice 3146 prompt "Kernel command line type" if !CMDLINE_OVERRIDE 3147 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \ 3148 !MACH_LOONGSON64 && !MIPS_MALTA && \ 3149 !CAVIUM_OCTEON_SOC 3150 default MIPS_CMDLINE_FROM_BOOTLOADER 3151 3152 config MIPS_CMDLINE_FROM_DTB 3153 depends on USE_OF 3154 bool "Dtb kernel arguments if available" 3155 3156 config MIPS_CMDLINE_DTB_EXTEND 3157 depends on USE_OF 3158 bool "Extend dtb kernel arguments with bootloader arguments" 3159 3160 config MIPS_CMDLINE_FROM_BOOTLOADER 3161 bool "Bootloader kernel arguments if available" 3162 3163 config MIPS_CMDLINE_BUILTIN_EXTEND 3164 depends on CMDLINE_BOOL 3165 bool "Extend builtin kernel arguments with bootloader arguments" 3166endchoice 3167 3168endmenu 3169 3170config LOCKDEP_SUPPORT 3171 bool 3172 default y 3173 3174config STACKTRACE_SUPPORT 3175 bool 3176 default y 3177 3178config PGTABLE_LEVELS 3179 int 3180 default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48 3181 default 3 if 64BIT && !PAGE_SIZE_64KB 3182 default 2 3183 3184config MIPS_AUTO_PFN_OFFSET 3185 bool 3186 3187menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" 3188 3189config PCI_DRIVERS_GENERIC 3190 select PCI_DOMAINS_GENERIC if PCI 3191 bool 3192 3193config PCI_DRIVERS_LEGACY 3194 def_bool !PCI_DRIVERS_GENERIC 3195 select NO_GENERIC_PCI_IOPORT_MAP 3196 select PCI_DOMAINS if PCI 3197 3198# 3199# ISA support is now enabled via select. Too many systems still have the one 3200# or other ISA chip on the board that users don't know about so don't expect 3201# users to choose the right thing ... 3202# 3203config ISA 3204 bool 3205 3206config TC 3207 bool "TURBOchannel support" 3208 depends on MACH_DECSTATION 3209 help 3210 TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS 3211 processors. TURBOchannel programming specifications are available 3212 at: 3213 <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/> 3214 and: 3215 <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/> 3216 Linux driver support status is documented at: 3217 <http://www.linux-mips.org/wiki/DECstation> 3218 3219config MMU 3220 bool 3221 default y 3222 3223config ARCH_MMAP_RND_BITS_MIN 3224 default 12 if 64BIT 3225 default 8 3226 3227config ARCH_MMAP_RND_BITS_MAX 3228 default 18 if 64BIT 3229 default 15 3230 3231config ARCH_MMAP_RND_COMPAT_BITS_MIN 3232 default 8 3233 3234config ARCH_MMAP_RND_COMPAT_BITS_MAX 3235 default 15 3236 3237config I8253 3238 bool 3239 select CLKSRC_I8253 3240 select CLKEVT_I8253 3241 select MIPS_EXTERNAL_TIMER 3242endmenu 3243 3244config TRAD_SIGNALS 3245 bool 3246 3247config MIPS32_COMPAT 3248 bool 3249 3250config COMPAT 3251 bool 3252 3253config SYSVIPC_COMPAT 3254 bool 3255 3256config MIPS32_O32 3257 bool "Kernel support for o32 binaries" 3258 depends on 64BIT 3259 select ARCH_WANT_OLD_COMPAT_IPC 3260 select COMPAT 3261 select MIPS32_COMPAT 3262 select SYSVIPC_COMPAT if SYSVIPC 3263 help 3264 Select this option if you want to run o32 binaries. These are pure 3265 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of 3266 existing binaries are in this format. 3267 3268 If unsure, say Y. 3269 3270config MIPS32_N32 3271 bool "Kernel support for n32 binaries" 3272 depends on 64BIT 3273 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION 3274 select COMPAT 3275 select MIPS32_COMPAT 3276 select SYSVIPC_COMPAT if SYSVIPC 3277 help 3278 Select this option if you want to run n32 binaries. These are 3279 64-bit binaries using 32-bit quantities for addressing and certain 3280 data that would normally be 64-bit. They are used in special 3281 cases. 3282 3283 If unsure, say N. 3284 3285menu "Power management options" 3286 3287config ARCH_HIBERNATION_POSSIBLE 3288 def_bool y 3289 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3290 3291config ARCH_SUSPEND_POSSIBLE 3292 def_bool y 3293 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3294 3295source "kernel/power/Kconfig" 3296 3297endmenu 3298 3299config MIPS_EXTERNAL_TIMER 3300 bool 3301 3302menu "CPU Power Management" 3303 3304if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER 3305source "drivers/cpufreq/Kconfig" 3306endif 3307 3308source "drivers/cpuidle/Kconfig" 3309 3310endmenu 3311 3312source "arch/mips/kvm/Kconfig" 3313 3314source "arch/mips/vdso/Kconfig" 3315