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