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