1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0 21da177e4SLinus Torvaldsconfig MIPS 31da177e4SLinus Torvalds bool 41da177e4SLinus Torvalds default y 5942fa985SYury Norov select ARCH_32BIT_OFF_T if !64BIT 6ea6a3737SPaul Burton select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT 7b847bd64SKees Cook select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000 8dfad83cbSFlorian Fainelli select ARCH_HAS_DEBUG_VIRTUAL if !64BIT 934c01e41SAlexander Lobakin select ARCH_HAS_FORTIFY_SOURCE 1034c01e41SAlexander Lobakin select ARCH_HAS_KCOV 1166633abdSTiezhu Yang select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA 1234c01e41SAlexander Lobakin select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI) 13e6226997SArnd Bergmann select ARCH_HAS_STRNCPY_FROM_USER 14e6226997SArnd Bergmann select ARCH_HAS_STRNLEN_USER 1512597988SMatt Redfearn select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST 161e35918aSHassan Naveed select ARCH_HAS_UBSAN_SANITIZE_ALL 178b3165e5SXingxing Su select ARCH_HAS_GCOV_PROFILE_ALL 18c55944ccSNick Desaulniers select ARCH_KEEP_MEMBLOCK 1912597988SMatt Redfearn select ARCH_SUPPORTS_UPROBES 201ee3630aSRalf Baechle select ARCH_USE_BUILTIN_BSWAP 2112597988SMatt Redfearn select ARCH_USE_CMPXCHG_LOCKREF if 64BIT 22dce44566SAnshuman Khandual select ARCH_USE_MEMTEST 2325da4e9dSPaul Burton select ARCH_USE_QUEUED_RWLOCKS 240b17c967SPaul Burton select ARCH_USE_QUEUED_SPINLOCKS 25855f9a8eSAnshuman Khandual select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES 269035bd29SAlexandre Ghiti select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU 2712597988SMatt Redfearn select ARCH_WANT_IPC_PARSE_VERSION 28d3a4e0f1SAlexander Lobakin select ARCH_WANT_LD_ORPHAN_WARN 2910916706SShile Zhang select BUILDTIME_TABLE_SORT 3012597988SMatt Redfearn select CLONE_BACKWARDS 3157eeacedSPaul Burton select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1) 3212597988SMatt Redfearn select CPU_PM if CPU_IDLE 3312597988SMatt Redfearn select GENERIC_ATOMIC64 if !64BIT 3412597988SMatt Redfearn select GENERIC_CMOS_UPDATE 3512597988SMatt Redfearn select GENERIC_CPU_AUTOPROBE 3624640f23SVincenzo Frascino select GENERIC_GETTIMEOFDAY 37b962aeb0SPaul Burton select GENERIC_IOMAP 3812597988SMatt Redfearn select GENERIC_IRQ_PROBE 3912597988SMatt Redfearn select GENERIC_IRQ_SHOW 406630a8e5SChristoph Hellwig select GENERIC_ISA_DMA if EISA 41740129b3SAntony Pavlov select GENERIC_LIB_ASHLDI3 42740129b3SAntony Pavlov select GENERIC_LIB_ASHRDI3 43740129b3SAntony Pavlov select GENERIC_LIB_CMPDI2 44740129b3SAntony Pavlov select GENERIC_LIB_LSHRDI3 45740129b3SAntony Pavlov select GENERIC_LIB_UCMPDI2 4612597988SMatt Redfearn select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC 4712597988SMatt Redfearn select GENERIC_SMP_IDLE_THREAD 4812597988SMatt Redfearn select GENERIC_TIME_VSYSCALL 496ca297d4SPeter Zijlstra select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT 50906d441fSPaul Burton select HAVE_ARCH_COMPILER_H 5112597988SMatt Redfearn select HAVE_ARCH_JUMP_LABEL 5242b20995SArnd Bergmann select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT 53109c32ffSMatt Redfearn select HAVE_ARCH_MMAP_RND_BITS if MMU 54109c32ffSMatt Redfearn select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT 55490b004fSMarkos Chandras select HAVE_ARCH_SECCOMP_FILTER 56c0ff3c53SRalf Baechle select HAVE_ARCH_TRACEHOOK 5745e03e62SDaniel Silsby select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES 582ff2b7ecSMasahiro Yamada select HAVE_ASM_MODVERSIONS 5924a9c541SFrederic Weisbecker select HAVE_CONTEXT_TRACKING_USER 60490f561bSFrederic Weisbecker select HAVE_TIF_NOHZ 6164575f91SWu Zhangjin select HAVE_C_RECORDMCOUNT 6212597988SMatt Redfearn select HAVE_DEBUG_KMEMLEAK 6312597988SMatt Redfearn select HAVE_DEBUG_STACKOVERFLOW 6412597988SMatt Redfearn select HAVE_DMA_CONTIGUOUS 6512597988SMatt Redfearn select HAVE_DYNAMIC_FTRACE 6601bdc58eSJohan Almbladh select HAVE_EBPF_JIT if !CPU_MICROMIPS && \ 6701bdc58eSJohan Almbladh !CPU_DADDI_WORKAROUNDS && \ 6801bdc58eSJohan Almbladh !CPU_R4000_WORKAROUNDS && \ 6901bdc58eSJohan Almbladh !CPU_R4400_WORKAROUNDS 7012597988SMatt Redfearn select HAVE_EXIT_THREAD 7167a929e0SChristoph Hellwig select HAVE_FAST_GUP 7212597988SMatt Redfearn select HAVE_FTRACE_MCOUNT_RECORD 7329c5d346SWu Zhangjin select HAVE_FUNCTION_GRAPH_TRACER 7412597988SMatt Redfearn select HAVE_FUNCTION_TRACER 7534c01e41SAlexander Lobakin select HAVE_GCC_PLUGINS 7634c01e41SAlexander Lobakin select HAVE_GENERIC_VDSO 77b3a428b4SHassan Naveed select HAVE_IOREMAP_PROT 7812597988SMatt Redfearn select HAVE_IRQ_EXIT_ON_IRQ_STACK 7912597988SMatt Redfearn select HAVE_IRQ_TIME_ACCOUNTING 80c1bf207dSDavid Daney select HAVE_KPROBES 81c1bf207dSDavid Daney select HAVE_KRETPROBES 82c0436b50SPaul Burton select HAVE_LD_DEAD_CODE_DATA_ELIMINATION 83786d35d4SDavid Howells select HAVE_MOD_ARCH_SPECIFIC 8442a0bb3fSPetr Mladek select HAVE_NMI 8512597988SMatt Redfearn select HAVE_PERF_EVENTS 861ddc96bdSTiezhu Yang select HAVE_PERF_REGS 871ddc96bdSTiezhu Yang select HAVE_PERF_USER_STACK_DUMP 8808bccf43SMarcin Nowakowski select HAVE_REGS_AND_STACK_ACCESS_API 899ea141adSPaul Burton select HAVE_RSEQ 9016c0f03fSHassan Naveed select HAVE_SPARSE_SYSCALL_NR 91d148eac0SMasahiro Yamada select HAVE_STACKPROTECTOR 9212597988SMatt Redfearn select HAVE_SYSCALL_TRACEPOINTS 93a3f14310SBen Hutchings select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP 9412597988SMatt Redfearn select IRQ_FORCED_THREADING 956630a8e5SChristoph Hellwig select ISA if EISA 9612597988SMatt Redfearn select MODULES_USE_ELF_REL if MODULES 9734c01e41SAlexander Lobakin select MODULES_USE_ELF_RELA if MODULES && 64BIT 9812597988SMatt Redfearn select PERF_USE_VMALLOC 99981aa1d3SThomas Gleixner select PCI_MSI_ARCH_FALLBACKS if PCI_MSI 10005a0a344SArnd Bergmann select RTC_LIB 10112597988SMatt Redfearn select SYSCTL_EXCEPTION_TRACE 1024aae683fSMasahiro Yamada select TRACE_IRQFLAGS_SUPPORT 1030bb87f05SAl Viro select ARCH_HAS_ELFCORE_COMPAT 104e0a8b93eSNemanja Rakovic select HAVE_ARCH_KCSAN if 64BIT 1051da177e4SLinus Torvalds 106d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR 107d3991572SChristoph Hellwig bool 108d3991572SChristoph Hellwig 109c434b9f8SPaul Cercueilconfig MIPS_GENERIC 110c434b9f8SPaul Cercueil bool 111c434b9f8SPaul Cercueil 112f0f4a753SPaul Cercueilconfig MACH_INGENIC 113f0f4a753SPaul Cercueil bool 114f0f4a753SPaul Cercueil select SYS_SUPPORTS_32BIT_KERNEL 115f0f4a753SPaul Cercueil select SYS_SUPPORTS_LITTLE_ENDIAN 116f0f4a753SPaul Cercueil select SYS_SUPPORTS_ZBOOT 117f0f4a753SPaul Cercueil select DMA_NONCOHERENT 1181660710cSPaul Cercueil select ARCH_HAS_SYNC_DMA_FOR_CPU 119f0f4a753SPaul Cercueil select IRQ_MIPS_CPU 120f0f4a753SPaul Cercueil select PINCTRL 121f0f4a753SPaul Cercueil select GPIOLIB 122f0f4a753SPaul Cercueil select COMMON_CLK 123f0f4a753SPaul Cercueil select GENERIC_IRQ_CHIP 124f0f4a753SPaul Cercueil select BUILTIN_DTB if MIPS_NO_APPENDED_DTB 125f0f4a753SPaul Cercueil select USE_OF 126f0f4a753SPaul Cercueil select CPU_SUPPORTS_CPUFREQ 127f0f4a753SPaul Cercueil select MIPS_EXTERNAL_TIMER 128f0f4a753SPaul Cercueil 1291da177e4SLinus Torvaldsmenu "Machine selection" 1301da177e4SLinus Torvalds 1315e83d430SRalf Baechlechoice 1325e83d430SRalf Baechle prompt "System type" 133c434b9f8SPaul Cercueil default MIPS_GENERIC_KERNEL 1341da177e4SLinus Torvalds 135c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL 136eed0eabdSPaul Burton bool "Generic board-agnostic MIPS kernel" 1374e066441SChristoph Hellwig select ARCH_HAS_SETUP_DMA_OPS 138c434b9f8SPaul Cercueil select MIPS_GENERIC 139eed0eabdSPaul Burton select BOOT_RAW 140eed0eabdSPaul Burton select BUILTIN_DTB 141eed0eabdSPaul Burton select CEVT_R4K 142eed0eabdSPaul Burton select CLKSRC_MIPS_GIC 143eed0eabdSPaul Burton select COMMON_CLK 144eed0eabdSPaul Burton select CPU_MIPSR2_IRQ_EI 14534c01e41SAlexander Lobakin select CPU_MIPSR2_IRQ_VI 146eed0eabdSPaul Burton select CSRC_R4K 1474e066441SChristoph Hellwig select DMA_NONCOHERENT 148eb01d42aSChristoph Hellwig select HAVE_PCI 149eed0eabdSPaul Burton select IRQ_MIPS_CPU 1500211d49eSPaul Burton select MIPS_AUTO_PFN_OFFSET 151eed0eabdSPaul Burton select MIPS_CPU_SCACHE 152eed0eabdSPaul Burton select MIPS_GIC 153eed0eabdSPaul Burton select MIPS_L1_CACHE_SHIFT_7 154eed0eabdSPaul Burton select NO_EXCEPT_FILL 155eed0eabdSPaul Burton select PCI_DRIVERS_GENERIC 156eed0eabdSPaul Burton select SMP_UP if SMP 157a3078e59SMatt Redfearn select SWAP_IO_SPACE 158eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS32_R1 159eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS32_R2 160eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS32_R6 161eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS64_R1 162eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS64_R2 163eed0eabdSPaul Burton select SYS_HAS_CPU_MIPS64_R6 164eed0eabdSPaul Burton select SYS_SUPPORTS_32BIT_KERNEL 165eed0eabdSPaul Burton select SYS_SUPPORTS_64BIT_KERNEL 166eed0eabdSPaul Burton select SYS_SUPPORTS_BIG_ENDIAN 167eed0eabdSPaul Burton select SYS_SUPPORTS_HIGHMEM 168eed0eabdSPaul Burton select SYS_SUPPORTS_LITTLE_ENDIAN 169eed0eabdSPaul Burton select SYS_SUPPORTS_MICROMIPS 170eed0eabdSPaul Burton select SYS_SUPPORTS_MIPS16 17134c01e41SAlexander Lobakin select SYS_SUPPORTS_MIPS_CPS 172eed0eabdSPaul Burton select SYS_SUPPORTS_MULTITHREADING 173eed0eabdSPaul Burton select SYS_SUPPORTS_RELOCATABLE 174eed0eabdSPaul Burton select SYS_SUPPORTS_SMARTMIPS 175c3e2ee65SPaul Cercueil select SYS_SUPPORTS_ZBOOT 17634c01e41SAlexander Lobakin select UHI_BOOT 1772e6522c5SCorentin Labbe select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 1782e6522c5SCorentin Labbe select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1792e6522c5SCorentin Labbe select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 1802e6522c5SCorentin Labbe select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1812e6522c5SCorentin Labbe select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 1822e6522c5SCorentin Labbe select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 183eed0eabdSPaul Burton select USE_OF 184eed0eabdSPaul Burton help 185eed0eabdSPaul Burton Select this to build a kernel which aims to support multiple boards, 186eed0eabdSPaul Burton generally using a flattened device tree passed from the bootloader 187eed0eabdSPaul Burton using the boot protocol defined in the UHI (Unified Hosting 188eed0eabdSPaul Burton Interface) specification. 189eed0eabdSPaul Burton 19042a4f17dSManuel Laussconfig MIPS_ALCHEMY 191c3543e25SYoichi Yuasa bool "Alchemy processor based machines" 192d4a451d5SChristoph Hellwig select PHYS_ADDR_T_64BIT 193f772cdb2SRalf Baechle select CEVT_R4K 194d7ea335cSSteven J. Hill select CSRC_R4K 19567e38cf2SRalf Baechle select IRQ_MIPS_CPU 196a86497d6SChristoph Hellwig select DMA_NONCOHERENT # Au1000,1500,1100 aren't, rest is 197d3991572SChristoph Hellwig select MIPS_FIXUP_BIGPHYS_ADDR if PCI 19842a4f17dSManuel Lauss select SYS_HAS_CPU_MIPS32_R1 19942a4f17dSManuel Lauss select SYS_SUPPORTS_32BIT_KERNEL 20042a4f17dSManuel Lauss select SYS_SUPPORTS_APM_EMULATION 201d30a2b47SLinus Walleij select GPIOLIB 2021b93b3c3SWu Zhangjin select SYS_SUPPORTS_ZBOOT 20347440229SManuel Lauss select COMMON_CLK 2041da177e4SLinus Torvalds 2057ca5dc14SFlorian Fainelliconfig AR7 2067ca5dc14SFlorian Fainelli bool "Texas Instruments AR7" 2077ca5dc14SFlorian Fainelli select BOOT_ELF32 208b408b611SArnd Bergmann select COMMON_CLK 2097ca5dc14SFlorian Fainelli select DMA_NONCOHERENT 2107ca5dc14SFlorian Fainelli select CEVT_R4K 2117ca5dc14SFlorian Fainelli select CSRC_R4K 21267e38cf2SRalf Baechle select IRQ_MIPS_CPU 2137ca5dc14SFlorian Fainelli select NO_EXCEPT_FILL 2147ca5dc14SFlorian Fainelli select SWAP_IO_SPACE 2157ca5dc14SFlorian Fainelli select SYS_HAS_CPU_MIPS32_R1 2167ca5dc14SFlorian Fainelli select SYS_HAS_EARLY_PRINTK 2177ca5dc14SFlorian Fainelli select SYS_SUPPORTS_32BIT_KERNEL 2187ca5dc14SFlorian Fainelli select SYS_SUPPORTS_LITTLE_ENDIAN 219377cb1b6SRalf Baechle select SYS_SUPPORTS_MIPS16 2201b93b3c3SWu Zhangjin select SYS_SUPPORTS_ZBOOT_UART16550 221d30a2b47SLinus Walleij select GPIOLIB 2227ca5dc14SFlorian Fainelli select VLYNQ 2237ca5dc14SFlorian Fainelli help 2247ca5dc14SFlorian Fainelli Support for the Texas Instruments AR7 System-on-a-Chip 2257ca5dc14SFlorian Fainelli family: TNETD7100, 7200 and 7300. 2267ca5dc14SFlorian Fainelli 22743cc739fSSergey Ryazanovconfig ATH25 22843cc739fSSergey Ryazanov bool "Atheros AR231x/AR531x SoC support" 22943cc739fSSergey Ryazanov select CEVT_R4K 23043cc739fSSergey Ryazanov select CSRC_R4K 23143cc739fSSergey Ryazanov select DMA_NONCOHERENT 23267e38cf2SRalf Baechle select IRQ_MIPS_CPU 2331753e74eSSergey Ryazanov select IRQ_DOMAIN 23443cc739fSSergey Ryazanov select SYS_HAS_CPU_MIPS32_R1 23543cc739fSSergey Ryazanov select SYS_SUPPORTS_BIG_ENDIAN 23643cc739fSSergey Ryazanov select SYS_SUPPORTS_32BIT_KERNEL 2378aaa7278SSergey Ryazanov select SYS_HAS_EARLY_PRINTK 23843cc739fSSergey Ryazanov help 23943cc739fSSergey Ryazanov Support for Atheros AR231x and Atheros AR531x based boards 24043cc739fSSergey Ryazanov 241d4a67d9dSGabor Juhosconfig ATH79 242d4a67d9dSGabor Juhos bool "Atheros AR71XX/AR724X/AR913X based boards" 243ff591a91SAlban Bedel select ARCH_HAS_RESET_CONTROLLER 244d4a67d9dSGabor Juhos select BOOT_RAW 245d4a67d9dSGabor Juhos select CEVT_R4K 246d4a67d9dSGabor Juhos select CSRC_R4K 247d4a67d9dSGabor Juhos select DMA_NONCOHERENT 248d30a2b47SLinus Walleij select GPIOLIB 249a08227a2SJohn Crispin select PINCTRL 250411520afSAlban Bedel select COMMON_CLK 25167e38cf2SRalf Baechle select IRQ_MIPS_CPU 252d4a67d9dSGabor Juhos select SYS_HAS_CPU_MIPS32_R2 253d4a67d9dSGabor Juhos select SYS_HAS_EARLY_PRINTK 254d4a67d9dSGabor Juhos select SYS_SUPPORTS_32BIT_KERNEL 255d4a67d9dSGabor Juhos select SYS_SUPPORTS_BIG_ENDIAN 256377cb1b6SRalf Baechle select SYS_SUPPORTS_MIPS16 257b3f0a250SAlban Bedel select SYS_SUPPORTS_ZBOOT_UART_PROM 25803c8c407SAlban Bedel select USE_OF 25953d473fcSAlban Bedel select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM 260d4a67d9dSGabor Juhos help 261d4a67d9dSGabor Juhos Support for the Atheros AR71XX/AR724X/AR913X SoCs. 262d4a67d9dSGabor Juhos 2635f2d4459SKevin Cernekeeconfig BMIPS_GENERIC 2645f2d4459SKevin Cernekee bool "Broadcom Generic BMIPS kernel" 26529906e1aSÁlvaro Fernández Rojas select ARCH_HAS_RESET_CONTROLLER 266d59098a0SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL 267d666cd02SKevin Cernekee select BOOT_RAW 268d666cd02SKevin Cernekee select NO_EXCEPT_FILL 269d666cd02SKevin Cernekee select USE_OF 270d666cd02SKevin Cernekee select CEVT_R4K 271d666cd02SKevin Cernekee select CSRC_R4K 272d666cd02SKevin Cernekee select SYNC_R4K 273d666cd02SKevin Cernekee select COMMON_CLK 274c7c42ec2SSimon Arlott select BCM6345_L1_IRQ 27560b858f2SKevin Cernekee select BCM7038_L1_IRQ 27660b858f2SKevin Cernekee select BCM7120_L2_IRQ 27760b858f2SKevin Cernekee select BRCMSTB_L2_IRQ 27867e38cf2SRalf Baechle select IRQ_MIPS_CPU 27960b858f2SKevin Cernekee select DMA_NONCOHERENT 280d666cd02SKevin Cernekee select SYS_SUPPORTS_32BIT_KERNEL 28160b858f2SKevin Cernekee select SYS_SUPPORTS_LITTLE_ENDIAN 282d666cd02SKevin Cernekee select SYS_SUPPORTS_BIG_ENDIAN 283d666cd02SKevin Cernekee select SYS_SUPPORTS_HIGHMEM 28460b858f2SKevin Cernekee select SYS_HAS_CPU_BMIPS32_3300 28560b858f2SKevin Cernekee select SYS_HAS_CPU_BMIPS4350 28660b858f2SKevin Cernekee select SYS_HAS_CPU_BMIPS4380 287d666cd02SKevin Cernekee select SYS_HAS_CPU_BMIPS5000 288d666cd02SKevin Cernekee select SWAP_IO_SPACE 28960b858f2SKevin Cernekee select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 29060b858f2SKevin Cernekee select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 29160b858f2SKevin Cernekee select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN 29260b858f2SKevin Cernekee select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 2934dc4704cSJustin Chen select HARDIRQS_SW_RESEND 2941d987052SFlorian Fainelli select HAVE_PCI 2951d987052SFlorian Fainelli select PCI_DRIVERS_GENERIC 296466ab2eaSFlorian Fainelli select FW_CFE 297d666cd02SKevin Cernekee help 2985f2d4459SKevin Cernekee Build a generic DT-based kernel image that boots on select 2995f2d4459SKevin Cernekee BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top 3005f2d4459SKevin Cernekee box chips. Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN 3015f2d4459SKevin Cernekee must be set appropriately for your board. 302d666cd02SKevin Cernekee 3031c0c13ebSAurelien Jarnoconfig BCM47XX 304c619366eSFlorian Fainelli bool "Broadcom BCM47XX based boards" 305fe08f8c2SHauke Mehrtens select BOOT_RAW 30642f77542SRalf Baechle select CEVT_R4K 307940f6b48SRalf Baechle select CSRC_R4K 3081c0c13ebSAurelien Jarno select DMA_NONCOHERENT 309eb01d42aSChristoph Hellwig select HAVE_PCI 31067e38cf2SRalf Baechle select IRQ_MIPS_CPU 311314878d2SMarkos Chandras select SYS_HAS_CPU_MIPS32_R1 312dd54deddSHauke Mehrtens select NO_EXCEPT_FILL 3131c0c13ebSAurelien Jarno select SYS_SUPPORTS_32BIT_KERNEL 3141c0c13ebSAurelien Jarno select SYS_SUPPORTS_LITTLE_ENDIAN 315377cb1b6SRalf Baechle select SYS_SUPPORTS_MIPS16 3166507831fSAaro Koskinen select SYS_SUPPORTS_ZBOOT 31725e5fb97SAurelien Jarno select SYS_HAS_EARLY_PRINTK 318e6086557SRalf Baechle select USE_GENERIC_EARLY_PRINTK_8250 319c949c0bcSRafał Miłecki select GPIOLIB 320c949c0bcSRafał Miłecki select LEDS_GPIO_REGISTER 321f6e734a8SRafał Miłecki select BCM47XX_NVRAM 3222ab71a02SRafał Miłecki select BCM47XX_SPROM 323dfe00495SMatt Redfearn select BCM47XX_SSB if !BCM47XX_BCMA 3241c0c13ebSAurelien Jarno help 3251c0c13ebSAurelien Jarno Support for BCM47XX based boards 3261c0c13ebSAurelien Jarno 327e7300d04SMaxime Bizonconfig BCM63XX 328e7300d04SMaxime Bizon bool "Broadcom BCM63XX based boards" 329ae8de61cSFlorian Fainelli select BOOT_RAW 330e7300d04SMaxime Bizon select CEVT_R4K 331e7300d04SMaxime Bizon select CSRC_R4K 332fc264022SJonas Gorski select SYNC_R4K 333e7300d04SMaxime Bizon select DMA_NONCOHERENT 33467e38cf2SRalf Baechle select IRQ_MIPS_CPU 335e7300d04SMaxime Bizon select SYS_SUPPORTS_32BIT_KERNEL 336e7300d04SMaxime Bizon select SYS_SUPPORTS_BIG_ENDIAN 337e7300d04SMaxime Bizon select SYS_HAS_EARLY_PRINTK 3385eeaafc8SRandy Dunlap select SYS_HAS_CPU_BMIPS32_3300 3395eeaafc8SRandy Dunlap select SYS_HAS_CPU_BMIPS4350 3405eeaafc8SRandy Dunlap select SYS_HAS_CPU_BMIPS4380 341e7300d04SMaxime Bizon select SWAP_IO_SPACE 342d30a2b47SLinus Walleij select GPIOLIB 343af2418beSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_4 344bbd7ffdbSStephen Boyd select HAVE_LEGACY_CLK 345e7300d04SMaxime Bizon help 346e7300d04SMaxime Bizon Support for BCM63XX based boards 347e7300d04SMaxime Bizon 3481da177e4SLinus Torvaldsconfig MIPS_COBALT 3493fa986faSMartin Michlmayr bool "Cobalt Server" 35042f77542SRalf Baechle select CEVT_R4K 351940f6b48SRalf Baechle select CSRC_R4K 3521097c6acSYoichi Yuasa select CEVT_GT641XX 3531da177e4SLinus Torvalds select DMA_NONCOHERENT 354eb01d42aSChristoph Hellwig select FORCE_PCI 355d865bea4SRalf Baechle select I8253 3561da177e4SLinus Torvalds select I8259 35767e38cf2SRalf Baechle select IRQ_MIPS_CPU 358d5ab1a69SYoichi Yuasa select IRQ_GT641XX 359252161ecSYoichi Yuasa select PCI_GT64XXX_PCI0 3607cf8053bSRalf Baechle select SYS_HAS_CPU_NEVADA 3610a22e0d4SYoichi Yuasa select SYS_HAS_EARLY_PRINTK 362ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_32BIT_KERNEL 3630e8774b6SFlorian Fainelli select SYS_SUPPORTS_64BIT_KERNEL 3645e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 365e6086557SRalf Baechle select USE_GENERIC_EARLY_PRINTK_8250 3661da177e4SLinus Torvalds 3671da177e4SLinus Torvaldsconfig MACH_DECSTATION 3683fa986faSMartin Michlmayr bool "DECstations" 3691da177e4SLinus Torvalds select BOOT_ELF32 3706457d9fcSYoichi Yuasa select CEVT_DS1287 37181d10badSMaciej W. Rozycki select CEVT_R4K if CPU_R4X00 3724247417dSYoichi Yuasa select CSRC_IOASIC 37381d10badSMaciej W. Rozycki select CSRC_R4K if CPU_R4X00 37420d60d99SMaciej W. Rozycki select CPU_DADDI_WORKAROUNDS if 64BIT 37520d60d99SMaciej W. Rozycki select CPU_R4000_WORKAROUNDS if 64BIT 37620d60d99SMaciej W. Rozycki select CPU_R4400_WORKAROUNDS if 64BIT 3771da177e4SLinus Torvalds select DMA_NONCOHERENT 378ce816fa8SUwe Kleine-König select NO_IOPORT_MAP 37967e38cf2SRalf Baechle select IRQ_MIPS_CPU 3807cf8053bSRalf Baechle select SYS_HAS_CPU_R3000 3817cf8053bSRalf Baechle select SYS_HAS_CPU_R4X00 382ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_32BIT_KERNEL 3837d60717eSKees Cook select SYS_SUPPORTS_64BIT_KERNEL 3845e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 3851723b4a3SAtsushi Nemoto select SYS_SUPPORTS_128HZ 3861723b4a3SAtsushi Nemoto select SYS_SUPPORTS_256HZ 3871723b4a3SAtsushi Nemoto select SYS_SUPPORTS_1024HZ 388930beb5aSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_4 3895e83d430SRalf Baechle help 3901da177e4SLinus Torvalds This enables support for DEC's MIPS based workstations. For details 3911da177e4SLinus Torvalds see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the 3921da177e4SLinus Torvalds DECstation porting pages on <http://decstation.unix-ag.org/>. 3931da177e4SLinus Torvalds 3941da177e4SLinus Torvalds If you have one of the following DECstation Models you definitely 3951da177e4SLinus Torvalds want to choose R4xx0 for the CPU Type: 3961da177e4SLinus Torvalds 3971da177e4SLinus Torvalds DECstation 5000/50 3981da177e4SLinus Torvalds DECstation 5000/150 3991da177e4SLinus Torvalds DECstation 5000/260 4001da177e4SLinus Torvalds DECsystem 5900/260 4011da177e4SLinus Torvalds 4021da177e4SLinus Torvalds otherwise choose R3000. 4031da177e4SLinus Torvalds 4045e83d430SRalf Baechleconfig MACH_JAZZ 4053fa986faSMartin Michlmayr bool "Jazz family of machines" 40639b2d756SThomas Bogendoerfer select ARC_MEMORY 40739b2d756SThomas Bogendoerfer select ARC_PROMLIB 408a211a082SRalf Baechle select ARCH_MIGHT_HAVE_PC_PARPORT 4097a407aa5SRalf Baechle select ARCH_MIGHT_HAVE_PC_SERIO 4102f9237d4SChristoph Hellwig select DMA_OPS 4110e2794b0SRalf Baechle select FW_ARC 4120e2794b0SRalf Baechle select FW_ARC32 4135e83d430SRalf Baechle select ARCH_MAY_HAVE_PC_FDC 41442f77542SRalf Baechle select CEVT_R4K 415940f6b48SRalf Baechle select CSRC_R4K 416e2defae5SThomas Bogendoerfer select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN 4175e83d430SRalf Baechle select GENERIC_ISA_DMA 4188a118c38SRalf Baechle select HAVE_PCSPKR_PLATFORM 41967e38cf2SRalf Baechle select IRQ_MIPS_CPU 420d865bea4SRalf Baechle select I8253 4215e83d430SRalf Baechle select I8259 4225e83d430SRalf Baechle select ISA 4237cf8053bSRalf Baechle select SYS_HAS_CPU_R4X00 4245e83d430SRalf Baechle select SYS_SUPPORTS_32BIT_KERNEL 4257d60717eSKees Cook select SYS_SUPPORTS_64BIT_KERNEL 4261723b4a3SAtsushi Nemoto select SYS_SUPPORTS_100HZ 427aadfe4b5SArnd Bergmann select SYS_SUPPORTS_LITTLE_ENDIAN 4281da177e4SLinus Torvalds help 4295e83d430SRalf Baechle This a family of machines based on the MIPS R4030 chipset which was 4305e83d430SRalf Baechle used by several vendors to build RISC/os and Windows NT workstations. 431692105b8SMatt LaPlante Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and 4325e83d430SRalf Baechle Olivetti M700-10 workstations. 4335e83d430SRalf Baechle 434f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC 435de361e8bSPaul Burton bool "Ingenic SoC based machines" 436f0f4a753SPaul Cercueil select MIPS_GENERIC 437f0f4a753SPaul Cercueil select MACH_INGENIC 438f9c9affcSLluís Batlle i Rossell select SYS_SUPPORTS_ZBOOT_UART16550 439eb384937SPaul Cercueil select CPU_SUPPORTS_CPUFREQ 440eb384937SPaul Cercueil select MIPS_EXTERNAL_TIMER 4415ebabe59SLars-Peter Clausen 442171bb2f1SJohn Crispinconfig LANTIQ 443171bb2f1SJohn Crispin bool "Lantiq based platforms" 444171bb2f1SJohn Crispin select DMA_NONCOHERENT 44567e38cf2SRalf Baechle select IRQ_MIPS_CPU 446171bb2f1SJohn Crispin select CEVT_R4K 447171bb2f1SJohn Crispin select CSRC_R4K 448*b74cc639SSander Vanheule select NO_EXCEPT_FILL 449171bb2f1SJohn Crispin select SYS_HAS_CPU_MIPS32_R1 450171bb2f1SJohn Crispin select SYS_HAS_CPU_MIPS32_R2 451171bb2f1SJohn Crispin select SYS_SUPPORTS_BIG_ENDIAN 452171bb2f1SJohn Crispin select SYS_SUPPORTS_32BIT_KERNEL 453377cb1b6SRalf Baechle select SYS_SUPPORTS_MIPS16 454171bb2f1SJohn Crispin select SYS_SUPPORTS_MULTITHREADING 455f35764e7SJames Hogan select SYS_SUPPORTS_VPE_LOADER 456171bb2f1SJohn Crispin select SYS_HAS_EARLY_PRINTK 457d30a2b47SLinus Walleij select GPIOLIB 458171bb2f1SJohn Crispin select SWAP_IO_SPACE 459171bb2f1SJohn Crispin select BOOT_RAW 460bbd7ffdbSStephen Boyd select HAVE_LEGACY_CLK 461a0392222SJohn Crispin select USE_OF 4623f8c50c9SJohn Crispin select PINCTRL 4633f8c50c9SJohn Crispin select PINCTRL_LANTIQ 464c530781cSJohn Crispin select ARCH_HAS_RESET_CONTROLLER 465c530781cSJohn Crispin select RESET_CONTROLLER 466171bb2f1SJohn Crispin 46730ad29bbSHuacai Chenconfig MACH_LOONGSON32 468caed1d1bSHuacai Chen bool "Loongson 32-bit family of machines" 469c7e8c668SWu Zhangjin select SYS_SUPPORTS_ZBOOT 470ade299d8SYoichi Yuasa help 47130ad29bbSHuacai Chen This enables support for the Loongson-1 family of machines. 47285749d24SWu Zhangjin 47330ad29bbSHuacai Chen Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by 47430ad29bbSHuacai Chen the Institute of Computing Technology (ICT), Chinese Academy of 47530ad29bbSHuacai Chen Sciences (CAS). 476ade299d8SYoichi Yuasa 47771e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF 47871e2f4ddSJiaxun Yang bool "Loongson-2E/F family of machines" 479ca585cf9SKelvin Cheung select SYS_SUPPORTS_ZBOOT 480ca585cf9SKelvin Cheung help 48171e2f4ddSJiaxun Yang This enables the support of early Loongson-2E/F family of machines. 482ca585cf9SKelvin Cheung 48371e2f4ddSJiaxun Yangconfig MACH_LOONGSON64 484caed1d1bSHuacai Chen bool "Loongson 64-bit family of machines" 4856fbde6b4SJiaxun Yang select ARCH_SPARSEMEM_ENABLE 4866fbde6b4SJiaxun Yang select ARCH_MIGHT_HAVE_PC_PARPORT 4876fbde6b4SJiaxun Yang select ARCH_MIGHT_HAVE_PC_SERIO 4886fbde6b4SJiaxun Yang select GENERIC_ISA_DMA_SUPPORT_BROKEN 4896fbde6b4SJiaxun Yang select BOOT_ELF32 4906fbde6b4SJiaxun Yang select BOARD_SCACHE 4916fbde6b4SJiaxun Yang select CSRC_R4K 4926fbde6b4SJiaxun Yang select CEVT_R4K 4936fbde6b4SJiaxun Yang select CPU_HAS_WB 4946fbde6b4SJiaxun Yang select FORCE_PCI 4956fbde6b4SJiaxun Yang select ISA 4966fbde6b4SJiaxun Yang select I8259 4976fbde6b4SJiaxun Yang select IRQ_MIPS_CPU 4987d6d2837SJiaxun Yang select NO_EXCEPT_FILL 4995125bfeeSTiezhu Yang select NR_CPUS_DEFAULT_64 5006fbde6b4SJiaxun Yang select USE_GENERIC_EARLY_PRINTK_8250 5016423e59aSJiaxun Yang select PCI_DRIVERS_GENERIC 5026fbde6b4SJiaxun Yang select SYS_HAS_CPU_LOONGSON64 5036fbde6b4SJiaxun Yang select SYS_HAS_EARLY_PRINTK 5046fbde6b4SJiaxun Yang select SYS_SUPPORTS_SMP 5056fbde6b4SJiaxun Yang select SYS_SUPPORTS_HOTPLUG_CPU 5066fbde6b4SJiaxun Yang select SYS_SUPPORTS_NUMA 5076fbde6b4SJiaxun Yang select SYS_SUPPORTS_64BIT_KERNEL 5086fbde6b4SJiaxun Yang select SYS_SUPPORTS_HIGHMEM 5096fbde6b4SJiaxun Yang select SYS_SUPPORTS_LITTLE_ENDIAN 51071e2f4ddSJiaxun Yang select SYS_SUPPORTS_ZBOOT 511a307a4ceSJinyang He select SYS_SUPPORTS_RELOCATABLE 5126fbde6b4SJiaxun Yang select ZONE_DMA32 51387fcfa7bSJiaxun Yang select COMMON_CLK 51487fcfa7bSJiaxun Yang select USE_OF 51587fcfa7bSJiaxun Yang select BUILTIN_DTB 51639c1485cSHuacai Chen select PCI_HOST_GENERIC 517f8f9f21cSFeiyang Chen select HAVE_ARCH_NODEDATA_EXTENSION if NUMA 51871e2f4ddSJiaxun Yang help 519caed1d1bSHuacai Chen This enables the support of Loongson-2/3 family of machines. 520caed1d1bSHuacai Chen 521caed1d1bSHuacai Chen Loongson-2 and Loongson-3 are 64-bit general-purpose processors with 522caed1d1bSHuacai Chen GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E 523caed1d1bSHuacai Chen and Loongson-2F which will be removed), developed by the Institute 524caed1d1bSHuacai Chen of Computing Technology (ICT), Chinese Academy of Sciences (CAS). 525ca585cf9SKelvin Cheung 5261da177e4SLinus Torvaldsconfig MIPS_MALTA 5273fa986faSMartin Michlmayr bool "MIPS Malta board" 52861ed242dSRalf Baechle select ARCH_MAY_HAVE_PC_FDC 529a211a082SRalf Baechle select ARCH_MIGHT_HAVE_PC_PARPORT 5307a407aa5SRalf Baechle select ARCH_MIGHT_HAVE_PC_SERIO 5311da177e4SLinus Torvalds select BOOT_ELF32 532fa71c960SRalf Baechle select BOOT_RAW 533e8823d26SPaul Burton select BUILTIN_DTB 53442f77542SRalf Baechle select CEVT_R4K 535fa5635a2SAndrew Bresticker select CLKSRC_MIPS_GIC 53642b002abSGuenter Roeck select COMMON_CLK 53747bf2b03SMaksym Kokhan select CSRC_R4K 538a86497d6SChristoph Hellwig select DMA_NONCOHERENT 5391da177e4SLinus Torvalds select GENERIC_ISA_DMA 5408a118c38SRalf Baechle select HAVE_PCSPKR_PLATFORM 541eb01d42aSChristoph Hellwig select HAVE_PCI 542d865bea4SRalf Baechle select I8253 5431da177e4SLinus Torvalds select I8259 54447bf2b03SMaksym Kokhan select IRQ_MIPS_CPU 5455e83d430SRalf Baechle select MIPS_BONITO64 5469318c51aSChris Dearman select MIPS_CPU_SCACHE 54747bf2b03SMaksym Kokhan select MIPS_GIC 548a7ef1eadSKevin Cernekee select MIPS_L1_CACHE_SHIFT_6 5495e83d430SRalf Baechle select MIPS_MSC 55047bf2b03SMaksym Kokhan select PCI_GT64XXX_PCI0 551ecafe3e9SPaul Burton select SMP_UP if SMP 5521da177e4SLinus Torvalds select SWAP_IO_SPACE 5537cf8053bSRalf Baechle select SYS_HAS_CPU_MIPS32_R1 5547cf8053bSRalf Baechle select SYS_HAS_CPU_MIPS32_R2 555bfc3c5a6SMarkos Chandras select SYS_HAS_CPU_MIPS32_R3_5 556c5b36783SSteven J. Hill select SYS_HAS_CPU_MIPS32_R5 557575509b6SMarkos Chandras select SYS_HAS_CPU_MIPS32_R6 5587cf8053bSRalf Baechle select SYS_HAS_CPU_MIPS64_R1 5595d9fbed1SLeonid Yegoshin select SYS_HAS_CPU_MIPS64_R2 560575509b6SMarkos Chandras select SYS_HAS_CPU_MIPS64_R6 5617cf8053bSRalf Baechle select SYS_HAS_CPU_NEVADA 5627cf8053bSRalf Baechle select SYS_HAS_CPU_RM7000 563ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_32BIT_KERNEL 564ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_64BIT_KERNEL 5655e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 566c5b36783SSteven J. Hill select SYS_SUPPORTS_HIGHMEM 5675e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 568424ebcdfSMaciej W. Rozycki select SYS_SUPPORTS_MICROMIPS 56947bf2b03SMaksym Kokhan select SYS_SUPPORTS_MIPS16 5700365070fSTim Anderson select SYS_SUPPORTS_MIPS_CMP 571e56b6aa6SPaul Burton select SYS_SUPPORTS_MIPS_CPS 572f41ae0b2SRalf Baechle select SYS_SUPPORTS_MULTITHREADING 57347bf2b03SMaksym Kokhan select SYS_SUPPORTS_RELOCATABLE 5749693a853SFranck Bui-Huu select SYS_SUPPORTS_SMARTMIPS 575f35764e7SJames Hogan select SYS_SUPPORTS_VPE_LOADER 5761b93b3c3SWu Zhangjin select SYS_SUPPORTS_ZBOOT 577e8823d26SPaul Burton select USE_OF 578886ee136SThomas Bogendoerfer select WAR_ICACHE_REFILLS 579abcc82b1SJames Hogan select ZONE_DMA32 if 64BIT 5801da177e4SLinus Torvalds help 581f638d197SMaciej W. Rozycki This enables support for the MIPS Technologies Malta evaluation 5821da177e4SLinus Torvalds board. 5831da177e4SLinus Torvalds 5842572f00dSJoshua Hendersonconfig MACH_PIC32 5852572f00dSJoshua Henderson bool "Microchip PIC32 Family" 5862572f00dSJoshua Henderson help 5872572f00dSJoshua Henderson This enables support for the Microchip PIC32 family of platforms. 5882572f00dSJoshua Henderson 5892572f00dSJoshua Henderson Microchip PIC32 is a family of general-purpose 32 bit MIPS core 5902572f00dSJoshua Henderson microcontrollers. 5912572f00dSJoshua Henderson 592baec970aSLauri Kasanenconfig MACH_NINTENDO64 593baec970aSLauri Kasanen bool "Nintendo 64 console" 594baec970aSLauri Kasanen select CEVT_R4K 595baec970aSLauri Kasanen select CSRC_R4K 596baec970aSLauri Kasanen select SYS_HAS_CPU_R4300 597baec970aSLauri Kasanen select SYS_SUPPORTS_BIG_ENDIAN 598baec970aSLauri Kasanen select SYS_SUPPORTS_ZBOOT 599baec970aSLauri Kasanen select SYS_SUPPORTS_32BIT_KERNEL 600baec970aSLauri Kasanen select SYS_SUPPORTS_64BIT_KERNEL 601baec970aSLauri Kasanen select DMA_NONCOHERENT 602baec970aSLauri Kasanen select IRQ_MIPS_CPU 603baec970aSLauri Kasanen 604ae2b5bb6SJohn Crispinconfig RALINK 605ae2b5bb6SJohn Crispin bool "Ralink based machines" 606ae2b5bb6SJohn Crispin select CEVT_R4K 60735f752beSArnd Bergmann select COMMON_CLK 608ae2b5bb6SJohn Crispin select CSRC_R4K 609ae2b5bb6SJohn Crispin select BOOT_RAW 610ae2b5bb6SJohn Crispin select DMA_NONCOHERENT 61167e38cf2SRalf Baechle select IRQ_MIPS_CPU 612ae2b5bb6SJohn Crispin select USE_OF 613ae2b5bb6SJohn Crispin select SYS_HAS_CPU_MIPS32_R1 614ae2b5bb6SJohn Crispin select SYS_HAS_CPU_MIPS32_R2 615ae2b5bb6SJohn Crispin select SYS_SUPPORTS_32BIT_KERNEL 616ae2b5bb6SJohn Crispin select SYS_SUPPORTS_LITTLE_ENDIAN 617377cb1b6SRalf Baechle select SYS_SUPPORTS_MIPS16 6181f0400d0SChuanhong Guo select SYS_SUPPORTS_ZBOOT 619ae2b5bb6SJohn Crispin select SYS_HAS_EARLY_PRINTK 6202a153f1cSJohn Crispin select ARCH_HAS_RESET_CONTROLLER 6212a153f1cSJohn Crispin select RESET_CONTROLLER 622ae2b5bb6SJohn Crispin 6234042147aSBert Vermeulenconfig MACH_REALTEK_RTL 6244042147aSBert Vermeulen bool "Realtek RTL838x/RTL839x based machines" 6254042147aSBert Vermeulen select MIPS_GENERIC 6264042147aSBert Vermeulen select DMA_NONCOHERENT 6274042147aSBert Vermeulen select IRQ_MIPS_CPU 6284042147aSBert Vermeulen select CSRC_R4K 6294042147aSBert Vermeulen select CEVT_R4K 6304042147aSBert Vermeulen select SYS_HAS_CPU_MIPS32_R1 6314042147aSBert Vermeulen select SYS_HAS_CPU_MIPS32_R2 6324042147aSBert Vermeulen select SYS_SUPPORTS_BIG_ENDIAN 6334042147aSBert Vermeulen select SYS_SUPPORTS_32BIT_KERNEL 6344042147aSBert Vermeulen select SYS_SUPPORTS_MIPS16 6354042147aSBert Vermeulen select SYS_SUPPORTS_MULTITHREADING 6364042147aSBert Vermeulen select SYS_SUPPORTS_VPE_LOADER 6374042147aSBert Vermeulen select BOOT_RAW 6384042147aSBert Vermeulen select PINCTRL 6394042147aSBert Vermeulen select USE_OF 6404042147aSBert Vermeulen 6411da177e4SLinus Torvaldsconfig SGI_IP22 6423fa986faSMartin Michlmayr bool "SGI IP22 (Indy/Indigo2)" 643c0de00b2SThomas Bogendoerfer select ARC_MEMORY 64439b2d756SThomas Bogendoerfer select ARC_PROMLIB 6450e2794b0SRalf Baechle select FW_ARC 6460e2794b0SRalf Baechle select FW_ARC32 6477a407aa5SRalf Baechle select ARCH_MIGHT_HAVE_PC_SERIO 6481da177e4SLinus Torvalds select BOOT_ELF32 64942f77542SRalf Baechle select CEVT_R4K 650940f6b48SRalf Baechle select CSRC_R4K 651e2defae5SThomas Bogendoerfer select DEFAULT_SGI_PARTITION 6521da177e4SLinus Torvalds select DMA_NONCOHERENT 6536630a8e5SChristoph Hellwig select HAVE_EISA 654d865bea4SRalf Baechle select I8253 65568de4803SThomas Bogendoerfer select I8259 6561da177e4SLinus Torvalds select IP22_CPU_SCACHE 65767e38cf2SRalf Baechle select IRQ_MIPS_CPU 658aa414dffSRalf Baechle select GENERIC_ISA_DMA_SUPPORT_BROKEN 659e2defae5SThomas Bogendoerfer select SGI_HAS_I8042 660e2defae5SThomas Bogendoerfer select SGI_HAS_INDYDOG 66136e5c21dSThomas Bogendoerfer select SGI_HAS_HAL2 662e2defae5SThomas Bogendoerfer select SGI_HAS_SEEQ 663e2defae5SThomas Bogendoerfer select SGI_HAS_WD93 664e2defae5SThomas Bogendoerfer select SGI_HAS_ZILOG 6651da177e4SLinus Torvalds select SWAP_IO_SPACE 6667cf8053bSRalf Baechle select SYS_HAS_CPU_R4X00 6677cf8053bSRalf Baechle select SYS_HAS_CPU_R5000 668c0de00b2SThomas Bogendoerfer select SYS_HAS_EARLY_PRINTK 669ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_32BIT_KERNEL 670ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_64BIT_KERNEL 6715e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 672802b8362SThomas Bogendoerfer select WAR_R4600_V1_INDEX_ICACHEOP 6735e5b6527SThomas Bogendoerfer select WAR_R4600_V1_HIT_CACHEOP 67444def342SThomas Bogendoerfer select WAR_R4600_V2_HIT_CACHEOP 675930beb5aSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_7 6761da177e4SLinus Torvalds help 6771da177e4SLinus Torvalds This are the SGI Indy, Challenge S and Indigo2, as well as certain 6781da177e4SLinus Torvalds OEM variants like the Tandem CMN B006S. To compile a Linux kernel 6791da177e4SLinus Torvalds that runs on these, say Y here. 6801da177e4SLinus Torvalds 6811da177e4SLinus Torvaldsconfig SGI_IP27 6823fa986faSMartin Michlmayr bool "SGI IP27 (Origin200/2000)" 68354aed4ddSChristoph Hellwig select ARCH_HAS_PHYS_TO_DMA 684397dc00eSMike Rapoport select ARCH_SPARSEMEM_ENABLE 6850e2794b0SRalf Baechle select FW_ARC 6860e2794b0SRalf Baechle select FW_ARC64 687e9422427SThomas Bogendoerfer select ARC_CMDLINE_ONLY 6885e83d430SRalf Baechle select BOOT_ELF64 689e2defae5SThomas Bogendoerfer select DEFAULT_SGI_PARTITION 69004100459SChristoph Hellwig select FORCE_PCI 69136a88530SRalf Baechle select SYS_HAS_EARLY_PRINTK 692eb01d42aSChristoph Hellwig select HAVE_PCI 69369a07a41SThomas Bogendoerfer select IRQ_MIPS_CPU 694e6308b6dSThomas Bogendoerfer select IRQ_DOMAIN_HIERARCHY 695130e2fb7SRalf Baechle select NR_CPUS_DEFAULT_64 696a57140e9SThomas Bogendoerfer select PCI_DRIVERS_GENERIC 697a57140e9SThomas Bogendoerfer select PCI_XTALK_BRIDGE 6987cf8053bSRalf Baechle select SYS_HAS_CPU_R10000 699ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_64BIT_KERNEL 7005e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 701d8cb4e11SRalf Baechle select SYS_SUPPORTS_NUMA 7021a5c5de1SRalf Baechle select SYS_SUPPORTS_SMP 703256ec489SThomas Bogendoerfer select WAR_R10000_LLSC 704930beb5aSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_7 7056c86a302SMike Rapoport select NUMA 706f8f9f21cSFeiyang Chen select HAVE_ARCH_NODEDATA_EXTENSION 7071da177e4SLinus Torvalds help 7081da177e4SLinus Torvalds This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics 7091da177e4SLinus Torvalds workstations. To compile a Linux kernel that runs on these, say Y 7101da177e4SLinus Torvalds here. 7111da177e4SLinus Torvalds 712e2defae5SThomas Bogendoerferconfig SGI_IP28 7137d60717eSKees Cook bool "SGI IP28 (Indigo2 R10k)" 714c0de00b2SThomas Bogendoerfer select ARC_MEMORY 71539b2d756SThomas Bogendoerfer select ARC_PROMLIB 7160e2794b0SRalf Baechle select FW_ARC 7170e2794b0SRalf Baechle select FW_ARC64 7187a407aa5SRalf Baechle select ARCH_MIGHT_HAVE_PC_SERIO 719e2defae5SThomas Bogendoerfer select BOOT_ELF64 720e2defae5SThomas Bogendoerfer select CEVT_R4K 721e2defae5SThomas Bogendoerfer select CSRC_R4K 722e2defae5SThomas Bogendoerfer select DEFAULT_SGI_PARTITION 723e2defae5SThomas Bogendoerfer select DMA_NONCOHERENT 724e2defae5SThomas Bogendoerfer select GENERIC_ISA_DMA_SUPPORT_BROKEN 72567e38cf2SRalf Baechle select IRQ_MIPS_CPU 7266630a8e5SChristoph Hellwig select HAVE_EISA 727e2defae5SThomas Bogendoerfer select I8253 728e2defae5SThomas Bogendoerfer select I8259 729e2defae5SThomas Bogendoerfer select SGI_HAS_I8042 730e2defae5SThomas Bogendoerfer select SGI_HAS_INDYDOG 7315b438c44SThomas Bogendoerfer select SGI_HAS_HAL2 732e2defae5SThomas Bogendoerfer select SGI_HAS_SEEQ 733e2defae5SThomas Bogendoerfer select SGI_HAS_WD93 734e2defae5SThomas Bogendoerfer select SGI_HAS_ZILOG 735e2defae5SThomas Bogendoerfer select SWAP_IO_SPACE 736e2defae5SThomas Bogendoerfer select SYS_HAS_CPU_R10000 737c0de00b2SThomas Bogendoerfer select SYS_HAS_EARLY_PRINTK 738e2defae5SThomas Bogendoerfer select SYS_SUPPORTS_64BIT_KERNEL 739e2defae5SThomas Bogendoerfer select SYS_SUPPORTS_BIG_ENDIAN 740256ec489SThomas Bogendoerfer select WAR_R10000_LLSC 741dc24d68dSThomas Bogendoerfer select MIPS_L1_CACHE_SHIFT_7 742e2defae5SThomas Bogendoerfer help 743e2defae5SThomas Bogendoerfer This is the SGI Indigo2 with R10000 processor. To compile a Linux 744e2defae5SThomas Bogendoerfer kernel that runs on these, say Y here. 745e2defae5SThomas Bogendoerfer 7467505576dSThomas Bogendoerferconfig SGI_IP30 7477505576dSThomas Bogendoerfer bool "SGI IP30 (Octane/Octane2)" 7487505576dSThomas Bogendoerfer select ARCH_HAS_PHYS_TO_DMA 7497505576dSThomas Bogendoerfer select FW_ARC 7507505576dSThomas Bogendoerfer select FW_ARC64 7517505576dSThomas Bogendoerfer select BOOT_ELF64 7527505576dSThomas Bogendoerfer select CEVT_R4K 7537505576dSThomas Bogendoerfer select CSRC_R4K 75404100459SChristoph Hellwig select FORCE_PCI 7557505576dSThomas Bogendoerfer select SYNC_R4K if SMP 7567505576dSThomas Bogendoerfer select ZONE_DMA32 7577505576dSThomas Bogendoerfer select HAVE_PCI 7587505576dSThomas Bogendoerfer select IRQ_MIPS_CPU 7597505576dSThomas Bogendoerfer select IRQ_DOMAIN_HIERARCHY 7607505576dSThomas Bogendoerfer select PCI_DRIVERS_GENERIC 7617505576dSThomas Bogendoerfer select PCI_XTALK_BRIDGE 7627505576dSThomas Bogendoerfer select SYS_HAS_EARLY_PRINTK 7637505576dSThomas Bogendoerfer select SYS_HAS_CPU_R10000 7647505576dSThomas Bogendoerfer select SYS_SUPPORTS_64BIT_KERNEL 7657505576dSThomas Bogendoerfer select SYS_SUPPORTS_BIG_ENDIAN 7667505576dSThomas Bogendoerfer select SYS_SUPPORTS_SMP 767256ec489SThomas Bogendoerfer select WAR_R10000_LLSC 7687505576dSThomas Bogendoerfer select MIPS_L1_CACHE_SHIFT_7 7697505576dSThomas Bogendoerfer select ARC_MEMORY 7707505576dSThomas Bogendoerfer help 7717505576dSThomas Bogendoerfer These are the SGI Octane and Octane2 graphics workstations. To 7727505576dSThomas Bogendoerfer compile a Linux kernel that runs on these, say Y here. 7737505576dSThomas Bogendoerfer 7741da177e4SLinus Torvaldsconfig SGI_IP32 775cfd2afc0SRalf Baechle bool "SGI IP32 (O2)" 77639b2d756SThomas Bogendoerfer select ARC_MEMORY 77739b2d756SThomas Bogendoerfer select ARC_PROMLIB 77803df8229SChristoph Hellwig select ARCH_HAS_PHYS_TO_DMA 7790e2794b0SRalf Baechle select FW_ARC 7800e2794b0SRalf Baechle select FW_ARC32 7811da177e4SLinus Torvalds select BOOT_ELF32 78242f77542SRalf Baechle select CEVT_R4K 783940f6b48SRalf Baechle select CSRC_R4K 7841da177e4SLinus Torvalds select DMA_NONCOHERENT 785eb01d42aSChristoph Hellwig select HAVE_PCI 78667e38cf2SRalf Baechle select IRQ_MIPS_CPU 7871da177e4SLinus Torvalds select R5000_CPU_SCACHE 7881da177e4SLinus Torvalds select RM7000_CPU_SCACHE 7897cf8053bSRalf Baechle select SYS_HAS_CPU_R5000 7907cf8053bSRalf Baechle select SYS_HAS_CPU_R10000 if BROKEN 7917cf8053bSRalf Baechle select SYS_HAS_CPU_RM7000 792dd2f18feSRalf Baechle select SYS_HAS_CPU_NEVADA 793ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_64BIT_KERNEL 7945e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 795886ee136SThomas Bogendoerfer select WAR_ICACHE_REFILLS 7961da177e4SLinus Torvalds help 7971da177e4SLinus Torvalds If you want this kernel to run on SGI O2 workstation, say Y here. 7981da177e4SLinus Torvalds 799ade299d8SYoichi Yuasaconfig SIBYTE_CRHINE 800ade299d8SYoichi Yuasa bool "Sibyte BCM91120C-CRhine" 8015e83d430SRalf Baechle select BOOT_ELF32 8025e83d430SRalf Baechle select SIBYTE_BCM1120 8035e83d430SRalf Baechle select SWAP_IO_SPACE 8047cf8053bSRalf Baechle select SYS_HAS_CPU_SB1 8055e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 8065e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 8075e83d430SRalf Baechle 808ade299d8SYoichi Yuasaconfig SIBYTE_CARMEL 809ade299d8SYoichi Yuasa bool "Sibyte BCM91120x-Carmel" 8105e83d430SRalf Baechle select BOOT_ELF32 8115e83d430SRalf Baechle select SIBYTE_BCM1120 8125e83d430SRalf Baechle select SWAP_IO_SPACE 8137cf8053bSRalf Baechle select SYS_HAS_CPU_SB1 8145e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 8155e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 8165e83d430SRalf Baechle 8175e83d430SRalf Baechleconfig SIBYTE_CRHONE 8183fa986faSMartin Michlmayr bool "Sibyte BCM91125C-CRhone" 8195e83d430SRalf Baechle select BOOT_ELF32 8205e83d430SRalf Baechle select SIBYTE_BCM1125 8215e83d430SRalf Baechle select SWAP_IO_SPACE 8227cf8053bSRalf Baechle select SYS_HAS_CPU_SB1 8235e83d430SRalf Baechle select SYS_SUPPORTS_BIG_ENDIAN 8245e83d430SRalf Baechle select SYS_SUPPORTS_HIGHMEM 8255e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 8265e83d430SRalf Baechle 827ade299d8SYoichi Yuasaconfig SIBYTE_RHONE 828ade299d8SYoichi Yuasa bool "Sibyte BCM91125E-Rhone" 829ade299d8SYoichi Yuasa select BOOT_ELF32 830ade299d8SYoichi Yuasa select SIBYTE_BCM1125H 831ade299d8SYoichi Yuasa select SWAP_IO_SPACE 832ade299d8SYoichi Yuasa select SYS_HAS_CPU_SB1 833ade299d8SYoichi Yuasa select SYS_SUPPORTS_BIG_ENDIAN 834ade299d8SYoichi Yuasa select SYS_SUPPORTS_LITTLE_ENDIAN 835ade299d8SYoichi Yuasa 836ade299d8SYoichi Yuasaconfig SIBYTE_SWARM 837ade299d8SYoichi Yuasa bool "Sibyte BCM91250A-SWARM" 838ade299d8SYoichi Yuasa select BOOT_ELF32 839fcf3ca4cSSebastian Andrzej Siewior select HAVE_PATA_PLATFORM 840ade299d8SYoichi Yuasa select SIBYTE_SB1250 841ade299d8SYoichi Yuasa select SWAP_IO_SPACE 842ade299d8SYoichi Yuasa select SYS_HAS_CPU_SB1 843ade299d8SYoichi Yuasa select SYS_SUPPORTS_BIG_ENDIAN 844ade299d8SYoichi Yuasa select SYS_SUPPORTS_HIGHMEM 845ade299d8SYoichi Yuasa select SYS_SUPPORTS_LITTLE_ENDIAN 846cce335aeSRalf Baechle select ZONE_DMA32 if 64BIT 847e4849affSMaciej W. Rozycki select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 848ade299d8SYoichi Yuasa 849ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR 850ade299d8SYoichi Yuasa bool "Sibyte BCM91250C2-LittleSur" 851ade299d8SYoichi Yuasa select BOOT_ELF32 852fcf3ca4cSSebastian Andrzej Siewior select HAVE_PATA_PLATFORM 853ade299d8SYoichi Yuasa select SIBYTE_SB1250 854ade299d8SYoichi Yuasa select SWAP_IO_SPACE 855ade299d8SYoichi Yuasa select SYS_HAS_CPU_SB1 856ade299d8SYoichi Yuasa select SYS_SUPPORTS_BIG_ENDIAN 857ade299d8SYoichi Yuasa select SYS_SUPPORTS_HIGHMEM 858ade299d8SYoichi Yuasa select SYS_SUPPORTS_LITTLE_ENDIAN 859756d6d83SMaciej W. Rozycki select ZONE_DMA32 if 64BIT 860ade299d8SYoichi Yuasa 861ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA 862ade299d8SYoichi Yuasa bool "Sibyte BCM91250E-Sentosa" 863ade299d8SYoichi Yuasa select BOOT_ELF32 864ade299d8SYoichi Yuasa select SIBYTE_SB1250 865ade299d8SYoichi Yuasa select SWAP_IO_SPACE 866ade299d8SYoichi Yuasa select SYS_HAS_CPU_SB1 867ade299d8SYoichi Yuasa select SYS_SUPPORTS_BIG_ENDIAN 868ade299d8SYoichi Yuasa select SYS_SUPPORTS_LITTLE_ENDIAN 869e4849affSMaciej W. Rozycki select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 870ade299d8SYoichi Yuasa 871ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR 872ade299d8SYoichi Yuasa bool "Sibyte BCM91480B-BigSur" 873ade299d8SYoichi Yuasa select BOOT_ELF32 874ade299d8SYoichi Yuasa select NR_CPUS_DEFAULT_4 875ade299d8SYoichi Yuasa select SIBYTE_BCM1x80 876ade299d8SYoichi Yuasa select SWAP_IO_SPACE 877ade299d8SYoichi Yuasa select SYS_HAS_CPU_SB1 878ade299d8SYoichi Yuasa select SYS_SUPPORTS_BIG_ENDIAN 879651194f8SRalf Baechle select SYS_SUPPORTS_HIGHMEM 880ade299d8SYoichi Yuasa select SYS_SUPPORTS_LITTLE_ENDIAN 881cce335aeSRalf Baechle select ZONE_DMA32 if 64BIT 882e4849affSMaciej W. Rozycki select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI 883ade299d8SYoichi Yuasa 88414b36af4SThomas Bogendoerferconfig SNI_RM 88514b36af4SThomas Bogendoerfer bool "SNI RM200/300/400" 88639b2d756SThomas Bogendoerfer select ARC_MEMORY 88739b2d756SThomas Bogendoerfer select ARC_PROMLIB 8880e2794b0SRalf Baechle select FW_ARC if CPU_LITTLE_ENDIAN 8890e2794b0SRalf Baechle select FW_ARC32 if CPU_LITTLE_ENDIAN 890aaa9fad3SPaul Bolle select FW_SNIPROM if CPU_BIG_ENDIAN 8915e83d430SRalf Baechle select ARCH_MAY_HAVE_PC_FDC 892a211a082SRalf Baechle select ARCH_MIGHT_HAVE_PC_PARPORT 8937a407aa5SRalf Baechle select ARCH_MIGHT_HAVE_PC_SERIO 8945e83d430SRalf Baechle select BOOT_ELF32 89542f77542SRalf Baechle select CEVT_R4K 896940f6b48SRalf Baechle select CSRC_R4K 897e2defae5SThomas Bogendoerfer select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN 8985e83d430SRalf Baechle select DMA_NONCOHERENT 8995e83d430SRalf Baechle select GENERIC_ISA_DMA 9006630a8e5SChristoph Hellwig select HAVE_EISA 9018a118c38SRalf Baechle select HAVE_PCSPKR_PLATFORM 902eb01d42aSChristoph Hellwig select HAVE_PCI 90367e38cf2SRalf Baechle select IRQ_MIPS_CPU 904d865bea4SRalf Baechle select I8253 9055e83d430SRalf Baechle select I8259 9065e83d430SRalf Baechle select ISA 907564c836fSThomas Bogendoerfer select MIPS_L1_CACHE_SHIFT_6 9084a0312fcSThomas Bogendoerfer select SWAP_IO_SPACE if CPU_BIG_ENDIAN 9097cf8053bSRalf Baechle select SYS_HAS_CPU_R4X00 9104a0312fcSThomas Bogendoerfer select SYS_HAS_CPU_R5000 911c066a32aSThomas Bogendoerfer select SYS_HAS_CPU_R10000 9124a0312fcSThomas Bogendoerfer select R5000_CPU_SCACHE 91336a88530SRalf Baechle select SYS_HAS_EARLY_PRINTK 914ed5ba2fbSYoichi Yuasa select SYS_SUPPORTS_32BIT_KERNEL 9157d60717eSKees Cook select SYS_SUPPORTS_64BIT_KERNEL 9164a0312fcSThomas Bogendoerfer select SYS_SUPPORTS_BIG_ENDIAN 9175e83d430SRalf Baechle select SYS_SUPPORTS_HIGHMEM 9185e83d430SRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 91944def342SThomas Bogendoerfer select WAR_R4600_V2_HIT_CACHEOP 9201da177e4SLinus Torvalds help 92114b36af4SThomas Bogendoerfer The SNI RM200/300/400 are MIPS-based machines manufactured by 92214b36af4SThomas Bogendoerfer Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid 9235e83d430SRalf Baechle Technology and now in turn merged with Fujitsu. Say Y here to 9245e83d430SRalf Baechle support this machine type. 9251da177e4SLinus Torvalds 926edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX 927edcaf1a6SAtsushi Nemoto bool "Toshiba TX49 series based machines" 92824a1c023SThomas Bogendoerfer select WAR_TX49XX_ICACHE_INDEX_INV 92923fbee9dSRalf Baechle 93073b4390fSRalf Baechleconfig MIKROTIK_RB532 93173b4390fSRalf Baechle bool "Mikrotik RB532 boards" 93273b4390fSRalf Baechle select CEVT_R4K 93373b4390fSRalf Baechle select CSRC_R4K 93473b4390fSRalf Baechle select DMA_NONCOHERENT 935eb01d42aSChristoph Hellwig select HAVE_PCI 93667e38cf2SRalf Baechle select IRQ_MIPS_CPU 93773b4390fSRalf Baechle select SYS_HAS_CPU_MIPS32_R1 93873b4390fSRalf Baechle select SYS_SUPPORTS_32BIT_KERNEL 93973b4390fSRalf Baechle select SYS_SUPPORTS_LITTLE_ENDIAN 94073b4390fSRalf Baechle select SWAP_IO_SPACE 94173b4390fSRalf Baechle select BOOT_RAW 942d30a2b47SLinus Walleij select GPIOLIB 943930beb5aSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_4 94473b4390fSRalf Baechle help 94573b4390fSRalf Baechle Support the Mikrotik(tm) RouterBoard 532 series, 94673b4390fSRalf Baechle based on the IDT RC32434 SoC. 94773b4390fSRalf Baechle 9489ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC 9499ddebc46SDavid Daney bool "Cavium Networks Octeon SoC based boards" 950a86c7f72SDavid Daney select CEVT_R4K 951ea8c64acSChristoph Hellwig select ARCH_HAS_PHYS_TO_DMA 9521753d50cSChristoph Hellwig select HAVE_RAPIDIO 953d4a451d5SChristoph Hellwig select PHYS_ADDR_T_64BIT 954a86c7f72SDavid Daney select SYS_SUPPORTS_64BIT_KERNEL 955a86c7f72SDavid Daney select SYS_SUPPORTS_BIG_ENDIAN 956f65aad41SRalf Baechle select EDAC_SUPPORT 957b01aec9bSBorislav Petkov select EDAC_ATOMIC_SCRUB 95873569d87SDavid Daney select SYS_SUPPORTS_LITTLE_ENDIAN 95973569d87SDavid Daney select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN 960a86c7f72SDavid Daney select SYS_HAS_EARLY_PRINTK 9615e683389SDavid Daney select SYS_HAS_CPU_CAVIUM_OCTEON 962eb01d42aSChristoph Hellwig select HAVE_PCI 96378bdbbacSMasahiro Yamada select HAVE_PLAT_DELAY 96478bdbbacSMasahiro Yamada select HAVE_PLAT_FW_INIT_CMDLINE 96578bdbbacSMasahiro Yamada select HAVE_PLAT_MEMCPY 966f00e001eSDavid Daney select ZONE_DMA32 967d30a2b47SLinus Walleij select GPIOLIB 9686e511163SDavid Daney select USE_OF 9696e511163SDavid Daney select ARCH_SPARSEMEM_ENABLE 9706e511163SDavid Daney select SYS_SUPPORTS_SMP 9717820b84bSDavid Daney select NR_CPUS_DEFAULT_64 9727820b84bSDavid Daney select MIPS_NR_CPU_NR_MAP_1024 973e326479fSAndrew Bresticker select BUILTIN_DTB 974f766b28aSJulian Braha select MTD 9758c1e6b14SDavid Daney select MTD_COMPLEX_MAPPINGS 97609230cbcSChristoph Hellwig select SWIOTLB 9773ff72be4SSteven J. Hill select SYS_SUPPORTS_RELOCATABLE 978a86c7f72SDavid Daney help 979a86c7f72SDavid Daney This option supports all of the Octeon reference boards from Cavium 980a86c7f72SDavid Daney Networks. It builds a kernel that dynamically determines the Octeon 981a86c7f72SDavid Daney CPU type and supports all known board reference implementations. 982a86c7f72SDavid Daney Some of the supported boards are: 983a86c7f72SDavid Daney EBT3000 984a86c7f72SDavid Daney EBH3000 985a86c7f72SDavid Daney EBH3100 986a86c7f72SDavid Daney Thunder 987a86c7f72SDavid Daney Kodama 988a86c7f72SDavid Daney Hikari 989a86c7f72SDavid Daney Say Y here for most Octeon reference boards. 990a86c7f72SDavid Daney 9911da177e4SLinus Torvaldsendchoice 9921da177e4SLinus Torvalds 993e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig" 9943b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig" 995d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig" 996a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig" 997e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig" 9988945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig" 999eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig" 1000a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig" 10015e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig" 10028ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig" 10032572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig" 1004ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig" 100529c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig" 100638b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig" 100722b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig" 1008a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig" 100971e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig" 101030ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig" 101130ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig" 101238b18f72SRalf Baechle 10135e83d430SRalf Baechleendmenu 10145e83d430SRalf Baechle 10153c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT 10163c9ee7efSAkinobu Mita bool 10173c9ee7efSAkinobu Mita default y 10183c9ee7efSAkinobu Mita 10191da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY 10201da177e4SLinus Torvalds bool 10211da177e4SLinus Torvalds default y 10221da177e4SLinus Torvalds 1023ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER 10241cc89038SAtsushi Nemoto bool 10251cc89038SAtsushi Nemoto default y 10261cc89038SAtsushi Nemoto 10271da177e4SLinus Torvalds# 10281da177e4SLinus Torvalds# Select some configuration options automatically based on user selections. 10291da177e4SLinus Torvalds# 10300e2794b0SRalf Baechleconfig FW_ARC 10311da177e4SLinus Torvalds bool 10321da177e4SLinus Torvalds 103361ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC 103461ed242dSRalf Baechle bool 103561ed242dSRalf Baechle 10369267a30dSMarc St-Jeanconfig BOOT_RAW 10379267a30dSMarc St-Jean bool 10389267a30dSMarc St-Jean 1039217dd11eSRalf Baechleconfig CEVT_BCM1480 1040217dd11eSRalf Baechle bool 1041217dd11eSRalf Baechle 10426457d9fcSYoichi Yuasaconfig CEVT_DS1287 10436457d9fcSYoichi Yuasa bool 10446457d9fcSYoichi Yuasa 10451097c6acSYoichi Yuasaconfig CEVT_GT641XX 10461097c6acSYoichi Yuasa bool 10471097c6acSYoichi Yuasa 104842f77542SRalf Baechleconfig CEVT_R4K 104942f77542SRalf Baechle bool 105042f77542SRalf Baechle 1051217dd11eSRalf Baechleconfig CEVT_SB1250 1052217dd11eSRalf Baechle bool 1053217dd11eSRalf Baechle 1054229f773eSAtsushi Nemotoconfig CEVT_TXX9 1055229f773eSAtsushi Nemoto bool 1056229f773eSAtsushi Nemoto 1057217dd11eSRalf Baechleconfig CSRC_BCM1480 1058217dd11eSRalf Baechle bool 1059217dd11eSRalf Baechle 10604247417dSYoichi Yuasaconfig CSRC_IOASIC 10614247417dSYoichi Yuasa bool 10624247417dSYoichi Yuasa 1063940f6b48SRalf Baechleconfig CSRC_R4K 106438586428SSerge Semin select CLOCKSOURCE_WATCHDOG if CPU_FREQ 1065940f6b48SRalf Baechle bool 1066940f6b48SRalf Baechle 1067217dd11eSRalf Baechleconfig CSRC_SB1250 1068217dd11eSRalf Baechle bool 1069217dd11eSRalf Baechle 1070a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL 1071a7f4df4eSAlex Smith def_bool CSRC_R4K || CLKSRC_MIPS_GIC 1072a7f4df4eSAlex Smith 1073a9aec7feSAtsushi Nemotoconfig GPIO_TXX9 1074d30a2b47SLinus Walleij select GPIOLIB 1075a9aec7feSAtsushi Nemoto bool 1076a9aec7feSAtsushi Nemoto 10770e2794b0SRalf Baechleconfig FW_CFE 1078df78b5c8SAurelien Jarno bool 1079df78b5c8SAurelien Jarno 108040e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES 108140e084a5SRalf Baechle bool 108240e084a5SRalf Baechle 108320d33064SPaul Burtonconfig DMA_PERDEV_COHERENT 108420d33064SPaul Burton bool 1085347cb6afSChristoph Hellwig select ARCH_HAS_SETUP_DMA_OPS 10865748e1b3SChristoph Hellwig select DMA_NONCOHERENT 108720d33064SPaul Burton 10881da177e4SLinus Torvaldsconfig DMA_NONCOHERENT 10891da177e4SLinus Torvalds bool 1090db91427bSChristoph Hellwig # 1091db91427bSChristoph Hellwig # MIPS allows mixing "slightly different" Cacheability and Coherency 1092db91427bSChristoph Hellwig # Attribute bits. It is believed that the uncached access through 1093db91427bSChristoph Hellwig # KSEG1 and the implementation specific "uncached accelerated" used 1094db91427bSChristoph Hellwig # by pgprot_writcombine can be mixed, and the latter sometimes provides 1095db91427bSChristoph Hellwig # significant advantages. 1096db91427bSChristoph Hellwig # 1097419e2f18SChristoph Hellwig select ARCH_HAS_DMA_WRITE_COMBINE 1098fa7e2247SChristoph Hellwig select ARCH_HAS_DMA_PREP_COHERENT 1099f8c55dc6SChristoph Hellwig select ARCH_HAS_SYNC_DMA_FOR_DEVICE 1100fa7e2247SChristoph Hellwig select ARCH_HAS_DMA_SET_UNCACHED 110134dc0ea6SChristoph Hellwig select DMA_NONCOHERENT_MMAP 110234dc0ea6SChristoph Hellwig select NEED_DMA_MAP_STATE 11034ce588cdSRalf Baechle 110436a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK 11051da177e4SLinus Torvalds bool 11061da177e4SLinus Torvalds 11071b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU 1108dbb74540SRalf Baechle bool 1109dbb74540SRalf Baechle 11101da177e4SLinus Torvaldsconfig MIPS_BONITO64 11111da177e4SLinus Torvalds bool 11121da177e4SLinus Torvalds 11131da177e4SLinus Torvaldsconfig MIPS_MSC 11141da177e4SLinus Torvalds bool 11151da177e4SLinus Torvalds 111639b8d525SRalf Baechleconfig SYNC_R4K 111739b8d525SRalf Baechle bool 111839b8d525SRalf Baechle 1119ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP 1120d388d685SMaciej W. Rozycki def_bool n 1121d388d685SMaciej W. Rozycki 11224e0748f5SMarkos Chandrasconfig GENERIC_CSUM 112318d84e2eSAlexander Lobakin def_bool CPU_NO_LOAD_STORE_LR 11244e0748f5SMarkos Chandras 11258313da30SRalf Baechleconfig GENERIC_ISA_DMA 11268313da30SRalf Baechle bool 11278313da30SRalf Baechle select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n 1128a35bee8aSNamhyung Kim select ISA_DMA_API 11298313da30SRalf Baechle 1130aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN 1131aa414dffSRalf Baechle bool 11328313da30SRalf Baechle select GENERIC_ISA_DMA 1133aa414dffSRalf Baechle 113478bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY 113578bdbbacSMasahiro Yamada bool 113678bdbbacSMasahiro Yamada 113778bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE 113878bdbbacSMasahiro Yamada bool 113978bdbbacSMasahiro Yamada 114078bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY 114178bdbbacSMasahiro Yamada bool 114278bdbbacSMasahiro Yamada 1143a35bee8aSNamhyung Kimconfig ISA_DMA_API 1144a35bee8aSNamhyung Kim bool 1145a35bee8aSNamhyung Kim 11468c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE 11478c530ea3SMatt Redfearn bool 11488c530ea3SMatt Redfearn help 11498c530ea3SMatt Redfearn Selected if the platform supports relocating the kernel. 11508c530ea3SMatt Redfearn The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF 11518c530ea3SMatt Redfearn to allow access to command line and entropy sources. 11528c530ea3SMatt Redfearn 11535e83d430SRalf Baechle# 11546b2aac42SMasanari Iida# Endianness selection. Sufficiently obscure so many users don't know what to 11555e83d430SRalf Baechle# answer,so we try hard to limit the available choices. Also the use of a 11565e83d430SRalf Baechle# choice statement should be more obvious to the user. 11575e83d430SRalf Baechle# 11585e83d430SRalf Baechlechoice 11596b2aac42SMasanari Iida prompt "Endianness selection" 11601da177e4SLinus Torvalds help 11611da177e4SLinus Torvalds Some MIPS machines can be configured for either little or big endian 11625e83d430SRalf Baechle byte order. These modes require different kernels and a different 11633cb2fcccSMatt LaPlante Linux distribution. In general there is one preferred byteorder for a 11645e83d430SRalf Baechle particular system but some systems are just as commonly used in the 11653dde6ad8SDavid Sterba one or the other endianness. 11665e83d430SRalf Baechle 11675e83d430SRalf Baechleconfig CPU_BIG_ENDIAN 11685e83d430SRalf Baechle bool "Big endian" 11695e83d430SRalf Baechle depends on SYS_SUPPORTS_BIG_ENDIAN 11705e83d430SRalf Baechle 11715e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN 11725e83d430SRalf Baechle bool "Little endian" 11735e83d430SRalf Baechle depends on SYS_SUPPORTS_LITTLE_ENDIAN 11745e83d430SRalf Baechle 11755e83d430SRalf Baechleendchoice 11765e83d430SRalf Baechle 117722b0763aSDavid Daneyconfig EXPORT_UASM 117822b0763aSDavid Daney bool 117922b0763aSDavid Daney 11802116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION 11812116245eSRalf Baechle bool 11822116245eSRalf Baechle 11835e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN 11845e83d430SRalf Baechle bool 11855e83d430SRalf Baechle 11865e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN 11875e83d430SRalf Baechle bool 11881da177e4SLinus Torvalds 1189aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT 1190aa1762f4SDavid Daney def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE 1191aa1762f4SDavid Daney 11929267a30dSMarc St-Jeanconfig IRQ_MSP_SLP 11939267a30dSMarc St-Jean bool 11949267a30dSMarc St-Jean 11959267a30dSMarc St-Jeanconfig IRQ_MSP_CIC 11969267a30dSMarc St-Jean bool 11979267a30dSMarc St-Jean 11988420fd00SAtsushi Nemotoconfig IRQ_TXX9 11998420fd00SAtsushi Nemoto bool 12008420fd00SAtsushi Nemoto 1201d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX 1202d5ab1a69SYoichi Yuasa bool 1203d5ab1a69SYoichi Yuasa 1204252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0 12051da177e4SLinus Torvalds bool 12061da177e4SLinus Torvalds 1207a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE 1208a57140e9SThomas Bogendoerfer bool 1209a57140e9SThomas Bogendoerfer 12109267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL 12119267a30dSMarc St-Jean bool 12129267a30dSMarc St-Jean 1213a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM 1214a7e07b1aSMarkos Chandras bool 1215a7e07b1aSMarkos Chandras 12161da177e4SLinus Torvaldsconfig SWAP_IO_SPACE 12171da177e4SLinus Torvalds bool 12181da177e4SLinus Torvalds 1219e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG 1220e2defae5SThomas Bogendoerfer bool 1221e2defae5SThomas Bogendoerfer 12225b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2 12235b438c44SThomas Bogendoerfer bool 12245b438c44SThomas Bogendoerfer 1225e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ 1226e2defae5SThomas Bogendoerfer bool 1227e2defae5SThomas Bogendoerfer 1228e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93 1229e2defae5SThomas Bogendoerfer bool 1230e2defae5SThomas Bogendoerfer 1231e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG 1232e2defae5SThomas Bogendoerfer bool 1233e2defae5SThomas Bogendoerfer 1234e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042 1235e2defae5SThomas Bogendoerfer bool 1236e2defae5SThomas Bogendoerfer 1237e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION 1238e2defae5SThomas Bogendoerfer bool 1239e2defae5SThomas Bogendoerfer 12400e2794b0SRalf Baechleconfig FW_ARC32 12415e83d430SRalf Baechle bool 12425e83d430SRalf Baechle 1243aaa9fad3SPaul Bolleconfig FW_SNIPROM 1244231a35d3SThomas Bogendoerfer bool 1245231a35d3SThomas Bogendoerfer 12461da177e4SLinus Torvaldsconfig BOOT_ELF32 12471da177e4SLinus Torvalds bool 12481da177e4SLinus Torvalds 1249930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4 1250930beb5aSFlorian Fainelli bool 1251930beb5aSFlorian Fainelli 1252930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5 1253930beb5aSFlorian Fainelli bool 1254930beb5aSFlorian Fainelli 1255930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6 1256930beb5aSFlorian Fainelli bool 1257930beb5aSFlorian Fainelli 1258930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7 1259930beb5aSFlorian Fainelli bool 1260930beb5aSFlorian Fainelli 12611da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT 12621da177e4SLinus Torvalds int 1263a4c0201eSFlorian Fainelli default "7" if MIPS_L1_CACHE_SHIFT_7 12645432eeb6SKevin Cernekee default "6" if MIPS_L1_CACHE_SHIFT_6 12655432eeb6SKevin Cernekee default "5" if MIPS_L1_CACHE_SHIFT_5 12665432eeb6SKevin Cernekee default "4" if MIPS_L1_CACHE_SHIFT_4 12671da177e4SLinus Torvalds default "5" 12681da177e4SLinus Torvalds 1269e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY 1270e9422427SThomas Bogendoerfer bool 1271e9422427SThomas Bogendoerfer 12721da177e4SLinus Torvaldsconfig ARC_CONSOLE 12731da177e4SLinus Torvalds bool "ARC console support" 1274e2defae5SThomas Bogendoerfer depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN) 12751da177e4SLinus Torvalds 12761da177e4SLinus Torvaldsconfig ARC_MEMORY 12771da177e4SLinus Torvalds bool 12781da177e4SLinus Torvalds 12791da177e4SLinus Torvaldsconfig ARC_PROMLIB 12801da177e4SLinus Torvalds bool 12811da177e4SLinus Torvalds 12820e2794b0SRalf Baechleconfig FW_ARC64 12831da177e4SLinus Torvalds bool 12841da177e4SLinus Torvalds 12851da177e4SLinus Torvaldsconfig BOOT_ELF64 12861da177e4SLinus Torvalds bool 12871da177e4SLinus Torvalds 12881da177e4SLinus Torvaldsmenu "CPU selection" 12891da177e4SLinus Torvalds 12901da177e4SLinus Torvaldschoice 12911da177e4SLinus Torvalds prompt "CPU type" 12921da177e4SLinus Torvalds default CPU_R4X00 12931da177e4SLinus Torvalds 1294268a2d60SJiaxun Yangconfig CPU_LOONGSON64 1295caed1d1bSHuacai Chen bool "Loongson 64-bit CPU" 1296268a2d60SJiaxun Yang depends on SYS_HAS_CPU_LOONGSON64 1297d3bc81beSChristoph Hellwig select ARCH_HAS_PHYS_TO_DMA 129851522217SJiaxun Yang select CPU_MIPSR2 129951522217SJiaxun Yang select CPU_HAS_PREFETCH 13000e476d91SHuacai Chen select CPU_SUPPORTS_64BIT_KERNEL 13010e476d91SHuacai Chen select CPU_SUPPORTS_HIGHMEM 13020e476d91SHuacai Chen select CPU_SUPPORTS_HUGEPAGES 13037507445bSHuacai Chen select CPU_SUPPORTS_MSA 130451522217SJiaxun Yang select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT 130551522217SJiaxun Yang select CPU_MIPSR2_IRQ_VI 13060e476d91SHuacai Chen select WEAK_ORDERING 13070e476d91SHuacai Chen select WEAK_REORDERING_BEYOND_LLSC 13087507445bSHuacai Chen select MIPS_ASID_BITS_VARIABLE 1309b2edcfc8SHuacai Chen select MIPS_PGD_C0_CONTEXT 131017c99d94SHuacai Chen select MIPS_L1_CACHE_SHIFT_6 13117f3b3c2bSJackie Liu select MIPS_FP_SUPPORT 1312d30a2b47SLinus Walleij select GPIOLIB 131309230cbcSChristoph Hellwig select SWIOTLB 13140f78355cSHuacai Chen select HAVE_KVM 13150e476d91SHuacai Chen help 1316caed1d1bSHuacai Chen The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor 1317caed1d1bSHuacai Chen cores implements the MIPS64R2 instruction set with many extensions, 1318caed1d1bSHuacai Chen including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000, 1319caed1d1bSHuacai Chen 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old 1320caed1d1bSHuacai Chen Loongson-2E/2F is not covered here and will be removed in future. 13210e476d91SHuacai Chen 1322caed1d1bSHuacai Chenconfig LOONGSON3_ENHANCEMENT 1323caed1d1bSHuacai Chen bool "New Loongson-3 CPU Enhancements" 13241e820da3SHuacai Chen default n 1325268a2d60SJiaxun Yang depends on CPU_LOONGSON64 13261e820da3SHuacai Chen help 1327caed1d1bSHuacai Chen New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A 13281e820da3SHuacai Chen R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as 1329268a2d60SJiaxun Yang FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User 13301e820da3SHuacai Chen Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer), 13311e820da3SHuacai Chen Fast TLB refill support, etc. 13321e820da3SHuacai Chen 13331e820da3SHuacai Chen This option enable those enhancements which are not probed at run 13341e820da3SHuacai Chen time. If you want a generic kernel to run on all Loongson 3 machines, 13351e820da3SHuacai Chen please say 'N' here. If you want a high-performance kernel to run on 1336caed1d1bSHuacai Chen new Loongson-3 machines only, please say 'Y' here. 13371e820da3SHuacai Chen 1338e02e07e3SHuacai Chenconfig CPU_LOONGSON3_WORKAROUNDS 13393f059a7eSXi Ruoyao bool "Loongson-3 LLSC Workarounds" 1340e02e07e3SHuacai Chen default y if SMP 1341268a2d60SJiaxun Yang depends on CPU_LOONGSON64 1342e02e07e3SHuacai Chen help 1343caed1d1bSHuacai Chen Loongson-3 processors have the llsc issues which require workarounds. 1344e02e07e3SHuacai Chen Without workarounds the system may hang unexpectedly. 1345e02e07e3SHuacai Chen 13463f059a7eSXi Ruoyao Say Y, unless you know what you are doing. 1347e02e07e3SHuacai Chen 1348ec7a9318SWANG Xueruiconfig CPU_LOONGSON3_CPUCFG_EMULATION 1349ec7a9318SWANG Xuerui bool "Emulate the CPUCFG instruction on older Loongson cores" 1350ec7a9318SWANG Xuerui default y 1351ec7a9318SWANG Xuerui depends on CPU_LOONGSON64 1352ec7a9318SWANG Xuerui help 1353ec7a9318SWANG Xuerui Loongson-3A R4 and newer have the CPUCFG instruction available for 1354ec7a9318SWANG Xuerui userland to query CPU capabilities, much like CPUID on x86. This 1355ec7a9318SWANG Xuerui option provides emulation of the instruction on older Loongson 1356ec7a9318SWANG Xuerui cores, back to Loongson-3A1000. 1357ec7a9318SWANG Xuerui 1358ec7a9318SWANG Xuerui If unsure, please say Y. 1359ec7a9318SWANG Xuerui 13603702bba5SWu Zhangjinconfig CPU_LOONGSON2E 13613702bba5SWu Zhangjin bool "Loongson 2E" 13623702bba5SWu Zhangjin depends on SYS_HAS_CPU_LOONGSON2E 1363268a2d60SJiaxun Yang select CPU_LOONGSON2EF 13642a21c730SFuxin Zhang help 13652a21c730SFuxin Zhang The Loongson 2E processor implements the MIPS III instruction set 13662a21c730SFuxin Zhang with many extensions. 13672a21c730SFuxin Zhang 136825985edcSLucas De Marchi It has an internal FPGA northbridge, which is compatible to 13696f7a251aSWu Zhangjin bonito64. 13706f7a251aSWu Zhangjin 13716f7a251aSWu Zhangjinconfig CPU_LOONGSON2F 13726f7a251aSWu Zhangjin bool "Loongson 2F" 13736f7a251aSWu Zhangjin depends on SYS_HAS_CPU_LOONGSON2F 1374268a2d60SJiaxun Yang select CPU_LOONGSON2EF 1375d30a2b47SLinus Walleij select GPIOLIB 13766f7a251aSWu Zhangjin help 13776f7a251aSWu Zhangjin The Loongson 2F processor implements the MIPS III instruction set 13786f7a251aSWu Zhangjin with many extensions. 13796f7a251aSWu Zhangjin 13806f7a251aSWu Zhangjin Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller 13816f7a251aSWu Zhangjin have a similar programming interface with FPGA northbridge used in 13826f7a251aSWu Zhangjin Loongson2E. 13836f7a251aSWu Zhangjin 1384ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B 1385ca585cf9SKelvin Cheung bool "Loongson 1B" 1386ca585cf9SKelvin Cheung depends on SYS_HAS_CPU_LOONGSON1B 1387b2afb64cSHuacai Chen select CPU_LOONGSON32 13889ec88b60SKelvin Cheung select LEDS_GPIO_REGISTER 1389ca585cf9SKelvin Cheung help 1390ca585cf9SKelvin Cheung The Loongson 1B is a 32-bit SoC, which implements the MIPS32 1391968dc5a0S谢致邦 (XIE Zhibang) Release 1 instruction set and part of the MIPS32 Release 2 1392968dc5a0S谢致邦 (XIE Zhibang) instruction set. 1393ca585cf9SKelvin Cheung 139412e3280bSYang Lingconfig CPU_LOONGSON1C 139512e3280bSYang Ling bool "Loongson 1C" 139612e3280bSYang Ling depends on SYS_HAS_CPU_LOONGSON1C 1397b2afb64cSHuacai Chen select CPU_LOONGSON32 139812e3280bSYang Ling select LEDS_GPIO_REGISTER 139912e3280bSYang Ling help 140012e3280bSYang Ling The Loongson 1C is a 32-bit SoC, which implements the MIPS32 1401968dc5a0S谢致邦 (XIE Zhibang) Release 1 instruction set and part of the MIPS32 Release 2 1402968dc5a0S谢致邦 (XIE Zhibang) instruction set. 140312e3280bSYang Ling 14046e760c8dSRalf Baechleconfig CPU_MIPS32_R1 14056e760c8dSRalf Baechle bool "MIPS32 Release 1" 14067cf8053bSRalf Baechle depends on SYS_HAS_CPU_MIPS32_R1 14076e760c8dSRalf Baechle select CPU_HAS_PREFETCH 1408797798c1SRalf Baechle select CPU_SUPPORTS_32BIT_KERNEL 1409ec28f306SRalf Baechle select CPU_SUPPORTS_HIGHMEM 14106e760c8dSRalf Baechle help 14115e83d430SRalf Baechle Choose this option to build a kernel for release 1 or later of the 14121e5f1caaSRalf Baechle MIPS32 architecture. Most modern embedded systems with a 32-bit 14131e5f1caaSRalf Baechle MIPS processor are based on a MIPS32 processor. If you know the 14141e5f1caaSRalf Baechle specific type of processor in your system, choose those that one 14151e5f1caaSRalf Baechle otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 14161e5f1caaSRalf Baechle Release 2 of the MIPS32 architecture is available since several 14171e5f1caaSRalf Baechle years so chances are you even have a MIPS32 Release 2 processor 14181e5f1caaSRalf Baechle in which case you should choose CPU_MIPS32_R2 instead for better 14191e5f1caaSRalf Baechle performance. 14201e5f1caaSRalf Baechle 14211e5f1caaSRalf Baechleconfig CPU_MIPS32_R2 14221e5f1caaSRalf Baechle bool "MIPS32 Release 2" 14237cf8053bSRalf Baechle depends on SYS_HAS_CPU_MIPS32_R2 14241e5f1caaSRalf Baechle select CPU_HAS_PREFETCH 1425797798c1SRalf Baechle select CPU_SUPPORTS_32BIT_KERNEL 1426ec28f306SRalf Baechle select CPU_SUPPORTS_HIGHMEM 1427a5e9a69eSPaul Burton select CPU_SUPPORTS_MSA 14282235a54dSSanjay Lal select HAVE_KVM 14291e5f1caaSRalf Baechle help 14305e83d430SRalf Baechle Choose this option to build a kernel for release 2 or later of the 14316e760c8dSRalf Baechle MIPS32 architecture. Most modern embedded systems with a 32-bit 14326e760c8dSRalf Baechle MIPS processor are based on a MIPS32 processor. If you know the 14336e760c8dSRalf Baechle specific type of processor in your system, choose those that one 14346e760c8dSRalf Baechle otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system. 14351da177e4SLinus Torvalds 1436ab7c01fdSSerge Seminconfig CPU_MIPS32_R5 1437ab7c01fdSSerge Semin bool "MIPS32 Release 5" 1438ab7c01fdSSerge Semin depends on SYS_HAS_CPU_MIPS32_R5 1439ab7c01fdSSerge Semin select CPU_HAS_PREFETCH 1440ab7c01fdSSerge Semin select CPU_SUPPORTS_32BIT_KERNEL 1441ab7c01fdSSerge Semin select CPU_SUPPORTS_HIGHMEM 1442ab7c01fdSSerge Semin select CPU_SUPPORTS_MSA 1443ab7c01fdSSerge Semin select HAVE_KVM 1444ab7c01fdSSerge Semin select MIPS_O32_FP64_SUPPORT 1445ab7c01fdSSerge Semin help 1446ab7c01fdSSerge Semin Choose this option to build a kernel for release 5 or later of the 1447ab7c01fdSSerge Semin MIPS32 architecture. New MIPS processors, starting with the Warrior 1448ab7c01fdSSerge Semin family, are based on a MIPS32r5 processor. If you own an older 1449ab7c01fdSSerge Semin processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 1450ab7c01fdSSerge Semin 14517fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6 1452674d10e2SMarkos Chandras bool "MIPS32 Release 6" 14537fd08ca5SLeonid Yegoshin depends on SYS_HAS_CPU_MIPS32_R6 14547fd08ca5SLeonid Yegoshin select CPU_HAS_PREFETCH 145518d84e2eSAlexander Lobakin select CPU_NO_LOAD_STORE_LR 14567fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_32BIT_KERNEL 14577fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_HIGHMEM 14587fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_MSA 14597fd08ca5SLeonid Yegoshin select HAVE_KVM 14607fd08ca5SLeonid Yegoshin select MIPS_O32_FP64_SUPPORT 14617fd08ca5SLeonid Yegoshin help 14627fd08ca5SLeonid Yegoshin Choose this option to build a kernel for release 6 or later of the 14637fd08ca5SLeonid Yegoshin MIPS32 architecture. New MIPS processors, starting with the Warrior 14647fd08ca5SLeonid Yegoshin family, are based on a MIPS32r6 processor. If you own an older 14657fd08ca5SLeonid Yegoshin processor, you probably need to select MIPS32r1 or MIPS32r2 instead. 14667fd08ca5SLeonid Yegoshin 14676e760c8dSRalf Baechleconfig CPU_MIPS64_R1 14686e760c8dSRalf Baechle bool "MIPS64 Release 1" 14697cf8053bSRalf Baechle depends on SYS_HAS_CPU_MIPS64_R1 1470797798c1SRalf Baechle select CPU_HAS_PREFETCH 1471ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1472ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1473ec28f306SRalf Baechle select CPU_SUPPORTS_HIGHMEM 14749cffd154SDavid Daney select CPU_SUPPORTS_HUGEPAGES 14756e760c8dSRalf Baechle help 14766e760c8dSRalf Baechle Choose this option to build a kernel for release 1 or later of the 14776e760c8dSRalf Baechle MIPS64 architecture. Many modern embedded systems with a 64-bit 14786e760c8dSRalf Baechle MIPS processor are based on a MIPS64 processor. If you know the 14796e760c8dSRalf Baechle specific type of processor in your system, choose those that one 14806e760c8dSRalf Baechle otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 14811e5f1caaSRalf Baechle Release 2 of the MIPS64 architecture is available since several 14821e5f1caaSRalf Baechle years so chances are you even have a MIPS64 Release 2 processor 14831e5f1caaSRalf Baechle in which case you should choose CPU_MIPS64_R2 instead for better 14841e5f1caaSRalf Baechle performance. 14851e5f1caaSRalf Baechle 14861e5f1caaSRalf Baechleconfig CPU_MIPS64_R2 14871e5f1caaSRalf Baechle bool "MIPS64 Release 2" 14887cf8053bSRalf Baechle depends on SYS_HAS_CPU_MIPS64_R2 1489797798c1SRalf Baechle select CPU_HAS_PREFETCH 14901e5f1caaSRalf Baechle select CPU_SUPPORTS_32BIT_KERNEL 14911e5f1caaSRalf Baechle select CPU_SUPPORTS_64BIT_KERNEL 1492ec28f306SRalf Baechle select CPU_SUPPORTS_HIGHMEM 14939cffd154SDavid Daney select CPU_SUPPORTS_HUGEPAGES 1494a5e9a69eSPaul Burton select CPU_SUPPORTS_MSA 149540a2df49SJames Hogan select HAVE_KVM 14961e5f1caaSRalf Baechle help 14971e5f1caaSRalf Baechle Choose this option to build a kernel for release 2 or later of the 14981e5f1caaSRalf Baechle MIPS64 architecture. Many modern embedded systems with a 64-bit 14991e5f1caaSRalf Baechle MIPS processor are based on a MIPS64 processor. If you know the 15001e5f1caaSRalf Baechle specific type of processor in your system, choose those that one 15011e5f1caaSRalf Baechle otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system. 15021da177e4SLinus Torvalds 1503ab7c01fdSSerge Seminconfig CPU_MIPS64_R5 1504ab7c01fdSSerge Semin bool "MIPS64 Release 5" 1505ab7c01fdSSerge Semin depends on SYS_HAS_CPU_MIPS64_R5 1506ab7c01fdSSerge Semin select CPU_HAS_PREFETCH 1507ab7c01fdSSerge Semin select CPU_SUPPORTS_32BIT_KERNEL 1508ab7c01fdSSerge Semin select CPU_SUPPORTS_64BIT_KERNEL 1509ab7c01fdSSerge Semin select CPU_SUPPORTS_HIGHMEM 1510ab7c01fdSSerge Semin select CPU_SUPPORTS_HUGEPAGES 1511ab7c01fdSSerge Semin select CPU_SUPPORTS_MSA 1512ab7c01fdSSerge Semin select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 1513ab7c01fdSSerge Semin select HAVE_KVM 1514ab7c01fdSSerge Semin help 1515ab7c01fdSSerge Semin Choose this option to build a kernel for release 5 or later of the 1516ab7c01fdSSerge Semin MIPS64 architecture. This is a intermediate MIPS architecture 1517ab7c01fdSSerge Semin release partly implementing release 6 features. Though there is no 1518ab7c01fdSSerge Semin any hardware known to be based on this release. 1519ab7c01fdSSerge Semin 15207fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6 1521674d10e2SMarkos Chandras bool "MIPS64 Release 6" 15227fd08ca5SLeonid Yegoshin depends on SYS_HAS_CPU_MIPS64_R6 15237fd08ca5SLeonid Yegoshin select CPU_HAS_PREFETCH 152418d84e2eSAlexander Lobakin select CPU_NO_LOAD_STORE_LR 15257fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_32BIT_KERNEL 15267fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_64BIT_KERNEL 15277fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_HIGHMEM 1528afd375dcSPaul Burton select CPU_SUPPORTS_HUGEPAGES 15297fd08ca5SLeonid Yegoshin select CPU_SUPPORTS_MSA 15302e6c7747SJames Hogan select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32 153140a2df49SJames Hogan select HAVE_KVM 15327fd08ca5SLeonid Yegoshin help 15337fd08ca5SLeonid Yegoshin Choose this option to build a kernel for release 6 or later of the 15347fd08ca5SLeonid Yegoshin MIPS64 architecture. New MIPS processors, starting with the Warrior 15357fd08ca5SLeonid Yegoshin family, are based on a MIPS64r6 processor. If you own an older 15367fd08ca5SLeonid Yegoshin processor, you probably need to select MIPS64r1 or MIPS64r2 instead. 15377fd08ca5SLeonid Yegoshin 1538281e3aeaSSerge Seminconfig CPU_P5600 1539281e3aeaSSerge Semin bool "MIPS Warrior P5600" 1540281e3aeaSSerge Semin depends on SYS_HAS_CPU_P5600 1541281e3aeaSSerge Semin select CPU_HAS_PREFETCH 1542281e3aeaSSerge Semin select CPU_SUPPORTS_32BIT_KERNEL 1543281e3aeaSSerge Semin select CPU_SUPPORTS_HIGHMEM 1544281e3aeaSSerge Semin select CPU_SUPPORTS_MSA 1545281e3aeaSSerge Semin select CPU_SUPPORTS_CPUFREQ 1546281e3aeaSSerge Semin select CPU_MIPSR2_IRQ_VI 1547281e3aeaSSerge Semin select CPU_MIPSR2_IRQ_EI 1548281e3aeaSSerge Semin select HAVE_KVM 1549281e3aeaSSerge Semin select MIPS_O32_FP64_SUPPORT 1550281e3aeaSSerge Semin help 1551281e3aeaSSerge Semin Choose this option to build a kernel for MIPS Warrior P5600 CPU. 1552281e3aeaSSerge Semin It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes, 1553281e3aeaSSerge Semin MMU with two-levels TLB, UCA, MSA, MDU core level features and system 1554281e3aeaSSerge Semin level features like up to six P5600 calculation cores, CM2 with L2 1555281e3aeaSSerge Semin cache, IOCU/IOMMU (though might be unused depending on the system- 1556281e3aeaSSerge Semin specific IP core configuration), GIC, CPC, virtualisation module, 1557281e3aeaSSerge Semin eJTAG and PDtrace. 1558281e3aeaSSerge Semin 15591da177e4SLinus Torvaldsconfig CPU_R3000 15601da177e4SLinus Torvalds bool "R3000" 15617cf8053bSRalf Baechle depends on SYS_HAS_CPU_R3000 1562f7062ddbSRalf Baechle select CPU_HAS_WB 156354746829SPaul Burton select CPU_R3K_TLB 1564ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1565797798c1SRalf Baechle select CPU_SUPPORTS_HIGHMEM 15661da177e4SLinus Torvalds help 15671da177e4SLinus Torvalds Please make sure to pick the right CPU type. Linux/MIPS is not 15681da177e4SLinus Torvalds designed to be generic, i.e. Kernels compiled for R3000 CPUs will 15691da177e4SLinus Torvalds *not* work on R4000 machines and vice versa. However, since most 15701da177e4SLinus Torvalds of the supported machines have an R4000 (or similar) CPU, R4x00 15711da177e4SLinus Torvalds might be a safe bet. If the resulting kernel does not work, 15721da177e4SLinus Torvalds try to recompile with R3000. 15731da177e4SLinus Torvalds 157465ce6197SLauri Kasanenconfig CPU_R4300 157565ce6197SLauri Kasanen bool "R4300" 157665ce6197SLauri Kasanen depends on SYS_HAS_CPU_R4300 157765ce6197SLauri Kasanen select CPU_SUPPORTS_32BIT_KERNEL 157865ce6197SLauri Kasanen select CPU_SUPPORTS_64BIT_KERNEL 157965ce6197SLauri Kasanen help 158065ce6197SLauri Kasanen MIPS Technologies R4300-series processors. 158165ce6197SLauri Kasanen 15821da177e4SLinus Torvaldsconfig CPU_R4X00 15831da177e4SLinus Torvalds bool "R4x00" 15847cf8053bSRalf Baechle depends on SYS_HAS_CPU_R4X00 1585ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1586ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1587970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 15881da177e4SLinus Torvalds help 15891da177e4SLinus Torvalds MIPS Technologies R4000-series processors other than 4300, including 15901da177e4SLinus Torvalds the R4000, R4400, R4600, and 4700. 15911da177e4SLinus Torvalds 15921da177e4SLinus Torvaldsconfig CPU_TX49XX 15931da177e4SLinus Torvalds bool "R49XX" 15947cf8053bSRalf Baechle depends on SYS_HAS_CPU_TX49XX 1595de862b48SAtsushi Nemoto select CPU_HAS_PREFETCH 1596ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1597ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1598970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 15991da177e4SLinus Torvalds 16001da177e4SLinus Torvaldsconfig CPU_R5000 16011da177e4SLinus Torvalds bool "R5000" 16027cf8053bSRalf Baechle depends on SYS_HAS_CPU_R5000 1603ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1604ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1605970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 16061da177e4SLinus Torvalds help 16071da177e4SLinus Torvalds MIPS Technologies R5000-series processors other than the Nevada. 16081da177e4SLinus Torvalds 1609542c1020SShinya Kuribayashiconfig CPU_R5500 1610542c1020SShinya Kuribayashi bool "R5500" 1611542c1020SShinya Kuribayashi depends on SYS_HAS_CPU_R5500 1612542c1020SShinya Kuribayashi select CPU_SUPPORTS_32BIT_KERNEL 1613542c1020SShinya Kuribayashi select CPU_SUPPORTS_64BIT_KERNEL 16149cffd154SDavid Daney select CPU_SUPPORTS_HUGEPAGES 1615542c1020SShinya Kuribayashi help 1616542c1020SShinya Kuribayashi NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV 1617542c1020SShinya Kuribayashi instruction set. 1618542c1020SShinya Kuribayashi 16191da177e4SLinus Torvaldsconfig CPU_NEVADA 16201da177e4SLinus Torvalds bool "RM52xx" 16217cf8053bSRalf Baechle depends on SYS_HAS_CPU_NEVADA 1622ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1623ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1624970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 16251da177e4SLinus Torvalds help 16261da177e4SLinus Torvalds QED / PMC-Sierra RM52xx-series ("Nevada") processors. 16271da177e4SLinus Torvalds 16281da177e4SLinus Torvaldsconfig CPU_R10000 16291da177e4SLinus Torvalds bool "R10000" 16307cf8053bSRalf Baechle depends on SYS_HAS_CPU_R10000 16315e83d430SRalf Baechle select CPU_HAS_PREFETCH 1632ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1633ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1634797798c1SRalf Baechle select CPU_SUPPORTS_HIGHMEM 1635970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 16361da177e4SLinus Torvalds help 16371da177e4SLinus Torvalds MIPS Technologies R10000-series processors. 16381da177e4SLinus Torvalds 16391da177e4SLinus Torvaldsconfig CPU_RM7000 16401da177e4SLinus Torvalds bool "RM7000" 16417cf8053bSRalf Baechle depends on SYS_HAS_CPU_RM7000 16425e83d430SRalf Baechle select CPU_HAS_PREFETCH 1643ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1644ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1645797798c1SRalf Baechle select CPU_SUPPORTS_HIGHMEM 1646970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 16471da177e4SLinus Torvalds 16481da177e4SLinus Torvaldsconfig CPU_SB1 16491da177e4SLinus Torvalds bool "SB1" 16507cf8053bSRalf Baechle depends on SYS_HAS_CPU_SB1 1651ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_32BIT_KERNEL 1652ed5ba2fbSYoichi Yuasa select CPU_SUPPORTS_64BIT_KERNEL 1653797798c1SRalf Baechle select CPU_SUPPORTS_HIGHMEM 1654970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 16550004a9dfSRalf Baechle select WEAK_ORDERING 16561da177e4SLinus Torvalds 1657a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON 1658a86c7f72SDavid Daney bool "Cavium Octeon processor" 16595e683389SDavid Daney depends on SYS_HAS_CPU_CAVIUM_OCTEON 1660a86c7f72SDavid Daney select CPU_HAS_PREFETCH 1661a86c7f72SDavid Daney select CPU_SUPPORTS_64BIT_KERNEL 1662a86c7f72SDavid Daney select WEAK_ORDERING 1663a86c7f72SDavid Daney select CPU_SUPPORTS_HIGHMEM 16649cffd154SDavid Daney select CPU_SUPPORTS_HUGEPAGES 1665df115f3eSBen Hutchings select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1666df115f3eSBen Hutchings select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN 1667930beb5aSFlorian Fainelli select MIPS_L1_CACHE_SHIFT_7 16680ae3abcdSJames Hogan select HAVE_KVM 1669a86c7f72SDavid Daney help 1670a86c7f72SDavid Daney The Cavium Octeon processor is a highly integrated chip containing 1671a86c7f72SDavid Daney many ethernet hardware widgets for networking tasks. The processor 1672a86c7f72SDavid Daney can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets. 1673a86c7f72SDavid Daney Full details can be found at http://www.caviumnetworks.com. 1674a86c7f72SDavid Daney 1675cd746249SJonas Gorskiconfig CPU_BMIPS 1676cd746249SJonas Gorski bool "Broadcom BMIPS" 1677cd746249SJonas Gorski depends on SYS_HAS_CPU_BMIPS 1678cd746249SJonas Gorski select CPU_MIPS32 1679fe7f62c0SJonas Gorski select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300 1680cd746249SJonas Gorski select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350 1681cd746249SJonas Gorski select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380 1682cd746249SJonas Gorski select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000 1683cd746249SJonas Gorski select CPU_SUPPORTS_32BIT_KERNEL 1684cd746249SJonas Gorski select DMA_NONCOHERENT 168567e38cf2SRalf Baechle select IRQ_MIPS_CPU 1686cd746249SJonas Gorski select SWAP_IO_SPACE 1687cd746249SJonas Gorski select WEAK_ORDERING 1688c1c0c461SKevin Cernekee select CPU_SUPPORTS_HIGHMEM 168969aaf9c8SJonas Gorski select CPU_HAS_PREFETCH 1690a8d709b0SMarkus Mayer select CPU_SUPPORTS_CPUFREQ 1691a8d709b0SMarkus Mayer select MIPS_EXTERNAL_TIMER 1692bf8bde41SFlorian Fainelli select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU 1693c1c0c461SKevin Cernekee help 1694fe7f62c0SJonas Gorski Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors. 1695c1c0c461SKevin Cernekee 16961da177e4SLinus Torvaldsendchoice 16971da177e4SLinus Torvalds 1698a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES 1699a6e18781SLeonid Yegoshin bool "MIPS32 Release 3.5 Features" 1700a6e18781SLeonid Yegoshin depends on SYS_HAS_CPU_MIPS32_R3_5 1701281e3aeaSSerge Semin depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \ 1702281e3aeaSSerge Semin CPU_P5600 1703a6e18781SLeonid Yegoshin help 1704a6e18781SLeonid Yegoshin Choose this option to build a kernel for release 2 or later of the 1705a6e18781SLeonid Yegoshin MIPS32 architecture including features from the 3.5 release such as 1706a6e18781SLeonid Yegoshin support for Enhanced Virtual Addressing (EVA). 1707a6e18781SLeonid Yegoshin 1708a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA 1709a6e18781SLeonid Yegoshin bool "Enhanced Virtual Addressing (EVA)" 1710a6e18781SLeonid Yegoshin depends on CPU_MIPS32_3_5_FEATURES 1711a6e18781SLeonid Yegoshin select EVA 1712a6e18781SLeonid Yegoshin default y 1713a6e18781SLeonid Yegoshin help 1714a6e18781SLeonid Yegoshin Choose this option if you want to enable the Enhanced Virtual 1715a6e18781SLeonid Yegoshin Addressing (EVA) on your MIPS32 core (such as proAptiv). 1716a6e18781SLeonid Yegoshin One of its primary benefits is an increase in the maximum size 1717a6e18781SLeonid Yegoshin of lowmem (up to 3GB). If unsure, say 'N' here. 1718a6e18781SLeonid Yegoshin 1719c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES 1720c5b36783SSteven J. Hill bool "MIPS32 Release 5 Features" 1721c5b36783SSteven J. Hill depends on SYS_HAS_CPU_MIPS32_R5 1722281e3aeaSSerge Semin depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600 1723c5b36783SSteven J. Hill help 1724c5b36783SSteven J. Hill Choose this option to build a kernel for release 2 or later of the 1725c5b36783SSteven J. Hill MIPS32 architecture including features from release 5 such as 1726c5b36783SSteven J. Hill support for Extended Physical Addressing (XPA). 1727c5b36783SSteven J. Hill 1728c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA 1729c5b36783SSteven J. Hill bool "Extended Physical Addressing (XPA)" 1730c5b36783SSteven J. Hill depends on CPU_MIPS32_R5_FEATURES 1731c5b36783SSteven J. Hill depends on !EVA 1732c5b36783SSteven J. Hill depends on !PAGE_SIZE_4KB 1733c5b36783SSteven J. Hill depends on SYS_SUPPORTS_HIGHMEM 1734c5b36783SSteven J. Hill select XPA 1735c5b36783SSteven J. Hill select HIGHMEM 1736d4a451d5SChristoph Hellwig select PHYS_ADDR_T_64BIT 1737c5b36783SSteven J. Hill default n 1738c5b36783SSteven J. Hill help 1739c5b36783SSteven J. Hill Choose this option if you want to enable the Extended Physical 1740c5b36783SSteven J. Hill Addressing (XPA) on your MIPS32 core (such as P5600 series). The 1741c5b36783SSteven J. Hill benefit is to increase physical addressing equal to or greater 1742c5b36783SSteven J. Hill than 40 bits. Note that this has the side effect of turning on 1743c5b36783SSteven J. Hill 64-bit addressing which in turn makes the PTEs 64-bit in size. 1744c5b36783SSteven J. Hill If unsure, say 'N' here. 1745c5b36783SSteven J. Hill 1746622844bfSWu Zhangjinif CPU_LOONGSON2F 1747622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS 1748622844bfSWu Zhangjin bool 1749622844bfSWu Zhangjin 1750622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS 1751622844bfSWu Zhangjin bool 1752622844bfSWu Zhangjin 1753622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS 1754622844bfSWu Zhangjin bool "Loongson 2F Workarounds" 1755622844bfSWu Zhangjin default y 1756622844bfSWu Zhangjin select CPU_NOP_WORKAROUNDS 1757622844bfSWu Zhangjin select CPU_JUMP_WORKAROUNDS 1758622844bfSWu Zhangjin help 1759622844bfSWu Zhangjin Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which 1760622844bfSWu Zhangjin require workarounds. Without workarounds the system may hang 1761622844bfSWu Zhangjin unexpectedly. For more information please refer to the gas 1762622844bfSWu Zhangjin -mfix-loongson2f-nop and -mfix-loongson2f-jump options. 1763622844bfSWu Zhangjin 1764622844bfSWu Zhangjin Loongson 2F03 and later have fixed these issues and no workarounds 1765622844bfSWu Zhangjin are needed. The workarounds have no significant side effect on them 1766622844bfSWu Zhangjin but may decrease the performance of the system so this option should 1767622844bfSWu Zhangjin be disabled unless the kernel is intended to be run on 2F01 or 2F02 1768622844bfSWu Zhangjin systems. 1769622844bfSWu Zhangjin 1770622844bfSWu Zhangjin If unsure, please say Y. 1771622844bfSWu Zhangjinendif # CPU_LOONGSON2F 1772622844bfSWu Zhangjin 17731b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT 17741b93b3c3SWu Zhangjin bool 17751b93b3c3SWu Zhangjin select HAVE_KERNEL_GZIP 17761b93b3c3SWu Zhangjin select HAVE_KERNEL_BZIP2 177731c4867dSFlorian Fainelli select HAVE_KERNEL_LZ4 17781b93b3c3SWu Zhangjin select HAVE_KERNEL_LZMA 1779fe1d45e0SWu Zhangjin select HAVE_KERNEL_LZO 17804e23eb63SFlorian Fainelli select HAVE_KERNEL_XZ 1781a510b616SPaul Cercueil select HAVE_KERNEL_ZSTD 17821b93b3c3SWu Zhangjin 17831b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550 17841b93b3c3SWu Zhangjin bool 17851b93b3c3SWu Zhangjin select SYS_SUPPORTS_ZBOOT 17861b93b3c3SWu Zhangjin 1787dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM 1788dbb98314SAlban Bedel bool 1789dbb98314SAlban Bedel select SYS_SUPPORTS_ZBOOT 1790dbb98314SAlban Bedel 1791268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF 17923702bba5SWu Zhangjin bool 17933702bba5SWu Zhangjin select CPU_SUPPORTS_32BIT_KERNEL 17943702bba5SWu Zhangjin select CPU_SUPPORTS_64BIT_KERNEL 17953702bba5SWu Zhangjin select CPU_SUPPORTS_HIGHMEM 1796970d032fSRalf Baechle select CPU_SUPPORTS_HUGEPAGES 1797e905086eSChristoph Hellwig select ARCH_HAS_PHYS_TO_DMA 17983702bba5SWu Zhangjin 1799b2afb64cSHuacai Chenconfig CPU_LOONGSON32 1800ca585cf9SKelvin Cheung bool 1801ca585cf9SKelvin Cheung select CPU_MIPS32 18027e280f6bSJiaxun Yang select CPU_MIPSR2 1803ca585cf9SKelvin Cheung select CPU_HAS_PREFETCH 1804ca585cf9SKelvin Cheung select CPU_SUPPORTS_32BIT_KERNEL 1805ca585cf9SKelvin Cheung select CPU_SUPPORTS_HIGHMEM 1806f29ad10dSKelvin Cheung select CPU_SUPPORTS_CPUFREQ 1807ca585cf9SKelvin Cheung 1808fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300 180904fa8bf7SJonas Gorski select SMP_UP if SMP 18101bbb6c1bSKevin Cernekee bool 1811cd746249SJonas Gorski 1812cd746249SJonas Gorskiconfig CPU_BMIPS4350 1813cd746249SJonas Gorski bool 1814cd746249SJonas Gorski select SYS_SUPPORTS_SMP 1815cd746249SJonas Gorski select SYS_SUPPORTS_HOTPLUG_CPU 1816cd746249SJonas Gorski 1817cd746249SJonas Gorskiconfig CPU_BMIPS4380 1818cd746249SJonas Gorski bool 1819bbf2ba67SKevin Cernekee select MIPS_L1_CACHE_SHIFT_6 1820cd746249SJonas Gorski select SYS_SUPPORTS_SMP 1821cd746249SJonas Gorski select SYS_SUPPORTS_HOTPLUG_CPU 1822b4720809SFlorian Fainelli select CPU_HAS_RIXI 1823cd746249SJonas Gorski 1824cd746249SJonas Gorskiconfig CPU_BMIPS5000 1825cd746249SJonas Gorski bool 1826cd746249SJonas Gorski select MIPS_CPU_SCACHE 1827bbf2ba67SKevin Cernekee select MIPS_L1_CACHE_SHIFT_7 1828cd746249SJonas Gorski select SYS_SUPPORTS_SMP 1829cd746249SJonas Gorski select SYS_SUPPORTS_HOTPLUG_CPU 1830b4720809SFlorian Fainelli select CPU_HAS_RIXI 18311bbb6c1bSKevin Cernekee 1832268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64 18330e476d91SHuacai Chen bool 18340e476d91SHuacai Chen select CPU_SUPPORTS_CPUFREQ 1835b2edcfc8SHuacai Chen select CPU_HAS_RIXI 18360e476d91SHuacai Chen 18373702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E 18382a21c730SFuxin Zhang bool 18392a21c730SFuxin Zhang 18406f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F 18416f7a251aSWu Zhangjin bool 184255045ff5SWu Zhangjin select CPU_SUPPORTS_CPUFREQ 184355045ff5SWu Zhangjin select CPU_SUPPORTS_ADDRWINCFG if 64BIT 18446f7a251aSWu Zhangjin 1845ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B 1846ca585cf9SKelvin Cheung bool 1847ca585cf9SKelvin Cheung 184812e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C 184912e3280bSYang Ling bool 185012e3280bSYang Ling 18517cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1 18527cf8053bSRalf Baechle bool 18537cf8053bSRalf Baechle 18547cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2 18557cf8053bSRalf Baechle bool 18567cf8053bSRalf Baechle 1857a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5 1858a6e18781SLeonid Yegoshin bool 1859a6e18781SLeonid Yegoshin 1860c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5 1861c5b36783SSteven J. Hill bool 18629ae1f262SPaul Burton select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1863c5b36783SSteven J. Hill 18647fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6 18657fd08ca5SLeonid Yegoshin bool 18669ae1f262SPaul Burton select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 18677fd08ca5SLeonid Yegoshin 18687cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1 18697cf8053bSRalf Baechle bool 18707cf8053bSRalf Baechle 18717cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2 18727cf8053bSRalf Baechle bool 18737cf8053bSRalf Baechle 1874fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5 1875fd4eb90bSLukas Bulwahn bool 1876fd4eb90bSLukas Bulwahn select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1877fd4eb90bSLukas Bulwahn 18787fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6 18797fd08ca5SLeonid Yegoshin bool 18809ae1f262SPaul Burton select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 18817fd08ca5SLeonid Yegoshin 1882281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600 1883281e3aeaSSerge Semin bool 1884281e3aeaSSerge Semin select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 1885281e3aeaSSerge Semin 18867cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000 18877cf8053bSRalf Baechle bool 18887cf8053bSRalf Baechle 188965ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300 189065ce6197SLauri Kasanen bool 189165ce6197SLauri Kasanen 18927cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00 18937cf8053bSRalf Baechle bool 18947cf8053bSRalf Baechle 18957cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX 18967cf8053bSRalf Baechle bool 18977cf8053bSRalf Baechle 18987cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000 18997cf8053bSRalf Baechle bool 19007cf8053bSRalf Baechle 1901542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500 1902542c1020SShinya Kuribayashi bool 1903542c1020SShinya Kuribayashi 19047cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA 19057cf8053bSRalf Baechle bool 19067cf8053bSRalf Baechle 19077cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000 19087cf8053bSRalf Baechle bool 19099ae1f262SPaul Burton select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT 19107cf8053bSRalf Baechle 19117cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000 19127cf8053bSRalf Baechle bool 19137cf8053bSRalf Baechle 19147cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1 19157cf8053bSRalf Baechle bool 19167cf8053bSRalf Baechle 19175e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON 19185e683389SDavid Daney bool 19195e683389SDavid Daney 1920cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS 1921c1c0c461SKevin Cernekee bool 1922c1c0c461SKevin Cernekee 1923fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300 1924c1c0c461SKevin Cernekee bool 1925cd746249SJonas Gorski select SYS_HAS_CPU_BMIPS 1926c1c0c461SKevin Cernekee 1927c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350 1928c1c0c461SKevin Cernekee bool 1929cd746249SJonas Gorski select SYS_HAS_CPU_BMIPS 1930c1c0c461SKevin Cernekee 1931c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380 1932c1c0c461SKevin Cernekee bool 1933cd746249SJonas Gorski select SYS_HAS_CPU_BMIPS 1934c1c0c461SKevin Cernekee 1935c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000 1936c1c0c461SKevin Cernekee bool 1937cd746249SJonas Gorski select SYS_HAS_CPU_BMIPS 1938f263f2a2SHauke Mehrtens select ARCH_HAS_SYNC_DMA_FOR_CPU 1939c1c0c461SKevin Cernekee 194017099b11SRalf Baechle# 194117099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W 194217099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC 194317099b11SRalf Baechle# 19440004a9dfSRalf Baechleconfig WEAK_ORDERING 19450004a9dfSRalf Baechle bool 194617099b11SRalf Baechle 194717099b11SRalf Baechle# 194817099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC 194917099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC 195017099b11SRalf Baechle# 195117099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC 195217099b11SRalf Baechle bool 19535e83d430SRalf Baechleendmenu 19545e83d430SRalf Baechle 19555e83d430SRalf Baechle# 19565e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture 19575e83d430SRalf Baechle# 19585e83d430SRalf Baechleconfig CPU_MIPS32 19595e83d430SRalf Baechle bool 1960ab7c01fdSSerge Semin default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \ 1961281e3aeaSSerge Semin CPU_MIPS32_R6 || CPU_P5600 19625e83d430SRalf Baechle 19635e83d430SRalf Baechleconfig CPU_MIPS64 19645e83d430SRalf Baechle bool 1965ab7c01fdSSerge Semin default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \ 19665a4fa44fSJason A. Donenfeld CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON 19675e83d430SRalf Baechle 19685e83d430SRalf Baechle# 196957eeacedSPaul Burton# These indicate the revision of the architecture 19705e83d430SRalf Baechle# 19715e83d430SRalf Baechleconfig CPU_MIPSR1 19725e83d430SRalf Baechle bool 19735e83d430SRalf Baechle default y if CPU_MIPS32_R1 || CPU_MIPS64_R1 19745e83d430SRalf Baechle 19755e83d430SRalf Baechleconfig CPU_MIPSR2 19765e83d430SRalf Baechle bool 1977a86c7f72SDavid Daney default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON 19788256b17eSFlorian Fainelli select CPU_HAS_RIXI 1979ba9196d2SJiaxun Yang select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 1980a7e07b1aSMarkos Chandras select MIPS_SPRAM 19815e83d430SRalf Baechle 1982ab7c01fdSSerge Seminconfig CPU_MIPSR5 1983ab7c01fdSSerge Semin bool 1984281e3aeaSSerge Semin default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600 1985ab7c01fdSSerge Semin select CPU_HAS_RIXI 1986ab7c01fdSSerge Semin select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 1987ab7c01fdSSerge Semin select MIPS_SPRAM 1988ab7c01fdSSerge Semin 19897fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6 19907fd08ca5SLeonid Yegoshin bool 19917fd08ca5SLeonid Yegoshin default y if CPU_MIPS32_R6 || CPU_MIPS64_R6 19928256b17eSFlorian Fainelli select CPU_HAS_RIXI 1993ba9196d2SJiaxun Yang select CPU_HAS_DIEI if !CPU_DIEI_BROKEN 199487321fddSPaul Burton select HAVE_ARCH_BITREVERSE 19952db003a5SPaul Burton select MIPS_ASID_BITS_VARIABLE 19964a5dc51eSMarcin Nowakowski select MIPS_CRC_SUPPORT 1997a7e07b1aSMarkos Chandras select MIPS_SPRAM 19985e83d430SRalf Baechle 199957eeacedSPaul Burtonconfig TARGET_ISA_REV 200057eeacedSPaul Burton int 200157eeacedSPaul Burton default 1 if CPU_MIPSR1 200257eeacedSPaul Burton default 2 if CPU_MIPSR2 2003ab7c01fdSSerge Semin default 5 if CPU_MIPSR5 200457eeacedSPaul Burton default 6 if CPU_MIPSR6 200557eeacedSPaul Burton default 0 200657eeacedSPaul Burton help 200757eeacedSPaul Burton Reflects the ISA revision being targeted by the kernel build. This 200857eeacedSPaul Burton is effectively the Kconfig equivalent of MIPS_ISA_REV. 200957eeacedSPaul Burton 2010a6e18781SLeonid Yegoshinconfig EVA 2011a6e18781SLeonid Yegoshin bool 2012a6e18781SLeonid Yegoshin 2013c5b36783SSteven J. Hillconfig XPA 2014c5b36783SSteven J. Hill bool 2015c5b36783SSteven J. Hill 20165e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL 20175e83d430SRalf Baechle bool 20185e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL 20195e83d430SRalf Baechle bool 20205e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL 20215e83d430SRalf Baechle bool 20225e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL 20235e83d430SRalf Baechle bool 202455045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ 202555045ff5SWu Zhangjin bool 202655045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG 202755045ff5SWu Zhangjin bool 20289cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES 20299cffd154SDavid Daney bool 2030a670c82dSLukas Bulwahn depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA)) 203182622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT 203282622284SDavid Daney bool 2033c6972fb9SHuang Pei depends on 64BIT 203495b8a5e0SThomas Bogendoerfer default y if (CPU_MIPSR2 || CPU_MIPSR6) 20355e83d430SRalf Baechle 20368192c9eaSDavid Daney# 20378192c9eaSDavid Daney# Set to y for ptrace access to watch registers. 20388192c9eaSDavid Daney# 20398192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS 20408192c9eaSDavid Daney bool 2041679eb637SJames Hogan default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6 20428192c9eaSDavid Daney 20435e83d430SRalf Baechlemenu "Kernel type" 20445e83d430SRalf Baechle 20455e83d430SRalf Baechlechoice 20465e83d430SRalf Baechle prompt "Kernel code model" 20475e83d430SRalf Baechle help 20485e83d430SRalf Baechle You should only select this option if you have a workload that 20495e83d430SRalf Baechle actually benefits from 64-bit processing or if your machine has 20505e83d430SRalf Baechle large memory. You will only be presented a single option in this 20515e83d430SRalf Baechle menu if your system does not support both 32-bit and 64-bit kernels. 20525e83d430SRalf Baechle 20535e83d430SRalf Baechleconfig 32BIT 20545e83d430SRalf Baechle bool "32-bit kernel" 20555e83d430SRalf Baechle depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL 20565e83d430SRalf Baechle select TRAD_SIGNALS 20575e83d430SRalf Baechle help 20585e83d430SRalf Baechle Select this option if you want to build a 32-bit kernel. 2059f17c4ca3SRalf Baechle 20605e83d430SRalf Baechleconfig 64BIT 20615e83d430SRalf Baechle bool "64-bit kernel" 20625e83d430SRalf Baechle depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL 20635e83d430SRalf Baechle help 20645e83d430SRalf Baechle Select this option if you want to build a 64-bit kernel. 20655e83d430SRalf Baechle 20665e83d430SRalf Baechleendchoice 20675e83d430SRalf Baechle 20681e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48 20691e321fa9SLeonid Yegoshin bool "48 bits virtual memory" 20701e321fa9SLeonid Yegoshin depends on 64BIT 20711e321fa9SLeonid Yegoshin help 20723377e227SAlex Belits Support a maximum at least 48 bits of application virtual 20733377e227SAlex Belits memory. Default is 40 bits or less, depending on the CPU. 20743377e227SAlex Belits For page sizes 16k and above, this option results in a small 20753377e227SAlex Belits memory overhead for page tables. For 4k page size, a fourth 20763377e227SAlex Belits level of page tables is added which imposes both a memory 20773377e227SAlex Belits overhead as well as slower TLB fault handling. 20783377e227SAlex Belits 20791e321fa9SLeonid Yegoshin If unsure, say N. 20801e321fa9SLeonid Yegoshin 208179876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS 208279876cc1SYunQiang Su hex "Compressed kernel load address" 208379876cc1SYunQiang Su default 0xffffffff80400000 if BCM47XX 208479876cc1SYunQiang Su default 0x0 208579876cc1SYunQiang Su depends on SYS_SUPPORTS_ZBOOT 208679876cc1SYunQiang Su help 208779876cc1SYunQiang Su The address to load compressed kernel, aka vmlinuz. 208879876cc1SYunQiang Su 208979876cc1SYunQiang Su This is only used if non-zero. 209079876cc1SYunQiang Su 20911da177e4SLinus Torvaldschoice 20921da177e4SLinus Torvalds prompt "Kernel page size" 20931da177e4SLinus Torvalds default PAGE_SIZE_4KB 20941da177e4SLinus Torvalds 20951da177e4SLinus Torvaldsconfig PAGE_SIZE_4KB 20961da177e4SLinus Torvalds bool "4kB" 2097268a2d60SJiaxun Yang depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64 20981da177e4SLinus Torvalds help 20991da177e4SLinus Torvalds This option select the standard 4kB Linux page size. On some 21001da177e4SLinus Torvalds R3000-family processors this is the only available page size. Using 21011da177e4SLinus Torvalds 4kB page size will minimize memory consumption and is therefore 21021da177e4SLinus Torvalds recommended for low memory systems. 21031da177e4SLinus Torvalds 21041da177e4SLinus Torvaldsconfig PAGE_SIZE_8KB 21051da177e4SLinus Torvalds bool "8kB" 2106c2aeaaeaSPaul Burton depends on CPU_CAVIUM_OCTEON 21071e321fa9SLeonid Yegoshin depends on !MIPS_VA_BITS_48 21081da177e4SLinus Torvalds help 21091da177e4SLinus Torvalds Using 8kB page size will result in higher performance kernel at 21101da177e4SLinus Torvalds the price of higher memory consumption. This option is available 2111c2aeaaeaSPaul Burton only on cnMIPS processors. Note that you will need a suitable Linux 2112c2aeaaeaSPaul Burton distribution to support this. 21131da177e4SLinus Torvalds 21141da177e4SLinus Torvaldsconfig PAGE_SIZE_16KB 21151da177e4SLinus Torvalds bool "16kB" 2116455481fcSThomas Bogendoerfer depends on !CPU_R3000 21171da177e4SLinus Torvalds help 21181da177e4SLinus Torvalds Using 16kB page size will result in higher performance kernel at 21191da177e4SLinus Torvalds the price of higher memory consumption. This option is available on 2120714bfad6SRalf Baechle all non-R3000 family processors. Note that you will need a suitable 2121714bfad6SRalf Baechle Linux distribution to support this. 21221da177e4SLinus Torvalds 2123c52399beSRalf Baechleconfig PAGE_SIZE_32KB 2124c52399beSRalf Baechle bool "32kB" 2125c52399beSRalf Baechle depends on CPU_CAVIUM_OCTEON 21261e321fa9SLeonid Yegoshin depends on !MIPS_VA_BITS_48 2127c52399beSRalf Baechle help 2128c52399beSRalf Baechle Using 32kB page size will result in higher performance kernel at 2129c52399beSRalf Baechle the price of higher memory consumption. This option is available 2130c52399beSRalf Baechle only on cnMIPS cores. Note that you will need a suitable Linux 2131c52399beSRalf Baechle distribution to support this. 2132c52399beSRalf Baechle 21331da177e4SLinus Torvaldsconfig PAGE_SIZE_64KB 21341da177e4SLinus Torvalds bool "64kB" 2135455481fcSThomas Bogendoerfer depends on !CPU_R3000 21361da177e4SLinus Torvalds help 21371da177e4SLinus Torvalds Using 64kB page size will result in higher performance kernel at 21381da177e4SLinus Torvalds the price of higher memory consumption. This option is available on 21391da177e4SLinus Torvalds all non-R3000 family processor. Not that at the time of this 2140714bfad6SRalf Baechle writing this option is still high experimental. 21411da177e4SLinus Torvalds 21421da177e4SLinus Torvaldsendchoice 21431da177e4SLinus Torvalds 21440192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER 2145c9bace7cSDavid Daney int "Maximum zone order" 2146e4362d1eSAlex Smith range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2147e4362d1eSAlex Smith default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB 2148e4362d1eSAlex Smith range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2149e4362d1eSAlex Smith default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB 2150e4362d1eSAlex Smith range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2151e4362d1eSAlex Smith default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB 2152ef923a76SPaul Cercueil range 0 64 2153c9bace7cSDavid Daney default "11" 2154c9bace7cSDavid Daney help 2155c9bace7cSDavid Daney The kernel memory allocator divides physically contiguous memory 2156c9bace7cSDavid Daney blocks into "zones", where each zone is a power of two number of 2157c9bace7cSDavid Daney pages. This option selects the largest power of two that the kernel 2158c9bace7cSDavid Daney keeps in the memory allocator. If you need to allocate very large 2159c9bace7cSDavid Daney blocks of physically contiguous memory, then you may need to 2160c9bace7cSDavid Daney increase this value. 2161c9bace7cSDavid Daney 2162c9bace7cSDavid Daney This config option is actually maximum order plus one. For example, 2163c9bace7cSDavid Daney a value of 11 means that the largest free memory block is 2^10 pages. 2164c9bace7cSDavid Daney 2165c9bace7cSDavid Daney The page size is not necessarily 4KB. Keep this in mind 2166c9bace7cSDavid Daney when choosing a value for this option. 2167c9bace7cSDavid Daney 21681da177e4SLinus Torvaldsconfig BOARD_SCACHE 21691da177e4SLinus Torvalds bool 21701da177e4SLinus Torvalds 21711da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE 21721da177e4SLinus Torvalds bool 21731da177e4SLinus Torvalds select BOARD_SCACHE 21741da177e4SLinus Torvalds 21759318c51aSChris Dearman# 21769318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches 21779318c51aSChris Dearman# 21789318c51aSChris Dearmanconfig MIPS_CPU_SCACHE 21799318c51aSChris Dearman bool 21809318c51aSChris Dearman select BOARD_SCACHE 21819318c51aSChris Dearman 21821da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE 21831da177e4SLinus Torvalds bool 21841da177e4SLinus Torvalds select BOARD_SCACHE 21851da177e4SLinus Torvalds 21861da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE 21871da177e4SLinus Torvalds bool 21881da177e4SLinus Torvalds select BOARD_SCACHE 21891da177e4SLinus Torvalds 21901da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS 21911da177e4SLinus Torvalds bool "Use DMA to clear/copy pages" 21921da177e4SLinus Torvalds depends on CPU_SB1 21931da177e4SLinus Torvalds help 21941da177e4SLinus Torvalds Instead of using the CPU to zero and copy pages, use a Data Mover 21951da177e4SLinus Torvalds channel. These DMA channels are otherwise unused by the standard 21961da177e4SLinus Torvalds SiByte Linux port. Seems to give a small performance benefit. 21971da177e4SLinus Torvalds 21981da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH 2199c8094b53SRalf Baechle bool 22001da177e4SLinus Torvalds 22013165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB 22023165c846SFlorian Fainelli bool 2203455481fcSThomas Bogendoerfer default y if !CPU_R3000 22043165c846SFlorian Fainelli 2205c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT 2206183b40f9SPaul Burton bool "Floating Point support" if EXPERT 2207183b40f9SPaul Burton default y 2208183b40f9SPaul Burton help 2209183b40f9SPaul Burton Select y to include support for floating point in the kernel 2210183b40f9SPaul Burton including initialization of FPU hardware, FP context save & restore 2211183b40f9SPaul Burton and emulation of an FPU where necessary. Without this support any 2212183b40f9SPaul Burton userland program attempting to use floating point instructions will 2213183b40f9SPaul Burton receive a SIGILL. 2214183b40f9SPaul Burton 2215183b40f9SPaul Burton If you know that your userland will not attempt to use floating point 2216183b40f9SPaul Burton instructions then you can say n here to shrink the kernel a little. 2217183b40f9SPaul Burton 2218183b40f9SPaul Burton If unsure, say y. 2219c92e47e5SPaul Burton 222097f7dcbfSPaul Burtonconfig CPU_R2300_FPU 222197f7dcbfSPaul Burton bool 2222c92e47e5SPaul Burton depends on MIPS_FP_SUPPORT 2223455481fcSThomas Bogendoerfer default y if CPU_R3000 222497f7dcbfSPaul Burton 222554746829SPaul Burtonconfig CPU_R3K_TLB 222654746829SPaul Burton bool 222754746829SPaul Burton 222891405eb6SFlorian Fainelliconfig CPU_R4K_FPU 222991405eb6SFlorian Fainelli bool 2230c92e47e5SPaul Burton depends on MIPS_FP_SUPPORT 223197f7dcbfSPaul Burton default y if !CPU_R2300_FPU 223291405eb6SFlorian Fainelli 223362cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB 223462cedc4fSFlorian Fainelli bool 223554746829SPaul Burton default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON) 223662cedc4fSFlorian Fainelli 223759d6ab86SRalf Baechleconfig MIPS_MT_SMP 2238a92b7f87SMarkos Chandras bool "MIPS MT SMP support (1 TC on each available VPE)" 22395cbf9688SPaul Burton default y 2240527f1028SPaul Burton depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS 224159d6ab86SRalf Baechle select CPU_MIPSR2_IRQ_VI 2242d725cf38SChris Dearman select CPU_MIPSR2_IRQ_EI 2243c080faa5SSteven J. Hill select SYNC_R4K 224459d6ab86SRalf Baechle select MIPS_MT 224559d6ab86SRalf Baechle select SMP 224687353d8aSRalf Baechle select SMP_UP 2247c080faa5SSteven J. Hill select SYS_SUPPORTS_SMP 2248c080faa5SSteven J. Hill select SYS_SUPPORTS_SCHED_SMT 2249399aaa25SAl Cooper select MIPS_PERF_SHARED_TC_COUNTERS 225059d6ab86SRalf Baechle help 2251c080faa5SSteven J. Hill This is a kernel model which is known as SMVP. This is supported 2252c080faa5SSteven J. Hill on cores with the MT ASE and uses the available VPEs to implement 2253c080faa5SSteven J. Hill virtual processors which supports SMP. This is equivalent to the 2254c080faa5SSteven J. Hill Intel Hyperthreading feature. For further information go to 2255c080faa5SSteven J. Hill <http://www.imgtec.com/mips/mips-multithreading.asp>. 225659d6ab86SRalf Baechle 2257f41ae0b2SRalf Baechleconfig MIPS_MT 2258f41ae0b2SRalf Baechle bool 2259f41ae0b2SRalf Baechle 22600ab7aefcSRalf Baechleconfig SCHED_SMT 22610ab7aefcSRalf Baechle bool "SMT (multithreading) scheduler support" 22620ab7aefcSRalf Baechle depends on SYS_SUPPORTS_SCHED_SMT 22630ab7aefcSRalf Baechle default n 22640ab7aefcSRalf Baechle help 22650ab7aefcSRalf Baechle SMT scheduler support improves the CPU scheduler's decision making 22660ab7aefcSRalf Baechle when dealing with MIPS MT enabled cores at a cost of slightly 22670ab7aefcSRalf Baechle increased overhead in some places. If unsure say N here. 22680ab7aefcSRalf Baechle 22690ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT 22700ab7aefcSRalf Baechle bool 22710ab7aefcSRalf Baechle 2272f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING 2273f41ae0b2SRalf Baechle bool 2274f41ae0b2SRalf Baechle 2275f088fc84SRalf Baechleconfig MIPS_MT_FPAFF 2276f088fc84SRalf Baechle bool "Dynamic FPU affinity for FP-intensive threads" 2277f088fc84SRalf Baechle default y 2278b633648cSRalf Baechle depends on MIPS_MT_SMP 227907cc0c9eSRalf Baechle 2280b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR 2281b0a668fbSLeonid Yegoshin bool "MIPS R2-to-R6 emulator" 22829eaa9a82SPaul Burton depends on CPU_MIPSR6 2283c92e47e5SPaul Burton depends on MIPS_FP_SUPPORT 2284b0a668fbSLeonid Yegoshin default y 2285b0a668fbSLeonid Yegoshin help 2286b0a668fbSLeonid Yegoshin Choose this option if you want to run non-R6 MIPS userland code. 2287b0a668fbSLeonid Yegoshin Even if you say 'Y' here, the emulator will still be disabled by 228807edf0d4SMarkos Chandras default. You can enable it using the 'mipsr2emu' kernel option. 2289b0a668fbSLeonid Yegoshin The only reason this is a build-time option is to save ~14K from the 2290b0a668fbSLeonid Yegoshin final kernel image. 2291b0a668fbSLeonid Yegoshin 2292f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER 2293f35764e7SJames Hogan bool 2294f35764e7SJames Hogan depends on SYS_SUPPORTS_MULTITHREADING 2295f35764e7SJames Hogan help 2296f35764e7SJames Hogan Indicates that the platform supports the VPE loader, and provides 2297f35764e7SJames Hogan physical_memsize. 2298f35764e7SJames Hogan 229907cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER 230007cc0c9eSRalf Baechle bool "VPE loader support." 2301f35764e7SJames Hogan depends on SYS_SUPPORTS_VPE_LOADER && MODULES 230207cc0c9eSRalf Baechle select CPU_MIPSR2_IRQ_VI 230307cc0c9eSRalf Baechle select CPU_MIPSR2_IRQ_EI 230407cc0c9eSRalf Baechle select MIPS_MT 230507cc0c9eSRalf Baechle help 230607cc0c9eSRalf Baechle Includes a loader for loading an elf relocatable object 230707cc0c9eSRalf Baechle onto another VPE and running it. 2308f088fc84SRalf Baechle 230917a1d523SDeng-Cheng Zhuconfig MIPS_VPE_LOADER_CMP 231017a1d523SDeng-Cheng Zhu bool 231117a1d523SDeng-Cheng Zhu default "y" 231217a1d523SDeng-Cheng Zhu depends on MIPS_VPE_LOADER && MIPS_CMP 231317a1d523SDeng-Cheng Zhu 23141a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT 23151a2a6d7eSDeng-Cheng Zhu bool 23161a2a6d7eSDeng-Cheng Zhu default "y" 23171a2a6d7eSDeng-Cheng Zhu depends on MIPS_VPE_LOADER && !MIPS_CMP 23181a2a6d7eSDeng-Cheng Zhu 2319e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM 2320e01402b1SRalf Baechle bool "Load VPE program into memory hidden from linux" 2321e01402b1SRalf Baechle depends on MIPS_VPE_LOADER 2322e01402b1SRalf Baechle default y 2323e01402b1SRalf Baechle help 2324e01402b1SRalf Baechle The loader can use memory that is present but has been hidden from 2325e01402b1SRalf Baechle Linux using the kernel command line option "mem=xxMB". It's up to 2326e01402b1SRalf Baechle you to ensure the amount you put in the option and the space your 2327e01402b1SRalf Baechle program requires is less or equal to the amount physically present. 2328e01402b1SRalf Baechle 2329e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API 2330e01402b1SRalf Baechle bool "Enable support for AP/SP API (RTLX)" 2331e01402b1SRalf Baechle depends on MIPS_VPE_LOADER 2332e01402b1SRalf Baechle 2333da615cf6SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_CMP 2334da615cf6SDeng-Cheng Zhu bool 2335da615cf6SDeng-Cheng Zhu default "y" 2336da615cf6SDeng-Cheng Zhu depends on MIPS_VPE_APSP_API && MIPS_CMP 2337da615cf6SDeng-Cheng Zhu 23382c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT 23392c973ef0SDeng-Cheng Zhu bool 23402c973ef0SDeng-Cheng Zhu default "y" 23412c973ef0SDeng-Cheng Zhu depends on MIPS_VPE_APSP_API && !MIPS_CMP 23422c973ef0SDeng-Cheng Zhu 23434a16ff4cSRalf Baechleconfig MIPS_CMP 23445cac93b3SPaul Burton bool "MIPS CMP framework support (DEPRECATED)" 23455676319cSMarkos Chandras depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6 2346b10b43baSMarkos Chandras select SMP 2347eb9b5141STim Anderson select SYNC_R4K 2348b10b43baSMarkos Chandras select SYS_SUPPORTS_SMP 23494a16ff4cSRalf Baechle select WEAK_ORDERING 23504a16ff4cSRalf Baechle default n 23514a16ff4cSRalf Baechle help 2352044505c7SPaul Burton Select this if you are using a bootloader which implements the "CMP 2353044505c7SPaul Burton framework" protocol (ie. YAMON) and want your kernel to make use of 2354044505c7SPaul Burton its ability to start secondary CPUs. 23554a16ff4cSRalf Baechle 23565cac93b3SPaul Burton Unless you have a specific need, you should use CONFIG_MIPS_CPS 23575cac93b3SPaul Burton instead of this. 23585cac93b3SPaul Burton 23590ee958e1SPaul Burtonconfig MIPS_CPS 23600ee958e1SPaul Burton bool "MIPS Coherent Processing System support" 23615a3e7c02SPaul Burton depends on SYS_SUPPORTS_MIPS_CPS 23620ee958e1SPaul Burton select MIPS_CM 23631d8f1f5aSPaul Burton select MIPS_CPS_PM if HOTPLUG_CPU 23640ee958e1SPaul Burton select SMP 23650ee958e1SPaul Burton select SYNC_R4K if (CEVT_R4K || CSRC_R4K) 23661d8f1f5aSPaul Burton select SYS_SUPPORTS_HOTPLUG_CPU 2367c8b7712cSPaul Burton select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6 23680ee958e1SPaul Burton select SYS_SUPPORTS_SMP 23690ee958e1SPaul Burton select WEAK_ORDERING 2370d8d3276bSWei Li select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU 23710ee958e1SPaul Burton help 23720ee958e1SPaul Burton Select this if you wish to run an SMP kernel across multiple cores 23730ee958e1SPaul Burton within a MIPS Coherent Processing System. When this option is 23740ee958e1SPaul Burton enabled the kernel will probe for other cores and boot them with 23750ee958e1SPaul Burton no external assistance. It is safe to enable this when hardware 23760ee958e1SPaul Burton support is unavailable. 23770ee958e1SPaul Burton 23783179d37eSPaul Burtonconfig MIPS_CPS_PM 237939a59593SMarkos Chandras depends on MIPS_CPS 23803179d37eSPaul Burton bool 23813179d37eSPaul Burton 23829f98f3ddSPaul Burtonconfig MIPS_CM 23839f98f3ddSPaul Burton bool 23843c9b4166SPaul Burton select MIPS_CPC 23859f98f3ddSPaul Burton 23869c38cf44SPaul Burtonconfig MIPS_CPC 23879c38cf44SPaul Burton bool 23882600990eSRalf Baechle 23891da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS 23901da177e4SLinus Torvalds bool 23911da177e4SLinus Torvalds depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2) 23921da177e4SLinus Torvalds default y 23931da177e4SLinus Torvalds 23941da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS 23951da177e4SLinus Torvalds bool 23961da177e4SLinus Torvalds depends on CPU_SB1 && CPU_SB1_PASS_2 23971da177e4SLinus Torvalds default y 23981da177e4SLinus Torvalds 23999e2b5372SMarkos Chandraschoice 24009e2b5372SMarkos Chandras prompt "SmartMIPS or microMIPS ASE support" 24019e2b5372SMarkos Chandras 24029e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS 24039e2b5372SMarkos Chandras bool "None" 24049e2b5372SMarkos Chandras help 24059e2b5372SMarkos Chandras Select this if you want neither microMIPS nor SmartMIPS support 24069e2b5372SMarkos Chandras 24079693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS 24089693a853SFranck Bui-Huu depends on SYS_SUPPORTS_SMARTMIPS 24099e2b5372SMarkos Chandras bool "SmartMIPS" 24109693a853SFranck Bui-Huu help 24119693a853SFranck Bui-Huu SmartMIPS is a extension of the MIPS32 architecture aimed at 24129693a853SFranck Bui-Huu increased security at both hardware and software level for 24139693a853SFranck Bui-Huu smartcards. Enabling this option will allow proper use of the 24149693a853SFranck Bui-Huu SmartMIPS instructions by Linux applications. However a kernel with 24159693a853SFranck Bui-Huu this option will not work on a MIPS core without SmartMIPS core. If 24169693a853SFranck Bui-Huu you don't know you probably don't have SmartMIPS and should say N 24179693a853SFranck Bui-Huu here. 24189693a853SFranck Bui-Huu 2419bce86083SSteven J. Hillconfig CPU_MICROMIPS 24207fd08ca5SLeonid Yegoshin depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6 24219e2b5372SMarkos Chandras bool "microMIPS" 2422bce86083SSteven J. Hill help 2423bce86083SSteven J. Hill When this option is enabled the kernel will be built using the 2424bce86083SSteven J. Hill microMIPS ISA 2425bce86083SSteven J. Hill 24269e2b5372SMarkos Chandrasendchoice 24279e2b5372SMarkos Chandras 2428a5e9a69eSPaul Burtonconfig CPU_HAS_MSA 24290ce3417eSPaul Burton bool "Support for the MIPS SIMD Architecture" 2430a5e9a69eSPaul Burton depends on CPU_SUPPORTS_MSA 2431c92e47e5SPaul Burton depends on MIPS_FP_SUPPORT 24322a6cb669SPaul Burton depends on 64BIT || MIPS_O32_FP64_SUPPORT 2433a5e9a69eSPaul Burton help 2434a5e9a69eSPaul Burton MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers 2435a5e9a69eSPaul Burton and a set of SIMD instructions to operate on them. When this option 24361db1af84SPaul Burton is enabled the kernel will support allocating & switching MSA 24371db1af84SPaul Burton vector register contexts. If you know that your kernel will only be 24381db1af84SPaul Burton running on CPUs which do not support MSA or that your userland will 24391db1af84SPaul Burton not be making use of it then you may wish to say N here to reduce 24401db1af84SPaul Burton the size & complexity of your kernel. 2441a5e9a69eSPaul Burton 2442a5e9a69eSPaul Burton If unsure, say Y. 2443a5e9a69eSPaul Burton 24441da177e4SLinus Torvaldsconfig CPU_HAS_WB 2445f7062ddbSRalf Baechle bool 2446e01402b1SRalf Baechle 2447df0ac8a4SKevin Cernekeeconfig XKS01 2448df0ac8a4SKevin Cernekee bool 2449df0ac8a4SKevin Cernekee 2450ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI 2451ba9196d2SJiaxun Yang depends on !CPU_DIEI_BROKEN 2452ba9196d2SJiaxun Yang bool 2453ba9196d2SJiaxun Yang 2454ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN 2455ba9196d2SJiaxun Yang bool 2456ba9196d2SJiaxun Yang 24578256b17eSFlorian Fainelliconfig CPU_HAS_RIXI 24588256b17eSFlorian Fainelli bool 24598256b17eSFlorian Fainelli 246018d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR 2461932afdeeSYasha Cherikovsky bool 2462932afdeeSYasha Cherikovsky help 246318d84e2eSAlexander Lobakin CPU lacks support for unaligned load and store instructions: 2464932afdeeSYasha Cherikovsky LWL, LWR, SWL, SWR (Load/store word left/right). 246518d84e2eSAlexander Lobakin LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit 246618d84e2eSAlexander Lobakin systems). 2467932afdeeSYasha Cherikovsky 2468f41ae0b2SRalf Baechle# 2469f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature 2470f41ae0b2SRalf Baechle# 2471e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI 2472f41ae0b2SRalf Baechle bool 2473e01402b1SRalf Baechle 2474f41ae0b2SRalf Baechle# 2475f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature 2476f41ae0b2SRalf Baechle# 2477e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI 2478f41ae0b2SRalf Baechle bool 2479e01402b1SRalf Baechle 24801da177e4SLinus Torvaldsconfig CPU_HAS_SYNC 24811da177e4SLinus Torvalds bool 24821da177e4SLinus Torvalds depends on !CPU_R3000 24831da177e4SLinus Torvalds default y 24841da177e4SLinus Torvalds 24851da177e4SLinus Torvalds# 248620d60d99SMaciej W. Rozycki# CPU non-features 248720d60d99SMaciej W. Rozycki# 2488b56d1cafSThomas Bogendoerfer 2489b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata: 2490b56d1cafSThomas Bogendoerfer# 2491b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow. 2492b56d1cafSThomas Bogendoerfer# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0", 2493b56d1cafSThomas Bogendoerfer# erratum #23 2494b56d1cafSThomas Bogendoerfer# 2495b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result. 2496b56d1cafSThomas Bogendoerfer# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0", 2497b56d1cafSThomas Bogendoerfer# erratum #41 2498b56d1cafSThomas Bogendoerfer# "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum 2499b56d1cafSThomas Bogendoerfer# #15 2500b56d1cafSThomas Bogendoerfer# "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7 2501b56d1cafSThomas Bogendoerfer# "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5 250220d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS 250320d60d99SMaciej W. Rozycki bool 250420d60d99SMaciej W. Rozycki 2505b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC): 2506b56d1cafSThomas Bogendoerfer# 2507b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result 2508b56d1cafSThomas Bogendoerfer# if executed immediately after starting an integer division: 2509b56d1cafSThomas Bogendoerfer# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0", 2510b56d1cafSThomas Bogendoerfer# erratum #28 2511b56d1cafSThomas Bogendoerfer# "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum 2512b56d1cafSThomas Bogendoerfer# #19 2513b56d1cafSThomas Bogendoerfer# 2514b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result 2515b56d1cafSThomas Bogendoerfer# if executed while an integer multiplication is in progress: 2516b56d1cafSThomas Bogendoerfer# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0", 2517b56d1cafSThomas Bogendoerfer# errata #16 & #28 2518b56d1cafSThomas Bogendoerfer# 2519b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in 2520b56d1cafSThomas Bogendoerfer# a delay slot of a taken branch or a jump: 2521b56d1cafSThomas Bogendoerfer# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0", 2522b56d1cafSThomas Bogendoerfer# erratum #52 252320d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS 252420d60d99SMaciej W. Rozycki bool 252520d60d99SMaciej W. Rozycki select CPU_R4400_WORKAROUNDS 252620d60d99SMaciej W. Rozycki 2527b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC): 2528b56d1cafSThomas Bogendoerfer# 2529b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result 2530b56d1cafSThomas Bogendoerfer# if executed immediately after starting an integer division: 2531b56d1cafSThomas Bogendoerfer# "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10 2532b56d1cafSThomas Bogendoerfer# "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4 253320d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS 253420d60d99SMaciej W. Rozycki bool 253520d60d99SMaciej W. Rozycki 2536071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64 2537071d2f0bSPaul Burton bool 2538071d2f0bSPaul Burton default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1) 2539071d2f0bSPaul Burton 25404edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT 25414edf00a4SPaul Burton int 2542455481fcSThomas Bogendoerfer default 6 if CPU_R3000 25434edf00a4SPaul Burton default 0 25444edf00a4SPaul Burton 25454edf00a4SPaul Burtonconfig MIPS_ASID_BITS 25464edf00a4SPaul Burton int 25472db003a5SPaul Burton default 0 if MIPS_ASID_BITS_VARIABLE 2548455481fcSThomas Bogendoerfer default 6 if CPU_R3000 25494edf00a4SPaul Burton default 8 25504edf00a4SPaul Burton 25512db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE 25522db003a5SPaul Burton bool 25532db003a5SPaul Burton 25544a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT 25554a5dc51eSMarcin Nowakowski bool 25564a5dc51eSMarcin Nowakowski 2557802b8362SThomas Bogendoerfer# R4600 erratum. Due to the lack of errata information the exact 2558802b8362SThomas Bogendoerfer# technical details aren't known. I've experimentally found that disabling 2559802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal 2560802b8362SThomas Bogendoerfer# with the issue. 2561802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP 2562802b8362SThomas Bogendoerfer bool 2563802b8362SThomas Bogendoerfer 25645e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata: 25655e5b6527SThomas Bogendoerfer# 25665e5b6527SThomas Bogendoerfer# 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D, 25675e5b6527SThomas Bogendoerfer# Hit_Invalidate_D and Create_Dirty_Excl_D should only be 25685e5b6527SThomas Bogendoerfer# executed if there is no other dcache activity. If the dcache is 256918ff14c8SColin Ian King# accessed for another instruction immediately preceding when these 25705e5b6527SThomas Bogendoerfer# cache instructions are executing, it is possible that the dcache 25715e5b6527SThomas Bogendoerfer# tag match outputs used by these cache instructions will be 25725e5b6527SThomas Bogendoerfer# incorrect. These cache instructions should be preceded by at least 25735e5b6527SThomas Bogendoerfer# four instructions that are not any kind of load or store 25745e5b6527SThomas Bogendoerfer# instruction. 25755e5b6527SThomas Bogendoerfer# 25765e5b6527SThomas Bogendoerfer# This is not allowed: lw 25775e5b6527SThomas Bogendoerfer# nop 25785e5b6527SThomas Bogendoerfer# nop 25795e5b6527SThomas Bogendoerfer# nop 25805e5b6527SThomas Bogendoerfer# cache Hit_Writeback_Invalidate_D 25815e5b6527SThomas Bogendoerfer# 25825e5b6527SThomas Bogendoerfer# This is allowed: lw 25835e5b6527SThomas Bogendoerfer# nop 25845e5b6527SThomas Bogendoerfer# nop 25855e5b6527SThomas Bogendoerfer# nop 25865e5b6527SThomas Bogendoerfer# nop 25875e5b6527SThomas Bogendoerfer# cache Hit_Writeback_Invalidate_D 25885e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP 25895e5b6527SThomas Bogendoerfer bool 25905e5b6527SThomas Bogendoerfer 259144def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA. 259244def342SThomas Bogendoerfer# 259344def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D, 259444def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only 259544def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty. These 259644def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss 259744def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer." 259844def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/ 259944def342SThomas Bogendoerfer# in .pdf format.) 260044def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP 260144def342SThomas Bogendoerfer bool 260244def342SThomas Bogendoerfer 260324a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for 260424a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following 260524a1c023SThomas Bogendoerfer# operation is not guaranteed." 260624a1c023SThomas Bogendoerfer# 260724a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I 260824a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV 260924a1c023SThomas Bogendoerfer bool 261024a1c023SThomas Bogendoerfer 2611886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra 2612886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same 2613886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious 2614886ee136SThomas Bogendoerfer# exceptions. 2615886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS 2616886ee136SThomas Bogendoerfer bool 2617886ee136SThomas Bogendoerfer 2618256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that 2619256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically. 2620256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC 2621256ec489SThomas Bogendoerfer bool 2622256ec489SThomas Bogendoerfer 2623a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction" 2624a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB 2625a7fbed98SThomas Bogendoerfer bool 2626a7fbed98SThomas Bogendoerfer 262720d60d99SMaciej W. Rozycki# 26281da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel. 26291da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed 26301da177e4SLinus Torvalds# caches such as R3000, SB1, R7000 or those that look like they're virtually 26311da177e4SLinus Torvalds# indexed such as R4000/R4400 SC and MC versions or R10000. So for the 26321da177e4SLinus Torvalds# moment we protect the user and offer the highmem option only on machines 26331da177e4SLinus Torvalds# where it's known to be safe. This will not offer highmem on a few systems 26341da177e4SLinus Torvalds# such as MIPS32 and MIPS64 CPUs which may have virtual and physically 26351da177e4SLinus Torvalds# indexed CPUs but we're playing safe. 2636797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we 2637797798c1SRalf Baechle# know they might have memory configurations that could make use of highmem 2638797798c1SRalf Baechle# support. 26391da177e4SLinus Torvalds# 26401da177e4SLinus Torvaldsconfig HIGHMEM 26411da177e4SLinus Torvalds bool "High Memory Support" 2642a6e18781SLeonid Yegoshin depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA 2643a4c33e83SThomas Gleixner select KMAP_LOCAL 2644797798c1SRalf Baechle 2645797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM 2646797798c1SRalf Baechle bool 2647797798c1SRalf Baechle 2648797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM 2649797798c1SRalf Baechle bool 26501da177e4SLinus Torvalds 26519693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS 26529693a853SFranck Bui-Huu bool 26539693a853SFranck Bui-Huu 2654a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS 2655a6a4834cSSteven J. Hill bool 2656a6a4834cSSteven J. Hill 2657377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16 2658377cb1b6SRalf Baechle bool 2659377cb1b6SRalf Baechle help 2660377cb1b6SRalf Baechle This option must be set if a kernel might be executed on a MIPS16- 2661377cb1b6SRalf Baechle enabled CPU even if MIPS16 is not actually being used. In other 2662377cb1b6SRalf Baechle words, it makes the kernel MIPS16-tolerant. 2663377cb1b6SRalf Baechle 2664a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA 2665a5e9a69eSPaul Burton bool 2666a5e9a69eSPaul Burton 2667b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE 2668b4819b59SYoichi Yuasa def_bool y 2669268a2d60SJiaxun Yang depends on !NUMA && !CPU_LOONGSON2EF 2670b4819b59SYoichi Yuasa 2671b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE 2672b1c6cd42SAtsushi Nemoto bool 267331473747SAtsushi Nemoto 2674d8cb4e11SRalf Baechleconfig NUMA 2675d8cb4e11SRalf Baechle bool "NUMA Support" 2676d8cb4e11SRalf Baechle depends on SYS_SUPPORTS_NUMA 2677cf8194e4STiezhu Yang select SMP 26787ecd19cfSKefeng Wang select HAVE_SETUP_PER_CPU_AREA 26797ecd19cfSKefeng Wang select NEED_PER_CPU_EMBED_FIRST_CHUNK 2680d8cb4e11SRalf Baechle help 2681d8cb4e11SRalf Baechle Say Y to compile the kernel to support NUMA (Non-Uniform Memory 2682d8cb4e11SRalf Baechle Access). This option improves performance on systems with more 2683d8cb4e11SRalf Baechle than two nodes; on two node systems it is generally better to 2684172a37e9SRandy Dunlap leave it disabled; on single node systems leave this option 2685d8cb4e11SRalf Baechle disabled. 2686d8cb4e11SRalf Baechle 2687d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA 2688d8cb4e11SRalf Baechle bool 2689d8cb4e11SRalf Baechle 2690f8f9f21cSFeiyang Chenconfig HAVE_ARCH_NODEDATA_EXTENSION 2691f8f9f21cSFeiyang Chen bool 2692f8f9f21cSFeiyang Chen 26938c530ea3SMatt Redfearnconfig RELOCATABLE 26948c530ea3SMatt Redfearn bool "Relocatable kernel" 2695ab7c01fdSSerge Semin depends on SYS_SUPPORTS_RELOCATABLE 2696ab7c01fdSSerge Semin depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \ 2697ab7c01fdSSerge Semin CPU_MIPS32_R5 || CPU_MIPS64_R5 || \ 2698ab7c01fdSSerge Semin CPU_MIPS32_R6 || CPU_MIPS64_R6 || \ 2699a307a4ceSJinyang He CPU_P5600 || CAVIUM_OCTEON_SOC || \ 2700a307a4ceSJinyang He CPU_LOONGSON64 27018c530ea3SMatt Redfearn help 27028c530ea3SMatt Redfearn This builds a kernel image that retains relocation information 27038c530ea3SMatt Redfearn so it can be loaded someplace besides the default 1MB. 27048c530ea3SMatt Redfearn The relocations make the kernel binary about 15% larger, 27058c530ea3SMatt Redfearn but are discarded at runtime 27068c530ea3SMatt Redfearn 2707069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE 2708069fd766SMatt Redfearn hex "Relocation table size" 2709069fd766SMatt Redfearn depends on RELOCATABLE 2710069fd766SMatt Redfearn range 0x0 0x01000000 2711a307a4ceSJinyang He default "0x00200000" if CPU_LOONGSON64 2712069fd766SMatt Redfearn default "0x00100000" 2713a7f7f624SMasahiro Yamada help 2714069fd766SMatt Redfearn A table of relocation data will be appended to the kernel binary 2715069fd766SMatt Redfearn and parsed at boot to fix up the relocated kernel. 2716069fd766SMatt Redfearn 2717069fd766SMatt Redfearn This option allows the amount of space reserved for the table to be 2718069fd766SMatt Redfearn adjusted, although the default of 1Mb should be ok in most cases. 2719069fd766SMatt Redfearn 2720069fd766SMatt Redfearn The build will fail and a valid size suggested if this is too small. 2721069fd766SMatt Redfearn 2722069fd766SMatt Redfearn If unsure, leave at the default value. 2723069fd766SMatt Redfearn 2724405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE 2725405bc8fdSMatt Redfearn bool "Randomize the address of the kernel image" 2726405bc8fdSMatt Redfearn depends on RELOCATABLE 2727a7f7f624SMasahiro Yamada help 2728405bc8fdSMatt Redfearn Randomizes the physical and virtual address at which the 2729405bc8fdSMatt Redfearn kernel image is loaded, as a security feature that 2730405bc8fdSMatt Redfearn deters exploit attempts relying on knowledge of the location 2731405bc8fdSMatt Redfearn of kernel internals. 2732405bc8fdSMatt Redfearn 2733405bc8fdSMatt Redfearn Entropy is generated using any coprocessor 0 registers available. 2734405bc8fdSMatt Redfearn 2735405bc8fdSMatt Redfearn The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET. 2736405bc8fdSMatt Redfearn 2737405bc8fdSMatt Redfearn If unsure, say N. 2738405bc8fdSMatt Redfearn 2739405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET 2740405bc8fdSMatt Redfearn hex "Maximum kASLR offset" if EXPERT 2741405bc8fdSMatt Redfearn depends on RANDOMIZE_BASE 2742405bc8fdSMatt Redfearn range 0x0 0x40000000 if EVA || 64BIT 2743405bc8fdSMatt Redfearn range 0x0 0x08000000 2744405bc8fdSMatt Redfearn default "0x01000000" 2745a7f7f624SMasahiro Yamada help 2746405bc8fdSMatt Redfearn When kASLR is active, this provides the maximum offset that will 2747405bc8fdSMatt Redfearn be applied to the kernel image. It should be set according to the 2748405bc8fdSMatt Redfearn amount of physical RAM available in the target system minus 2749405bc8fdSMatt Redfearn PHYSICAL_START and must be a power of 2. 2750405bc8fdSMatt Redfearn 2751405bc8fdSMatt Redfearn This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with 2752405bc8fdSMatt Redfearn EVA or 64-bit. The default is 16Mb. 2753405bc8fdSMatt Redfearn 2754c80d79d7SYasunori Gotoconfig NODES_SHIFT 2755c80d79d7SYasunori Goto int 2756c80d79d7SYasunori Goto default "6" 2757a9ee6cf5SMike Rapoport depends on NUMA 2758c80d79d7SYasunori Goto 275914f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS 276014f70012SDeng-Cheng Zhu bool "Enable hardware performance counter support for perf events" 276195b8a5e0SThomas Bogendoerfer depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64) 276214f70012SDeng-Cheng Zhu default y 276314f70012SDeng-Cheng Zhu help 276414f70012SDeng-Cheng Zhu Enable hardware performance counter support for perf events. If 276514f70012SDeng-Cheng Zhu disabled, perf events will use software events only. 276614f70012SDeng-Cheng Zhu 2767be8fa1cbSTiezhu Yangconfig DMI 2768be8fa1cbSTiezhu Yang bool "Enable DMI scanning" 2769be8fa1cbSTiezhu Yang depends on MACH_LOONGSON64 2770be8fa1cbSTiezhu Yang select DMI_SCAN_MACHINE_NON_EFI_FALLBACK 2771be8fa1cbSTiezhu Yang default y 2772be8fa1cbSTiezhu Yang help 2773be8fa1cbSTiezhu Yang Enabled scanning of DMI to identify machine quirks. Say Y 2774be8fa1cbSTiezhu Yang here unless you have verified that your setup is not 2775be8fa1cbSTiezhu Yang affected by entries in the DMI blacklist. Required by PNP 2776be8fa1cbSTiezhu Yang BIOS code. 2777be8fa1cbSTiezhu Yang 27781da177e4SLinus Torvaldsconfig SMP 27791da177e4SLinus Torvalds bool "Multi-Processing support" 2780e73ea273SRalf Baechle depends on SYS_SUPPORTS_SMP 2781e73ea273SRalf Baechle help 27821da177e4SLinus Torvalds This enables support for systems with more than one CPU. If you have 27834a474157SRobert Graffham a system with only one CPU, say N. If you have a system with more 27844a474157SRobert Graffham than one CPU, say Y. 27851da177e4SLinus Torvalds 27864a474157SRobert Graffham If you say N here, the kernel will run on uni- and multiprocessor 27871da177e4SLinus Torvalds machines, but will use only one CPU of a multiprocessor machine. If 27881da177e4SLinus Torvalds you say Y here, the kernel will run on many, but not all, 27894a474157SRobert Graffham uniprocessor machines. On a uniprocessor machine, the kernel 27901da177e4SLinus Torvalds will run faster if you say N here. 27911da177e4SLinus Torvalds 27921da177e4SLinus Torvalds People using multiprocessor machines who say Y here should also say 27931da177e4SLinus Torvalds Y to "Enhanced Real Time Clock Support", below. 27941da177e4SLinus Torvalds 279503502faaSAdrian Bunk See also the SMP-HOWTO available at 2796ef054ad3SAlexander A. Klimov <https://www.tldp.org/docs.html#howto>. 27971da177e4SLinus Torvalds 27981da177e4SLinus Torvalds If you don't know what to do here, say N. 27991da177e4SLinus Torvalds 28007840d618SMatt Redfearnconfig HOTPLUG_CPU 28017840d618SMatt Redfearn bool "Support for hot-pluggable CPUs" 28027840d618SMatt Redfearn depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU 28037840d618SMatt Redfearn help 28047840d618SMatt Redfearn Say Y here to allow turning CPUs off and on. CPUs can be 28057840d618SMatt Redfearn controlled through /sys/devices/system/cpu. 28067840d618SMatt Redfearn (Note: power management support will enable this option 28077840d618SMatt Redfearn automatically on SMP systems. ) 28087840d618SMatt Redfearn Say N if you want to disable CPU hotplug. 28097840d618SMatt Redfearn 281087353d8aSRalf Baechleconfig SMP_UP 281187353d8aSRalf Baechle bool 281287353d8aSRalf Baechle 28134a16ff4cSRalf Baechleconfig SYS_SUPPORTS_MIPS_CMP 28144a16ff4cSRalf Baechle bool 28154a16ff4cSRalf Baechle 28160ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS 28170ee958e1SPaul Burton bool 28180ee958e1SPaul Burton 2819e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP 2820e73ea273SRalf Baechle bool 2821e73ea273SRalf Baechle 2822130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4 2823130e2fb7SRalf Baechle bool 2824130e2fb7SRalf Baechle 2825130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8 2826130e2fb7SRalf Baechle bool 2827130e2fb7SRalf Baechle 2828130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16 2829130e2fb7SRalf Baechle bool 2830130e2fb7SRalf Baechle 2831130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32 2832130e2fb7SRalf Baechle bool 2833130e2fb7SRalf Baechle 2834130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64 2835130e2fb7SRalf Baechle bool 2836130e2fb7SRalf Baechle 28371da177e4SLinus Torvaldsconfig NR_CPUS 2838a91796a9SJayachandran C int "Maximum number of CPUs (2-256)" 2839a91796a9SJayachandran C range 2 256 28401da177e4SLinus Torvalds depends on SMP 2841130e2fb7SRalf Baechle default "4" if NR_CPUS_DEFAULT_4 2842130e2fb7SRalf Baechle default "8" if NR_CPUS_DEFAULT_8 2843130e2fb7SRalf Baechle default "16" if NR_CPUS_DEFAULT_16 2844130e2fb7SRalf Baechle default "32" if NR_CPUS_DEFAULT_32 2845130e2fb7SRalf Baechle default "64" if NR_CPUS_DEFAULT_64 28461da177e4SLinus Torvalds help 28471da177e4SLinus Torvalds This allows you to specify the maximum number of CPUs which this 28481da177e4SLinus Torvalds kernel will support. The maximum supported value is 32 for 32-bit 28491da177e4SLinus Torvalds kernel and 64 for 64-bit kernels; the minimum value which makes 285072ede9b1SAtsushi Nemoto sense is 1 for Qemu (useful only for kernel debugging purposes) 285172ede9b1SAtsushi Nemoto and 2 for all others. 28521da177e4SLinus Torvalds 28531da177e4SLinus Torvalds This is purely to save memory - each supported CPU adds 285472ede9b1SAtsushi Nemoto approximately eight kilobytes to the kernel image. For best 285572ede9b1SAtsushi Nemoto performance should round up your number of processors to the next 285672ede9b1SAtsushi Nemoto power of two. 28571da177e4SLinus Torvalds 2858399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS 2859399aaa25SAl Cooper bool 2860399aaa25SAl Cooper 28617820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024 28627820b84bSDavid Daney bool 28637820b84bSDavid Daney 28647820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP 28657820b84bSDavid Daney int 28667820b84bSDavid Daney depends on SMP 28677820b84bSDavid Daney default 1024 if MIPS_NR_CPU_NR_MAP_1024 28687820b84bSDavid Daney default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024 28697820b84bSDavid Daney 28701723b4a3SAtsushi Nemoto# 28711723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration 28721723b4a3SAtsushi Nemoto# 28731723b4a3SAtsushi Nemoto 28741723b4a3SAtsushi Nemotochoice 28751723b4a3SAtsushi Nemoto prompt "Timer frequency" 28761723b4a3SAtsushi Nemoto default HZ_250 28771723b4a3SAtsushi Nemoto help 28781723b4a3SAtsushi Nemoto Allows the configuration of the timer frequency. 28791723b4a3SAtsushi Nemoto 288067596573SPaul Burton config HZ_24 288167596573SPaul Burton bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ 288267596573SPaul Burton 28831723b4a3SAtsushi Nemoto config HZ_48 28840f873585SRalf Baechle bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ 28851723b4a3SAtsushi Nemoto 28861723b4a3SAtsushi Nemoto config HZ_100 28871723b4a3SAtsushi Nemoto bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ 28881723b4a3SAtsushi Nemoto 28891723b4a3SAtsushi Nemoto config HZ_128 28901723b4a3SAtsushi Nemoto bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ 28911723b4a3SAtsushi Nemoto 28921723b4a3SAtsushi Nemoto config HZ_250 28931723b4a3SAtsushi Nemoto bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ 28941723b4a3SAtsushi Nemoto 28951723b4a3SAtsushi Nemoto config HZ_256 28961723b4a3SAtsushi Nemoto bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ 28971723b4a3SAtsushi Nemoto 28981723b4a3SAtsushi Nemoto config HZ_1000 28991723b4a3SAtsushi Nemoto bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ 29001723b4a3SAtsushi Nemoto 29011723b4a3SAtsushi Nemoto config HZ_1024 29021723b4a3SAtsushi Nemoto bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ 29031723b4a3SAtsushi Nemoto 29041723b4a3SAtsushi Nemotoendchoice 29051723b4a3SAtsushi Nemoto 290667596573SPaul Burtonconfig SYS_SUPPORTS_24HZ 290767596573SPaul Burton bool 290867596573SPaul Burton 29091723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ 29101723b4a3SAtsushi Nemoto bool 29111723b4a3SAtsushi Nemoto 29121723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ 29131723b4a3SAtsushi Nemoto bool 29141723b4a3SAtsushi Nemoto 29151723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ 29161723b4a3SAtsushi Nemoto bool 29171723b4a3SAtsushi Nemoto 29181723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ 29191723b4a3SAtsushi Nemoto bool 29201723b4a3SAtsushi Nemoto 29211723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ 29221723b4a3SAtsushi Nemoto bool 29231723b4a3SAtsushi Nemoto 29241723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ 29251723b4a3SAtsushi Nemoto bool 29261723b4a3SAtsushi Nemoto 29271723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ 29281723b4a3SAtsushi Nemoto bool 29291723b4a3SAtsushi Nemoto 29301723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ 29311723b4a3SAtsushi Nemoto bool 293267596573SPaul Burton default y if !SYS_SUPPORTS_24HZ && \ 293367596573SPaul Burton !SYS_SUPPORTS_48HZ && \ 293467596573SPaul Burton !SYS_SUPPORTS_100HZ && \ 293567596573SPaul Burton !SYS_SUPPORTS_128HZ && \ 293667596573SPaul Burton !SYS_SUPPORTS_250HZ && \ 293767596573SPaul Burton !SYS_SUPPORTS_256HZ && \ 293867596573SPaul Burton !SYS_SUPPORTS_1000HZ && \ 29391723b4a3SAtsushi Nemoto !SYS_SUPPORTS_1024HZ 29401723b4a3SAtsushi Nemoto 29411723b4a3SAtsushi Nemotoconfig HZ 29421723b4a3SAtsushi Nemoto int 294367596573SPaul Burton default 24 if HZ_24 29441723b4a3SAtsushi Nemoto default 48 if HZ_48 29451723b4a3SAtsushi Nemoto default 100 if HZ_100 29461723b4a3SAtsushi Nemoto default 128 if HZ_128 29471723b4a3SAtsushi Nemoto default 250 if HZ_250 29481723b4a3SAtsushi Nemoto default 256 if HZ_256 29491723b4a3SAtsushi Nemoto default 1000 if HZ_1000 29501723b4a3SAtsushi Nemoto default 1024 if HZ_1024 29511723b4a3SAtsushi Nemoto 295296685b17SDeng-Cheng Zhuconfig SCHED_HRTICK 295396685b17SDeng-Cheng Zhu def_bool HIGH_RES_TIMERS 295496685b17SDeng-Cheng Zhu 2955ea6e942bSAtsushi Nemotoconfig KEXEC 29567d60717eSKees Cook bool "Kexec system call" 29572965faa5SDave Young select KEXEC_CORE 2958ea6e942bSAtsushi Nemoto help 2959ea6e942bSAtsushi Nemoto kexec is a system call that implements the ability to shutdown your 2960ea6e942bSAtsushi Nemoto current kernel, and to start another kernel. It is like a reboot 29613dde6ad8SDavid Sterba but it is independent of the system firmware. And like a reboot 2962ea6e942bSAtsushi Nemoto you can start any kernel with it, not just Linux. 2963ea6e942bSAtsushi Nemoto 296401dd2fbfSMatt LaPlante The name comes from the similarity to the exec system call. 2965ea6e942bSAtsushi Nemoto 2966ea6e942bSAtsushi Nemoto It is an ongoing process to be certain the hardware in a machine 2967ea6e942bSAtsushi Nemoto is properly shutdown, so do not be surprised if this code does not 2968bf220695SGeert Uytterhoeven initially work for you. As of this writing the exact hardware 2969bf220695SGeert Uytterhoeven interface is strongly in flux, so no good recommendation can be 2970bf220695SGeert Uytterhoeven made. 2971ea6e942bSAtsushi Nemoto 29727aa1c8f4SRalf Baechleconfig CRASH_DUMP 29737aa1c8f4SRalf Baechle bool "Kernel crash dumps" 29747aa1c8f4SRalf Baechle help 29757aa1c8f4SRalf Baechle Generate crash dump after being started by kexec. 29767aa1c8f4SRalf Baechle This should be normally only set in special crash dump kernels 29777aa1c8f4SRalf Baechle which are loaded in the main kernel with kexec-tools into 29787aa1c8f4SRalf Baechle a specially reserved region and then later executed after 29797aa1c8f4SRalf Baechle a crash by kdump/kexec. The crash dump kernel must be compiled 29807aa1c8f4SRalf Baechle to a memory address not used by the main kernel or firmware using 29817aa1c8f4SRalf Baechle PHYSICAL_START. 29827aa1c8f4SRalf Baechle 29837aa1c8f4SRalf Baechleconfig PHYSICAL_START 29847aa1c8f4SRalf Baechle hex "Physical address where the kernel is loaded" 29858bda3e26SMaciej W. Rozycki default "0xffffffff84000000" 29867aa1c8f4SRalf Baechle depends on CRASH_DUMP 29877aa1c8f4SRalf Baechle help 29887aa1c8f4SRalf Baechle This gives the CKSEG0 or KSEG0 address where the kernel is loaded. 29897aa1c8f4SRalf Baechle If you plan to use kernel for capturing the crash dump change 29907aa1c8f4SRalf Baechle this value to start of the reserved region (the "X" value as 29917aa1c8f4SRalf Baechle specified in the "crashkernel=YM@XM" command line boot parameter 29927aa1c8f4SRalf Baechle passed to the panic-ed kernel). 29937aa1c8f4SRalf Baechle 2994597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT 2995b7f1e273SPaul Burton bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6 2996597ce172SPaul Burton depends on 32BIT || MIPS32_O32 2997597ce172SPaul Burton help 2998597ce172SPaul Burton When this is enabled, the kernel will support use of 64-bit floating 2999597ce172SPaul Burton point registers with binaries using the O32 ABI along with the 3000597ce172SPaul Burton EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On 3001597ce172SPaul Burton 32-bit MIPS systems this support is at the cost of increasing the 3002597ce172SPaul Burton size and complexity of the compiled FPU emulator. Thus if you are 3003597ce172SPaul Burton running a MIPS32 system and know that none of your userland binaries 3004597ce172SPaul Burton will require 64-bit floating point, you may wish to reduce the size 3005597ce172SPaul Burton of your kernel & potentially improve FP emulation performance by 3006597ce172SPaul Burton saying N here. 3007597ce172SPaul Burton 300806e2e882SPaul Burton Although binutils currently supports use of this flag the details 300906e2e882SPaul Burton concerning its effect upon the O32 ABI in userland are still being 301018ff14c8SColin Ian King worked on. In order to avoid userland becoming dependent upon current 301106e2e882SPaul Burton behaviour before the details have been finalised, this option should 301206e2e882SPaul Burton be considered experimental and only enabled by those working upon 301306e2e882SPaul Burton said details. 301406e2e882SPaul Burton 301506e2e882SPaul Burton If unsure, say N. 3016597ce172SPaul Burton 3017f2ffa5abSDezhong Diaoconfig USE_OF 30180b3e06fdSJonas Gorski bool 3019f2ffa5abSDezhong Diao select OF 3020e6ce1324SStephen Neuendorffer select OF_EARLY_FLATTREE 3021abd2363fSGrant Likely select IRQ_DOMAIN 3022f2ffa5abSDezhong Diao 30232fe8ea39SDengcheng Zhuconfig UHI_BOOT 30242fe8ea39SDengcheng Zhu bool 30252fe8ea39SDengcheng Zhu 30267fafb068SAndrew Brestickerconfig BUILTIN_DTB 30277fafb068SAndrew Bresticker bool 30287fafb068SAndrew Bresticker 30291da8f179SJonas Gorskichoice 30305b24d52cSJonas Gorski prompt "Kernel appended dtb support" if USE_OF 30311da8f179SJonas Gorski default MIPS_NO_APPENDED_DTB 30321da8f179SJonas Gorski 30331da8f179SJonas Gorski config MIPS_NO_APPENDED_DTB 30341da8f179SJonas Gorski bool "None" 30351da8f179SJonas Gorski help 30361da8f179SJonas Gorski Do not enable appended dtb support. 30371da8f179SJonas Gorski 303887db537dSAaro Koskinen config MIPS_ELF_APPENDED_DTB 303987db537dSAaro Koskinen bool "vmlinux" 304087db537dSAaro Koskinen help 304187db537dSAaro Koskinen With this option, the boot code will look for a device tree binary 304287db537dSAaro Koskinen DTB) included in the vmlinux ELF section .appended_dtb. By default 304387db537dSAaro Koskinen it is empty and the DTB can be appended using binutils command 304487db537dSAaro Koskinen objcopy: 304587db537dSAaro Koskinen 304687db537dSAaro Koskinen objcopy --update-section .appended_dtb=<filename>.dtb vmlinux 304787db537dSAaro Koskinen 304818ff14c8SColin Ian King This is meant as a backward compatibility convenience for those 304987db537dSAaro Koskinen systems with a bootloader that can't be upgraded to accommodate 305087db537dSAaro Koskinen the documented boot protocol using a device tree. 305187db537dSAaro Koskinen 30521da8f179SJonas Gorski config MIPS_RAW_APPENDED_DTB 3053b8f54f2cSJonas Gorski bool "vmlinux.bin or vmlinuz.bin" 30541da8f179SJonas Gorski help 30551da8f179SJonas Gorski With this option, the boot code will look for a device tree binary 3056b8f54f2cSJonas Gorski DTB) appended to raw vmlinux.bin or vmlinuz.bin. 30571da8f179SJonas Gorski (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb). 30581da8f179SJonas Gorski 30591da8f179SJonas Gorski This is meant as a backward compatibility convenience for those 30601da8f179SJonas Gorski systems with a bootloader that can't be upgraded to accommodate 30611da8f179SJonas Gorski the documented boot protocol using a device tree. 30621da8f179SJonas Gorski 30631da8f179SJonas Gorski Beware that there is very little in terms of protection against 30641da8f179SJonas Gorski this option being confused by leftover garbage in memory that might 30651da8f179SJonas Gorski look like a DTB header after a reboot if no actual DTB is appended 30661da8f179SJonas Gorski to vmlinux.bin. Do not leave this option active in a production kernel 30671da8f179SJonas Gorski if you don't intend to always append a DTB. 30681da8f179SJonas Gorskiendchoice 30691da8f179SJonas Gorski 30702024972eSJonas Gorskichoice 30712024972eSJonas Gorski prompt "Kernel command line type" if !CMDLINE_OVERRIDE 30722bcef9b4SJonas Gorski default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \ 307387fcfa7bSJiaxun Yang !MACH_LOONGSON64 && !MIPS_MALTA && \ 30742bcef9b4SJonas Gorski !CAVIUM_OCTEON_SOC 30752024972eSJonas Gorski default MIPS_CMDLINE_FROM_BOOTLOADER 30762024972eSJonas Gorski 30772024972eSJonas Gorski config MIPS_CMDLINE_FROM_DTB 30782024972eSJonas Gorski depends on USE_OF 30792024972eSJonas Gorski bool "Dtb kernel arguments if available" 30802024972eSJonas Gorski 30812024972eSJonas Gorski config MIPS_CMDLINE_DTB_EXTEND 30822024972eSJonas Gorski depends on USE_OF 30832024972eSJonas Gorski bool "Extend dtb kernel arguments with bootloader arguments" 30842024972eSJonas Gorski 30852024972eSJonas Gorski config MIPS_CMDLINE_FROM_BOOTLOADER 30862024972eSJonas Gorski bool "Bootloader kernel arguments if available" 3087ed47e153SRabin Vincent 3088ed47e153SRabin Vincent config MIPS_CMDLINE_BUILTIN_EXTEND 3089ed47e153SRabin Vincent depends on CMDLINE_BOOL 3090ed47e153SRabin Vincent bool "Extend builtin kernel arguments with bootloader arguments" 30912024972eSJonas Gorskiendchoice 30922024972eSJonas Gorski 30935e83d430SRalf Baechleendmenu 30945e83d430SRalf Baechle 30951df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT 30961df0f0ffSAtsushi Nemoto bool 30971df0f0ffSAtsushi Nemoto default y 30981df0f0ffSAtsushi Nemoto 30991df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT 31001df0f0ffSAtsushi Nemoto bool 31011df0f0ffSAtsushi Nemoto default y 31021df0f0ffSAtsushi Nemoto 3103a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS 3104a728ab52SKirill A. Shutemov int 31053377e227SAlex Belits default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48 310641ce097fSHuang Pei default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48) 3107a728ab52SKirill A. Shutemov default 2 3108a728ab52SKirill A. Shutemov 31096c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET 31106c359eb1SPaul Burton bool 31116c359eb1SPaul Burton 31121da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)" 31131da177e4SLinus Torvalds 3114c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC 31152eac9c2dSChristoph Hellwig select PCI_DOMAINS_GENERIC if PCI 3116c5611df9SPaul Burton bool 3117c5611df9SPaul Burton 3118c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY 3119c5611df9SPaul Burton def_bool !PCI_DRIVERS_GENERIC 3120c5611df9SPaul Burton select NO_GENERIC_PCI_IOPORT_MAP 31212eac9c2dSChristoph Hellwig select PCI_DOMAINS if PCI 31221da177e4SLinus Torvalds 31231da177e4SLinus Torvalds# 31241da177e4SLinus Torvalds# ISA support is now enabled via select. Too many systems still have the one 31251da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect 31261da177e4SLinus Torvalds# users to choose the right thing ... 31271da177e4SLinus Torvalds# 31281da177e4SLinus Torvaldsconfig ISA 31291da177e4SLinus Torvalds bool 31301da177e4SLinus Torvalds 31311da177e4SLinus Torvaldsconfig TC 31321da177e4SLinus Torvalds bool "TURBOchannel support" 31331da177e4SLinus Torvalds depends on MACH_DECSTATION 31341da177e4SLinus Torvalds help 313550a23e6eSJustin P. Mattock TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS 313650a23e6eSJustin P. Mattock processors. TURBOchannel programming specifications are available 313750a23e6eSJustin P. Mattock at: 313850a23e6eSJustin P. Mattock <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/> 313950a23e6eSJustin P. Mattock and: 314050a23e6eSJustin P. Mattock <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/> 314150a23e6eSJustin P. Mattock Linux driver support status is documented at: 314250a23e6eSJustin P. Mattock <http://www.linux-mips.org/wiki/DECstation> 31431da177e4SLinus Torvalds 31441da177e4SLinus Torvaldsconfig MMU 31451da177e4SLinus Torvalds bool 31461da177e4SLinus Torvalds default y 31471da177e4SLinus Torvalds 3148109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN 3149109c32ffSMatt Redfearn default 12 if 64BIT 3150109c32ffSMatt Redfearn default 8 3151109c32ffSMatt Redfearn 3152109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX 3153109c32ffSMatt Redfearn default 18 if 64BIT 3154109c32ffSMatt Redfearn default 15 3155109c32ffSMatt Redfearn 3156109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN 3157109c32ffSMatt Redfearn default 8 3158109c32ffSMatt Redfearn 3159109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX 3160109c32ffSMatt Redfearn default 15 3161109c32ffSMatt Redfearn 3162d865bea4SRalf Baechleconfig I8253 3163d865bea4SRalf Baechle bool 3164798778b8SRussell King select CLKSRC_I8253 31652d02612fSThomas Gleixner select CLKEVT_I8253 31669726b43aSWu Zhangjin select MIPS_EXTERNAL_TIMER 31671da177e4SLinus Torvaldsendmenu 31681da177e4SLinus Torvalds 31691da177e4SLinus Torvaldsconfig TRAD_SIGNALS 31701da177e4SLinus Torvalds bool 31711da177e4SLinus Torvalds 31721da177e4SLinus Torvaldsconfig MIPS32_COMPAT 317378aaf956SRalf Baechle bool 31741da177e4SLinus Torvalds 31751da177e4SLinus Torvaldsconfig COMPAT 31761da177e4SLinus Torvalds bool 31771da177e4SLinus Torvalds 31781da177e4SLinus Torvaldsconfig MIPS32_O32 31791da177e4SLinus Torvalds bool "Kernel support for o32 binaries" 318078aaf956SRalf Baechle depends on 64BIT 318178aaf956SRalf Baechle select ARCH_WANT_OLD_COMPAT_IPC 318278aaf956SRalf Baechle select COMPAT 318378aaf956SRalf Baechle select MIPS32_COMPAT 31841da177e4SLinus Torvalds help 31851da177e4SLinus Torvalds Select this option if you want to run o32 binaries. These are pure 31861da177e4SLinus Torvalds 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of 31871da177e4SLinus Torvalds existing binaries are in this format. 31881da177e4SLinus Torvalds 31891da177e4SLinus Torvalds If unsure, say Y. 31901da177e4SLinus Torvalds 31911da177e4SLinus Torvaldsconfig MIPS32_N32 31921da177e4SLinus Torvalds bool "Kernel support for n32 binaries" 3193c22eacfeSRalf Baechle depends on 64BIT 31945a9372f7SArnd Bergmann select ARCH_WANT_COMPAT_IPC_PARSE_VERSION 319578aaf956SRalf Baechle select COMPAT 319678aaf956SRalf Baechle select MIPS32_COMPAT 31971da177e4SLinus Torvalds help 31981da177e4SLinus Torvalds Select this option if you want to run n32 binaries. These are 31991da177e4SLinus Torvalds 64-bit binaries using 32-bit quantities for addressing and certain 32001da177e4SLinus Torvalds data that would normally be 64-bit. They are used in special 32011da177e4SLinus Torvalds cases. 32021da177e4SLinus Torvalds 32031da177e4SLinus Torvalds If unsure, say N. 32041da177e4SLinus Torvalds 3205d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY 3206d49fc692SNathan Chancellor def_bool y 3207d49fc692SNathan Chancellor depends on $(cc-option,-mno-branch-likely) 3208d49fc692SNathan Chancellor 32092116245eSRalf Baechlemenu "Power management options" 3210952fa954SRodolfo Giometti 3211363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE 3212363c55caSWu Zhangjin def_bool y 32133f5b3e17SRalf Baechle depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3214363c55caSWu Zhangjin 3215f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE 3216f4cb5700SJohannes Berg def_bool y 32173f5b3e17SRalf Baechle depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP 3218f4cb5700SJohannes Berg 32192116245eSRalf Baechlesource "kernel/power/Kconfig" 3220952fa954SRodolfo Giometti 32211da177e4SLinus Torvaldsendmenu 32221da177e4SLinus Torvalds 32237a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER 32247a998935SViresh Kumar bool 32257a998935SViresh Kumar 32267a998935SViresh Kumarmenu "CPU Power Management" 3227c095ebafSPaul Burton 3228c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER 32297a998935SViresh Kumarsource "drivers/cpufreq/Kconfig" 323031f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER 32319726b43aSWu Zhangjin 3232c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig" 3233c095ebafSPaul Burton 3234c095ebafSPaul Burtonendmenu 3235c095ebafSPaul Burton 32362235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig" 3237e91946d6SNathan Chancellor 3238e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig" 3239