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