xref: /linux/arch/mips/Kconfig (revision 975fd3c26fedac29f3767971918add558bae5c51)
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
191ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2012597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
21dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2225da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
230b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
24855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
259035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2612597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
27d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
2810916706SShile Zhang	select BUILDTIME_TABLE_SORT
2912597988SMatt Redfearn	select CLONE_BACKWARDS
3057eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
3112597988SMatt Redfearn	select CPU_PM if CPU_IDLE
3212597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3312597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
3412597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
3524640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
36b962aeb0SPaul Burton	select GENERIC_IOMAP
3712597988SMatt Redfearn	select GENERIC_IRQ_PROBE
3812597988SMatt Redfearn	select GENERIC_IRQ_SHOW
396630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
40740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
41740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
42740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
43740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
44740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
4512597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
4612597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
47*975fd3c2SJiaxun Yang	select GENERIC_IDLE_POLL_SETUP
4812597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
496ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
50fcbfe812SNiklas Schnelle	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
51906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
5212597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
5342b20995SArnd Bergmann	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
54109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
55109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
56490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
57c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
5845e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
592ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
6024a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
61490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6264575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6312597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
6412597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
6512597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
6612597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
677364d60cSJiaxun Yang	select HAVE_EBPF_JIT if !CPU_MICROMIPS
6812597988SMatt Redfearn	select HAVE_EXIT_THREAD
6967a929e0SChristoph Hellwig	select HAVE_FAST_GUP
7012597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
7129c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7212597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7334c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
7434c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
75b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
7612597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
7712597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
78c1bf207dSDavid Daney	select HAVE_KPROBES
79c1bf207dSDavid Daney	select HAVE_KRETPROBES
80c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
81786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8242a0bb3fSPetr Mladek	select HAVE_NMI
8312597988SMatt Redfearn	select HAVE_PERF_EVENTS
841ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
851ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
8608bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
879ea141adSPaul Burton	select HAVE_RSEQ
8816c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
89d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9012597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
91a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
9212597988SMatt Redfearn	select IRQ_FORCED_THREADING
936630a8e5SChristoph Hellwig	select ISA if EISA
9412597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
9534c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
9612597988SMatt Redfearn	select PERF_USE_VMALLOC
97981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
9805a0a344SArnd Bergmann	select RTC_LIB
9912597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1004aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
1010bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
102e0a8b93eSNemanja Rakovic	select HAVE_ARCH_KCSAN if 64BIT
1031da177e4SLinus Torvalds
104d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
105d3991572SChristoph Hellwig	bool
106d3991572SChristoph Hellwig
107c434b9f8SPaul Cercueilconfig MIPS_GENERIC
108c434b9f8SPaul Cercueil	bool
109c434b9f8SPaul Cercueil
110f0f4a753SPaul Cercueilconfig MACH_INGENIC
111f0f4a753SPaul Cercueil	bool
112f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
113f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
114f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
115f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
116f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
117f0f4a753SPaul Cercueil	select PINCTRL
118f0f4a753SPaul Cercueil	select GPIOLIB
119f0f4a753SPaul Cercueil	select COMMON_CLK
120f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
121f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
122f0f4a753SPaul Cercueil	select USE_OF
123f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
124f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
125f0f4a753SPaul Cercueil
1261da177e4SLinus Torvaldsmenu "Machine selection"
1271da177e4SLinus Torvalds
1285e83d430SRalf Baechlechoice
1295e83d430SRalf Baechle	prompt "System type"
130c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1311da177e4SLinus Torvalds
132c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
133eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
134c434b9f8SPaul Cercueil	select MIPS_GENERIC
135eed0eabdSPaul Burton	select BOOT_RAW
136eed0eabdSPaul Burton	select BUILTIN_DTB
137eed0eabdSPaul Burton	select CEVT_R4K
138eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
139eed0eabdSPaul Burton	select COMMON_CLK
140eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
14134c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
142eed0eabdSPaul Burton	select CSRC_R4K
1434e066441SChristoph Hellwig	select DMA_NONCOHERENT
144eb01d42aSChristoph Hellwig	select HAVE_PCI
145eed0eabdSPaul Burton	select IRQ_MIPS_CPU
1460211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
147eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
148eed0eabdSPaul Burton	select MIPS_GIC
149eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
150eed0eabdSPaul Burton	select NO_EXCEPT_FILL
151eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
152eed0eabdSPaul Burton	select SMP_UP if SMP
153a3078e59SMatt Redfearn	select SWAP_IO_SPACE
154eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
155eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
156fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R5
157eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
158eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
159eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
160fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R5
161eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
162eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
163eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
164eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
165eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
166eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
167eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
168eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
16934c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
170eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
171eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
172eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
173c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
17434c01e41SAlexander Lobakin	select UHI_BOOT
1752e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1762e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1772e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1782e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1792e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1802e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
181eed0eabdSPaul Burton	select USE_OF
182eed0eabdSPaul Burton	help
183eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
184eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
185eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
186eed0eabdSPaul Burton	  Interface) specification.
187eed0eabdSPaul Burton
18842a4f17dSManuel Laussconfig MIPS_ALCHEMY
189c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
190d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
191f772cdb2SRalf Baechle	select CEVT_R4K
192d7ea335cSSteven J. Hill	select CSRC_R4K
19367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
194a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
195d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
19642a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
19742a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
19842a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
199d30a2b47SLinus Walleij	select GPIOLIB
2001b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
20147440229SManuel Lauss	select COMMON_CLK
2021da177e4SLinus Torvalds
2037ca5dc14SFlorian Fainelliconfig AR7
2047ca5dc14SFlorian Fainelli	bool "Texas Instruments AR7"
2057ca5dc14SFlorian Fainelli	select BOOT_ELF32
206b408b611SArnd Bergmann	select COMMON_CLK
2077ca5dc14SFlorian Fainelli	select DMA_NONCOHERENT
2087ca5dc14SFlorian Fainelli	select CEVT_R4K
2097ca5dc14SFlorian Fainelli	select CSRC_R4K
21067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2117ca5dc14SFlorian Fainelli	select NO_EXCEPT_FILL
2127ca5dc14SFlorian Fainelli	select SWAP_IO_SPACE
2137ca5dc14SFlorian Fainelli	select SYS_HAS_CPU_MIPS32_R1
2147ca5dc14SFlorian Fainelli	select SYS_HAS_EARLY_PRINTK
2157ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_32BIT_KERNEL
2167ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_LITTLE_ENDIAN
217377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
2181b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT_UART16550
219d30a2b47SLinus Walleij	select GPIOLIB
2207ca5dc14SFlorian Fainelli	select VLYNQ
2217ca5dc14SFlorian Fainelli	help
2227ca5dc14SFlorian Fainelli	  Support for the Texas Instruments AR7 System-on-a-Chip
2237ca5dc14SFlorian Fainelli	  family: TNETD7100, 7200 and 7300.
2247ca5dc14SFlorian Fainelli
22543cc739fSSergey Ryazanovconfig ATH25
22643cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
22743cc739fSSergey Ryazanov	select CEVT_R4K
22843cc739fSSergey Ryazanov	select CSRC_R4K
22943cc739fSSergey Ryazanov	select DMA_NONCOHERENT
23067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2311753e74eSSergey Ryazanov	select IRQ_DOMAIN
23243cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
23343cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
23443cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2358aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
23643cc739fSSergey Ryazanov	help
23743cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
23843cc739fSSergey Ryazanov
239d4a67d9dSGabor Juhosconfig ATH79
240d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
241ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
242d4a67d9dSGabor Juhos	select BOOT_RAW
243d4a67d9dSGabor Juhos	select CEVT_R4K
244d4a67d9dSGabor Juhos	select CSRC_R4K
245d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
246d30a2b47SLinus Walleij	select GPIOLIB
247a08227a2SJohn Crispin	select PINCTRL
248411520afSAlban Bedel	select COMMON_CLK
24967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
250d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
251d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
252d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
253d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
254377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
255b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
25603c8c407SAlban Bedel	select USE_OF
25753d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
258d4a67d9dSGabor Juhos	help
259d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
260d4a67d9dSGabor Juhos
2615f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2625f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
26329906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
264d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
265d666cd02SKevin Cernekee	select BOOT_RAW
266d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
267d666cd02SKevin Cernekee	select USE_OF
268d666cd02SKevin Cernekee	select CEVT_R4K
269d666cd02SKevin Cernekee	select CSRC_R4K
270d666cd02SKevin Cernekee	select SYNC_R4K
271d666cd02SKevin Cernekee	select COMMON_CLK
272c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
27360b858f2SKevin Cernekee	select BCM7038_L1_IRQ
27460b858f2SKevin Cernekee	select BCM7120_L2_IRQ
27560b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
27667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
27760b858f2SKevin Cernekee	select DMA_NONCOHERENT
278d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
27960b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
280d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
281d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
28260b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
28360b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
28460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
285d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
286d666cd02SKevin Cernekee	select SWAP_IO_SPACE
28760b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28860b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
28960b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
29060b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2914dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
2921d987052SFlorian Fainelli	select HAVE_PCI
2931d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
294466ab2eaSFlorian Fainelli	select FW_CFE
295d666cd02SKevin Cernekee	help
2965f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2975f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2985f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2995f2d4459SKevin Cernekee	  must be set appropriately for your board.
300d666cd02SKevin Cernekee
3011c0c13ebSAurelien Jarnoconfig BCM47XX
302c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
303fe08f8c2SHauke Mehrtens	select BOOT_RAW
30442f77542SRalf Baechle	select CEVT_R4K
305940f6b48SRalf Baechle	select CSRC_R4K
3061c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
307eb01d42aSChristoph Hellwig	select HAVE_PCI
30867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
309314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
310dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
3111c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3121c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
313377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3146507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
31525e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
316e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
317c949c0bcSRafał Miłecki	select GPIOLIB
318c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
319f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3202ab71a02SRafał Miłecki	select BCM47XX_SPROM
321dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3221c0c13ebSAurelien Jarno	help
3231c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3241c0c13ebSAurelien Jarno
325e7300d04SMaxime Bizonconfig BCM63XX
326e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
327ae8de61cSFlorian Fainelli	select BOOT_RAW
328e7300d04SMaxime Bizon	select CEVT_R4K
329e7300d04SMaxime Bizon	select CSRC_R4K
330fc264022SJonas Gorski	select SYNC_R4K
331e7300d04SMaxime Bizon	select DMA_NONCOHERENT
33267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
333e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
334e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
335e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3365eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3375eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3385eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
339e7300d04SMaxime Bizon	select SWAP_IO_SPACE
340d30a2b47SLinus Walleij	select GPIOLIB
341af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
342bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
343e7300d04SMaxime Bizon	help
344e7300d04SMaxime Bizon	  Support for BCM63XX based boards
345e7300d04SMaxime Bizon
3461da177e4SLinus Torvaldsconfig MIPS_COBALT
3473fa986faSMartin Michlmayr	bool "Cobalt Server"
34842f77542SRalf Baechle	select CEVT_R4K
349940f6b48SRalf Baechle	select CSRC_R4K
3501097c6acSYoichi Yuasa	select CEVT_GT641XX
3511da177e4SLinus Torvalds	select DMA_NONCOHERENT
352eb01d42aSChristoph Hellwig	select FORCE_PCI
353d865bea4SRalf Baechle	select I8253
3541da177e4SLinus Torvalds	select I8259
35567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
356d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
357252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3587cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3590a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
360ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3610e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3625e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
363e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3641da177e4SLinus Torvalds
3651da177e4SLinus Torvaldsconfig MACH_DECSTATION
3663fa986faSMartin Michlmayr	bool "DECstations"
3671da177e4SLinus Torvalds	select BOOT_ELF32
3686457d9fcSYoichi Yuasa	select CEVT_DS1287
36981d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3704247417dSYoichi Yuasa	select CSRC_IOASIC
37181d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
37220d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
37320d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
37420d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3751da177e4SLinus Torvalds	select DMA_NONCOHERENT
376ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
37767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3787cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3797cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
380ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3817d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3825e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3831723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3841723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3851723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
386930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3875e83d430SRalf Baechle	help
3881da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3891da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3901da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3911da177e4SLinus Torvalds
3921da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3931da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3941da177e4SLinus Torvalds
3951da177e4SLinus Torvalds		DECstation 5000/50
3961da177e4SLinus Torvalds		DECstation 5000/150
3971da177e4SLinus Torvalds		DECstation 5000/260
3981da177e4SLinus Torvalds		DECsystem 5900/260
3991da177e4SLinus Torvalds
4001da177e4SLinus Torvalds	  otherwise choose R3000.
4011da177e4SLinus Torvalds
4025e83d430SRalf Baechleconfig MACH_JAZZ
4033fa986faSMartin Michlmayr	bool "Jazz family of machines"
40439b2d756SThomas Bogendoerfer	select ARC_MEMORY
40539b2d756SThomas Bogendoerfer	select ARC_PROMLIB
406a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
4077a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4082f9237d4SChristoph Hellwig	select DMA_OPS
4090e2794b0SRalf Baechle	select FW_ARC
4100e2794b0SRalf Baechle	select FW_ARC32
4115e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
41242f77542SRalf Baechle	select CEVT_R4K
413940f6b48SRalf Baechle	select CSRC_R4K
414e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4155e83d430SRalf Baechle	select GENERIC_ISA_DMA
4168a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
41767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
418d865bea4SRalf Baechle	select I8253
4195e83d430SRalf Baechle	select I8259
4205e83d430SRalf Baechle	select ISA
4217cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4225e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4237d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4241723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
425aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4261da177e4SLinus Torvalds	help
4275e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4285e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
429692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4305e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4315e83d430SRalf Baechle
432f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
433de361e8bSPaul Burton	bool "Ingenic SoC based machines"
434f0f4a753SPaul Cercueil	select MIPS_GENERIC
435f0f4a753SPaul Cercueil	select MACH_INGENIC
436f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
437eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
438eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4395ebabe59SLars-Peter Clausen
440171bb2f1SJohn Crispinconfig LANTIQ
441171bb2f1SJohn Crispin	bool "Lantiq based platforms"
442171bb2f1SJohn Crispin	select DMA_NONCOHERENT
44367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
444171bb2f1SJohn Crispin	select CEVT_R4K
445171bb2f1SJohn Crispin	select CSRC_R4K
446b74cc639SSander Vanheule	select NO_EXCEPT_FILL
447171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
448171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
449171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
450171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
451377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
452171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
453f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
454171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
455d30a2b47SLinus Walleij	select GPIOLIB
456171bb2f1SJohn Crispin	select SWAP_IO_SPACE
457171bb2f1SJohn Crispin	select BOOT_RAW
458bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
459a0392222SJohn Crispin	select USE_OF
4603f8c50c9SJohn Crispin	select PINCTRL
4613f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
462c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
463c530781cSJohn Crispin	select RESET_CONTROLLER
464171bb2f1SJohn Crispin
46530ad29bbSHuacai Chenconfig MACH_LOONGSON32
466caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
467c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
468ade299d8SYoichi Yuasa	help
46930ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
47085749d24SWu Zhangjin
47130ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
47230ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
47330ad29bbSHuacai Chen	  Sciences (CAS).
474ade299d8SYoichi Yuasa
47571e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
47671e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
477ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
478ca585cf9SKelvin Cheung	help
47971e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
480ca585cf9SKelvin Cheung
48171e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
482caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
4836fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
4846fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
4856fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
4866fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
4876fbde6b4SJiaxun Yang	select BOOT_ELF32
4886fbde6b4SJiaxun Yang	select BOARD_SCACHE
4896fbde6b4SJiaxun Yang	select CSRC_R4K
4906fbde6b4SJiaxun Yang	select CEVT_R4K
4916fbde6b4SJiaxun Yang	select FORCE_PCI
4926fbde6b4SJiaxun Yang	select ISA
4936fbde6b4SJiaxun Yang	select I8259
4946fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
4957d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
4965125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
4976fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
4986423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
4996fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
5006fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
5016fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
5026fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
5036fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
5046fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
5056fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
5066fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
50771e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
508a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
5096fbde6b4SJiaxun Yang	select ZONE_DMA32
51087fcfa7bSJiaxun Yang	select COMMON_CLK
51187fcfa7bSJiaxun Yang	select USE_OF
51287fcfa7bSJiaxun Yang	select BUILTIN_DTB
51339c1485cSHuacai Chen	select PCI_HOST_GENERIC
514f8f9f21cSFeiyang Chen	select HAVE_ARCH_NODEDATA_EXTENSION if NUMA
51571e2f4ddSJiaxun Yang	help
516caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
517caed1d1bSHuacai Chen
518caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
519caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
520caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
521caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
522ca585cf9SKelvin Cheung
5231da177e4SLinus Torvaldsconfig MIPS_MALTA
5243fa986faSMartin Michlmayr	bool "MIPS Malta board"
52561ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
526a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5277a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5281da177e4SLinus Torvalds	select BOOT_ELF32
529fa71c960SRalf Baechle	select BOOT_RAW
530e8823d26SPaul Burton	select BUILTIN_DTB
53142f77542SRalf Baechle	select CEVT_R4K
532fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
53342b002abSGuenter Roeck	select COMMON_CLK
53447bf2b03SMaksym Kokhan	select CSRC_R4K
535a86497d6SChristoph Hellwig	select DMA_NONCOHERENT
5361da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5378a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
538eb01d42aSChristoph Hellwig	select HAVE_PCI
539d865bea4SRalf Baechle	select I8253
5401da177e4SLinus Torvalds	select I8259
54147bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5425e83d430SRalf Baechle	select MIPS_BONITO64
5439318c51aSChris Dearman	select MIPS_CPU_SCACHE
54447bf2b03SMaksym Kokhan	select MIPS_GIC
545a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5465e83d430SRalf Baechle	select MIPS_MSC
54747bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
548ecafe3e9SPaul Burton	select SMP_UP if SMP
5491da177e4SLinus Torvalds	select SWAP_IO_SPACE
5507cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5517cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
552bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
553c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
554575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5557cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5565d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
557575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5587cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5597cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
560ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
561ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5625e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
563c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5645e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
565424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
56647bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
567e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
568f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
56947bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
5709693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
571f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5721b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
573e8823d26SPaul Burton	select USE_OF
574886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
575abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
5761da177e4SLinus Torvalds	help
577f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5781da177e4SLinus Torvalds	  board.
5791da177e4SLinus Torvalds
5802572f00dSJoshua Hendersonconfig MACH_PIC32
5812572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5822572f00dSJoshua Henderson	help
5832572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5842572f00dSJoshua Henderson
5852572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5862572f00dSJoshua Henderson	  microcontrollers.
5872572f00dSJoshua Henderson
588baec970aSLauri Kasanenconfig MACH_NINTENDO64
589baec970aSLauri Kasanen	bool "Nintendo 64 console"
590baec970aSLauri Kasanen	select CEVT_R4K
591baec970aSLauri Kasanen	select CSRC_R4K
592baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
593baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
594baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
595baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
596baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
597baec970aSLauri Kasanen	select DMA_NONCOHERENT
598baec970aSLauri Kasanen	select IRQ_MIPS_CPU
599baec970aSLauri Kasanen
600ae2b5bb6SJohn Crispinconfig RALINK
601ae2b5bb6SJohn Crispin	bool "Ralink based machines"
602ae2b5bb6SJohn Crispin	select CEVT_R4K
60335f752beSArnd Bergmann	select COMMON_CLK
604ae2b5bb6SJohn Crispin	select CSRC_R4K
605ae2b5bb6SJohn Crispin	select BOOT_RAW
606ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
60767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
608ae2b5bb6SJohn Crispin	select USE_OF
609ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
610ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
611ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
612377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6131f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
614ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6152a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6162a153f1cSJohn Crispin	select RESET_CONTROLLER
617ae2b5bb6SJohn Crispin
6184042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6194042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6204042147aSBert Vermeulen	select MIPS_GENERIC
6214042147aSBert Vermeulen	select DMA_NONCOHERENT
6224042147aSBert Vermeulen	select IRQ_MIPS_CPU
6234042147aSBert Vermeulen	select CSRC_R4K
6244042147aSBert Vermeulen	select CEVT_R4K
6254042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
6264042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
6274042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
6284042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
6294042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
6304042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
6314042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
6324042147aSBert Vermeulen	select BOOT_RAW
6334042147aSBert Vermeulen	select PINCTRL
6344042147aSBert Vermeulen	select USE_OF
6354042147aSBert Vermeulen
6361da177e4SLinus Torvaldsconfig SGI_IP22
6373fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
638c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
63939b2d756SThomas Bogendoerfer	select ARC_PROMLIB
6400e2794b0SRalf Baechle	select FW_ARC
6410e2794b0SRalf Baechle	select FW_ARC32
6427a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
6431da177e4SLinus Torvalds	select BOOT_ELF32
64442f77542SRalf Baechle	select CEVT_R4K
645940f6b48SRalf Baechle	select CSRC_R4K
646e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
6471da177e4SLinus Torvalds	select DMA_NONCOHERENT
6486630a8e5SChristoph Hellwig	select HAVE_EISA
649d865bea4SRalf Baechle	select I8253
65068de4803SThomas Bogendoerfer	select I8259
6511da177e4SLinus Torvalds	select IP22_CPU_SCACHE
65267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
653aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
654e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
655e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
65636e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
657e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
658e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
659e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
6601da177e4SLinus Torvalds	select SWAP_IO_SPACE
6617cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
6627cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
663c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
664ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
665ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6665e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
667802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
6685e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
66944def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
670930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
6711da177e4SLinus Torvalds	help
6721da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
6731da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
6741da177e4SLinus Torvalds	  that runs on these, say Y here.
6751da177e4SLinus Torvalds
6761da177e4SLinus Torvaldsconfig SGI_IP27
6773fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
67854aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
679397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
6800e2794b0SRalf Baechle	select FW_ARC
6810e2794b0SRalf Baechle	select FW_ARC64
682e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
6835e83d430SRalf Baechle	select BOOT_ELF64
684e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
68504100459SChristoph Hellwig	select FORCE_PCI
68636a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
687eb01d42aSChristoph Hellwig	select HAVE_PCI
68869a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
689e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
690130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
691a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
692a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
6937cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
694ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6955e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
696d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
6971a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
698256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
699930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7006c86a302SMike Rapoport	select NUMA
701f8f9f21cSFeiyang Chen	select HAVE_ARCH_NODEDATA_EXTENSION
7021da177e4SLinus Torvalds	help
7031da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7041da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7051da177e4SLinus Torvalds	  here.
7061da177e4SLinus Torvalds
707e2defae5SThomas Bogendoerferconfig SGI_IP28
7087d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
709c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
71039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7110e2794b0SRalf Baechle	select FW_ARC
7120e2794b0SRalf Baechle	select FW_ARC64
7137a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
714e2defae5SThomas Bogendoerfer	select BOOT_ELF64
715e2defae5SThomas Bogendoerfer	select CEVT_R4K
716e2defae5SThomas Bogendoerfer	select CSRC_R4K
717e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
718e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
719e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
72067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7216630a8e5SChristoph Hellwig	select HAVE_EISA
722e2defae5SThomas Bogendoerfer	select I8253
723e2defae5SThomas Bogendoerfer	select I8259
724e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
725e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
7265b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
727e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
728e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
729e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
730e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
731e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
732c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
733e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
734e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
735256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
736dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
737e2defae5SThomas Bogendoerfer	help
738e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
739e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
740e2defae5SThomas Bogendoerfer
7417505576dSThomas Bogendoerferconfig SGI_IP30
7427505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
7437505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
7447505576dSThomas Bogendoerfer	select FW_ARC
7457505576dSThomas Bogendoerfer	select FW_ARC64
7467505576dSThomas Bogendoerfer	select BOOT_ELF64
7477505576dSThomas Bogendoerfer	select CEVT_R4K
7487505576dSThomas Bogendoerfer	select CSRC_R4K
74904100459SChristoph Hellwig	select FORCE_PCI
7507505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
7517505576dSThomas Bogendoerfer	select ZONE_DMA32
7527505576dSThomas Bogendoerfer	select HAVE_PCI
7537505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
7547505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
7557505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7567505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7577505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
7587505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7597505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
7607505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
7617505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
762256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
7637505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
7647505576dSThomas Bogendoerfer	select ARC_MEMORY
7657505576dSThomas Bogendoerfer	help
7667505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
7677505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
7687505576dSThomas Bogendoerfer
7691da177e4SLinus Torvaldsconfig SGI_IP32
770cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
77139b2d756SThomas Bogendoerfer	select ARC_MEMORY
77239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
77303df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
7740e2794b0SRalf Baechle	select FW_ARC
7750e2794b0SRalf Baechle	select FW_ARC32
7761da177e4SLinus Torvalds	select BOOT_ELF32
77742f77542SRalf Baechle	select CEVT_R4K
778940f6b48SRalf Baechle	select CSRC_R4K
7791da177e4SLinus Torvalds	select DMA_NONCOHERENT
780eb01d42aSChristoph Hellwig	select HAVE_PCI
78167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7821da177e4SLinus Torvalds	select R5000_CPU_SCACHE
7831da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
7847cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
7857cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
7867cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
787dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
788ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7895e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
790886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
7911da177e4SLinus Torvalds	help
7921da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
7931da177e4SLinus Torvalds
7945e83d430SRalf Baechleconfig SIBYTE_CRHONE
7953fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
7965e83d430SRalf Baechle	select BOOT_ELF32
7975e83d430SRalf Baechle	select SIBYTE_BCM1125
7985e83d430SRalf Baechle	select SWAP_IO_SPACE
7997cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8005e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8015e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8025e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8035e83d430SRalf Baechle
804ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
805ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
806ade299d8SYoichi Yuasa	select BOOT_ELF32
80703452347SThomas Bogendoerfer	select SIBYTE_SB1250
808ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
809ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
810ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
811ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
812ade299d8SYoichi Yuasa
813ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
814ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
815ade299d8SYoichi Yuasa	select BOOT_ELF32
816fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
817ade299d8SYoichi Yuasa	select SIBYTE_SB1250
818ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
819ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
820ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
821ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
822ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
823cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
824e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
825ade299d8SYoichi Yuasa
826ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
827ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
828ade299d8SYoichi Yuasa	select BOOT_ELF32
829fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
830ade299d8SYoichi Yuasa	select SIBYTE_SB1250
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_HIGHMEM
835ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
836756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
837ade299d8SYoichi Yuasa
838ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
839ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
840ade299d8SYoichi Yuasa	select BOOT_ELF32
841ade299d8SYoichi Yuasa	select SIBYTE_SB1250
842ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
843ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
844ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
845ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
846e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
847ade299d8SYoichi Yuasa
848ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
849ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
850ade299d8SYoichi Yuasa	select BOOT_ELF32
851ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
852ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
853ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
854ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
855ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
856651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
857ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
858cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
859e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
860ade299d8SYoichi Yuasa
86114b36af4SThomas Bogendoerferconfig SNI_RM
86214b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
86339b2d756SThomas Bogendoerfer	select ARC_MEMORY
86439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
8650e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
8660e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
867aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
8685e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
869a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
8707a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
8715e83d430SRalf Baechle	select BOOT_ELF32
87242f77542SRalf Baechle	select CEVT_R4K
873940f6b48SRalf Baechle	select CSRC_R4K
874e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
8755e83d430SRalf Baechle	select DMA_NONCOHERENT
8765e83d430SRalf Baechle	select GENERIC_ISA_DMA
8776630a8e5SChristoph Hellwig	select HAVE_EISA
8788a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
879eb01d42aSChristoph Hellwig	select HAVE_PCI
88067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
881d865bea4SRalf Baechle	select I8253
8825e83d430SRalf Baechle	select I8259
8835e83d430SRalf Baechle	select ISA
884564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
8854a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
8867cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
8874a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
888c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8894a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
89036a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
891ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
8927d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
8934a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8945e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8955e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
89644def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
8971da177e4SLinus Torvalds	help
89814b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
89914b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9005e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9015e83d430SRalf Baechle	  support this machine type.
9021da177e4SLinus Torvalds
903edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
904edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
90524a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
90623fbee9dSRalf Baechle
90773b4390fSRalf Baechleconfig MIKROTIK_RB532
90873b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
90973b4390fSRalf Baechle	select CEVT_R4K
91073b4390fSRalf Baechle	select CSRC_R4K
91173b4390fSRalf Baechle	select DMA_NONCOHERENT
912eb01d42aSChristoph Hellwig	select HAVE_PCI
91367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
91473b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
91573b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
91673b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
91773b4390fSRalf Baechle	select SWAP_IO_SPACE
91873b4390fSRalf Baechle	select BOOT_RAW
919d30a2b47SLinus Walleij	select GPIOLIB
920930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
92173b4390fSRalf Baechle	help
92273b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
92373b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
92473b4390fSRalf Baechle
9259ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9269ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
927a86c7f72SDavid Daney	select CEVT_R4K
928ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
9291753d50cSChristoph Hellwig	select HAVE_RAPIDIO
930d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
931a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
932a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
933f65aad41SRalf Baechle	select EDAC_SUPPORT
934b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
93573569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
93673569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
937a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
9385e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
939eb01d42aSChristoph Hellwig	select HAVE_PCI
94078bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
94178bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
94278bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
943f00e001eSDavid Daney	select ZONE_DMA32
944d30a2b47SLinus Walleij	select GPIOLIB
9456e511163SDavid Daney	select USE_OF
9466e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9476e511163SDavid Daney	select SYS_SUPPORTS_SMP
9487820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
9497820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
950e326479fSAndrew Bresticker	select BUILTIN_DTB
951f766b28aSJulian Braha	select MTD
9528c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
95309230cbcSChristoph Hellwig	select SWIOTLB
9543ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
955a86c7f72SDavid Daney	help
956a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
957a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
958a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
959a86c7f72SDavid Daney	  Some of the supported boards are:
960a86c7f72SDavid Daney		EBT3000
961a86c7f72SDavid Daney		EBH3000
962a86c7f72SDavid Daney		EBH3100
963a86c7f72SDavid Daney		Thunder
964a86c7f72SDavid Daney		Kodama
965a86c7f72SDavid Daney		Hikari
966a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
967a86c7f72SDavid Daney
9681da177e4SLinus Torvaldsendchoice
9691da177e4SLinus Torvalds
970e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
9713b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
972d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
973a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
974e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
9758945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
976eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
977a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
9785e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
9798ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
9802572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
981ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
98229c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
98338b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
98422b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
985a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
98671e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
98730ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
98830ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
98938b18f72SRalf Baechle
9905e83d430SRalf Baechleendmenu
9915e83d430SRalf Baechle
9923c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
9933c9ee7efSAkinobu Mita	bool
9943c9ee7efSAkinobu Mita	default y
9953c9ee7efSAkinobu Mita
9961da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
9971da177e4SLinus Torvalds	bool
9981da177e4SLinus Torvalds	default y
9991da177e4SLinus Torvalds
1000ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10011cc89038SAtsushi Nemoto	bool
10021cc89038SAtsushi Nemoto	default y
10031cc89038SAtsushi Nemoto
10041da177e4SLinus Torvalds#
10051da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10061da177e4SLinus Torvalds#
10070e2794b0SRalf Baechleconfig FW_ARC
10081da177e4SLinus Torvalds	bool
10091da177e4SLinus Torvalds
101061ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
101161ed242dSRalf Baechle	bool
101261ed242dSRalf Baechle
10139267a30dSMarc St-Jeanconfig BOOT_RAW
10149267a30dSMarc St-Jean	bool
10159267a30dSMarc St-Jean
1016217dd11eSRalf Baechleconfig CEVT_BCM1480
1017217dd11eSRalf Baechle	bool
1018217dd11eSRalf Baechle
10196457d9fcSYoichi Yuasaconfig CEVT_DS1287
10206457d9fcSYoichi Yuasa	bool
10216457d9fcSYoichi Yuasa
10221097c6acSYoichi Yuasaconfig CEVT_GT641XX
10231097c6acSYoichi Yuasa	bool
10241097c6acSYoichi Yuasa
102542f77542SRalf Baechleconfig CEVT_R4K
102642f77542SRalf Baechle	bool
102742f77542SRalf Baechle
1028217dd11eSRalf Baechleconfig CEVT_SB1250
1029217dd11eSRalf Baechle	bool
1030217dd11eSRalf Baechle
1031229f773eSAtsushi Nemotoconfig CEVT_TXX9
1032229f773eSAtsushi Nemoto	bool
1033229f773eSAtsushi Nemoto
1034217dd11eSRalf Baechleconfig CSRC_BCM1480
1035217dd11eSRalf Baechle	bool
1036217dd11eSRalf Baechle
10374247417dSYoichi Yuasaconfig CSRC_IOASIC
10384247417dSYoichi Yuasa	bool
10394247417dSYoichi Yuasa
1040940f6b48SRalf Baechleconfig CSRC_R4K
104138586428SSerge Semin	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1042940f6b48SRalf Baechle	bool
1043940f6b48SRalf Baechle
1044217dd11eSRalf Baechleconfig CSRC_SB1250
1045217dd11eSRalf Baechle	bool
1046217dd11eSRalf Baechle
1047a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1048a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1049a7f4df4eSAlex Smith
1050a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1051d30a2b47SLinus Walleij	select GPIOLIB
1052a9aec7feSAtsushi Nemoto	bool
1053a9aec7feSAtsushi Nemoto
10540e2794b0SRalf Baechleconfig FW_CFE
1055df78b5c8SAurelien Jarno	bool
1056df78b5c8SAurelien Jarno
105740e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
1058f5748b8cSTiezhu Yang	def_bool y
105940e084a5SRalf Baechle
10601da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
10611da177e4SLinus Torvalds	bool
1062db91427bSChristoph Hellwig	#
1063db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1064db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1065db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1066db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1067db91427bSChristoph Hellwig	# significant advantages.
1068db91427bSChristoph Hellwig	#
10696be87d61SJiaxun Yang	select ARCH_HAS_SETUP_DMA_OPS
1070419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1071fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1072e0b7fd12SJiaxun Yang	select ARCH_HAS_SYNC_DMA_FOR_CPU
1073f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1074fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
107534dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
107634dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
10774ce588cdSRalf Baechle
107836a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
10791da177e4SLinus Torvalds	bool
10801da177e4SLinus Torvalds
10811b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1082dbb74540SRalf Baechle	bool
1083dbb74540SRalf Baechle
10841da177e4SLinus Torvaldsconfig MIPS_BONITO64
10851da177e4SLinus Torvalds	bool
10861da177e4SLinus Torvalds
10871da177e4SLinus Torvaldsconfig MIPS_MSC
10881da177e4SLinus Torvalds	bool
10891da177e4SLinus Torvalds
109039b8d525SRalf Baechleconfig SYNC_R4K
109139b8d525SRalf Baechle	bool
109239b8d525SRalf Baechle
1093ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1094d388d685SMaciej W. Rozycki	def_bool n
1095d388d685SMaciej W. Rozycki
10964e0748f5SMarkos Chandrasconfig GENERIC_CSUM
109718d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
10984e0748f5SMarkos Chandras
10998313da30SRalf Baechleconfig GENERIC_ISA_DMA
11008313da30SRalf Baechle	bool
11018313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1102a35bee8aSNamhyung Kim	select ISA_DMA_API
11038313da30SRalf Baechle
1104aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1105aa414dffSRalf Baechle	bool
11068313da30SRalf Baechle	select GENERIC_ISA_DMA
1107aa414dffSRalf Baechle
110878bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
110978bdbbacSMasahiro Yamada	bool
111078bdbbacSMasahiro Yamada
111178bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
111278bdbbacSMasahiro Yamada	bool
111378bdbbacSMasahiro Yamada
111478bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
111578bdbbacSMasahiro Yamada	bool
111678bdbbacSMasahiro Yamada
1117a35bee8aSNamhyung Kimconfig ISA_DMA_API
1118a35bee8aSNamhyung Kim	bool
1119a35bee8aSNamhyung Kim
11208c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11218c530ea3SMatt Redfearn	bool
11228c530ea3SMatt Redfearn	help
11238c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11248c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11258c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
11268c530ea3SMatt Redfearn
11275e83d430SRalf Baechle#
11286b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
11295e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11305e83d430SRalf Baechle# choice statement should be more obvious to the user.
11315e83d430SRalf Baechle#
11325e83d430SRalf Baechlechoice
11336b2aac42SMasanari Iida	prompt "Endianness selection"
11341da177e4SLinus Torvalds	help
11351da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
11365e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
11373cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
11385e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
11393dde6ad8SDavid Sterba	  one or the other endianness.
11405e83d430SRalf Baechle
11415e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
11425e83d430SRalf Baechle	bool "Big endian"
11435e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
11445e83d430SRalf Baechle
11455e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
11465e83d430SRalf Baechle	bool "Little endian"
11475e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
11485e83d430SRalf Baechle
11495e83d430SRalf Baechleendchoice
11505e83d430SRalf Baechle
115122b0763aSDavid Daneyconfig EXPORT_UASM
115222b0763aSDavid Daney	bool
115322b0763aSDavid Daney
11542116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
11552116245eSRalf Baechle	bool
11562116245eSRalf Baechle
11575e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
11585e83d430SRalf Baechle	bool
11595e83d430SRalf Baechle
11605e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
11615e83d430SRalf Baechle	bool
11621da177e4SLinus Torvalds
1163aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1164aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1165aa1762f4SDavid Daney
11668420fd00SAtsushi Nemotoconfig IRQ_TXX9
11678420fd00SAtsushi Nemoto	bool
11688420fd00SAtsushi Nemoto
1169d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1170d5ab1a69SYoichi Yuasa	bool
1171d5ab1a69SYoichi Yuasa
1172252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
11731da177e4SLinus Torvalds	bool
11741da177e4SLinus Torvalds
1175a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1176a57140e9SThomas Bogendoerfer	bool
1177a57140e9SThomas Bogendoerfer
11789267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
11799267a30dSMarc St-Jean	bool
11809267a30dSMarc St-Jean
1181a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1182a7e07b1aSMarkos Chandras	bool
1183a7e07b1aSMarkos Chandras
11841da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
11851da177e4SLinus Torvalds	bool
11861da177e4SLinus Torvalds
1187e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1188e2defae5SThomas Bogendoerfer	bool
1189e2defae5SThomas Bogendoerfer
11905b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
11915b438c44SThomas Bogendoerfer	bool
11925b438c44SThomas Bogendoerfer
1193e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1194e2defae5SThomas Bogendoerfer	bool
1195e2defae5SThomas Bogendoerfer
1196e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1197e2defae5SThomas Bogendoerfer	bool
1198e2defae5SThomas Bogendoerfer
1199e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1200e2defae5SThomas Bogendoerfer	bool
1201e2defae5SThomas Bogendoerfer
1202e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1203e2defae5SThomas Bogendoerfer	bool
1204e2defae5SThomas Bogendoerfer
1205e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1206e2defae5SThomas Bogendoerfer	bool
1207e2defae5SThomas Bogendoerfer
12080e2794b0SRalf Baechleconfig FW_ARC32
12095e83d430SRalf Baechle	bool
12105e83d430SRalf Baechle
1211aaa9fad3SPaul Bolleconfig FW_SNIPROM
1212231a35d3SThomas Bogendoerfer	bool
1213231a35d3SThomas Bogendoerfer
12141da177e4SLinus Torvaldsconfig BOOT_ELF32
12151da177e4SLinus Torvalds	bool
12161da177e4SLinus Torvalds
1217930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1218930beb5aSFlorian Fainelli	bool
1219930beb5aSFlorian Fainelli
1220930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1221930beb5aSFlorian Fainelli	bool
1222930beb5aSFlorian Fainelli
1223930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1224930beb5aSFlorian Fainelli	bool
1225930beb5aSFlorian Fainelli
1226930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1227930beb5aSFlorian Fainelli	bool
1228930beb5aSFlorian Fainelli
12291da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
12301da177e4SLinus Torvalds	int
1231a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
12325432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
12335432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
12345432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
12351da177e4SLinus Torvalds	default "5"
12361da177e4SLinus Torvalds
1237e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1238e9422427SThomas Bogendoerfer	bool
1239e9422427SThomas Bogendoerfer
12401da177e4SLinus Torvaldsconfig ARC_CONSOLE
12411da177e4SLinus Torvalds	bool "ARC console support"
1242e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
12431da177e4SLinus Torvalds
12441da177e4SLinus Torvaldsconfig ARC_MEMORY
12451da177e4SLinus Torvalds	bool
12461da177e4SLinus Torvalds
12471da177e4SLinus Torvaldsconfig ARC_PROMLIB
12481da177e4SLinus Torvalds	bool
12491da177e4SLinus Torvalds
12500e2794b0SRalf Baechleconfig FW_ARC64
12511da177e4SLinus Torvalds	bool
12521da177e4SLinus Torvalds
12531da177e4SLinus Torvaldsconfig BOOT_ELF64
12541da177e4SLinus Torvalds	bool
12551da177e4SLinus Torvalds
12561da177e4SLinus Torvaldsmenu "CPU selection"
12571da177e4SLinus Torvalds
12581da177e4SLinus Torvaldschoice
12591da177e4SLinus Torvalds	prompt "CPU type"
12601da177e4SLinus Torvalds	default CPU_R4X00
12611da177e4SLinus Torvalds
1262268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1263caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1264268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1265d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
126651522217SJiaxun Yang	select CPU_MIPSR2
126751522217SJiaxun Yang	select CPU_HAS_PREFETCH
12680e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
12690e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
12700e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
12717507445bSHuacai Chen	select CPU_SUPPORTS_MSA
127251522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
127351522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
12740e476d91SHuacai Chen	select WEAK_ORDERING
12750e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
12767507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1277b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
127817c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
12797f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1280d30a2b47SLinus Walleij	select GPIOLIB
128109230cbcSChristoph Hellwig	select SWIOTLB
12820f78355cSHuacai Chen	select HAVE_KVM
12830e476d91SHuacai Chen	help
1284caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1285caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1286caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1287caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1288caed1d1bSHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
12890e476d91SHuacai Chen
1290caed1d1bSHuacai Chenconfig LOONGSON3_ENHANCEMENT
1291caed1d1bSHuacai Chen	bool "New Loongson-3 CPU Enhancements"
12921e820da3SHuacai Chen	default n
1293268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
12941e820da3SHuacai Chen	help
1295caed1d1bSHuacai Chen	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
12961e820da3SHuacai Chen	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1297268a2d60SJiaxun Yang	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
12981e820da3SHuacai Chen	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
12991e820da3SHuacai Chen	  Fast TLB refill support, etc.
13001e820da3SHuacai Chen
13011e820da3SHuacai Chen	  This option enable those enhancements which are not probed at run
13021e820da3SHuacai Chen	  time. If you want a generic kernel to run on all Loongson 3 machines,
13031e820da3SHuacai Chen	  please say 'N' here. If you want a high-performance kernel to run on
1304caed1d1bSHuacai Chen	  new Loongson-3 machines only, please say 'Y' here.
13051e820da3SHuacai Chen
1306e02e07e3SHuacai Chenconfig CPU_LOONGSON3_WORKAROUNDS
13073f059a7eSXi Ruoyao	bool "Loongson-3 LLSC Workarounds"
1308e02e07e3SHuacai Chen	default y if SMP
1309268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
1310e02e07e3SHuacai Chen	help
1311caed1d1bSHuacai Chen	  Loongson-3 processors have the llsc issues which require workarounds.
1312e02e07e3SHuacai Chen	  Without workarounds the system may hang unexpectedly.
1313e02e07e3SHuacai Chen
13143f059a7eSXi Ruoyao	  Say Y, unless you know what you are doing.
1315e02e07e3SHuacai Chen
1316ec7a9318SWANG Xueruiconfig CPU_LOONGSON3_CPUCFG_EMULATION
1317ec7a9318SWANG Xuerui	bool "Emulate the CPUCFG instruction on older Loongson cores"
1318ec7a9318SWANG Xuerui	default y
1319ec7a9318SWANG Xuerui	depends on CPU_LOONGSON64
1320ec7a9318SWANG Xuerui	help
1321ec7a9318SWANG Xuerui	  Loongson-3A R4 and newer have the CPUCFG instruction available for
1322ec7a9318SWANG Xuerui	  userland to query CPU capabilities, much like CPUID on x86. This
1323ec7a9318SWANG Xuerui	  option provides emulation of the instruction on older Loongson
1324ec7a9318SWANG Xuerui	  cores, back to Loongson-3A1000.
1325ec7a9318SWANG Xuerui
1326ec7a9318SWANG Xuerui	  If unsure, please say Y.
1327ec7a9318SWANG Xuerui
13283702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13293702bba5SWu Zhangjin	bool "Loongson 2E"
13303702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1331268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13322a21c730SFuxin Zhang	help
13332a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13342a21c730SFuxin Zhang	  with many extensions.
13352a21c730SFuxin Zhang
133625985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13376f7a251aSWu Zhangjin	  bonito64.
13386f7a251aSWu Zhangjin
13396f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13406f7a251aSWu Zhangjin	bool "Loongson 2F"
13416f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1342268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13436f7a251aSWu Zhangjin	help
13446f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13456f7a251aSWu Zhangjin	  with many extensions.
13466f7a251aSWu Zhangjin
13476f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
13486f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
13496f7a251aSWu Zhangjin	  Loongson2E.
13506f7a251aSWu Zhangjin
1351ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1352ca585cf9SKelvin Cheung	bool "Loongson 1B"
1353ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1354b2afb64cSHuacai Chen	select CPU_LOONGSON32
13559ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1356ca585cf9SKelvin Cheung	help
1357ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1358968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1359968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
1360ca585cf9SKelvin Cheung
136112e3280bSYang Lingconfig CPU_LOONGSON1C
136212e3280bSYang Ling	bool "Loongson 1C"
136312e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
1364b2afb64cSHuacai Chen	select CPU_LOONGSON32
136512e3280bSYang Ling	select LEDS_GPIO_REGISTER
136612e3280bSYang Ling	help
136712e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1368968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1369968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
137012e3280bSYang Ling
13716e760c8dSRalf Baechleconfig CPU_MIPS32_R1
13726e760c8dSRalf Baechle	bool "MIPS32 Release 1"
13737cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
13746e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1375797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1376ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
13776e760c8dSRalf Baechle	help
13785e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
13791e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
13801e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
13811e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
13821e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
13831e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
13841e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
13851e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
13861e5f1caaSRalf Baechle	  performance.
13871e5f1caaSRalf Baechle
13881e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
13891e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
13907cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
13911e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1392797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1393ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1394a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
13952235a54dSSanjay Lal	select HAVE_KVM
13961e5f1caaSRalf Baechle	help
13975e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
13986e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
13996e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14006e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14016e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14021da177e4SLinus Torvalds
1403ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1404ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1405ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1406ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1407ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1408ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1409ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1410ab7c01fdSSerge Semin	select HAVE_KVM
1411ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1412ab7c01fdSSerge Semin	help
1413ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1414ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1415ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1416ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1417ab7c01fdSSerge Semin
14187fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1419674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14207fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14217fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
142218d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14237fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14247fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14257fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
14267fd08ca5SLeonid Yegoshin	select HAVE_KVM
14277fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14287fd08ca5SLeonid Yegoshin	help
14297fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14307fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14317fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14327fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14337fd08ca5SLeonid Yegoshin
14346e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14356e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14367cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1437797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1438ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1439ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1440ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14419cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
14426e760c8dSRalf Baechle	help
14436e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14446e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14456e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14466e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14476e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14481e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14491e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14501e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14511e5f1caaSRalf Baechle	  performance.
14521e5f1caaSRalf Baechle
14531e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
14541e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
14557cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1456797798c1SRalf Baechle	select CPU_HAS_PREFETCH
14571e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
14581e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1459ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14609cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1461a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
146240a2df49SJames Hogan	select HAVE_KVM
14631e5f1caaSRalf Baechle	help
14641e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14651e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14661e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14671e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14681e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14691da177e4SLinus Torvalds
1470ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1471ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1472ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1473ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1474ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1475ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1476ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1477ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1478ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1479ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1480ab7c01fdSSerge Semin	select HAVE_KVM
1481ab7c01fdSSerge Semin	help
1482ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1483ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1484ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1485ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1486ab7c01fdSSerge Semin
14877fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1488674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
14897fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
14907fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
149118d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14927fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14937fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
14947fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1495afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
14967fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
14972e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
149840a2df49SJames Hogan	select HAVE_KVM
14997fd08ca5SLeonid Yegoshin	help
15007fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15017fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15027fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15037fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15047fd08ca5SLeonid Yegoshin
1505281e3aeaSSerge Seminconfig CPU_P5600
1506281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1507281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1508281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1509281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1510281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1511281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1512281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1513281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1514281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1515281e3aeaSSerge Semin	select HAVE_KVM
1516281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1517281e3aeaSSerge Semin	help
1518281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1519281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1520281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1521281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1522281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1523281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1524281e3aeaSSerge Semin	  eJTAG and PDtrace.
1525281e3aeaSSerge Semin
15261da177e4SLinus Torvaldsconfig CPU_R3000
15271da177e4SLinus Torvalds	bool "R3000"
15287cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1529f7062ddbSRalf Baechle	select CPU_HAS_WB
153054746829SPaul Burton	select CPU_R3K_TLB
1531ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1532797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15331da177e4SLinus Torvalds	help
15341da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15351da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15361da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15371da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15381da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15391da177e4SLinus Torvalds	  try to recompile with R3000.
15401da177e4SLinus Torvalds
154165ce6197SLauri Kasanenconfig CPU_R4300
154265ce6197SLauri Kasanen	bool "R4300"
154365ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
154465ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
154565ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
154665ce6197SLauri Kasanen	help
154765ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
154865ce6197SLauri Kasanen
15491da177e4SLinus Torvaldsconfig CPU_R4X00
15501da177e4SLinus Torvalds	bool "R4x00"
15517cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1552ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1553ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1554970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15551da177e4SLinus Torvalds	help
15561da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15571da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
15581da177e4SLinus Torvalds
15591da177e4SLinus Torvaldsconfig CPU_TX49XX
15601da177e4SLinus Torvalds	bool "R49XX"
15617cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1562de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1563ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1564ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1565970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15661da177e4SLinus Torvalds
15671da177e4SLinus Torvaldsconfig CPU_R5000
15681da177e4SLinus Torvalds	bool "R5000"
15697cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1570ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1571ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1572970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15731da177e4SLinus Torvalds	help
15741da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
15751da177e4SLinus Torvalds
1576542c1020SShinya Kuribayashiconfig CPU_R5500
1577542c1020SShinya Kuribayashi	bool "R5500"
1578542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1579542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1580542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
15819cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1582542c1020SShinya Kuribayashi	help
1583542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1584542c1020SShinya Kuribayashi	  instruction set.
1585542c1020SShinya Kuribayashi
15861da177e4SLinus Torvaldsconfig CPU_NEVADA
15871da177e4SLinus Torvalds	bool "RM52xx"
15887cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1589ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1590ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1591970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15921da177e4SLinus Torvalds	help
15931da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
15941da177e4SLinus Torvalds
15951da177e4SLinus Torvaldsconfig CPU_R10000
15961da177e4SLinus Torvalds	bool "R10000"
15977cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
15985e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1599ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1600ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1601797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1602970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16031da177e4SLinus Torvalds	help
16041da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16051da177e4SLinus Torvalds
16061da177e4SLinus Torvaldsconfig CPU_RM7000
16071da177e4SLinus Torvalds	bool "RM7000"
16087cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16095e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1610ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1611ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1612797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1613970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16141da177e4SLinus Torvalds
16151da177e4SLinus Torvaldsconfig CPU_SB1
16161da177e4SLinus Torvalds	bool "SB1"
16177cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1618ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1619ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1620797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1621970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16220004a9dfSRalf Baechle	select WEAK_ORDERING
16231da177e4SLinus Torvalds
1624a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1625a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16265e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1627a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1628a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1629a86c7f72SDavid Daney	select WEAK_ORDERING
1630a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16319cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1632df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1633df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1634930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
16350ae3abcdSJames Hogan	select HAVE_KVM
1636a86c7f72SDavid Daney	help
1637a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1638a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1639a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1640a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1641a86c7f72SDavid Daney
1642cd746249SJonas Gorskiconfig CPU_BMIPS
1643cd746249SJonas Gorski	bool "Broadcom BMIPS"
1644cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1645cd746249SJonas Gorski	select CPU_MIPS32
1646fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1647cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1648cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1649cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1650cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1651cd746249SJonas Gorski	select DMA_NONCOHERENT
165267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1653cd746249SJonas Gorski	select SWAP_IO_SPACE
1654cd746249SJonas Gorski	select WEAK_ORDERING
1655c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
165669aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1657a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1658a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1659bf8bde41SFlorian Fainelli	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1660c1c0c461SKevin Cernekee	help
1661fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1662c1c0c461SKevin Cernekee
16631da177e4SLinus Torvaldsendchoice
16641da177e4SLinus Torvalds
1665a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1666a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1667a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1668281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1669281e3aeaSSerge Semin		   CPU_P5600
1670a6e18781SLeonid Yegoshin	help
1671a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1672a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1673a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1674a6e18781SLeonid Yegoshin
1675a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1676a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1677a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1678a6e18781SLeonid Yegoshin	select EVA
1679a6e18781SLeonid Yegoshin	default y
1680a6e18781SLeonid Yegoshin	help
1681a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1682a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1683a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1684a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1685a6e18781SLeonid Yegoshin
1686c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1687c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1688c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1689281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1690c5b36783SSteven J. Hill	help
1691c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1692c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1693c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1694c5b36783SSteven J. Hill
1695c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1696c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1697c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1698c5b36783SSteven J. Hill	depends on !EVA
1699c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1700c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1701c5b36783SSteven J. Hill	select XPA
1702c5b36783SSteven J. Hill	select HIGHMEM
1703d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1704c5b36783SSteven J. Hill	default n
1705c5b36783SSteven J. Hill	help
1706c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1707c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1708c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1709c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1710c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1711c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1712c5b36783SSteven J. Hill
1713622844bfSWu Zhangjinif CPU_LOONGSON2F
1714622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1715622844bfSWu Zhangjin	bool
1716622844bfSWu Zhangjin
1717622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1718622844bfSWu Zhangjin	bool
1719622844bfSWu Zhangjin
1720622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1721622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1722622844bfSWu Zhangjin	default y
1723622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1724622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1725622844bfSWu Zhangjin	help
1726622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1727622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1728622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1729622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1730622844bfSWu Zhangjin
1731622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1732622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1733622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1734622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1735622844bfSWu Zhangjin	  systems.
1736622844bfSWu Zhangjin
1737622844bfSWu Zhangjin	  If unsure, please say Y.
1738622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1739622844bfSWu Zhangjin
17401b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
17411b93b3c3SWu Zhangjin	bool
17421b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
17431b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
174431c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
17451b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1746fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
17474e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1748a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
17491b93b3c3SWu Zhangjin
17501b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
17511b93b3c3SWu Zhangjin	bool
17521b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
17531b93b3c3SWu Zhangjin
1754dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1755dbb98314SAlban Bedel	bool
1756dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1757dbb98314SAlban Bedel
1758268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
17593702bba5SWu Zhangjin	bool
17603702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
17613702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
17623702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1763970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
17643702bba5SWu Zhangjin
1765b2afb64cSHuacai Chenconfig CPU_LOONGSON32
1766ca585cf9SKelvin Cheung	bool
1767ca585cf9SKelvin Cheung	select CPU_MIPS32
17687e280f6bSJiaxun Yang	select CPU_MIPSR2
1769ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1770ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1771ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1772f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1773ca585cf9SKelvin Cheung
1774fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
177504fa8bf7SJonas Gorski	select SMP_UP if SMP
17761bbb6c1bSKevin Cernekee	bool
1777cd746249SJonas Gorski
1778cd746249SJonas Gorskiconfig CPU_BMIPS4350
1779cd746249SJonas Gorski	bool
1780cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1781cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1782cd746249SJonas Gorski
1783cd746249SJonas Gorskiconfig CPU_BMIPS4380
1784cd746249SJonas Gorski	bool
1785bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1786cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1787cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1788b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1789cd746249SJonas Gorski
1790cd746249SJonas Gorskiconfig CPU_BMIPS5000
1791cd746249SJonas Gorski	bool
1792cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1793bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1794cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1795cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1796b4720809SFlorian Fainelli	select CPU_HAS_RIXI
17971bbb6c1bSKevin Cernekee
1798268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
17990e476d91SHuacai Chen	bool
18000e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1801b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18020e476d91SHuacai Chen
18033702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18042a21c730SFuxin Zhang	bool
18052a21c730SFuxin Zhang
18066f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18076f7a251aSWu Zhangjin	bool
180855045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
180955045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18106f7a251aSWu Zhangjin
1811ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1812ca585cf9SKelvin Cheung	bool
1813ca585cf9SKelvin Cheung
181412e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
181512e3280bSYang Ling	bool
181612e3280bSYang Ling
18177cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18187cf8053bSRalf Baechle	bool
18197cf8053bSRalf Baechle
18207cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18217cf8053bSRalf Baechle	bool
18227cf8053bSRalf Baechle
1823a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1824a6e18781SLeonid Yegoshin	bool
1825a6e18781SLeonid Yegoshin
1826c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1827c5b36783SSteven J. Hill	bool
1828c5b36783SSteven J. Hill
18297fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
18307fd08ca5SLeonid Yegoshin	bool
18317fd08ca5SLeonid Yegoshin
18327cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
18337cf8053bSRalf Baechle	bool
18347cf8053bSRalf Baechle
18357cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
18367cf8053bSRalf Baechle	bool
18377cf8053bSRalf Baechle
1838fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1839fd4eb90bSLukas Bulwahn	bool
1840fd4eb90bSLukas Bulwahn
18417fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
18427fd08ca5SLeonid Yegoshin	bool
18437fd08ca5SLeonid Yegoshin
1844281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1845281e3aeaSSerge Semin	bool
1846281e3aeaSSerge Semin
18477cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
18487cf8053bSRalf Baechle	bool
18497cf8053bSRalf Baechle
185065ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
185165ce6197SLauri Kasanen	bool
185265ce6197SLauri Kasanen
18537cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
18547cf8053bSRalf Baechle	bool
18557cf8053bSRalf Baechle
18567cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
18577cf8053bSRalf Baechle	bool
18587cf8053bSRalf Baechle
18597cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
18607cf8053bSRalf Baechle	bool
18617cf8053bSRalf Baechle
1862542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1863542c1020SShinya Kuribayashi	bool
1864542c1020SShinya Kuribayashi
18657cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
18667cf8053bSRalf Baechle	bool
18677cf8053bSRalf Baechle
18687cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
18697cf8053bSRalf Baechle	bool
18707cf8053bSRalf Baechle
18717cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
18727cf8053bSRalf Baechle	bool
18737cf8053bSRalf Baechle
18747cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
18757cf8053bSRalf Baechle	bool
18767cf8053bSRalf Baechle
18775e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
18785e683389SDavid Daney	bool
18795e683389SDavid Daney
1880cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1881c1c0c461SKevin Cernekee	bool
1882c1c0c461SKevin Cernekee
1883fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1884c1c0c461SKevin Cernekee	bool
1885cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1886c1c0c461SKevin Cernekee
1887c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1888c1c0c461SKevin Cernekee	bool
1889cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1890c1c0c461SKevin Cernekee
1891c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1892c1c0c461SKevin Cernekee	bool
1893cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1894c1c0c461SKevin Cernekee
1895c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1896c1c0c461SKevin Cernekee	bool
1897cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1898c1c0c461SKevin Cernekee
189917099b11SRalf Baechle#
190017099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
190117099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
190217099b11SRalf Baechle#
19030004a9dfSRalf Baechleconfig WEAK_ORDERING
19040004a9dfSRalf Baechle	bool
190517099b11SRalf Baechle
190617099b11SRalf Baechle#
190717099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
190817099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
190917099b11SRalf Baechle#
191017099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
191117099b11SRalf Baechle	bool
19125e83d430SRalf Baechleendmenu
19135e83d430SRalf Baechle
19145e83d430SRalf Baechle#
19155e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19165e83d430SRalf Baechle#
19175e83d430SRalf Baechleconfig CPU_MIPS32
19185e83d430SRalf Baechle	bool
1919ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1920281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
19215e83d430SRalf Baechle
19225e83d430SRalf Baechleconfig CPU_MIPS64
19235e83d430SRalf Baechle	bool
1924ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
19255a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
19265e83d430SRalf Baechle
19275e83d430SRalf Baechle#
192857eeacedSPaul Burton# These indicate the revision of the architecture
19295e83d430SRalf Baechle#
19305e83d430SRalf Baechleconfig CPU_MIPSR1
19315e83d430SRalf Baechle	bool
19325e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
19335e83d430SRalf Baechle
19345e83d430SRalf Baechleconfig CPU_MIPSR2
19355e83d430SRalf Baechle	bool
1936a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
19378256b17eSFlorian Fainelli	select CPU_HAS_RIXI
1938ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1939a7e07b1aSMarkos Chandras	select MIPS_SPRAM
19405e83d430SRalf Baechle
1941ab7c01fdSSerge Seminconfig CPU_MIPSR5
1942ab7c01fdSSerge Semin	bool
1943281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
1944ab7c01fdSSerge Semin	select CPU_HAS_RIXI
1945ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1946ab7c01fdSSerge Semin	select MIPS_SPRAM
1947ab7c01fdSSerge Semin
19487fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
19497fd08ca5SLeonid Yegoshin	bool
19507fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
19518256b17eSFlorian Fainelli	select CPU_HAS_RIXI
1952ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
195387321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
19542db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
19554a5dc51eSMarcin Nowakowski	select MIPS_CRC_SUPPORT
1956a7e07b1aSMarkos Chandras	select MIPS_SPRAM
19575e83d430SRalf Baechle
195857eeacedSPaul Burtonconfig TARGET_ISA_REV
195957eeacedSPaul Burton	int
196057eeacedSPaul Burton	default 1 if CPU_MIPSR1
196157eeacedSPaul Burton	default 2 if CPU_MIPSR2
1962ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
196357eeacedSPaul Burton	default 6 if CPU_MIPSR6
196457eeacedSPaul Burton	default 0
196557eeacedSPaul Burton	help
196657eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
196757eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
196857eeacedSPaul Burton
1969a6e18781SLeonid Yegoshinconfig EVA
1970a6e18781SLeonid Yegoshin	bool
1971a6e18781SLeonid Yegoshin
1972c5b36783SSteven J. Hillconfig XPA
1973c5b36783SSteven J. Hill	bool
1974c5b36783SSteven J. Hill
19755e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
19765e83d430SRalf Baechle	bool
19775e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
19785e83d430SRalf Baechle	bool
19795e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
19805e83d430SRalf Baechle	bool
19815e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
19825e83d430SRalf Baechle	bool
198355045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
198455045ff5SWu Zhangjin	bool
198555045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
198655045ff5SWu Zhangjin	bool
19879cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
19889cffd154SDavid Daney	bool
1989a670c82dSLukas Bulwahn	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
199082622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
199182622284SDavid Daney	bool
1992c6972fb9SHuang Pei	depends on 64BIT
199395b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
19945e83d430SRalf Baechle
19958192c9eaSDavid Daney#
19968192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
19978192c9eaSDavid Daney#
19988192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
19998192c9eaSDavid Daney	bool
2000679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20018192c9eaSDavid Daney
20025e83d430SRalf Baechlemenu "Kernel type"
20035e83d430SRalf Baechle
20045e83d430SRalf Baechlechoice
20055e83d430SRalf Baechle	prompt "Kernel code model"
20065e83d430SRalf Baechle	help
20075e83d430SRalf Baechle	  You should only select this option if you have a workload that
20085e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20095e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20105e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20115e83d430SRalf Baechle
20125e83d430SRalf Baechleconfig 32BIT
20135e83d430SRalf Baechle	bool "32-bit kernel"
20145e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20155e83d430SRalf Baechle	select TRAD_SIGNALS
20165e83d430SRalf Baechle	help
20175e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2018f17c4ca3SRalf Baechle
20195e83d430SRalf Baechleconfig 64BIT
20205e83d430SRalf Baechle	bool "64-bit kernel"
20215e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
20225e83d430SRalf Baechle	help
20235e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
20245e83d430SRalf Baechle
20255e83d430SRalf Baechleendchoice
20265e83d430SRalf Baechle
20271e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
20281e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
20291e321fa9SLeonid Yegoshin	depends on 64BIT
20301e321fa9SLeonid Yegoshin	help
20313377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
20323377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
20333377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
20343377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
20353377e227SAlex Belits	  level of page tables is added which imposes both a memory
20363377e227SAlex Belits	  overhead as well as slower TLB fault handling.
20373377e227SAlex Belits
20381e321fa9SLeonid Yegoshin	  If unsure, say N.
20391e321fa9SLeonid Yegoshin
204079876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
204179876cc1SYunQiang Su	hex "Compressed kernel load address"
204279876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
204379876cc1SYunQiang Su	default 0x0
204479876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
204579876cc1SYunQiang Su	help
204679876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
204779876cc1SYunQiang Su
204879876cc1SYunQiang Su	  This is only used if non-zero.
204979876cc1SYunQiang Su
20501da177e4SLinus Torvaldschoice
20511da177e4SLinus Torvalds	prompt "Kernel page size"
20521da177e4SLinus Torvalds	default PAGE_SIZE_4KB
20531da177e4SLinus Torvalds
20541da177e4SLinus Torvaldsconfig PAGE_SIZE_4KB
20551da177e4SLinus Torvalds	bool "4kB"
2056268a2d60SJiaxun Yang	depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
20571da177e4SLinus Torvalds	help
20581da177e4SLinus Torvalds	  This option select the standard 4kB Linux page size.  On some
20591da177e4SLinus Torvalds	  R3000-family processors this is the only available page size.  Using
20601da177e4SLinus Torvalds	  4kB page size will minimize memory consumption and is therefore
20611da177e4SLinus Torvalds	  recommended for low memory systems.
20621da177e4SLinus Torvalds
20631da177e4SLinus Torvaldsconfig PAGE_SIZE_8KB
20641da177e4SLinus Torvalds	bool "8kB"
2065c2aeaaeaSPaul Burton	depends on CPU_CAVIUM_OCTEON
20661e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
20671da177e4SLinus Torvalds	help
20681da177e4SLinus Torvalds	  Using 8kB page size will result in higher performance kernel at
20691da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available
2070c2aeaaeaSPaul Burton	  only on cnMIPS processors.  Note that you will need a suitable Linux
2071c2aeaaeaSPaul Burton	  distribution to support this.
20721da177e4SLinus Torvalds
20731da177e4SLinus Torvaldsconfig PAGE_SIZE_16KB
20741da177e4SLinus Torvalds	bool "16kB"
2075455481fcSThomas Bogendoerfer	depends on !CPU_R3000
20761da177e4SLinus Torvalds	help
20771da177e4SLinus Torvalds	  Using 16kB page size will result in higher performance kernel at
20781da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
2079714bfad6SRalf Baechle	  all non-R3000 family processors.  Note that you will need a suitable
2080714bfad6SRalf Baechle	  Linux distribution to support this.
20811da177e4SLinus Torvalds
2082c52399beSRalf Baechleconfig PAGE_SIZE_32KB
2083c52399beSRalf Baechle	bool "32kB"
2084c52399beSRalf Baechle	depends on CPU_CAVIUM_OCTEON
20851e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
2086c52399beSRalf Baechle	help
2087c52399beSRalf Baechle	  Using 32kB page size will result in higher performance kernel at
2088c52399beSRalf Baechle	  the price of higher memory consumption.  This option is available
2089c52399beSRalf Baechle	  only on cnMIPS cores.  Note that you will need a suitable Linux
2090c52399beSRalf Baechle	  distribution to support this.
2091c52399beSRalf Baechle
20921da177e4SLinus Torvaldsconfig PAGE_SIZE_64KB
20931da177e4SLinus Torvalds	bool "64kB"
2094455481fcSThomas Bogendoerfer	depends on !CPU_R3000
20951da177e4SLinus Torvalds	help
20961da177e4SLinus Torvalds	  Using 64kB page size will result in higher performance kernel at
20971da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
20981da177e4SLinus Torvalds	  all non-R3000 family processor.  Not that at the time of this
2099714bfad6SRalf Baechle	  writing this option is still high experimental.
21001da177e4SLinus Torvalds
21011da177e4SLinus Torvaldsendchoice
21021da177e4SLinus Torvalds
21030192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2104c9bace7cSDavid Daney	int "Maximum zone order"
210523baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
210623baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
210723baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
210823baf831SKirill A. Shutemov	default "10"
2109c9bace7cSDavid Daney	help
2110c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2111c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2112c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2113c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2114c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2115c9bace7cSDavid Daney	  increase this value.
2116c9bace7cSDavid Daney
2117c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2118c9bace7cSDavid Daney	  when choosing a value for this option.
2119c9bace7cSDavid Daney
21201da177e4SLinus Torvaldsconfig BOARD_SCACHE
21211da177e4SLinus Torvalds	bool
21221da177e4SLinus Torvalds
21231da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21241da177e4SLinus Torvalds	bool
21251da177e4SLinus Torvalds	select BOARD_SCACHE
21261da177e4SLinus Torvalds
21279318c51aSChris Dearman#
21289318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21299318c51aSChris Dearman#
21309318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21319318c51aSChris Dearman	bool
21329318c51aSChris Dearman	select BOARD_SCACHE
21339318c51aSChris Dearman
21341da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21351da177e4SLinus Torvalds	bool
21361da177e4SLinus Torvalds	select BOARD_SCACHE
21371da177e4SLinus Torvalds
21381da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21391da177e4SLinus Torvalds	bool
21401da177e4SLinus Torvalds	select BOARD_SCACHE
21411da177e4SLinus Torvalds
21421da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21431da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21441da177e4SLinus Torvalds	depends on CPU_SB1
21451da177e4SLinus Torvalds	help
21461da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21471da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21481da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21491da177e4SLinus Torvalds
21501da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2151c8094b53SRalf Baechle	bool
21521da177e4SLinus Torvalds
21533165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
21543165c846SFlorian Fainelli	bool
2155455481fcSThomas Bogendoerfer	default y if !CPU_R3000
21563165c846SFlorian Fainelli
2157c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2158183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2159183b40f9SPaul Burton	default y
2160183b40f9SPaul Burton	help
2161183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2162183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2163183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2164183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2165183b40f9SPaul Burton	  receive a SIGILL.
2166183b40f9SPaul Burton
2167183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2168183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2169183b40f9SPaul Burton
2170183b40f9SPaul Burton	  If unsure, say y.
2171c92e47e5SPaul Burton
217297f7dcbfSPaul Burtonconfig CPU_R2300_FPU
217397f7dcbfSPaul Burton	bool
2174c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2175455481fcSThomas Bogendoerfer	default y if CPU_R3000
217697f7dcbfSPaul Burton
217754746829SPaul Burtonconfig CPU_R3K_TLB
217854746829SPaul Burton	bool
217954746829SPaul Burton
218091405eb6SFlorian Fainelliconfig CPU_R4K_FPU
218191405eb6SFlorian Fainelli	bool
2182c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
218397f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
218491405eb6SFlorian Fainelli
218562cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
218662cedc4fSFlorian Fainelli	bool
218754746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
218862cedc4fSFlorian Fainelli
218959d6ab86SRalf Baechleconfig MIPS_MT_SMP
2190a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
21915cbf9688SPaul Burton	default y
2192527f1028SPaul Burton	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
219359d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2194d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2195c080faa5SSteven J. Hill	select SYNC_R4K
219659d6ab86SRalf Baechle	select MIPS_MT
219759d6ab86SRalf Baechle	select SMP
219887353d8aSRalf Baechle	select SMP_UP
2199c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2200c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2201399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
220259d6ab86SRalf Baechle	help
2203c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2204c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2205c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2206c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2207c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
220859d6ab86SRalf Baechle
2209f41ae0b2SRalf Baechleconfig MIPS_MT
2210f41ae0b2SRalf Baechle	bool
2211f41ae0b2SRalf Baechle
22120ab7aefcSRalf Baechleconfig SCHED_SMT
22130ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22140ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22150ab7aefcSRalf Baechle	default n
22160ab7aefcSRalf Baechle	help
22170ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
22180ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
22190ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
22200ab7aefcSRalf Baechle
22210ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
22220ab7aefcSRalf Baechle	bool
22230ab7aefcSRalf Baechle
2224f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2225f41ae0b2SRalf Baechle	bool
2226f41ae0b2SRalf Baechle
2227f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2228f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2229f088fc84SRalf Baechle	default y
2230b633648cSRalf Baechle	depends on MIPS_MT_SMP
223107cc0c9eSRalf Baechle
2232b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2233b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
22349eaa9a82SPaul Burton	depends on CPU_MIPSR6
2235c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2236b0a668fbSLeonid Yegoshin	default y
2237b0a668fbSLeonid Yegoshin	help
2238b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2239b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
224007edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2241b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2242b0a668fbSLeonid Yegoshin	  final kernel image.
2243b0a668fbSLeonid Yegoshin
2244f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2245f35764e7SJames Hogan	bool
2246f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2247f35764e7SJames Hogan	help
2248f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2249f35764e7SJames Hogan	  physical_memsize.
2250f35764e7SJames Hogan
225107cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
225207cc0c9eSRalf Baechle	bool "VPE loader support."
2253f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
225407cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
225507cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
225607cc0c9eSRalf Baechle	select MIPS_MT
225707cc0c9eSRalf Baechle	help
225807cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
225907cc0c9eSRalf Baechle	  onto another VPE and running it.
2260f088fc84SRalf Baechle
22611a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22621a2a6d7eSDeng-Cheng Zhu	bool
22631a2a6d7eSDeng-Cheng Zhu	default "y"
22647fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_LOADER
22651a2a6d7eSDeng-Cheng Zhu
2266e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2267e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2268e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2269e01402b1SRalf Baechle	default y
2270e01402b1SRalf Baechle	help
2271e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2272e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2273e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2274e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2275e01402b1SRalf Baechle
2276e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2277e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2278e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2279e01402b1SRalf Baechle
22802c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
22812c973ef0SDeng-Cheng Zhu	bool
22822c973ef0SDeng-Cheng Zhu	default "y"
22837fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_APSP_API
22845cac93b3SPaul Burton
22850ee958e1SPaul Burtonconfig MIPS_CPS
22860ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
22875a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
22880ee958e1SPaul Burton	select MIPS_CM
22891d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
22900ee958e1SPaul Burton	select SMP
22910ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
22921d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2293c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
22940ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
22950ee958e1SPaul Burton	select WEAK_ORDERING
2296d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
22970ee958e1SPaul Burton	help
22980ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
22990ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23000ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23010ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23020ee958e1SPaul Burton	  support is unavailable.
23030ee958e1SPaul Burton
23043179d37eSPaul Burtonconfig MIPS_CPS_PM
230539a59593SMarkos Chandras	depends on MIPS_CPS
23063179d37eSPaul Burton	bool
23073179d37eSPaul Burton
23089f98f3ddSPaul Burtonconfig MIPS_CM
23099f98f3ddSPaul Burton	bool
23103c9b4166SPaul Burton	select MIPS_CPC
23119f98f3ddSPaul Burton
23129c38cf44SPaul Burtonconfig MIPS_CPC
23139c38cf44SPaul Burton	bool
23144a16ff4cSRalf Baechle
23151da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23161da177e4SLinus Torvalds	bool
23171da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23181da177e4SLinus Torvalds	default y
23191da177e4SLinus Torvalds
23201da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23211da177e4SLinus Torvalds	bool
23221da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23231da177e4SLinus Torvalds	default y
23241da177e4SLinus Torvalds
23259e2b5372SMarkos Chandraschoice
23269e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23279e2b5372SMarkos Chandras
23289e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23299e2b5372SMarkos Chandras	bool "None"
23309e2b5372SMarkos Chandras	help
23319e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23329e2b5372SMarkos Chandras
23339693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23349693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
23359e2b5372SMarkos Chandras	bool "SmartMIPS"
23369693a853SFranck Bui-Huu	help
23379693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23389693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23399693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23409693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23419693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23429693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23439693a853SFranck Bui-Huu	  here.
23449693a853SFranck Bui-Huu
2345bce86083SSteven J. Hillconfig CPU_MICROMIPS
23467fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
23479e2b5372SMarkos Chandras	bool "microMIPS"
2348bce86083SSteven J. Hill	help
2349bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2350bce86083SSteven J. Hill	  microMIPS ISA
2351bce86083SSteven J. Hill
23529e2b5372SMarkos Chandrasendchoice
23539e2b5372SMarkos Chandras
2354a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
23550ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2356a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2357c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
23582a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2359a5e9a69eSPaul Burton	help
2360a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2361a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23621db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23631db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23641db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23651db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
23661db1af84SPaul Burton	  the size & complexity of your kernel.
2367a5e9a69eSPaul Burton
2368a5e9a69eSPaul Burton	  If unsure, say Y.
2369a5e9a69eSPaul Burton
23701da177e4SLinus Torvaldsconfig CPU_HAS_WB
2371f7062ddbSRalf Baechle	bool
2372e01402b1SRalf Baechle
2373df0ac8a4SKevin Cernekeeconfig XKS01
2374df0ac8a4SKevin Cernekee	bool
2375df0ac8a4SKevin Cernekee
2376ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2377ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2378ba9196d2SJiaxun Yang	bool
2379ba9196d2SJiaxun Yang
2380ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2381ba9196d2SJiaxun Yang	bool
2382ba9196d2SJiaxun Yang
23838256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
23848256b17eSFlorian Fainelli	bool
23858256b17eSFlorian Fainelli
238618d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2387932afdeeSYasha Cherikovsky	bool
2388932afdeeSYasha Cherikovsky	help
238918d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2390932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
239118d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
239218d84e2eSAlexander Lobakin	  systems).
2393932afdeeSYasha Cherikovsky
2394f41ae0b2SRalf Baechle#
2395f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2396f41ae0b2SRalf Baechle#
2397e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2398f41ae0b2SRalf Baechle	bool
2399e01402b1SRalf Baechle
2400f41ae0b2SRalf Baechle#
2401f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2402f41ae0b2SRalf Baechle#
2403e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2404f41ae0b2SRalf Baechle	bool
2405e01402b1SRalf Baechle
24061da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24071da177e4SLinus Torvalds	bool
24081da177e4SLinus Torvalds	depends on !CPU_R3000
24091da177e4SLinus Torvalds	default y
24101da177e4SLinus Torvalds
24111da177e4SLinus Torvalds#
241220d60d99SMaciej W. Rozycki# CPU non-features
241320d60d99SMaciej W. Rozycki#
2414b56d1cafSThomas Bogendoerfer
2415b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2416b56d1cafSThomas Bogendoerfer#
2417b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2418b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2419b56d1cafSThomas Bogendoerfer#   erratum #23
2420b56d1cafSThomas Bogendoerfer#
2421b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2422b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2423b56d1cafSThomas Bogendoerfer#   erratum #41
2424b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2425b56d1cafSThomas Bogendoerfer#   #15
2426b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2427b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
242820d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
242920d60d99SMaciej W. Rozycki	bool
243020d60d99SMaciej W. Rozycki
2431b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2432b56d1cafSThomas Bogendoerfer#
2433b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2434b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2435b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2436b56d1cafSThomas Bogendoerfer#   erratum #28
2437b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2438b56d1cafSThomas Bogendoerfer#   #19
2439b56d1cafSThomas Bogendoerfer#
2440b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2441b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2442b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2443b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2444b56d1cafSThomas Bogendoerfer#
2445b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2446b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2447b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2448b56d1cafSThomas Bogendoerfer#   erratum #52
244920d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
245020d60d99SMaciej W. Rozycki	bool
245120d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
245220d60d99SMaciej W. Rozycki
2453b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2454b56d1cafSThomas Bogendoerfer#
2455b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2456b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2457b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2458b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
245920d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
246020d60d99SMaciej W. Rozycki	bool
246120d60d99SMaciej W. Rozycki
2462071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2463071d2f0bSPaul Burton	bool
2464071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2465071d2f0bSPaul Burton
24664edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
24674edf00a4SPaul Burton	int
2468455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24694edf00a4SPaul Burton	default 0
24704edf00a4SPaul Burton
24714edf00a4SPaul Burtonconfig MIPS_ASID_BITS
24724edf00a4SPaul Burton	int
24732db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
2474455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24754edf00a4SPaul Burton	default 8
24764edf00a4SPaul Burton
24772db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
24782db003a5SPaul Burton	bool
24792db003a5SPaul Burton
24804a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT
24814a5dc51eSMarcin Nowakowski	bool
24824a5dc51eSMarcin Nowakowski
2483802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2484802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2485802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2486802b8362SThomas Bogendoerfer# with the issue.
2487802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2488802b8362SThomas Bogendoerfer	bool
2489802b8362SThomas Bogendoerfer
24905e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
24915e5b6527SThomas Bogendoerfer#
24925e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
24935e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
24945e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
249518ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
24965e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
24975e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
24985e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
24995e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
25005e5b6527SThomas Bogendoerfer#      instruction.
25015e5b6527SThomas Bogendoerfer#
25025e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25035e5b6527SThomas Bogendoerfer#                              nop
25045e5b6527SThomas Bogendoerfer#                              nop
25055e5b6527SThomas Bogendoerfer#                              nop
25065e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25075e5b6527SThomas Bogendoerfer#
25085e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25095e5b6527SThomas Bogendoerfer#                              nop
25105e5b6527SThomas Bogendoerfer#                              nop
25115e5b6527SThomas Bogendoerfer#                              nop
25125e5b6527SThomas Bogendoerfer#                              nop
25135e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25145e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25155e5b6527SThomas Bogendoerfer	bool
25165e5b6527SThomas Bogendoerfer
251744def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
251844def342SThomas Bogendoerfer#
251944def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
252044def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
252144def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
252244def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
252344def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
252444def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
252544def342SThomas Bogendoerfer# in .pdf format.)
252644def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
252744def342SThomas Bogendoerfer	bool
252844def342SThomas Bogendoerfer
252924a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
253024a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
253124a1c023SThomas Bogendoerfer# operation is not guaranteed."
253224a1c023SThomas Bogendoerfer#
253324a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
253424a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
253524a1c023SThomas Bogendoerfer	bool
253624a1c023SThomas Bogendoerfer
2537886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2538886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2539886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2540886ee136SThomas Bogendoerfer# exceptions.
2541886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2542886ee136SThomas Bogendoerfer	bool
2543886ee136SThomas Bogendoerfer
2544256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2545256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2546256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2547256ec489SThomas Bogendoerfer	bool
2548256ec489SThomas Bogendoerfer
2549a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2550a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2551a7fbed98SThomas Bogendoerfer	bool
2552a7fbed98SThomas Bogendoerfer
255320d60d99SMaciej W. Rozycki#
25541da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25551da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25561da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25571da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25581da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25591da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25601da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25611da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2562797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2563797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2564797798c1SRalf Baechle#   support.
25651da177e4SLinus Torvalds#
25661da177e4SLinus Torvaldsconfig HIGHMEM
25671da177e4SLinus Torvalds	bool "High Memory Support"
2568a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2569a4c33e83SThomas Gleixner	select KMAP_LOCAL
2570797798c1SRalf Baechle
2571797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2572797798c1SRalf Baechle	bool
2573797798c1SRalf Baechle
2574797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2575797798c1SRalf Baechle	bool
25761da177e4SLinus Torvalds
25779693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25789693a853SFranck Bui-Huu	bool
25799693a853SFranck Bui-Huu
2580a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2581a6a4834cSSteven J. Hill	bool
2582a6a4834cSSteven J. Hill
2583377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2584377cb1b6SRalf Baechle	bool
2585377cb1b6SRalf Baechle	help
2586377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2587377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2588377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2589377cb1b6SRalf Baechle
2590a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2591a5e9a69eSPaul Burton	bool
2592a5e9a69eSPaul Burton
2593b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2594b4819b59SYoichi Yuasa	def_bool y
2595268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2596b4819b59SYoichi Yuasa
2597b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2598b1c6cd42SAtsushi Nemoto	bool
259931473747SAtsushi Nemoto
2600d8cb4e11SRalf Baechleconfig NUMA
2601d8cb4e11SRalf Baechle	bool "NUMA Support"
2602d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2603cf8194e4STiezhu Yang	select SMP
26047ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
26057ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2606d8cb4e11SRalf Baechle	help
2607d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2608d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2609d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2610172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2611d8cb4e11SRalf Baechle	  disabled.
2612d8cb4e11SRalf Baechle
2613d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2614d8cb4e11SRalf Baechle	bool
2615d8cb4e11SRalf Baechle
2616f8f9f21cSFeiyang Chenconfig HAVE_ARCH_NODEDATA_EXTENSION
2617f8f9f21cSFeiyang Chen	bool
2618f8f9f21cSFeiyang Chen
26198c530ea3SMatt Redfearnconfig RELOCATABLE
26208c530ea3SMatt Redfearn	bool "Relocatable kernel"
2621ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2622ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2623ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2624ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2625a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2626a307a4ceSJinyang He		   CPU_LOONGSON64
26278c530ea3SMatt Redfearn	help
26288c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26298c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26308c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26318c530ea3SMatt Redfearn	  but are discarded at runtime
26328c530ea3SMatt Redfearn
2633069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2634069fd766SMatt Redfearn	hex "Relocation table size"
2635069fd766SMatt Redfearn	depends on RELOCATABLE
2636069fd766SMatt Redfearn	range 0x0 0x01000000
2637a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2638069fd766SMatt Redfearn	default "0x00100000"
2639a7f7f624SMasahiro Yamada	help
2640069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2641069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2642069fd766SMatt Redfearn
2643069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2644069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2645069fd766SMatt Redfearn
2646069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2647069fd766SMatt Redfearn
2648069fd766SMatt Redfearn	  If unsure, leave at the default value.
2649069fd766SMatt Redfearn
2650405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2651405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2652405bc8fdSMatt Redfearn	depends on RELOCATABLE
2653a7f7f624SMasahiro Yamada	help
2654405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2655405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2656405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2657405bc8fdSMatt Redfearn	  of kernel internals.
2658405bc8fdSMatt Redfearn
2659405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2660405bc8fdSMatt Redfearn
2661405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2662405bc8fdSMatt Redfearn
2663405bc8fdSMatt Redfearn	  If unsure, say N.
2664405bc8fdSMatt Redfearn
2665405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2666405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2667405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2668405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2669405bc8fdSMatt Redfearn	range 0x0 0x08000000
2670405bc8fdSMatt Redfearn	default "0x01000000"
2671a7f7f624SMasahiro Yamada	help
2672405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2673405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2674405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2675405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2676405bc8fdSMatt Redfearn
2677405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2678405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2679405bc8fdSMatt Redfearn
2680c80d79d7SYasunori Gotoconfig NODES_SHIFT
2681c80d79d7SYasunori Goto	int
2682c80d79d7SYasunori Goto	default "6"
2683a9ee6cf5SMike Rapoport	depends on NUMA
2684c80d79d7SYasunori Goto
268514f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
268614f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
268795b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
268814f70012SDeng-Cheng Zhu	default y
268914f70012SDeng-Cheng Zhu	help
269014f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
269114f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
269214f70012SDeng-Cheng Zhu
2693be8fa1cbSTiezhu Yangconfig DMI
2694be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2695be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2696be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2697be8fa1cbSTiezhu Yang	default y
2698be8fa1cbSTiezhu Yang	help
2699be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2700be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2701be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2702be8fa1cbSTiezhu Yang	  BIOS code.
2703be8fa1cbSTiezhu Yang
27041da177e4SLinus Torvaldsconfig SMP
27051da177e4SLinus Torvalds	bool "Multi-Processing support"
2706e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2707e73ea273SRalf Baechle	help
27081da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27094a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27104a474157SRobert Graffham	  than one CPU, say Y.
27111da177e4SLinus Torvalds
27124a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27131da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27141da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27154a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27161da177e4SLinus Torvalds	  will run faster if you say N here.
27171da177e4SLinus Torvalds
27181da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27191da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27201da177e4SLinus Torvalds
272103502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2722ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27231da177e4SLinus Torvalds
27241da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27251da177e4SLinus Torvalds
27267840d618SMatt Redfearnconfig HOTPLUG_CPU
27277840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27287840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27297840d618SMatt Redfearn	help
27307840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27317840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27327840d618SMatt Redfearn	  (Note: power management support will enable this option
27337840d618SMatt Redfearn	    automatically on SMP systems. )
27347840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
27357840d618SMatt Redfearn
273687353d8aSRalf Baechleconfig SMP_UP
273787353d8aSRalf Baechle	bool
273887353d8aSRalf Baechle
27390ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27400ee958e1SPaul Burton	bool
27410ee958e1SPaul Burton
2742e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2743e73ea273SRalf Baechle	bool
2744e73ea273SRalf Baechle
2745130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2746130e2fb7SRalf Baechle	bool
2747130e2fb7SRalf Baechle
2748130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2749130e2fb7SRalf Baechle	bool
2750130e2fb7SRalf Baechle
2751130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2752130e2fb7SRalf Baechle	bool
2753130e2fb7SRalf Baechle
2754130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2755130e2fb7SRalf Baechle	bool
2756130e2fb7SRalf Baechle
2757130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2758130e2fb7SRalf Baechle	bool
2759130e2fb7SRalf Baechle
27601da177e4SLinus Torvaldsconfig NR_CPUS
2761a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2762a91796a9SJayachandran C	range 2 256
27631da177e4SLinus Torvalds	depends on SMP
2764130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2765130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2766130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2767130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2768130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27691da177e4SLinus Torvalds	help
27701da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27711da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27721da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
277372ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
277472ede9b1SAtsushi Nemoto	  and 2 for all others.
27751da177e4SLinus Torvalds
27761da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
277772ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
277872ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
277972ede9b1SAtsushi Nemoto	  power of two.
27801da177e4SLinus Torvalds
2781399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2782399aaa25SAl Cooper	bool
2783399aaa25SAl Cooper
27847820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27857820b84bSDavid Daney	bool
27867820b84bSDavid Daney
27877820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27887820b84bSDavid Daney	int
27897820b84bSDavid Daney	depends on SMP
27907820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
27917820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
27927820b84bSDavid Daney
27931723b4a3SAtsushi Nemoto#
27941723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
27951723b4a3SAtsushi Nemoto#
27961723b4a3SAtsushi Nemoto
27971723b4a3SAtsushi Nemotochoice
27981723b4a3SAtsushi Nemoto	prompt "Timer frequency"
27991723b4a3SAtsushi Nemoto	default HZ_250
28001723b4a3SAtsushi Nemoto	help
28011723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
28021723b4a3SAtsushi Nemoto
280367596573SPaul Burton	config HZ_24
280467596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
280567596573SPaul Burton
28061723b4a3SAtsushi Nemoto	config HZ_48
28070f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28081723b4a3SAtsushi Nemoto
28091723b4a3SAtsushi Nemoto	config HZ_100
28101723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28111723b4a3SAtsushi Nemoto
28121723b4a3SAtsushi Nemoto	config HZ_128
28131723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28141723b4a3SAtsushi Nemoto
28151723b4a3SAtsushi Nemoto	config HZ_250
28161723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28171723b4a3SAtsushi Nemoto
28181723b4a3SAtsushi Nemoto	config HZ_256
28191723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28201723b4a3SAtsushi Nemoto
28211723b4a3SAtsushi Nemoto	config HZ_1000
28221723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28231723b4a3SAtsushi Nemoto
28241723b4a3SAtsushi Nemoto	config HZ_1024
28251723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28261723b4a3SAtsushi Nemoto
28271723b4a3SAtsushi Nemotoendchoice
28281723b4a3SAtsushi Nemoto
282967596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
283067596573SPaul Burton	bool
283167596573SPaul Burton
28321723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28331723b4a3SAtsushi Nemoto	bool
28341723b4a3SAtsushi Nemoto
28351723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28361723b4a3SAtsushi Nemoto	bool
28371723b4a3SAtsushi Nemoto
28381723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28391723b4a3SAtsushi Nemoto	bool
28401723b4a3SAtsushi Nemoto
28411723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28421723b4a3SAtsushi Nemoto	bool
28431723b4a3SAtsushi Nemoto
28441723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28451723b4a3SAtsushi Nemoto	bool
28461723b4a3SAtsushi Nemoto
28471723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28481723b4a3SAtsushi Nemoto	bool
28491723b4a3SAtsushi Nemoto
28501723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28511723b4a3SAtsushi Nemoto	bool
28521723b4a3SAtsushi Nemoto
28531723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28541723b4a3SAtsushi Nemoto	bool
285567596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
285667596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
285767596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
285867596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
285967596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
286067596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
286167596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28621723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28631723b4a3SAtsushi Nemoto
28641723b4a3SAtsushi Nemotoconfig HZ
28651723b4a3SAtsushi Nemoto	int
286667596573SPaul Burton	default 24 if HZ_24
28671723b4a3SAtsushi Nemoto	default 48 if HZ_48
28681723b4a3SAtsushi Nemoto	default 100 if HZ_100
28691723b4a3SAtsushi Nemoto	default 128 if HZ_128
28701723b4a3SAtsushi Nemoto	default 250 if HZ_250
28711723b4a3SAtsushi Nemoto	default 256 if HZ_256
28721723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28731723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28741723b4a3SAtsushi Nemoto
287596685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
287696685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
287796685b17SDeng-Cheng Zhu
2878ea6e942bSAtsushi Nemotoconfig KEXEC
28797d60717eSKees Cook	bool "Kexec system call"
28802965faa5SDave Young	select KEXEC_CORE
2881ea6e942bSAtsushi Nemoto	help
2882ea6e942bSAtsushi Nemoto	  kexec is a system call that implements the ability to shutdown your
2883ea6e942bSAtsushi Nemoto	  current kernel, and to start another kernel.  It is like a reboot
28843dde6ad8SDavid Sterba	  but it is independent of the system firmware.   And like a reboot
2885ea6e942bSAtsushi Nemoto	  you can start any kernel with it, not just Linux.
2886ea6e942bSAtsushi Nemoto
288701dd2fbfSMatt LaPlante	  The name comes from the similarity to the exec system call.
2888ea6e942bSAtsushi Nemoto
2889ea6e942bSAtsushi Nemoto	  It is an ongoing process to be certain the hardware in a machine
2890ea6e942bSAtsushi Nemoto	  is properly shutdown, so do not be surprised if this code does not
2891bf220695SGeert Uytterhoeven	  initially work for you.  As of this writing the exact hardware
2892bf220695SGeert Uytterhoeven	  interface is strongly in flux, so no good recommendation can be
2893bf220695SGeert Uytterhoeven	  made.
2894ea6e942bSAtsushi Nemoto
28957aa1c8f4SRalf Baechleconfig CRASH_DUMP
28967aa1c8f4SRalf Baechle	bool "Kernel crash dumps"
28977aa1c8f4SRalf Baechle	help
28987aa1c8f4SRalf Baechle	  Generate crash dump after being started by kexec.
28997aa1c8f4SRalf Baechle	  This should be normally only set in special crash dump kernels
29007aa1c8f4SRalf Baechle	  which are loaded in the main kernel with kexec-tools into
29017aa1c8f4SRalf Baechle	  a specially reserved region and then later executed after
29027aa1c8f4SRalf Baechle	  a crash by kdump/kexec. The crash dump kernel must be compiled
29037aa1c8f4SRalf Baechle	  to a memory address not used by the main kernel or firmware using
29047aa1c8f4SRalf Baechle	  PHYSICAL_START.
29057aa1c8f4SRalf Baechle
29067aa1c8f4SRalf Baechleconfig PHYSICAL_START
29077aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
29088bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
29097aa1c8f4SRalf Baechle	depends on CRASH_DUMP
29107aa1c8f4SRalf Baechle	help
29117aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
29127aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
29137aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
29147aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
29157aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
29167aa1c8f4SRalf Baechle
2917597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2918b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2919597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2920597ce172SPaul Burton	help
2921597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2922597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2923597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2924597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2925597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2926597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2927597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2928597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2929597ce172SPaul Burton	  saying N here.
2930597ce172SPaul Burton
293106e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
293206e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
293318ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
293406e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
293506e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
293606e2e882SPaul Burton	  said details.
293706e2e882SPaul Burton
293806e2e882SPaul Burton	  If unsure, say N.
2939597ce172SPaul Burton
2940f2ffa5abSDezhong Diaoconfig USE_OF
29410b3e06fdSJonas Gorski	bool
2942f2ffa5abSDezhong Diao	select OF
2943e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2944abd2363fSGrant Likely	select IRQ_DOMAIN
2945f2ffa5abSDezhong Diao
29462fe8ea39SDengcheng Zhuconfig UHI_BOOT
29472fe8ea39SDengcheng Zhu	bool
29482fe8ea39SDengcheng Zhu
29497fafb068SAndrew Brestickerconfig BUILTIN_DTB
29507fafb068SAndrew Bresticker	bool
29517fafb068SAndrew Bresticker
29521da8f179SJonas Gorskichoice
29535b24d52cSJonas Gorski	prompt "Kernel appended dtb support" if USE_OF
29541da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29551da8f179SJonas Gorski
29561da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29571da8f179SJonas Gorski		bool "None"
29581da8f179SJonas Gorski		help
29591da8f179SJonas Gorski		  Do not enable appended dtb support.
29601da8f179SJonas Gorski
296187db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
296287db537dSAaro Koskinen		bool "vmlinux"
296387db537dSAaro Koskinen		help
296487db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
296587db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
296687db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
296787db537dSAaro Koskinen		  objcopy:
296887db537dSAaro Koskinen
296987db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
297087db537dSAaro Koskinen
297118ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
297287db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
297387db537dSAaro Koskinen		  the documented boot protocol using a device tree.
297487db537dSAaro Koskinen
29751da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2976b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29771da8f179SJonas Gorski		help
29781da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2979b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29801da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29811da8f179SJonas Gorski
29821da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29831da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29841da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29851da8f179SJonas Gorski
29861da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29871da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29881da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29891da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29901da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29911da8f179SJonas Gorskiendchoice
29921da8f179SJonas Gorski
29932024972eSJonas Gorskichoice
29942024972eSJonas Gorski	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
29952bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
299687fcfa7bSJiaxun Yang					 !MACH_LOONGSON64 && !MIPS_MALTA && \
29972bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
29982024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29992024972eSJonas Gorski
30002024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
30012024972eSJonas Gorski		depends on USE_OF
30022024972eSJonas Gorski		bool "Dtb kernel arguments if available"
30032024972eSJonas Gorski
30042024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
30052024972eSJonas Gorski		depends on USE_OF
30062024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
30072024972eSJonas Gorski
30082024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
30092024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
3010ed47e153SRabin Vincent
3011ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
3012ed47e153SRabin Vincent		depends on CMDLINE_BOOL
3013ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
30142024972eSJonas Gorskiendchoice
30152024972eSJonas Gorski
30165e83d430SRalf Baechleendmenu
30175e83d430SRalf Baechle
30181df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
30191df0f0ffSAtsushi Nemoto	bool
30201df0f0ffSAtsushi Nemoto	default y
30211df0f0ffSAtsushi Nemoto
30221df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
30231df0f0ffSAtsushi Nemoto	bool
30241df0f0ffSAtsushi Nemoto	default y
30251df0f0ffSAtsushi Nemoto
3026a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3027a728ab52SKirill A. Shutemov	int
30283377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
302941ce097fSHuang Pei	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3030a728ab52SKirill A. Shutemov	default 2
3031a728ab52SKirill A. Shutemov
30326c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30336c359eb1SPaul Burton	bool
30346c359eb1SPaul Burton
30351da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30361da177e4SLinus Torvalds
3037c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
30382eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3039c5611df9SPaul Burton	bool
3040c5611df9SPaul Burton
3041c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3042c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3043c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
30442eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
30451da177e4SLinus Torvalds
30461da177e4SLinus Torvalds#
30471da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30481da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30491da177e4SLinus Torvalds# users to choose the right thing ...
30501da177e4SLinus Torvalds#
30511da177e4SLinus Torvaldsconfig ISA
30521da177e4SLinus Torvalds	bool
30531da177e4SLinus Torvalds
30541da177e4SLinus Torvaldsconfig TC
30551da177e4SLinus Torvalds	bool "TURBOchannel support"
30561da177e4SLinus Torvalds	depends on MACH_DECSTATION
30571da177e4SLinus Torvalds	help
305850a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
305950a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
306050a23e6eSJustin P. Mattock	  at:
306150a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
306250a23e6eSJustin P. Mattock	  and:
306350a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
306450a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
306550a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30661da177e4SLinus Torvalds
30671da177e4SLinus Torvaldsconfig MMU
30681da177e4SLinus Torvalds	bool
30691da177e4SLinus Torvalds	default y
30701da177e4SLinus Torvalds
3071109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3072109c32ffSMatt Redfearn	default 12 if 64BIT
3073109c32ffSMatt Redfearn	default 8
3074109c32ffSMatt Redfearn
3075109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3076109c32ffSMatt Redfearn	default 18 if 64BIT
3077109c32ffSMatt Redfearn	default 15
3078109c32ffSMatt Redfearn
3079109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3080109c32ffSMatt Redfearn	default 8
3081109c32ffSMatt Redfearn
3082109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3083109c32ffSMatt Redfearn	default 15
3084109c32ffSMatt Redfearn
3085d865bea4SRalf Baechleconfig I8253
3086d865bea4SRalf Baechle	bool
3087798778b8SRussell King	select CLKSRC_I8253
30882d02612fSThomas Gleixner	select CLKEVT_I8253
30899726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
30901da177e4SLinus Torvaldsendmenu
30911da177e4SLinus Torvalds
30921da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30931da177e4SLinus Torvalds	bool
30941da177e4SLinus Torvalds
30951da177e4SLinus Torvaldsconfig MIPS32_COMPAT
309678aaf956SRalf Baechle	bool
30971da177e4SLinus Torvalds
30981da177e4SLinus Torvaldsconfig COMPAT
30991da177e4SLinus Torvalds	bool
31001da177e4SLinus Torvalds
31011da177e4SLinus Torvaldsconfig MIPS32_O32
31021da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
310378aaf956SRalf Baechle	depends on 64BIT
310478aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
310578aaf956SRalf Baechle	select COMPAT
310678aaf956SRalf Baechle	select MIPS32_COMPAT
31071da177e4SLinus Torvalds	help
31081da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
31091da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
31101da177e4SLinus Torvalds	  existing binaries are in this format.
31111da177e4SLinus Torvalds
31121da177e4SLinus Torvalds	  If unsure, say Y.
31131da177e4SLinus Torvalds
31141da177e4SLinus Torvaldsconfig MIPS32_N32
31151da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3116c22eacfeSRalf Baechle	depends on 64BIT
31175a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
311878aaf956SRalf Baechle	select COMPAT
311978aaf956SRalf Baechle	select MIPS32_COMPAT
31201da177e4SLinus Torvalds	help
31211da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31221da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31231da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31241da177e4SLinus Torvalds	  cases.
31251da177e4SLinus Torvalds
31261da177e4SLinus Torvalds	  If unsure, say N.
31271da177e4SLinus Torvalds
3128d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3129d49fc692SNathan Chancellor	def_bool y
3130d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
3131d49fc692SNathan Chancellor
31321a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31331a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31341a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31351a2c73f4SJiaxun Yang
31362116245eSRalf Baechlemenu "Power management options"
3137952fa954SRodolfo Giometti
3138363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3139363c55caSWu Zhangjin	def_bool y
31403f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3141363c55caSWu Zhangjin
3142f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3143f4cb5700SJohannes Berg	def_bool y
31443f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3145f4cb5700SJohannes Berg
31462116245eSRalf Baechlesource "kernel/power/Kconfig"
3147952fa954SRodolfo Giometti
31481da177e4SLinus Torvaldsendmenu
31491da177e4SLinus Torvalds
31507a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31517a998935SViresh Kumar	bool
31527a998935SViresh Kumar
31537a998935SViresh Kumarmenu "CPU Power Management"
3154c095ebafSPaul Burton
3155c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31567a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
315731f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31589726b43aSWu Zhangjin
3159c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3160c095ebafSPaul Burton
3161c095ebafSPaul Burtonendmenu
3162c095ebafSPaul Burton
31632235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3164e91946d6SNathan Chancellor
3165e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3166