xref: /linux/arch/mips/Kconfig (revision 1d987052e32f3554e84a296c4494551bc60f3877)
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
7dfad83cbSFlorian Fainelli	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
834c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
934c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1066633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1134c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
12e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
13e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1412597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
151e35918aSHassan Naveed	select ARCH_HAS_UBSAN_SANITIZE_ALL
168b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
17c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
1812597988SMatt Redfearn	select ARCH_SUPPORTS_UPROBES
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
35bab1dde3SAlexander Lobakin	select GENERIC_FIND_FIRST_BIT
3624640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
37b962aeb0SPaul Burton	select GENERIC_IOMAP
3812597988SMatt Redfearn	select GENERIC_IRQ_PROBE
3912597988SMatt Redfearn	select GENERIC_IRQ_SHOW
406630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
41740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
42740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
43740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
44740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
45740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
4612597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
4712597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
4812597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
49446f062bSChristoph Hellwig	select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
5012597988SMatt Redfearn	select HANDLE_DOMAIN_IRQ
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
6036366e36SPaul Burton	select HAVE_CBPF_JIT if !64BIT && !CPU_MICROMIPS
6112597988SMatt Redfearn	select HAVE_CONTEXT_TRACKING
62490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6364575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6412597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
6512597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
6612597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
6712597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
6834c01e41SAlexander Lobakin	select HAVE_EBPF_JIT if 64BIT && !CPU_MICROMIPS && TARGET_ISA_REV >= 2
6912597988SMatt Redfearn	select HAVE_EXIT_THREAD
7067a929e0SChristoph Hellwig	select HAVE_FAST_GUP
7112597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
7229c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7312597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7434c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
7534c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
76b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
7712597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
7812597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
79c1bf207dSDavid Daney	select HAVE_KPROBES
80c1bf207dSDavid Daney	select HAVE_KRETPROBES
81c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
82786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8342a0bb3fSPetr Mladek	select HAVE_NMI
8412597988SMatt Redfearn	select HAVE_PERF_EVENTS
851ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
861ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
8708bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
889ea141adSPaul Burton	select HAVE_RSEQ
8916c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
90d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9112597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
92a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
9312597988SMatt Redfearn	select IRQ_FORCED_THREADING
946630a8e5SChristoph Hellwig	select ISA if EISA
9512597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
9634c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
9712597988SMatt Redfearn	select PERF_USE_VMALLOC
98981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
9905a0a344SArnd Bergmann	select RTC_LIB
10012597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1014aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
10212597988SMatt Redfearn	select VIRT_TO_BUS
1030bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
1041da177e4SLinus Torvalds
105d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
106d3991572SChristoph Hellwig	bool
107d3991572SChristoph Hellwig
108c434b9f8SPaul Cercueilconfig MIPS_GENERIC
109c434b9f8SPaul Cercueil	bool
110c434b9f8SPaul Cercueil
111f0f4a753SPaul Cercueilconfig MACH_INGENIC
112f0f4a753SPaul Cercueil	bool
113f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
114f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
115f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
116f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
1171660710cSPaul Cercueil	select ARCH_HAS_SYNC_DMA_FOR_CPU
118f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
119f0f4a753SPaul Cercueil	select PINCTRL
120f0f4a753SPaul Cercueil	select GPIOLIB
121f0f4a753SPaul Cercueil	select COMMON_CLK
122f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
123f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
124f0f4a753SPaul Cercueil	select USE_OF
125f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
126f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
127f0f4a753SPaul Cercueil
1281da177e4SLinus Torvaldsmenu "Machine selection"
1291da177e4SLinus Torvalds
1305e83d430SRalf Baechlechoice
1315e83d430SRalf Baechle	prompt "System type"
132c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1331da177e4SLinus Torvalds
134c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
135eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
1364e066441SChristoph Hellwig	select ARCH_HAS_SETUP_DMA_OPS
137c434b9f8SPaul Cercueil	select MIPS_GENERIC
138eed0eabdSPaul Burton	select BOOT_RAW
139eed0eabdSPaul Burton	select BUILTIN_DTB
140eed0eabdSPaul Burton	select CEVT_R4K
141eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
142eed0eabdSPaul Burton	select COMMON_CLK
143eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
14434c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
145eed0eabdSPaul Burton	select CSRC_R4K
1464e066441SChristoph Hellwig	select DMA_NONCOHERENT
147eb01d42aSChristoph Hellwig	select HAVE_PCI
148eed0eabdSPaul Burton	select IRQ_MIPS_CPU
1490211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
150eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
151eed0eabdSPaul Burton	select MIPS_GIC
152eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
153eed0eabdSPaul Burton	select NO_EXCEPT_FILL
154eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
155eed0eabdSPaul Burton	select SMP_UP if SMP
156a3078e59SMatt Redfearn	select SWAP_IO_SPACE
157eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
158eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
159eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
160eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
161eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
162eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
163eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
164eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
165eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
166eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
167eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
168eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
169eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
17034c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
171eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
172eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
173eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
174c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
17534c01e41SAlexander Lobakin	select UHI_BOOT
1762e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1772e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1782e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1792e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1802e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1812e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
182eed0eabdSPaul Burton	select USE_OF
183eed0eabdSPaul Burton	help
184eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
185eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
186eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
187eed0eabdSPaul Burton	  Interface) specification.
188eed0eabdSPaul Burton
18942a4f17dSManuel Laussconfig MIPS_ALCHEMY
190c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
191d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
192f772cdb2SRalf Baechle	select CEVT_R4K
193d7ea335cSSteven J. Hill	select CSRC_R4K
19467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
195a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
196d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
19742a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
19842a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
19942a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
200d30a2b47SLinus Walleij	select GPIOLIB
2011b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
20247440229SManuel Lauss	select COMMON_CLK
2031da177e4SLinus Torvalds
2047ca5dc14SFlorian Fainelliconfig AR7
2057ca5dc14SFlorian Fainelli	bool "Texas Instruments AR7"
2067ca5dc14SFlorian Fainelli	select BOOT_ELF32
207b408b611SArnd Bergmann	select COMMON_CLK
2087ca5dc14SFlorian Fainelli	select DMA_NONCOHERENT
2097ca5dc14SFlorian Fainelli	select CEVT_R4K
2107ca5dc14SFlorian Fainelli	select CSRC_R4K
21167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2127ca5dc14SFlorian Fainelli	select NO_EXCEPT_FILL
2137ca5dc14SFlorian Fainelli	select SWAP_IO_SPACE
2147ca5dc14SFlorian Fainelli	select SYS_HAS_CPU_MIPS32_R1
2157ca5dc14SFlorian Fainelli	select SYS_HAS_EARLY_PRINTK
2167ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_32BIT_KERNEL
2177ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_LITTLE_ENDIAN
218377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
2191b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT_UART16550
220d30a2b47SLinus Walleij	select GPIOLIB
2217ca5dc14SFlorian Fainelli	select VLYNQ
2227ca5dc14SFlorian Fainelli	help
2237ca5dc14SFlorian Fainelli	  Support for the Texas Instruments AR7 System-on-a-Chip
2247ca5dc14SFlorian Fainelli	  family: TNETD7100, 7200 and 7300.
2257ca5dc14SFlorian Fainelli
22643cc739fSSergey Ryazanovconfig ATH25
22743cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
22843cc739fSSergey Ryazanov	select CEVT_R4K
22943cc739fSSergey Ryazanov	select CSRC_R4K
23043cc739fSSergey Ryazanov	select DMA_NONCOHERENT
23167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2321753e74eSSergey Ryazanov	select IRQ_DOMAIN
23343cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
23443cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
23543cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2368aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
23743cc739fSSergey Ryazanov	help
23843cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
23943cc739fSSergey Ryazanov
240d4a67d9dSGabor Juhosconfig ATH79
241d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
242ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
243d4a67d9dSGabor Juhos	select BOOT_RAW
244d4a67d9dSGabor Juhos	select CEVT_R4K
245d4a67d9dSGabor Juhos	select CSRC_R4K
246d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
247d30a2b47SLinus Walleij	select GPIOLIB
248a08227a2SJohn Crispin	select PINCTRL
249411520afSAlban Bedel	select COMMON_CLK
25067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
251d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
252d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
253d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
254d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
255377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
256b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
25703c8c407SAlban Bedel	select USE_OF
25853d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
259d4a67d9dSGabor Juhos	help
260d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
261d4a67d9dSGabor Juhos
2625f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2635f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
26429906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
265d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
266d59098a0SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
267d666cd02SKevin Cernekee	select BOOT_RAW
268d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
269d666cd02SKevin Cernekee	select USE_OF
270d666cd02SKevin Cernekee	select CEVT_R4K
271d666cd02SKevin Cernekee	select CSRC_R4K
272d666cd02SKevin Cernekee	select SYNC_R4K
273d666cd02SKevin Cernekee	select COMMON_CLK
274c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
27560b858f2SKevin Cernekee	select BCM7038_L1_IRQ
27660b858f2SKevin Cernekee	select BCM7120_L2_IRQ
27760b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
27867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
27960b858f2SKevin Cernekee	select DMA_NONCOHERENT
280d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
28160b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
282d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
283d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
28460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
28560b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
28660b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
287d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
288d666cd02SKevin Cernekee	select SWAP_IO_SPACE
28960b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
29060b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
29160b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
29260b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2934dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
294*1d987052SFlorian Fainelli	select HAVE_PCI
295*1d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
296d666cd02SKevin Cernekee	help
2975f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2985f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2995f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
3005f2d4459SKevin Cernekee	  must be set appropriately for your board.
301d666cd02SKevin Cernekee
3021c0c13ebSAurelien Jarnoconfig BCM47XX
303c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
304fe08f8c2SHauke Mehrtens	select BOOT_RAW
30542f77542SRalf Baechle	select CEVT_R4K
306940f6b48SRalf Baechle	select CSRC_R4K
3071c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
308eb01d42aSChristoph Hellwig	select HAVE_PCI
30967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
310314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
311dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
3121c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3131c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
314377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3156507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
31625e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
317e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
318c949c0bcSRafał Miłecki	select GPIOLIB
319c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
320f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3212ab71a02SRafał Miłecki	select BCM47XX_SPROM
322dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3231c0c13ebSAurelien Jarno	help
3241c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3251c0c13ebSAurelien Jarno
326e7300d04SMaxime Bizonconfig BCM63XX
327e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
328ae8de61cSFlorian Fainelli	select BOOT_RAW
329e7300d04SMaxime Bizon	select CEVT_R4K
330e7300d04SMaxime Bizon	select CSRC_R4K
331fc264022SJonas Gorski	select SYNC_R4K
332e7300d04SMaxime Bizon	select DMA_NONCOHERENT
33367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
334e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
335e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
336e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3375eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3385eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3395eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
340e7300d04SMaxime Bizon	select SWAP_IO_SPACE
341d30a2b47SLinus Walleij	select GPIOLIB
342af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
343bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
344e7300d04SMaxime Bizon	help
345e7300d04SMaxime Bizon	  Support for BCM63XX based boards
346e7300d04SMaxime Bizon
3471da177e4SLinus Torvaldsconfig MIPS_COBALT
3483fa986faSMartin Michlmayr	bool "Cobalt Server"
34942f77542SRalf Baechle	select CEVT_R4K
350940f6b48SRalf Baechle	select CSRC_R4K
3511097c6acSYoichi Yuasa	select CEVT_GT641XX
3521da177e4SLinus Torvalds	select DMA_NONCOHERENT
353eb01d42aSChristoph Hellwig	select FORCE_PCI
354d865bea4SRalf Baechle	select I8253
3551da177e4SLinus Torvalds	select I8259
35667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
357d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
358252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3597cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3600a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
361ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3620e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3635e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
364e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3651da177e4SLinus Torvalds
3661da177e4SLinus Torvaldsconfig MACH_DECSTATION
3673fa986faSMartin Michlmayr	bool "DECstations"
3681da177e4SLinus Torvalds	select BOOT_ELF32
3696457d9fcSYoichi Yuasa	select CEVT_DS1287
37081d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3714247417dSYoichi Yuasa	select CSRC_IOASIC
37281d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
37320d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
37420d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
37520d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3761da177e4SLinus Torvalds	select DMA_NONCOHERENT
377ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
37867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3797cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3807cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
381ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3827d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3835e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3841723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3851723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3861723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
387930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3885e83d430SRalf Baechle	help
3891da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3901da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3911da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3921da177e4SLinus Torvalds
3931da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3941da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3951da177e4SLinus Torvalds
3961da177e4SLinus Torvalds		DECstation 5000/50
3971da177e4SLinus Torvalds		DECstation 5000/150
3981da177e4SLinus Torvalds		DECstation 5000/260
3991da177e4SLinus Torvalds		DECsystem 5900/260
4001da177e4SLinus Torvalds
4011da177e4SLinus Torvalds	  otherwise choose R3000.
4021da177e4SLinus Torvalds
4035e83d430SRalf Baechleconfig MACH_JAZZ
4043fa986faSMartin Michlmayr	bool "Jazz family of machines"
40539b2d756SThomas Bogendoerfer	select ARC_MEMORY
40639b2d756SThomas Bogendoerfer	select ARC_PROMLIB
407a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
4087a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4092f9237d4SChristoph Hellwig	select DMA_OPS
4100e2794b0SRalf Baechle	select FW_ARC
4110e2794b0SRalf Baechle	select FW_ARC32
4125e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
41342f77542SRalf Baechle	select CEVT_R4K
414940f6b48SRalf Baechle	select CSRC_R4K
415e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4165e83d430SRalf Baechle	select GENERIC_ISA_DMA
4178a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
41867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
419d865bea4SRalf Baechle	select I8253
4205e83d430SRalf Baechle	select I8259
4215e83d430SRalf Baechle	select ISA
4227cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4235e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4247d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4251723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
426aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4271da177e4SLinus Torvalds	help
4285e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4295e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
430692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4315e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4325e83d430SRalf Baechle
433f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
434de361e8bSPaul Burton	bool "Ingenic SoC based machines"
435f0f4a753SPaul Cercueil	select MIPS_GENERIC
436f0f4a753SPaul Cercueil	select MACH_INGENIC
437f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
438eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
439eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4405ebabe59SLars-Peter Clausen
441171bb2f1SJohn Crispinconfig LANTIQ
442171bb2f1SJohn Crispin	bool "Lantiq based platforms"
443171bb2f1SJohn Crispin	select DMA_NONCOHERENT
44467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
445171bb2f1SJohn Crispin	select CEVT_R4K
446171bb2f1SJohn Crispin	select CSRC_R4K
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 CPU_HAS_WB
4926fbde6b4SJiaxun Yang	select FORCE_PCI
4936fbde6b4SJiaxun Yang	select ISA
4946fbde6b4SJiaxun Yang	select I8259
4956fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
4967d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
4975125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
4986fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
4996423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
5006fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
5016fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
5026fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
5036fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
5046fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
5056fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
5066fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
5076fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
50871e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
509a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
5106fbde6b4SJiaxun Yang	select ZONE_DMA32
51187fcfa7bSJiaxun Yang	select COMMON_CLK
51287fcfa7bSJiaxun Yang	select USE_OF
51387fcfa7bSJiaxun Yang	select BUILTIN_DTB
51439c1485cSHuacai Chen	select PCI_HOST_GENERIC
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
5670365070fSTim Anderson	select SYS_SUPPORTS_MIPS_CMP
568e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
569f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
57047bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
5719693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
572f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5731b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
574e8823d26SPaul Burton	select USE_OF
575886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
576abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
5771da177e4SLinus Torvalds	help
578f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5791da177e4SLinus Torvalds	  board.
5801da177e4SLinus Torvalds
5812572f00dSJoshua Hendersonconfig MACH_PIC32
5822572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5832572f00dSJoshua Henderson	help
5842572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5852572f00dSJoshua Henderson
5862572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5872572f00dSJoshua Henderson	  microcontrollers.
5882572f00dSJoshua Henderson
5895e83d430SRalf Baechleconfig MACH_VR41XX
59074142d65SYoichi Yuasa	bool "NEC VR4100 series based machines"
59142f77542SRalf Baechle	select CEVT_R4K
592940f6b48SRalf Baechle	select CSRC_R4K
5937cf8053bSRalf Baechle	select SYS_HAS_CPU_VR41XX
594377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
595d30a2b47SLinus Walleij	select GPIOLIB
5965e83d430SRalf Baechle
597baec970aSLauri Kasanenconfig MACH_NINTENDO64
598baec970aSLauri Kasanen	bool "Nintendo 64 console"
599baec970aSLauri Kasanen	select CEVT_R4K
600baec970aSLauri Kasanen	select CSRC_R4K
601baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
602baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
603baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
604baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
605baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
606baec970aSLauri Kasanen	select DMA_NONCOHERENT
607baec970aSLauri Kasanen	select IRQ_MIPS_CPU
608baec970aSLauri Kasanen
609ae2b5bb6SJohn Crispinconfig RALINK
610ae2b5bb6SJohn Crispin	bool "Ralink based machines"
611ae2b5bb6SJohn Crispin	select CEVT_R4K
61235f752beSArnd Bergmann	select COMMON_CLK
613ae2b5bb6SJohn Crispin	select CSRC_R4K
614ae2b5bb6SJohn Crispin	select BOOT_RAW
615ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
61667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
617ae2b5bb6SJohn Crispin	select USE_OF
618ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
619ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
620ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
621ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
622377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6231f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
624ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6252a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6262a153f1cSJohn Crispin	select RESET_CONTROLLER
627ae2b5bb6SJohn Crispin
6284042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6294042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6304042147aSBert Vermeulen	select MIPS_GENERIC
6314042147aSBert Vermeulen	select DMA_NONCOHERENT
6324042147aSBert Vermeulen	select IRQ_MIPS_CPU
6334042147aSBert Vermeulen	select CSRC_R4K
6344042147aSBert Vermeulen	select CEVT_R4K
6354042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
6364042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
6374042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
6384042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
6394042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
6404042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
6414042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
6424042147aSBert Vermeulen	select SYS_HAS_EARLY_PRINTK
6434042147aSBert Vermeulen	select SYS_HAS_EARLY_PRINTK_8250
6444042147aSBert Vermeulen	select USE_GENERIC_EARLY_PRINTK_8250
6454042147aSBert Vermeulen	select BOOT_RAW
6464042147aSBert Vermeulen	select PINCTRL
6474042147aSBert Vermeulen	select USE_OF
6484042147aSBert Vermeulen
6491da177e4SLinus Torvaldsconfig SGI_IP22
6503fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
651c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
65239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
6530e2794b0SRalf Baechle	select FW_ARC
6540e2794b0SRalf Baechle	select FW_ARC32
6557a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
6561da177e4SLinus Torvalds	select BOOT_ELF32
65742f77542SRalf Baechle	select CEVT_R4K
658940f6b48SRalf Baechle	select CSRC_R4K
659e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
6601da177e4SLinus Torvalds	select DMA_NONCOHERENT
6616630a8e5SChristoph Hellwig	select HAVE_EISA
662d865bea4SRalf Baechle	select I8253
66368de4803SThomas Bogendoerfer	select I8259
6641da177e4SLinus Torvalds	select IP22_CPU_SCACHE
66567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
666aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
667e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
668e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
66936e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
670e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
671e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
672e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
6731da177e4SLinus Torvalds	select SWAP_IO_SPACE
6747cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
6757cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
676c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
677ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
678ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6795e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
680802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
6815e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
68244def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
683930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
6841da177e4SLinus Torvalds	help
6851da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
6861da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
6871da177e4SLinus Torvalds	  that runs on these, say Y here.
6881da177e4SLinus Torvalds
6891da177e4SLinus Torvaldsconfig SGI_IP27
6903fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
69154aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
692397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
6930e2794b0SRalf Baechle	select FW_ARC
6940e2794b0SRalf Baechle	select FW_ARC64
695e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
6965e83d430SRalf Baechle	select BOOT_ELF64
697e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
69804100459SChristoph Hellwig	select FORCE_PCI
69936a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
700eb01d42aSChristoph Hellwig	select HAVE_PCI
70169a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
702e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
703130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
704a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
705a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7067cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
707ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7085e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
709d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
7101a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
711256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
712930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7136c86a302SMike Rapoport	select NUMA
7141da177e4SLinus Torvalds	help
7151da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7161da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7171da177e4SLinus Torvalds	  here.
7181da177e4SLinus Torvalds
719e2defae5SThomas Bogendoerferconfig SGI_IP28
7207d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
721c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
72239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7230e2794b0SRalf Baechle	select FW_ARC
7240e2794b0SRalf Baechle	select FW_ARC64
7257a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
726e2defae5SThomas Bogendoerfer	select BOOT_ELF64
727e2defae5SThomas Bogendoerfer	select CEVT_R4K
728e2defae5SThomas Bogendoerfer	select CSRC_R4K
729e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
730e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
731e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
73267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7336630a8e5SChristoph Hellwig	select HAVE_EISA
734e2defae5SThomas Bogendoerfer	select I8253
735e2defae5SThomas Bogendoerfer	select I8259
736e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
737e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
7385b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
739e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
740e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
741e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
742e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
743e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
744c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
745e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
746e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
747256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
748dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
749e2defae5SThomas Bogendoerfer	help
750e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
751e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
752e2defae5SThomas Bogendoerfer
7537505576dSThomas Bogendoerferconfig SGI_IP30
7547505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
7557505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
7567505576dSThomas Bogendoerfer	select FW_ARC
7577505576dSThomas Bogendoerfer	select FW_ARC64
7587505576dSThomas Bogendoerfer	select BOOT_ELF64
7597505576dSThomas Bogendoerfer	select CEVT_R4K
7607505576dSThomas Bogendoerfer	select CSRC_R4K
76104100459SChristoph Hellwig	select FORCE_PCI
7627505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
7637505576dSThomas Bogendoerfer	select ZONE_DMA32
7647505576dSThomas Bogendoerfer	select HAVE_PCI
7657505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
7667505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
7677505576dSThomas Bogendoerfer	select NR_CPUS_DEFAULT_2
7687505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7697505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7707505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
7717505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7727505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
7737505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
7747505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
775256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
7767505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
7777505576dSThomas Bogendoerfer	select ARC_MEMORY
7787505576dSThomas Bogendoerfer	help
7797505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
7807505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
7817505576dSThomas Bogendoerfer
7821da177e4SLinus Torvaldsconfig SGI_IP32
783cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
78439b2d756SThomas Bogendoerfer	select ARC_MEMORY
78539b2d756SThomas Bogendoerfer	select ARC_PROMLIB
78603df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
7870e2794b0SRalf Baechle	select FW_ARC
7880e2794b0SRalf Baechle	select FW_ARC32
7891da177e4SLinus Torvalds	select BOOT_ELF32
79042f77542SRalf Baechle	select CEVT_R4K
791940f6b48SRalf Baechle	select CSRC_R4K
7921da177e4SLinus Torvalds	select DMA_NONCOHERENT
793eb01d42aSChristoph Hellwig	select HAVE_PCI
79467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7951da177e4SLinus Torvalds	select R5000_CPU_SCACHE
7961da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
7977cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
7987cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
7997cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
800dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
801ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
8025e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
803886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
8041da177e4SLinus Torvalds	help
8051da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8061da177e4SLinus Torvalds
807ade299d8SYoichi Yuasaconfig SIBYTE_CRHINE
808ade299d8SYoichi Yuasa	bool "Sibyte BCM91120C-CRhine"
8095e83d430SRalf Baechle	select BOOT_ELF32
8105e83d430SRalf Baechle	select SIBYTE_BCM1120
8115e83d430SRalf Baechle	select SWAP_IO_SPACE
8127cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8135e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8145e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8155e83d430SRalf Baechle
816ade299d8SYoichi Yuasaconfig SIBYTE_CARMEL
817ade299d8SYoichi Yuasa	bool "Sibyte BCM91120x-Carmel"
8185e83d430SRalf Baechle	select BOOT_ELF32
8195e83d430SRalf Baechle	select SIBYTE_BCM1120
8205e83d430SRalf Baechle	select SWAP_IO_SPACE
8217cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8225e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8235e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8245e83d430SRalf Baechle
8255e83d430SRalf Baechleconfig SIBYTE_CRHONE
8263fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
8275e83d430SRalf Baechle	select BOOT_ELF32
8285e83d430SRalf Baechle	select SIBYTE_BCM1125
8295e83d430SRalf Baechle	select SWAP_IO_SPACE
8307cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8315e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8325e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8335e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8345e83d430SRalf Baechle
835ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
836ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
837ade299d8SYoichi Yuasa	select BOOT_ELF32
838ade299d8SYoichi Yuasa	select SIBYTE_BCM1125H
839ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
840ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
841ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
842ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
843ade299d8SYoichi Yuasa
844ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
845ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
846ade299d8SYoichi Yuasa	select BOOT_ELF32
847fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
848ade299d8SYoichi Yuasa	select SIBYTE_SB1250
849ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
850ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
851ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
852ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
853ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
854cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
855e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
856ade299d8SYoichi Yuasa
857ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
858ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
859ade299d8SYoichi Yuasa	select BOOT_ELF32
860fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
861ade299d8SYoichi Yuasa	select SIBYTE_SB1250
862ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
863ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
864ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
865ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
866ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
867756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
868ade299d8SYoichi Yuasa
869ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
870ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
871ade299d8SYoichi Yuasa	select BOOT_ELF32
872ade299d8SYoichi Yuasa	select SIBYTE_SB1250
873ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
874ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
875ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
876ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
877e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
878ade299d8SYoichi Yuasa
879ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
880ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
881ade299d8SYoichi Yuasa	select BOOT_ELF32
882ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
883ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
884ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
885ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
886ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
887651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
888ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
889cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
890e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
891ade299d8SYoichi Yuasa
89214b36af4SThomas Bogendoerferconfig SNI_RM
89314b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
89439b2d756SThomas Bogendoerfer	select ARC_MEMORY
89539b2d756SThomas Bogendoerfer	select ARC_PROMLIB
8960e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
8970e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
898aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
8995e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
900a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9017a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
9025e83d430SRalf Baechle	select BOOT_ELF32
90342f77542SRalf Baechle	select CEVT_R4K
904940f6b48SRalf Baechle	select CSRC_R4K
905e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9065e83d430SRalf Baechle	select DMA_NONCOHERENT
9075e83d430SRalf Baechle	select GENERIC_ISA_DMA
9086630a8e5SChristoph Hellwig	select HAVE_EISA
9098a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
910eb01d42aSChristoph Hellwig	select HAVE_PCI
91167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
912d865bea4SRalf Baechle	select I8253
9135e83d430SRalf Baechle	select I8259
9145e83d430SRalf Baechle	select ISA
915564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9164a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9177cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
9184a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
919c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
9204a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
92136a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
922ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
9237d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
9244a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
9255e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
9265e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
92744def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
9281da177e4SLinus Torvalds	help
92914b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
93014b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9315e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9325e83d430SRalf Baechle	  support this machine type.
9331da177e4SLinus Torvalds
934edcaf1a6SAtsushi Nemotoconfig MACH_TX39XX
935edcaf1a6SAtsushi Nemoto	bool "Toshiba TX39 series based machines"
9365e83d430SRalf Baechle
937edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
938edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
93924a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
94023fbee9dSRalf Baechle
94173b4390fSRalf Baechleconfig MIKROTIK_RB532
94273b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
94373b4390fSRalf Baechle	select CEVT_R4K
94473b4390fSRalf Baechle	select CSRC_R4K
94573b4390fSRalf Baechle	select DMA_NONCOHERENT
946eb01d42aSChristoph Hellwig	select HAVE_PCI
94767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
94873b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
94973b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
95073b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
95173b4390fSRalf Baechle	select SWAP_IO_SPACE
95273b4390fSRalf Baechle	select BOOT_RAW
953d30a2b47SLinus Walleij	select GPIOLIB
954930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
95573b4390fSRalf Baechle	help
95673b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
95773b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
95873b4390fSRalf Baechle
9599ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9609ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
961a86c7f72SDavid Daney	select CEVT_R4K
962ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
9631753d50cSChristoph Hellwig	select HAVE_RAPIDIO
964d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
965a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
966a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
967f65aad41SRalf Baechle	select EDAC_SUPPORT
968b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
96973569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
97073569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
971a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
9725e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
973eb01d42aSChristoph Hellwig	select HAVE_PCI
97478bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
97578bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
97678bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
977f00e001eSDavid Daney	select ZONE_DMA32
978d30a2b47SLinus Walleij	select GPIOLIB
9796e511163SDavid Daney	select USE_OF
9806e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9816e511163SDavid Daney	select SYS_SUPPORTS_SMP
9827820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
9837820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
984e326479fSAndrew Bresticker	select BUILTIN_DTB
985f766b28aSJulian Braha	select MTD
9868c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
98709230cbcSChristoph Hellwig	select SWIOTLB
9883ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
989a86c7f72SDavid Daney	help
990a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
991a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
992a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
993a86c7f72SDavid Daney	  Some of the supported boards are:
994a86c7f72SDavid Daney		EBT3000
995a86c7f72SDavid Daney		EBH3000
996a86c7f72SDavid Daney		EBH3100
997a86c7f72SDavid Daney		Thunder
998a86c7f72SDavid Daney		Kodama
999a86c7f72SDavid Daney		Hikari
1000a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
1001a86c7f72SDavid Daney
10021da177e4SLinus Torvaldsendchoice
10031da177e4SLinus Torvalds
1004e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10053b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1006d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1007a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1008e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10098945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
1010eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
1011a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
10125e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10138ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
10142572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1015ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
101629c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
101738b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
101822b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
10195e83d430SRalf Baechlesource "arch/mips/vr41xx/Kconfig"
1020a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
102171e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
102230ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
102330ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
102438b18f72SRalf Baechle
10255e83d430SRalf Baechleendmenu
10265e83d430SRalf Baechle
10273c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10283c9ee7efSAkinobu Mita	bool
10293c9ee7efSAkinobu Mita	default y
10303c9ee7efSAkinobu Mita
10311da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10321da177e4SLinus Torvalds	bool
10331da177e4SLinus Torvalds	default y
10341da177e4SLinus Torvalds
1035ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10361cc89038SAtsushi Nemoto	bool
10371cc89038SAtsushi Nemoto	default y
10381cc89038SAtsushi Nemoto
10391da177e4SLinus Torvalds#
10401da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10411da177e4SLinus Torvalds#
10420e2794b0SRalf Baechleconfig FW_ARC
10431da177e4SLinus Torvalds	bool
10441da177e4SLinus Torvalds
104561ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
104661ed242dSRalf Baechle	bool
104761ed242dSRalf Baechle
10489267a30dSMarc St-Jeanconfig BOOT_RAW
10499267a30dSMarc St-Jean	bool
10509267a30dSMarc St-Jean
1051217dd11eSRalf Baechleconfig CEVT_BCM1480
1052217dd11eSRalf Baechle	bool
1053217dd11eSRalf Baechle
10546457d9fcSYoichi Yuasaconfig CEVT_DS1287
10556457d9fcSYoichi Yuasa	bool
10566457d9fcSYoichi Yuasa
10571097c6acSYoichi Yuasaconfig CEVT_GT641XX
10581097c6acSYoichi Yuasa	bool
10591097c6acSYoichi Yuasa
106042f77542SRalf Baechleconfig CEVT_R4K
106142f77542SRalf Baechle	bool
106242f77542SRalf Baechle
1063217dd11eSRalf Baechleconfig CEVT_SB1250
1064217dd11eSRalf Baechle	bool
1065217dd11eSRalf Baechle
1066229f773eSAtsushi Nemotoconfig CEVT_TXX9
1067229f773eSAtsushi Nemoto	bool
1068229f773eSAtsushi Nemoto
1069217dd11eSRalf Baechleconfig CSRC_BCM1480
1070217dd11eSRalf Baechle	bool
1071217dd11eSRalf Baechle
10724247417dSYoichi Yuasaconfig CSRC_IOASIC
10734247417dSYoichi Yuasa	bool
10744247417dSYoichi Yuasa
1075940f6b48SRalf Baechleconfig CSRC_R4K
107638586428SSerge Semin	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1077940f6b48SRalf Baechle	bool
1078940f6b48SRalf Baechle
1079217dd11eSRalf Baechleconfig CSRC_SB1250
1080217dd11eSRalf Baechle	bool
1081217dd11eSRalf Baechle
1082a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1083a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1084a7f4df4eSAlex Smith
1085a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1086d30a2b47SLinus Walleij	select GPIOLIB
1087a9aec7feSAtsushi Nemoto	bool
1088a9aec7feSAtsushi Nemoto
10890e2794b0SRalf Baechleconfig FW_CFE
1090df78b5c8SAurelien Jarno	bool
1091df78b5c8SAurelien Jarno
109240e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
109340e084a5SRalf Baechle	bool
109440e084a5SRalf Baechle
109520d33064SPaul Burtonconfig DMA_PERDEV_COHERENT
109620d33064SPaul Burton	bool
1097347cb6afSChristoph Hellwig	select ARCH_HAS_SETUP_DMA_OPS
10985748e1b3SChristoph Hellwig	select DMA_NONCOHERENT
109920d33064SPaul Burton
11001da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11011da177e4SLinus Torvalds	bool
1102db91427bSChristoph Hellwig	#
1103db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1104db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1105db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1106db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1107db91427bSChristoph Hellwig	# significant advantages.
1108db91427bSChristoph Hellwig	#
1109419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1110fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1111f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1112fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
111334dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
111434dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11154ce588cdSRalf Baechle
111636a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11171da177e4SLinus Torvalds	bool
11181da177e4SLinus Torvalds
11191b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1120dbb74540SRalf Baechle	bool
1121dbb74540SRalf Baechle
11221da177e4SLinus Torvaldsconfig MIPS_BONITO64
11231da177e4SLinus Torvalds	bool
11241da177e4SLinus Torvalds
11251da177e4SLinus Torvaldsconfig MIPS_MSC
11261da177e4SLinus Torvalds	bool
11271da177e4SLinus Torvalds
112839b8d525SRalf Baechleconfig SYNC_R4K
112939b8d525SRalf Baechle	bool
113039b8d525SRalf Baechle
1131ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1132d388d685SMaciej W. Rozycki	def_bool n
1133d388d685SMaciej W. Rozycki
11344e0748f5SMarkos Chandrasconfig GENERIC_CSUM
113518d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11364e0748f5SMarkos Chandras
11378313da30SRalf Baechleconfig GENERIC_ISA_DMA
11388313da30SRalf Baechle	bool
11398313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1140a35bee8aSNamhyung Kim	select ISA_DMA_API
11418313da30SRalf Baechle
1142aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1143aa414dffSRalf Baechle	bool
11448313da30SRalf Baechle	select GENERIC_ISA_DMA
1145aa414dffSRalf Baechle
114678bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
114778bdbbacSMasahiro Yamada	bool
114878bdbbacSMasahiro Yamada
114978bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
115078bdbbacSMasahiro Yamada	bool
115178bdbbacSMasahiro Yamada
115278bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
115378bdbbacSMasahiro Yamada	bool
115478bdbbacSMasahiro Yamada
1155a35bee8aSNamhyung Kimconfig ISA_DMA_API
1156a35bee8aSNamhyung Kim	bool
1157a35bee8aSNamhyung Kim
11588c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11598c530ea3SMatt Redfearn	bool
11608c530ea3SMatt Redfearn	help
11618c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11628c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11638c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
11648c530ea3SMatt Redfearn
1165f381bf6dSDavid Daneyconfig MIPS_CBPF_JIT
1166f381bf6dSDavid Daney	def_bool y
1167f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_CBPF_JIT
1168f381bf6dSDavid Daney
1169f381bf6dSDavid Daneyconfig MIPS_EBPF_JIT
1170f381bf6dSDavid Daney	def_bool y
1171f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_EBPF_JIT
1172f381bf6dSDavid Daney
1173f381bf6dSDavid Daney
11745e83d430SRalf Baechle#
11756b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
11765e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11775e83d430SRalf Baechle# choice statement should be more obvious to the user.
11785e83d430SRalf Baechle#
11795e83d430SRalf Baechlechoice
11806b2aac42SMasanari Iida	prompt "Endianness selection"
11811da177e4SLinus Torvalds	help
11821da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
11835e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
11843cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
11855e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
11863dde6ad8SDavid Sterba	  one or the other endianness.
11875e83d430SRalf Baechle
11885e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
11895e83d430SRalf Baechle	bool "Big endian"
11905e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
11915e83d430SRalf Baechle
11925e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
11935e83d430SRalf Baechle	bool "Little endian"
11945e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
11955e83d430SRalf Baechle
11965e83d430SRalf Baechleendchoice
11975e83d430SRalf Baechle
119822b0763aSDavid Daneyconfig EXPORT_UASM
119922b0763aSDavid Daney	bool
120022b0763aSDavid Daney
12012116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12022116245eSRalf Baechle	bool
12032116245eSRalf Baechle
12045e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12055e83d430SRalf Baechle	bool
12065e83d430SRalf Baechle
12075e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12085e83d430SRalf Baechle	bool
12091da177e4SLinus Torvalds
1210aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1211aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1212aa1762f4SDavid Daney
12139267a30dSMarc St-Jeanconfig IRQ_MSP_SLP
12149267a30dSMarc St-Jean	bool
12159267a30dSMarc St-Jean
12169267a30dSMarc St-Jeanconfig IRQ_MSP_CIC
12179267a30dSMarc St-Jean	bool
12189267a30dSMarc St-Jean
12198420fd00SAtsushi Nemotoconfig IRQ_TXX9
12208420fd00SAtsushi Nemoto	bool
12218420fd00SAtsushi Nemoto
1222d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1223d5ab1a69SYoichi Yuasa	bool
1224d5ab1a69SYoichi Yuasa
1225252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12261da177e4SLinus Torvalds	bool
12271da177e4SLinus Torvalds
1228a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1229a57140e9SThomas Bogendoerfer	bool
1230a57140e9SThomas Bogendoerfer
12319267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12329267a30dSMarc St-Jean	bool
12339267a30dSMarc St-Jean
1234a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1235a7e07b1aSMarkos Chandras	bool
1236a7e07b1aSMarkos Chandras
12371da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12381da177e4SLinus Torvalds	bool
12391da177e4SLinus Torvalds
1240e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1241e2defae5SThomas Bogendoerfer	bool
1242e2defae5SThomas Bogendoerfer
12435b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12445b438c44SThomas Bogendoerfer	bool
12455b438c44SThomas Bogendoerfer
1246e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1247e2defae5SThomas Bogendoerfer	bool
1248e2defae5SThomas Bogendoerfer
1249e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1250e2defae5SThomas Bogendoerfer	bool
1251e2defae5SThomas Bogendoerfer
1252e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1253e2defae5SThomas Bogendoerfer	bool
1254e2defae5SThomas Bogendoerfer
1255e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1256e2defae5SThomas Bogendoerfer	bool
1257e2defae5SThomas Bogendoerfer
1258e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1259e2defae5SThomas Bogendoerfer	bool
1260e2defae5SThomas Bogendoerfer
12610e2794b0SRalf Baechleconfig FW_ARC32
12625e83d430SRalf Baechle	bool
12635e83d430SRalf Baechle
1264aaa9fad3SPaul Bolleconfig FW_SNIPROM
1265231a35d3SThomas Bogendoerfer	bool
1266231a35d3SThomas Bogendoerfer
12671da177e4SLinus Torvaldsconfig BOOT_ELF32
12681da177e4SLinus Torvalds	bool
12691da177e4SLinus Torvalds
1270930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1271930beb5aSFlorian Fainelli	bool
1272930beb5aSFlorian Fainelli
1273930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1274930beb5aSFlorian Fainelli	bool
1275930beb5aSFlorian Fainelli
1276930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1277930beb5aSFlorian Fainelli	bool
1278930beb5aSFlorian Fainelli
1279930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1280930beb5aSFlorian Fainelli	bool
1281930beb5aSFlorian Fainelli
12821da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
12831da177e4SLinus Torvalds	int
1284a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
12855432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
12865432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
12875432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
12881da177e4SLinus Torvalds	default "5"
12891da177e4SLinus Torvalds
1290e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1291e9422427SThomas Bogendoerfer	bool
1292e9422427SThomas Bogendoerfer
12931da177e4SLinus Torvaldsconfig ARC_CONSOLE
12941da177e4SLinus Torvalds	bool "ARC console support"
1295e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
12961da177e4SLinus Torvalds
12971da177e4SLinus Torvaldsconfig ARC_MEMORY
12981da177e4SLinus Torvalds	bool
12991da177e4SLinus Torvalds
13001da177e4SLinus Torvaldsconfig ARC_PROMLIB
13011da177e4SLinus Torvalds	bool
13021da177e4SLinus Torvalds
13030e2794b0SRalf Baechleconfig FW_ARC64
13041da177e4SLinus Torvalds	bool
13051da177e4SLinus Torvalds
13061da177e4SLinus Torvaldsconfig BOOT_ELF64
13071da177e4SLinus Torvalds	bool
13081da177e4SLinus Torvalds
13091da177e4SLinus Torvaldsmenu "CPU selection"
13101da177e4SLinus Torvalds
13111da177e4SLinus Torvaldschoice
13121da177e4SLinus Torvalds	prompt "CPU type"
13131da177e4SLinus Torvalds	default CPU_R4X00
13141da177e4SLinus Torvalds
1315268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1316caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1317268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1318d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
131951522217SJiaxun Yang	select CPU_MIPSR2
132051522217SJiaxun Yang	select CPU_HAS_PREFETCH
13210e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13220e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13230e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13247507445bSHuacai Chen	select CPU_SUPPORTS_MSA
132551522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
132651522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
13270e476d91SHuacai Chen	select WEAK_ORDERING
13280e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13297507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1330b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
133117c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
13327f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1333d30a2b47SLinus Walleij	select GPIOLIB
133409230cbcSChristoph Hellwig	select SWIOTLB
13350f78355cSHuacai Chen	select HAVE_KVM
13360e476d91SHuacai Chen	help
1337caed1d1bSHuacai Chen		The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1338caed1d1bSHuacai Chen		cores implements the MIPS64R2 instruction set with many extensions,
1339caed1d1bSHuacai Chen		including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1340caed1d1bSHuacai Chen		3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1341caed1d1bSHuacai Chen		Loongson-2E/2F is not covered here and will be removed in future.
13420e476d91SHuacai Chen
1343caed1d1bSHuacai Chenconfig LOONGSON3_ENHANCEMENT
1344caed1d1bSHuacai Chen	bool "New Loongson-3 CPU Enhancements"
13451e820da3SHuacai Chen	default n
1346268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
13471e820da3SHuacai Chen	help
1348caed1d1bSHuacai Chen	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
13491e820da3SHuacai Chen	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1350268a2d60SJiaxun Yang	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
13511e820da3SHuacai Chen	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
13521e820da3SHuacai Chen	  Fast TLB refill support, etc.
13531e820da3SHuacai Chen
13541e820da3SHuacai Chen	  This option enable those enhancements which are not probed at run
13551e820da3SHuacai Chen	  time. If you want a generic kernel to run on all Loongson 3 machines,
13561e820da3SHuacai Chen	  please say 'N' here. If you want a high-performance kernel to run on
1357caed1d1bSHuacai Chen	  new Loongson-3 machines only, please say 'Y' here.
13581e820da3SHuacai Chen
1359e02e07e3SHuacai Chenconfig CPU_LOONGSON3_WORKAROUNDS
1360caed1d1bSHuacai Chen	bool "Old Loongson-3 LLSC Workarounds"
1361e02e07e3SHuacai Chen	default y if SMP
1362268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
1363e02e07e3SHuacai Chen	help
1364caed1d1bSHuacai Chen	  Loongson-3 processors have the llsc issues which require workarounds.
1365e02e07e3SHuacai Chen	  Without workarounds the system may hang unexpectedly.
1366e02e07e3SHuacai Chen
1367caed1d1bSHuacai Chen	  Newer Loongson-3 will fix these issues and no workarounds are needed.
1368e02e07e3SHuacai Chen	  The workarounds have no significant side effect on them but may
1369e02e07e3SHuacai Chen	  decrease the performance of the system so this option should be
1370e02e07e3SHuacai Chen	  disabled unless the kernel is intended to be run on old systems.
1371e02e07e3SHuacai Chen
1372e02e07e3SHuacai Chen	  If unsure, please say Y.
1373e02e07e3SHuacai Chen
1374ec7a9318SWANG Xueruiconfig CPU_LOONGSON3_CPUCFG_EMULATION
1375ec7a9318SWANG Xuerui	bool "Emulate the CPUCFG instruction on older Loongson cores"
1376ec7a9318SWANG Xuerui	default y
1377ec7a9318SWANG Xuerui	depends on CPU_LOONGSON64
1378ec7a9318SWANG Xuerui	help
1379ec7a9318SWANG Xuerui	  Loongson-3A R4 and newer have the CPUCFG instruction available for
1380ec7a9318SWANG Xuerui	  userland to query CPU capabilities, much like CPUID on x86. This
1381ec7a9318SWANG Xuerui	  option provides emulation of the instruction on older Loongson
1382ec7a9318SWANG Xuerui	  cores, back to Loongson-3A1000.
1383ec7a9318SWANG Xuerui
1384ec7a9318SWANG Xuerui	  If unsure, please say Y.
1385ec7a9318SWANG Xuerui
13863702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13873702bba5SWu Zhangjin	bool "Loongson 2E"
13883702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1389268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13902a21c730SFuxin Zhang	help
13912a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13922a21c730SFuxin Zhang	  with many extensions.
13932a21c730SFuxin Zhang
139425985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13956f7a251aSWu Zhangjin	  bonito64.
13966f7a251aSWu Zhangjin
13976f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13986f7a251aSWu Zhangjin	bool "Loongson 2F"
13996f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1400268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
1401d30a2b47SLinus Walleij	select GPIOLIB
14026f7a251aSWu Zhangjin	help
14036f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
14046f7a251aSWu Zhangjin	  with many extensions.
14056f7a251aSWu Zhangjin
14066f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
14076f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
14086f7a251aSWu Zhangjin	  Loongson2E.
14096f7a251aSWu Zhangjin
1410ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1411ca585cf9SKelvin Cheung	bool "Loongson 1B"
1412ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1413b2afb64cSHuacai Chen	select CPU_LOONGSON32
14149ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1415ca585cf9SKelvin Cheung	help
1416ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1417968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1418968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
1419ca585cf9SKelvin Cheung
142012e3280bSYang Lingconfig CPU_LOONGSON1C
142112e3280bSYang Ling	bool "Loongson 1C"
142212e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
1423b2afb64cSHuacai Chen	select CPU_LOONGSON32
142412e3280bSYang Ling	select LEDS_GPIO_REGISTER
142512e3280bSYang Ling	help
142612e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1427968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1428968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
142912e3280bSYang Ling
14306e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14316e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14327cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14336e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1434797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1435ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14366e760c8dSRalf Baechle	help
14375e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14381e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14391e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14401e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14411e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14421e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14431e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14441e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14451e5f1caaSRalf Baechle	  performance.
14461e5f1caaSRalf Baechle
14471e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14481e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14497cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14501e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1451797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1452ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1453a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14542235a54dSSanjay Lal	select HAVE_KVM
14551e5f1caaSRalf Baechle	help
14565e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14576e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14586e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14596e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14606e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14611da177e4SLinus Torvalds
1462ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1463ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1464ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1465ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1466ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1467ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1468ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1469ab7c01fdSSerge Semin	select HAVE_KVM
1470ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1471ab7c01fdSSerge Semin	help
1472ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1473ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1474ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1475ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1476ab7c01fdSSerge Semin
14777fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1478674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14797fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14807fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
148118d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14827fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14837fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14847fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
14857fd08ca5SLeonid Yegoshin	select HAVE_KVM
14867fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14877fd08ca5SLeonid Yegoshin	help
14887fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14897fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14907fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14917fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14927fd08ca5SLeonid Yegoshin
14936e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14946e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14957cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1496797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1497ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1498ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1499ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15009cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
15016e760c8dSRalf Baechle	help
15026e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
15036e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15046e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15056e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
15066e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15071e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
15081e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
15091e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
15101e5f1caaSRalf Baechle	  performance.
15111e5f1caaSRalf Baechle
15121e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
15131e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
15147cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1515797798c1SRalf Baechle	select CPU_HAS_PREFETCH
15161e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
15171e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1518ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15199cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1520a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
152140a2df49SJames Hogan	select HAVE_KVM
15221e5f1caaSRalf Baechle	help
15231e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
15241e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15251e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15261e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15271e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15281da177e4SLinus Torvalds
1529ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1530ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1531ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1532ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1533ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1534ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1535ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1536ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1537ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1538ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1539ab7c01fdSSerge Semin	select HAVE_KVM
1540ab7c01fdSSerge Semin	help
1541ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1542ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1543ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1544ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1545ab7c01fdSSerge Semin
15467fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1547674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15487fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15497fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
155018d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15517fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15527fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15537fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1554afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15557fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15562e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
155740a2df49SJames Hogan	select HAVE_KVM
15587fd08ca5SLeonid Yegoshin	help
15597fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15607fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15617fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15627fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15637fd08ca5SLeonid Yegoshin
1564281e3aeaSSerge Seminconfig CPU_P5600
1565281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1566281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1567281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1568281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1569281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1570281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1571281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1572281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1573281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1574281e3aeaSSerge Semin	select HAVE_KVM
1575281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1576281e3aeaSSerge Semin	help
1577281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1578281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1579281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1580281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1581281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1582281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1583281e3aeaSSerge Semin	  eJTAG and PDtrace.
1584281e3aeaSSerge Semin
15851da177e4SLinus Torvaldsconfig CPU_R3000
15861da177e4SLinus Torvalds	bool "R3000"
15877cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1588f7062ddbSRalf Baechle	select CPU_HAS_WB
158954746829SPaul Burton	select CPU_R3K_TLB
1590ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1591797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15921da177e4SLinus Torvalds	help
15931da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15941da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15951da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15961da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15971da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15981da177e4SLinus Torvalds	  try to recompile with R3000.
15991da177e4SLinus Torvalds
16001da177e4SLinus Torvaldsconfig CPU_TX39XX
16011da177e4SLinus Torvalds	bool "R39XX"
16027cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX39XX
1603ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
160454746829SPaul Burton	select CPU_R3K_TLB
16051da177e4SLinus Torvalds
16061da177e4SLinus Torvaldsconfig CPU_VR41XX
16071da177e4SLinus Torvalds	bool "R41xx"
16087cf8053bSRalf Baechle	depends on SYS_HAS_CPU_VR41XX
1609ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1610ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
16111da177e4SLinus Torvalds	help
16125e83d430SRalf Baechle	  The options selects support for the NEC VR4100 series of processors.
16131da177e4SLinus Torvalds	  Only choose this option if you have one of these processors as a
16141da177e4SLinus Torvalds	  kernel built with this option will not run on any other type of
16151da177e4SLinus Torvalds	  processor or vice versa.
16161da177e4SLinus Torvalds
161765ce6197SLauri Kasanenconfig CPU_R4300
161865ce6197SLauri Kasanen	bool "R4300"
161965ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
162065ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
162165ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
162265ce6197SLauri Kasanen	select CPU_HAS_LOAD_STORE_LR
162365ce6197SLauri Kasanen	help
162465ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
162565ce6197SLauri Kasanen
16261da177e4SLinus Torvaldsconfig CPU_R4X00
16271da177e4SLinus Torvalds	bool "R4x00"
16287cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1629ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1630ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1631970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16321da177e4SLinus Torvalds	help
16331da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
16341da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
16351da177e4SLinus Torvalds
16361da177e4SLinus Torvaldsconfig CPU_TX49XX
16371da177e4SLinus Torvalds	bool "R49XX"
16387cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1639de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1640ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1641ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1642970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16431da177e4SLinus Torvalds
16441da177e4SLinus Torvaldsconfig CPU_R5000
16451da177e4SLinus Torvalds	bool "R5000"
16467cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1647ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1648ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1649970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16501da177e4SLinus Torvalds	help
16511da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16521da177e4SLinus Torvalds
1653542c1020SShinya Kuribayashiconfig CPU_R5500
1654542c1020SShinya Kuribayashi	bool "R5500"
1655542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1656542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1657542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16589cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1659542c1020SShinya Kuribayashi	help
1660542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1661542c1020SShinya Kuribayashi	  instruction set.
1662542c1020SShinya Kuribayashi
16631da177e4SLinus Torvaldsconfig CPU_NEVADA
16641da177e4SLinus Torvalds	bool "RM52xx"
16657cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1666ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1667ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1668970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16691da177e4SLinus Torvalds	help
16701da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16711da177e4SLinus Torvalds
16721da177e4SLinus Torvaldsconfig CPU_R10000
16731da177e4SLinus Torvalds	bool "R10000"
16747cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16755e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1676ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1677ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1678797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1679970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16801da177e4SLinus Torvalds	help
16811da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16821da177e4SLinus Torvalds
16831da177e4SLinus Torvaldsconfig CPU_RM7000
16841da177e4SLinus Torvalds	bool "RM7000"
16857cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16865e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1687ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1688ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1689797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1690970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16911da177e4SLinus Torvalds
16921da177e4SLinus Torvaldsconfig CPU_SB1
16931da177e4SLinus Torvalds	bool "SB1"
16947cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1695ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1696ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1697797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1698970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16990004a9dfSRalf Baechle	select WEAK_ORDERING
17001da177e4SLinus Torvalds
1701a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1702a86c7f72SDavid Daney	bool "Cavium Octeon processor"
17035e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1704a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1705a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1706a86c7f72SDavid Daney	select WEAK_ORDERING
1707a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
17089cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1709df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1710df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1711930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
17120ae3abcdSJames Hogan	select HAVE_KVM
1713a86c7f72SDavid Daney	help
1714a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1715a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1716a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1717a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1718a86c7f72SDavid Daney
1719cd746249SJonas Gorskiconfig CPU_BMIPS
1720cd746249SJonas Gorski	bool "Broadcom BMIPS"
1721cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1722cd746249SJonas Gorski	select CPU_MIPS32
1723fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1724cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1725cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1726cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1727cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1728cd746249SJonas Gorski	select DMA_NONCOHERENT
172967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1730cd746249SJonas Gorski	select SWAP_IO_SPACE
1731cd746249SJonas Gorski	select WEAK_ORDERING
1732c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
173369aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1734a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1735a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1736c1c0c461SKevin Cernekee	help
1737fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1738c1c0c461SKevin Cernekee
17391da177e4SLinus Torvaldsendchoice
17401da177e4SLinus Torvalds
1741a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1742a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1743a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1744281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1745281e3aeaSSerge Semin		   CPU_P5600
1746a6e18781SLeonid Yegoshin	help
1747a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1748a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1749a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1750a6e18781SLeonid Yegoshin
1751a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1752a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1753a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1754a6e18781SLeonid Yegoshin	select EVA
1755a6e18781SLeonid Yegoshin	default y
1756a6e18781SLeonid Yegoshin	help
1757a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1758a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1759a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1760a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1761a6e18781SLeonid Yegoshin
1762c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1763c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1764c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1765281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1766c5b36783SSteven J. Hill	help
1767c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1768c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1769c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1770c5b36783SSteven J. Hill
1771c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1772c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1773c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1774c5b36783SSteven J. Hill	depends on !EVA
1775c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1776c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1777c5b36783SSteven J. Hill	select XPA
1778c5b36783SSteven J. Hill	select HIGHMEM
1779d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1780c5b36783SSteven J. Hill	default n
1781c5b36783SSteven J. Hill	help
1782c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1783c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1784c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1785c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1786c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1787c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1788c5b36783SSteven J. Hill
1789622844bfSWu Zhangjinif CPU_LOONGSON2F
1790622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1791622844bfSWu Zhangjin	bool
1792622844bfSWu Zhangjin
1793622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1794622844bfSWu Zhangjin	bool
1795622844bfSWu Zhangjin
1796622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1797622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1798622844bfSWu Zhangjin	default y
1799622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1800622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1801622844bfSWu Zhangjin	help
1802622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1803622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1804622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1805622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1806622844bfSWu Zhangjin
1807622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1808622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1809622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1810622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1811622844bfSWu Zhangjin	  systems.
1812622844bfSWu Zhangjin
1813622844bfSWu Zhangjin	  If unsure, please say Y.
1814622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1815622844bfSWu Zhangjin
18161b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
18171b93b3c3SWu Zhangjin	bool
18181b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
18191b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
182031c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
18211b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1822fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
18234e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1824a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
18251b93b3c3SWu Zhangjin
18261b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18271b93b3c3SWu Zhangjin	bool
18281b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
18291b93b3c3SWu Zhangjin
1830dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1831dbb98314SAlban Bedel	bool
1832dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1833dbb98314SAlban Bedel
1834268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
18353702bba5SWu Zhangjin	bool
18363702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18373702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18383702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1839970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
1840e905086eSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
18413702bba5SWu Zhangjin
1842b2afb64cSHuacai Chenconfig CPU_LOONGSON32
1843ca585cf9SKelvin Cheung	bool
1844ca585cf9SKelvin Cheung	select CPU_MIPS32
18457e280f6bSJiaxun Yang	select CPU_MIPSR2
1846ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1847ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1848ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1849f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1850ca585cf9SKelvin Cheung
1851fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
185204fa8bf7SJonas Gorski	select SMP_UP if SMP
18531bbb6c1bSKevin Cernekee	bool
1854cd746249SJonas Gorski
1855cd746249SJonas Gorskiconfig CPU_BMIPS4350
1856cd746249SJonas Gorski	bool
1857cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1858cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1859cd746249SJonas Gorski
1860cd746249SJonas Gorskiconfig CPU_BMIPS4380
1861cd746249SJonas Gorski	bool
1862bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1863cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1864cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1865b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1866cd746249SJonas Gorski
1867cd746249SJonas Gorskiconfig CPU_BMIPS5000
1868cd746249SJonas Gorski	bool
1869cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1870bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1871cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1872cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1873b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18741bbb6c1bSKevin Cernekee
1875268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
18760e476d91SHuacai Chen	bool
18770e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1878b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18790e476d91SHuacai Chen
18803702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18812a21c730SFuxin Zhang	bool
18822a21c730SFuxin Zhang
18836f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18846f7a251aSWu Zhangjin	bool
188555045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
188655045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18876f7a251aSWu Zhangjin
1888ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1889ca585cf9SKelvin Cheung	bool
1890ca585cf9SKelvin Cheung
189112e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
189212e3280bSYang Ling	bool
189312e3280bSYang Ling
18947cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18957cf8053bSRalf Baechle	bool
18967cf8053bSRalf Baechle
18977cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18987cf8053bSRalf Baechle	bool
18997cf8053bSRalf Baechle
1900a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1901a6e18781SLeonid Yegoshin	bool
1902a6e18781SLeonid Yegoshin
1903c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1904c5b36783SSteven J. Hill	bool
19059ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1906c5b36783SSteven J. Hill
19077fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
19087fd08ca5SLeonid Yegoshin	bool
19099ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19107fd08ca5SLeonid Yegoshin
19117cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
19127cf8053bSRalf Baechle	bool
19137cf8053bSRalf Baechle
19147cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
19157cf8053bSRalf Baechle	bool
19167cf8053bSRalf Baechle
19177fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19187fd08ca5SLeonid Yegoshin	bool
19199ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19207fd08ca5SLeonid Yegoshin
1921281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1922281e3aeaSSerge Semin	bool
1923281e3aeaSSerge Semin	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1924281e3aeaSSerge Semin
19257cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19267cf8053bSRalf Baechle	bool
19277cf8053bSRalf Baechle
19287cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX39XX
19297cf8053bSRalf Baechle	bool
19307cf8053bSRalf Baechle
19317cf8053bSRalf Baechleconfig SYS_HAS_CPU_VR41XX
19327cf8053bSRalf Baechle	bool
19337cf8053bSRalf Baechle
193465ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
193565ce6197SLauri Kasanen	bool
193665ce6197SLauri Kasanen
19377cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19387cf8053bSRalf Baechle	bool
19397cf8053bSRalf Baechle
19407cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19417cf8053bSRalf Baechle	bool
19427cf8053bSRalf Baechle
19437cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19447cf8053bSRalf Baechle	bool
19457cf8053bSRalf Baechle
1946542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1947542c1020SShinya Kuribayashi	bool
1948542c1020SShinya Kuribayashi
19497cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19507cf8053bSRalf Baechle	bool
19517cf8053bSRalf Baechle
19527cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19537cf8053bSRalf Baechle	bool
19549ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19557cf8053bSRalf Baechle
19567cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19577cf8053bSRalf Baechle	bool
19587cf8053bSRalf Baechle
19597cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19607cf8053bSRalf Baechle	bool
19617cf8053bSRalf Baechle
19625e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19635e683389SDavid Daney	bool
19645e683389SDavid Daney
1965cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1966c1c0c461SKevin Cernekee	bool
1967c1c0c461SKevin Cernekee
1968fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1969c1c0c461SKevin Cernekee	bool
1970cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1971c1c0c461SKevin Cernekee
1972c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1973c1c0c461SKevin Cernekee	bool
1974cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1975c1c0c461SKevin Cernekee
1976c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1977c1c0c461SKevin Cernekee	bool
1978cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1979c1c0c461SKevin Cernekee
1980c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1981c1c0c461SKevin Cernekee	bool
1982cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1983f263f2a2SHauke Mehrtens	select ARCH_HAS_SYNC_DMA_FOR_CPU
1984c1c0c461SKevin Cernekee
198517099b11SRalf Baechle#
198617099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
198717099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
198817099b11SRalf Baechle#
19890004a9dfSRalf Baechleconfig WEAK_ORDERING
19900004a9dfSRalf Baechle	bool
199117099b11SRalf Baechle
199217099b11SRalf Baechle#
199317099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
199417099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
199517099b11SRalf Baechle#
199617099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
199717099b11SRalf Baechle	bool
19985e83d430SRalf Baechleendmenu
19995e83d430SRalf Baechle
20005e83d430SRalf Baechle#
20015e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
20025e83d430SRalf Baechle#
20035e83d430SRalf Baechleconfig CPU_MIPS32
20045e83d430SRalf Baechle	bool
2005ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
2006281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
20075e83d430SRalf Baechle
20085e83d430SRalf Baechleconfig CPU_MIPS64
20095e83d430SRalf Baechle	bool
2010ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
20115a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
20125e83d430SRalf Baechle
20135e83d430SRalf Baechle#
201457eeacedSPaul Burton# These indicate the revision of the architecture
20155e83d430SRalf Baechle#
20165e83d430SRalf Baechleconfig CPU_MIPSR1
20175e83d430SRalf Baechle	bool
20185e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
20195e83d430SRalf Baechle
20205e83d430SRalf Baechleconfig CPU_MIPSR2
20215e83d430SRalf Baechle	bool
2022a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20238256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2024ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2025a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20265e83d430SRalf Baechle
2027ab7c01fdSSerge Seminconfig CPU_MIPSR5
2028ab7c01fdSSerge Semin	bool
2029281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2030ab7c01fdSSerge Semin	select CPU_HAS_RIXI
2031ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2032ab7c01fdSSerge Semin	select MIPS_SPRAM
2033ab7c01fdSSerge Semin
20347fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20357fd08ca5SLeonid Yegoshin	bool
20367fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20378256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2038ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
203987321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20402db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
20414a5dc51eSMarcin Nowakowski	select MIPS_CRC_SUPPORT
2042a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20435e83d430SRalf Baechle
204457eeacedSPaul Burtonconfig TARGET_ISA_REV
204557eeacedSPaul Burton	int
204657eeacedSPaul Burton	default 1 if CPU_MIPSR1
204757eeacedSPaul Burton	default 2 if CPU_MIPSR2
2048ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
204957eeacedSPaul Burton	default 6 if CPU_MIPSR6
205057eeacedSPaul Burton	default 0
205157eeacedSPaul Burton	help
205257eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
205357eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
205457eeacedSPaul Burton
2055a6e18781SLeonid Yegoshinconfig EVA
2056a6e18781SLeonid Yegoshin	bool
2057a6e18781SLeonid Yegoshin
2058c5b36783SSteven J. Hillconfig XPA
2059c5b36783SSteven J. Hill	bool
2060c5b36783SSteven J. Hill
20615e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20625e83d430SRalf Baechle	bool
20635e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20645e83d430SRalf Baechle	bool
20655e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20665e83d430SRalf Baechle	bool
20675e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20685e83d430SRalf Baechle	bool
206955045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
207055045ff5SWu Zhangjin	bool
207155045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
207255045ff5SWu Zhangjin	bool
20739cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20749cffd154SDavid Daney	bool
2075171543e7SDaniel Silsby	depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA))
207682622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
207782622284SDavid Daney	bool
2078c6972fb9SHuang Pei	depends on 64BIT
207995b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20805e83d430SRalf Baechle
20818192c9eaSDavid Daney#
20828192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20838192c9eaSDavid Daney#
20848192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20858192c9eaSDavid Daney	bool
2086679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20878192c9eaSDavid Daney
20885e83d430SRalf Baechlemenu "Kernel type"
20895e83d430SRalf Baechle
20905e83d430SRalf Baechlechoice
20915e83d430SRalf Baechle	prompt "Kernel code model"
20925e83d430SRalf Baechle	help
20935e83d430SRalf Baechle	  You should only select this option if you have a workload that
20945e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20955e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20965e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20975e83d430SRalf Baechle
20985e83d430SRalf Baechleconfig 32BIT
20995e83d430SRalf Baechle	bool "32-bit kernel"
21005e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
21015e83d430SRalf Baechle	select TRAD_SIGNALS
21025e83d430SRalf Baechle	help
21035e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2104f17c4ca3SRalf Baechle
21055e83d430SRalf Baechleconfig 64BIT
21065e83d430SRalf Baechle	bool "64-bit kernel"
21075e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
21085e83d430SRalf Baechle	help
21095e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
21105e83d430SRalf Baechle
21115e83d430SRalf Baechleendchoice
21125e83d430SRalf Baechle
21131e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
21141e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
21151e321fa9SLeonid Yegoshin	depends on 64BIT
21161e321fa9SLeonid Yegoshin	help
21173377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
21183377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
21193377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
21203377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
21213377e227SAlex Belits	  level of page tables is added which imposes both a memory
21223377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21233377e227SAlex Belits
21241e321fa9SLeonid Yegoshin	  If unsure, say N.
21251e321fa9SLeonid Yegoshin
21261da177e4SLinus Torvaldschoice
21271da177e4SLinus Torvalds	prompt "Kernel page size"
21281da177e4SLinus Torvalds	default PAGE_SIZE_4KB
21291da177e4SLinus Torvalds
21301da177e4SLinus Torvaldsconfig PAGE_SIZE_4KB
21311da177e4SLinus Torvalds	bool "4kB"
2132268a2d60SJiaxun Yang	depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
21331da177e4SLinus Torvalds	help
21341da177e4SLinus Torvalds	  This option select the standard 4kB Linux page size.  On some
21351da177e4SLinus Torvalds	  R3000-family processors this is the only available page size.  Using
21361da177e4SLinus Torvalds	  4kB page size will minimize memory consumption and is therefore
21371da177e4SLinus Torvalds	  recommended for low memory systems.
21381da177e4SLinus Torvalds
21391da177e4SLinus Torvaldsconfig PAGE_SIZE_8KB
21401da177e4SLinus Torvalds	bool "8kB"
2141c2aeaaeaSPaul Burton	depends on CPU_CAVIUM_OCTEON
21421e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
21431da177e4SLinus Torvalds	help
21441da177e4SLinus Torvalds	  Using 8kB page size will result in higher performance kernel at
21451da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available
2146c2aeaaeaSPaul Burton	  only on cnMIPS processors.  Note that you will need a suitable Linux
2147c2aeaaeaSPaul Burton	  distribution to support this.
21481da177e4SLinus Torvalds
21491da177e4SLinus Torvaldsconfig PAGE_SIZE_16KB
21501da177e4SLinus Torvalds	bool "16kB"
2151714bfad6SRalf Baechle	depends on !CPU_R3000 && !CPU_TX39XX
21521da177e4SLinus Torvalds	help
21531da177e4SLinus Torvalds	  Using 16kB page size will result in higher performance kernel at
21541da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
2155714bfad6SRalf Baechle	  all non-R3000 family processors.  Note that you will need a suitable
2156714bfad6SRalf Baechle	  Linux distribution to support this.
21571da177e4SLinus Torvalds
2158c52399beSRalf Baechleconfig PAGE_SIZE_32KB
2159c52399beSRalf Baechle	bool "32kB"
2160c52399beSRalf Baechle	depends on CPU_CAVIUM_OCTEON
21611e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
2162c52399beSRalf Baechle	help
2163c52399beSRalf Baechle	  Using 32kB page size will result in higher performance kernel at
2164c52399beSRalf Baechle	  the price of higher memory consumption.  This option is available
2165c52399beSRalf Baechle	  only on cnMIPS cores.  Note that you will need a suitable Linux
2166c52399beSRalf Baechle	  distribution to support this.
2167c52399beSRalf Baechle
21681da177e4SLinus Torvaldsconfig PAGE_SIZE_64KB
21691da177e4SLinus Torvalds	bool "64kB"
21703b2db173SPaul Burton	depends on !CPU_R3000 && !CPU_TX39XX
21711da177e4SLinus Torvalds	help
21721da177e4SLinus Torvalds	  Using 64kB page size will result in higher performance kernel at
21731da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
21741da177e4SLinus Torvalds	  all non-R3000 family processor.  Not that at the time of this
2175714bfad6SRalf Baechle	  writing this option is still high experimental.
21761da177e4SLinus Torvalds
21771da177e4SLinus Torvaldsendchoice
21781da177e4SLinus Torvalds
2179c9bace7cSDavid Daneyconfig FORCE_MAX_ZONEORDER
2180c9bace7cSDavid Daney	int "Maximum zone order"
2181e4362d1eSAlex Smith	range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2182e4362d1eSAlex Smith	default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2183e4362d1eSAlex Smith	range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2184e4362d1eSAlex Smith	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2185e4362d1eSAlex Smith	range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2186e4362d1eSAlex Smith	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2187ef923a76SPaul Cercueil	range 0 64
2188c9bace7cSDavid Daney	default "11"
2189c9bace7cSDavid Daney	help
2190c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2191c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2192c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2193c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2194c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2195c9bace7cSDavid Daney	  increase this value.
2196c9bace7cSDavid Daney
2197c9bace7cSDavid Daney	  This config option is actually maximum order plus one. For example,
2198c9bace7cSDavid Daney	  a value of 11 means that the largest free memory block is 2^10 pages.
2199c9bace7cSDavid Daney
2200c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2201c9bace7cSDavid Daney	  when choosing a value for this option.
2202c9bace7cSDavid Daney
22031da177e4SLinus Torvaldsconfig BOARD_SCACHE
22041da177e4SLinus Torvalds	bool
22051da177e4SLinus Torvalds
22061da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
22071da177e4SLinus Torvalds	bool
22081da177e4SLinus Torvalds	select BOARD_SCACHE
22091da177e4SLinus Torvalds
22109318c51aSChris Dearman#
22119318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
22129318c51aSChris Dearman#
22139318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
22149318c51aSChris Dearman	bool
22159318c51aSChris Dearman	select BOARD_SCACHE
22169318c51aSChris Dearman
22171da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
22181da177e4SLinus Torvalds	bool
22191da177e4SLinus Torvalds	select BOARD_SCACHE
22201da177e4SLinus Torvalds
22211da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
22221da177e4SLinus Torvalds	bool
22231da177e4SLinus Torvalds	select BOARD_SCACHE
22241da177e4SLinus Torvalds
22251da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
22261da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
22271da177e4SLinus Torvalds	depends on CPU_SB1
22281da177e4SLinus Torvalds	help
22291da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
22301da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
22311da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
22321da177e4SLinus Torvalds
22331da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2234c8094b53SRalf Baechle	bool
22351da177e4SLinus Torvalds
22363165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
22373165c846SFlorian Fainelli	bool
2238c2aeaaeaSPaul Burton	default y if !(CPU_R3000 || CPU_TX39XX)
22393165c846SFlorian Fainelli
2240c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2241183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2242183b40f9SPaul Burton	default y
2243183b40f9SPaul Burton	help
2244183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2245183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2246183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2247183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2248183b40f9SPaul Burton	  receive a SIGILL.
2249183b40f9SPaul Burton
2250183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2251183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2252183b40f9SPaul Burton
2253183b40f9SPaul Burton	  If unsure, say y.
2254c92e47e5SPaul Burton
225597f7dcbfSPaul Burtonconfig CPU_R2300_FPU
225697f7dcbfSPaul Burton	bool
2257c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
225897f7dcbfSPaul Burton	default y if CPU_R3000 || CPU_TX39XX
225997f7dcbfSPaul Burton
226054746829SPaul Burtonconfig CPU_R3K_TLB
226154746829SPaul Burton	bool
226254746829SPaul Burton
226391405eb6SFlorian Fainelliconfig CPU_R4K_FPU
226491405eb6SFlorian Fainelli	bool
2265c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
226697f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
226791405eb6SFlorian Fainelli
226862cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
226962cedc4fSFlorian Fainelli	bool
227054746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
227162cedc4fSFlorian Fainelli
227259d6ab86SRalf Baechleconfig MIPS_MT_SMP
2273a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
22745cbf9688SPaul Burton	default y
2275527f1028SPaul Burton	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
227659d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2277d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2278c080faa5SSteven J. Hill	select SYNC_R4K
227959d6ab86SRalf Baechle	select MIPS_MT
228059d6ab86SRalf Baechle	select SMP
228187353d8aSRalf Baechle	select SMP_UP
2282c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2283c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2284399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
228559d6ab86SRalf Baechle	help
2286c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2287c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2288c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2289c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2290c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
229159d6ab86SRalf Baechle
2292f41ae0b2SRalf Baechleconfig MIPS_MT
2293f41ae0b2SRalf Baechle	bool
2294f41ae0b2SRalf Baechle
22950ab7aefcSRalf Baechleconfig SCHED_SMT
22960ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22970ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22980ab7aefcSRalf Baechle	default n
22990ab7aefcSRalf Baechle	help
23000ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
23010ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
23020ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
23030ab7aefcSRalf Baechle
23040ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
23050ab7aefcSRalf Baechle	bool
23060ab7aefcSRalf Baechle
2307f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2308f41ae0b2SRalf Baechle	bool
2309f41ae0b2SRalf Baechle
2310f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2311f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2312f088fc84SRalf Baechle	default y
2313b633648cSRalf Baechle	depends on MIPS_MT_SMP
231407cc0c9eSRalf Baechle
2315b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2316b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
23179eaa9a82SPaul Burton	depends on CPU_MIPSR6
2318c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2319b0a668fbSLeonid Yegoshin	default y
2320b0a668fbSLeonid Yegoshin	help
2321b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2322b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
232307edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2324b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2325b0a668fbSLeonid Yegoshin	  final kernel image.
2326b0a668fbSLeonid Yegoshin
2327f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2328f35764e7SJames Hogan	bool
2329f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2330f35764e7SJames Hogan	help
2331f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2332f35764e7SJames Hogan	  physical_memsize.
2333f35764e7SJames Hogan
233407cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
233507cc0c9eSRalf Baechle	bool "VPE loader support."
2336f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
233707cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
233807cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
233907cc0c9eSRalf Baechle	select MIPS_MT
234007cc0c9eSRalf Baechle	help
234107cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
234207cc0c9eSRalf Baechle	  onto another VPE and running it.
2343f088fc84SRalf Baechle
234417a1d523SDeng-Cheng Zhuconfig MIPS_VPE_LOADER_CMP
234517a1d523SDeng-Cheng Zhu	bool
234617a1d523SDeng-Cheng Zhu	default "y"
234717a1d523SDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && MIPS_CMP
234817a1d523SDeng-Cheng Zhu
23491a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
23501a2a6d7eSDeng-Cheng Zhu	bool
23511a2a6d7eSDeng-Cheng Zhu	default "y"
23521a2a6d7eSDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && !MIPS_CMP
23531a2a6d7eSDeng-Cheng Zhu
2354e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2355e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2356e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2357e01402b1SRalf Baechle	default y
2358e01402b1SRalf Baechle	help
2359e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2360e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2361e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2362e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2363e01402b1SRalf Baechle
2364e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2365e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2366e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2367e01402b1SRalf Baechle
2368da615cf6SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_CMP
2369da615cf6SDeng-Cheng Zhu	bool
2370da615cf6SDeng-Cheng Zhu	default "y"
2371da615cf6SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && MIPS_CMP
2372da615cf6SDeng-Cheng Zhu
23732c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
23742c973ef0SDeng-Cheng Zhu	bool
23752c973ef0SDeng-Cheng Zhu	default "y"
23762c973ef0SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && !MIPS_CMP
23772c973ef0SDeng-Cheng Zhu
23784a16ff4cSRalf Baechleconfig MIPS_CMP
23795cac93b3SPaul Burton	bool "MIPS CMP framework support (DEPRECATED)"
23805676319cSMarkos Chandras	depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2381b10b43baSMarkos Chandras	select SMP
2382eb9b5141STim Anderson	select SYNC_R4K
2383b10b43baSMarkos Chandras	select SYS_SUPPORTS_SMP
23844a16ff4cSRalf Baechle	select WEAK_ORDERING
23854a16ff4cSRalf Baechle	default n
23864a16ff4cSRalf Baechle	help
2387044505c7SPaul Burton	  Select this if you are using a bootloader which implements the "CMP
2388044505c7SPaul Burton	  framework" protocol (ie. YAMON) and want your kernel to make use of
2389044505c7SPaul Burton	  its ability to start secondary CPUs.
23904a16ff4cSRalf Baechle
23915cac93b3SPaul Burton	  Unless you have a specific need, you should use CONFIG_MIPS_CPS
23925cac93b3SPaul Burton	  instead of this.
23935cac93b3SPaul Burton
23940ee958e1SPaul Burtonconfig MIPS_CPS
23950ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
23965a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
23970ee958e1SPaul Burton	select MIPS_CM
23981d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
23990ee958e1SPaul Burton	select SMP
24000ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
24011d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2402c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
24030ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
24040ee958e1SPaul Burton	select WEAK_ORDERING
2405d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
24060ee958e1SPaul Burton	help
24070ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
24080ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
24090ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
24100ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
24110ee958e1SPaul Burton	  support is unavailable.
24120ee958e1SPaul Burton
24133179d37eSPaul Burtonconfig MIPS_CPS_PM
241439a59593SMarkos Chandras	depends on MIPS_CPS
24153179d37eSPaul Burton	bool
24163179d37eSPaul Burton
24179f98f3ddSPaul Burtonconfig MIPS_CM
24189f98f3ddSPaul Burton	bool
24193c9b4166SPaul Burton	select MIPS_CPC
24209f98f3ddSPaul Burton
24219c38cf44SPaul Burtonconfig MIPS_CPC
24229c38cf44SPaul Burton	bool
24232600990eSRalf Baechle
24241da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
24251da177e4SLinus Torvalds	bool
24261da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
24271da177e4SLinus Torvalds	default y
24281da177e4SLinus Torvalds
24291da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
24301da177e4SLinus Torvalds	bool
24311da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
24321da177e4SLinus Torvalds	default y
24331da177e4SLinus Torvalds
24349e2b5372SMarkos Chandraschoice
24359e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
24369e2b5372SMarkos Chandras
24379e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
24389e2b5372SMarkos Chandras	bool "None"
24399e2b5372SMarkos Chandras	help
24409e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
24419e2b5372SMarkos Chandras
24429693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
24439693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
24449e2b5372SMarkos Chandras	bool "SmartMIPS"
24459693a853SFranck Bui-Huu	help
24469693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
24479693a853SFranck Bui-Huu	  increased security at both hardware and software level for
24489693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
24499693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
24509693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
24519693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
24529693a853SFranck Bui-Huu	  here.
24539693a853SFranck Bui-Huu
2454bce86083SSteven J. Hillconfig CPU_MICROMIPS
24557fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
24569e2b5372SMarkos Chandras	bool "microMIPS"
2457bce86083SSteven J. Hill	help
2458bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2459bce86083SSteven J. Hill	  microMIPS ISA
2460bce86083SSteven J. Hill
24619e2b5372SMarkos Chandrasendchoice
24629e2b5372SMarkos Chandras
2463a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
24640ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2465a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2466c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
24672a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2468a5e9a69eSPaul Burton	help
2469a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2470a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
24711db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
24721db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
24731db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
24741db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
24751db1af84SPaul Burton	  the size & complexity of your kernel.
2476a5e9a69eSPaul Burton
2477a5e9a69eSPaul Burton	  If unsure, say Y.
2478a5e9a69eSPaul Burton
24791da177e4SLinus Torvaldsconfig CPU_HAS_WB
2480f7062ddbSRalf Baechle	bool
2481e01402b1SRalf Baechle
2482df0ac8a4SKevin Cernekeeconfig XKS01
2483df0ac8a4SKevin Cernekee	bool
2484df0ac8a4SKevin Cernekee
2485ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2486ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2487ba9196d2SJiaxun Yang	bool
2488ba9196d2SJiaxun Yang
2489ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2490ba9196d2SJiaxun Yang	bool
2491ba9196d2SJiaxun Yang
24928256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
24938256b17eSFlorian Fainelli	bool
24948256b17eSFlorian Fainelli
249518d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2496932afdeeSYasha Cherikovsky	bool
2497932afdeeSYasha Cherikovsky	help
249818d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2499932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
250018d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
250118d84e2eSAlexander Lobakin	  systems).
2502932afdeeSYasha Cherikovsky
2503f41ae0b2SRalf Baechle#
2504f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2505f41ae0b2SRalf Baechle#
2506e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2507f41ae0b2SRalf Baechle	bool
2508e01402b1SRalf Baechle
2509f41ae0b2SRalf Baechle#
2510f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2511f41ae0b2SRalf Baechle#
2512e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2513f41ae0b2SRalf Baechle	bool
2514e01402b1SRalf Baechle
25151da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
25161da177e4SLinus Torvalds	bool
25171da177e4SLinus Torvalds	depends on !CPU_R3000
25181da177e4SLinus Torvalds	default y
25191da177e4SLinus Torvalds
25201da177e4SLinus Torvalds#
252120d60d99SMaciej W. Rozycki# CPU non-features
252220d60d99SMaciej W. Rozycki#
252320d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
252420d60d99SMaciej W. Rozycki	bool
252520d60d99SMaciej W. Rozycki
252620d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
252720d60d99SMaciej W. Rozycki	bool
252820d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
252920d60d99SMaciej W. Rozycki
253020d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
253120d60d99SMaciej W. Rozycki	bool
253220d60d99SMaciej W. Rozycki
2533071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2534071d2f0bSPaul Burton	bool
2535071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2536071d2f0bSPaul Burton
25374edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
25384edf00a4SPaul Burton	int
25394edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
25404edf00a4SPaul Burton	default 0
25414edf00a4SPaul Burton
25424edf00a4SPaul Burtonconfig MIPS_ASID_BITS
25434edf00a4SPaul Burton	int
25442db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
25454edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
25464edf00a4SPaul Burton	default 8
25474edf00a4SPaul Burton
25482db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
25492db003a5SPaul Burton	bool
25502db003a5SPaul Burton
25514a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT
25524a5dc51eSMarcin Nowakowski	bool
25534a5dc51eSMarcin Nowakowski
2554802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2555802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2556802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2557802b8362SThomas Bogendoerfer# with the issue.
2558802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2559802b8362SThomas Bogendoerfer	bool
2560802b8362SThomas Bogendoerfer
25615e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
25625e5b6527SThomas Bogendoerfer#
25635e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
25645e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
25655e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
256618ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
25675e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
25685e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
25695e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
25705e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
25715e5b6527SThomas Bogendoerfer#      instruction.
25725e5b6527SThomas Bogendoerfer#
25735e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25745e5b6527SThomas Bogendoerfer#                              nop
25755e5b6527SThomas Bogendoerfer#                              nop
25765e5b6527SThomas Bogendoerfer#                              nop
25775e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25785e5b6527SThomas Bogendoerfer#
25795e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25805e5b6527SThomas Bogendoerfer#                              nop
25815e5b6527SThomas Bogendoerfer#                              nop
25825e5b6527SThomas Bogendoerfer#                              nop
25835e5b6527SThomas Bogendoerfer#                              nop
25845e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25855e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25865e5b6527SThomas Bogendoerfer	bool
25875e5b6527SThomas Bogendoerfer
258844def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
258944def342SThomas Bogendoerfer#
259044def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
259144def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
259244def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
259344def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
259444def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
259544def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
259644def342SThomas Bogendoerfer# in .pdf format.)
259744def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
259844def342SThomas Bogendoerfer	bool
259944def342SThomas Bogendoerfer
260024a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
260124a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
260224a1c023SThomas Bogendoerfer# operation is not guaranteed."
260324a1c023SThomas Bogendoerfer#
260424a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
260524a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
260624a1c023SThomas Bogendoerfer	bool
260724a1c023SThomas Bogendoerfer
2608886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2609886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2610886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2611886ee136SThomas Bogendoerfer# exceptions.
2612886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2613886ee136SThomas Bogendoerfer	bool
2614886ee136SThomas Bogendoerfer
2615256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2616256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2617256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2618256ec489SThomas Bogendoerfer	bool
2619256ec489SThomas Bogendoerfer
2620a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2621a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2622a7fbed98SThomas Bogendoerfer	bool
2623a7fbed98SThomas Bogendoerfer
262420d60d99SMaciej W. Rozycki#
26251da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
26261da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
26271da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
26281da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
26291da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
26301da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
26311da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
26321da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2633797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2634797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2635797798c1SRalf Baechle#   support.
26361da177e4SLinus Torvalds#
26371da177e4SLinus Torvaldsconfig HIGHMEM
26381da177e4SLinus Torvalds	bool "High Memory Support"
2639a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2640a4c33e83SThomas Gleixner	select KMAP_LOCAL
2641797798c1SRalf Baechle
2642797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2643797798c1SRalf Baechle	bool
2644797798c1SRalf Baechle
2645797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2646797798c1SRalf Baechle	bool
26471da177e4SLinus Torvalds
26489693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
26499693a853SFranck Bui-Huu	bool
26509693a853SFranck Bui-Huu
2651a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2652a6a4834cSSteven J. Hill	bool
2653a6a4834cSSteven J. Hill
2654377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2655377cb1b6SRalf Baechle	bool
2656377cb1b6SRalf Baechle	help
2657377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2658377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2659377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2660377cb1b6SRalf Baechle
2661a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2662a5e9a69eSPaul Burton	bool
2663a5e9a69eSPaul Burton
2664b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2665b4819b59SYoichi Yuasa	def_bool y
2666268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2667b4819b59SYoichi Yuasa
2668b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2669b1c6cd42SAtsushi Nemoto	bool
2670397dc00eSMike Rapoport	select SPARSEMEM_STATIC if !SGI_IP27
267131473747SAtsushi Nemoto
2672d8cb4e11SRalf Baechleconfig NUMA
2673d8cb4e11SRalf Baechle	bool "NUMA Support"
2674d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2675cf8194e4STiezhu Yang	select SMP
2676d8cb4e11SRalf Baechle	help
2677d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2678d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2679d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2680172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2681d8cb4e11SRalf Baechle	  disabled.
2682d8cb4e11SRalf Baechle
2683d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2684d8cb4e11SRalf Baechle	bool
2685d8cb4e11SRalf Baechle
2686f3c560a6SThomas Bogendoerferconfig HAVE_SETUP_PER_CPU_AREA
2687f3c560a6SThomas Bogendoerfer	def_bool y
2688f3c560a6SThomas Bogendoerfer	depends on NUMA
2689f3c560a6SThomas Bogendoerfer
2690f3c560a6SThomas Bogendoerferconfig NEED_PER_CPU_EMBED_FIRST_CHUNK
2691f3c560a6SThomas Bogendoerfer	def_bool y
2692f3c560a6SThomas Bogendoerfer	depends on NUMA
2693f3c560a6SThomas Bogendoerfer
26948c530ea3SMatt Redfearnconfig RELOCATABLE
26958c530ea3SMatt Redfearn	bool "Relocatable kernel"
2696ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2697ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2698ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2699ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2700a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2701a307a4ceSJinyang He		   CPU_LOONGSON64
27028c530ea3SMatt Redfearn	help
27038c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
27048c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
27058c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
27068c530ea3SMatt Redfearn	  but are discarded at runtime
27078c530ea3SMatt Redfearn
2708069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2709069fd766SMatt Redfearn	hex "Relocation table size"
2710069fd766SMatt Redfearn	depends on RELOCATABLE
2711069fd766SMatt Redfearn	range 0x0 0x01000000
2712a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2713069fd766SMatt Redfearn	default "0x00100000"
2714a7f7f624SMasahiro Yamada	help
2715069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2716069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2717069fd766SMatt Redfearn
2718069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2719069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2720069fd766SMatt Redfearn
2721069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2722069fd766SMatt Redfearn
2723069fd766SMatt Redfearn	  If unsure, leave at the default value.
2724069fd766SMatt Redfearn
2725405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2726405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2727405bc8fdSMatt Redfearn	depends on RELOCATABLE
2728a7f7f624SMasahiro Yamada	help
2729405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2730405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2731405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2732405bc8fdSMatt Redfearn	  of kernel internals.
2733405bc8fdSMatt Redfearn
2734405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2735405bc8fdSMatt Redfearn
2736405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2737405bc8fdSMatt Redfearn
2738405bc8fdSMatt Redfearn	  If unsure, say N.
2739405bc8fdSMatt Redfearn
2740405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2741405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2742405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2743405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2744405bc8fdSMatt Redfearn	range 0x0 0x08000000
2745405bc8fdSMatt Redfearn	default "0x01000000"
2746a7f7f624SMasahiro Yamada	help
2747405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2748405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2749405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2750405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2751405bc8fdSMatt Redfearn
2752405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2753405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2754405bc8fdSMatt Redfearn
2755c80d79d7SYasunori Gotoconfig NODES_SHIFT
2756c80d79d7SYasunori Goto	int
2757c80d79d7SYasunori Goto	default "6"
2758a9ee6cf5SMike Rapoport	depends on NUMA
2759c80d79d7SYasunori Goto
276014f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
276114f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
276295b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
276314f70012SDeng-Cheng Zhu	default y
276414f70012SDeng-Cheng Zhu	help
276514f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
276614f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
276714f70012SDeng-Cheng Zhu
2768be8fa1cbSTiezhu Yangconfig DMI
2769be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2770be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2771be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2772be8fa1cbSTiezhu Yang	default y
2773be8fa1cbSTiezhu Yang	help
2774be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2775be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2776be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2777be8fa1cbSTiezhu Yang	  BIOS code.
2778be8fa1cbSTiezhu Yang
27791da177e4SLinus Torvaldsconfig SMP
27801da177e4SLinus Torvalds	bool "Multi-Processing support"
2781e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2782e73ea273SRalf Baechle	help
27831da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27844a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27854a474157SRobert Graffham	  than one CPU, say Y.
27861da177e4SLinus Torvalds
27874a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27881da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27891da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27904a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27911da177e4SLinus Torvalds	  will run faster if you say N here.
27921da177e4SLinus Torvalds
27931da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27941da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27951da177e4SLinus Torvalds
279603502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2797ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27981da177e4SLinus Torvalds
27991da177e4SLinus Torvalds	  If you don't know what to do here, say N.
28001da177e4SLinus Torvalds
28017840d618SMatt Redfearnconfig HOTPLUG_CPU
28027840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
28037840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
28047840d618SMatt Redfearn	help
28057840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
28067840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
28077840d618SMatt Redfearn	  (Note: power management support will enable this option
28087840d618SMatt Redfearn	    automatically on SMP systems. )
28097840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
28107840d618SMatt Redfearn
281187353d8aSRalf Baechleconfig SMP_UP
281287353d8aSRalf Baechle	bool
281387353d8aSRalf Baechle
28144a16ff4cSRalf Baechleconfig SYS_SUPPORTS_MIPS_CMP
28154a16ff4cSRalf Baechle	bool
28164a16ff4cSRalf Baechle
28170ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
28180ee958e1SPaul Burton	bool
28190ee958e1SPaul Burton
2820e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2821e73ea273SRalf Baechle	bool
2822e73ea273SRalf Baechle
2823130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2824130e2fb7SRalf Baechle	bool
2825130e2fb7SRalf Baechle
2826130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2827130e2fb7SRalf Baechle	bool
2828130e2fb7SRalf Baechle
2829130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2830130e2fb7SRalf Baechle	bool
2831130e2fb7SRalf Baechle
2832130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2833130e2fb7SRalf Baechle	bool
2834130e2fb7SRalf Baechle
2835130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2836130e2fb7SRalf Baechle	bool
2837130e2fb7SRalf Baechle
28381da177e4SLinus Torvaldsconfig NR_CPUS
2839a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2840a91796a9SJayachandran C	range 2 256
28411da177e4SLinus Torvalds	depends on SMP
2842130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2843130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2844130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2845130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2846130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
28471da177e4SLinus Torvalds	help
28481da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
28491da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
28501da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
285172ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
285272ede9b1SAtsushi Nemoto	  and 2 for all others.
28531da177e4SLinus Torvalds
28541da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
285572ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
285672ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
285772ede9b1SAtsushi Nemoto	  power of two.
28581da177e4SLinus Torvalds
2859399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2860399aaa25SAl Cooper	bool
2861399aaa25SAl Cooper
28627820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
28637820b84bSDavid Daney	bool
28647820b84bSDavid Daney
28657820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
28667820b84bSDavid Daney	int
28677820b84bSDavid Daney	depends on SMP
28687820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
28697820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
28707820b84bSDavid Daney
28711723b4a3SAtsushi Nemoto#
28721723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
28731723b4a3SAtsushi Nemoto#
28741723b4a3SAtsushi Nemoto
28751723b4a3SAtsushi Nemotochoice
28761723b4a3SAtsushi Nemoto	prompt "Timer frequency"
28771723b4a3SAtsushi Nemoto	default HZ_250
28781723b4a3SAtsushi Nemoto	help
28791723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
28801723b4a3SAtsushi Nemoto
288167596573SPaul Burton	config HZ_24
288267596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
288367596573SPaul Burton
28841723b4a3SAtsushi Nemoto	config HZ_48
28850f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28861723b4a3SAtsushi Nemoto
28871723b4a3SAtsushi Nemoto	config HZ_100
28881723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28891723b4a3SAtsushi Nemoto
28901723b4a3SAtsushi Nemoto	config HZ_128
28911723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28921723b4a3SAtsushi Nemoto
28931723b4a3SAtsushi Nemoto	config HZ_250
28941723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28951723b4a3SAtsushi Nemoto
28961723b4a3SAtsushi Nemoto	config HZ_256
28971723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28981723b4a3SAtsushi Nemoto
28991723b4a3SAtsushi Nemoto	config HZ_1000
29001723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
29011723b4a3SAtsushi Nemoto
29021723b4a3SAtsushi Nemoto	config HZ_1024
29031723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
29041723b4a3SAtsushi Nemoto
29051723b4a3SAtsushi Nemotoendchoice
29061723b4a3SAtsushi Nemoto
290767596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
290867596573SPaul Burton	bool
290967596573SPaul Burton
29101723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
29111723b4a3SAtsushi Nemoto	bool
29121723b4a3SAtsushi Nemoto
29131723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
29141723b4a3SAtsushi Nemoto	bool
29151723b4a3SAtsushi Nemoto
29161723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
29171723b4a3SAtsushi Nemoto	bool
29181723b4a3SAtsushi Nemoto
29191723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
29201723b4a3SAtsushi Nemoto	bool
29211723b4a3SAtsushi Nemoto
29221723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
29231723b4a3SAtsushi Nemoto	bool
29241723b4a3SAtsushi Nemoto
29251723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
29261723b4a3SAtsushi Nemoto	bool
29271723b4a3SAtsushi Nemoto
29281723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
29291723b4a3SAtsushi Nemoto	bool
29301723b4a3SAtsushi Nemoto
29311723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
29321723b4a3SAtsushi Nemoto	bool
293367596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
293467596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
293567596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
293667596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
293767596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
293867596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
293967596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
29401723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
29411723b4a3SAtsushi Nemoto
29421723b4a3SAtsushi Nemotoconfig HZ
29431723b4a3SAtsushi Nemoto	int
294467596573SPaul Burton	default 24 if HZ_24
29451723b4a3SAtsushi Nemoto	default 48 if HZ_48
29461723b4a3SAtsushi Nemoto	default 100 if HZ_100
29471723b4a3SAtsushi Nemoto	default 128 if HZ_128
29481723b4a3SAtsushi Nemoto	default 250 if HZ_250
29491723b4a3SAtsushi Nemoto	default 256 if HZ_256
29501723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
29511723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
29521723b4a3SAtsushi Nemoto
295396685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
295496685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
295596685b17SDeng-Cheng Zhu
2956ea6e942bSAtsushi Nemotoconfig KEXEC
29577d60717eSKees Cook	bool "Kexec system call"
29582965faa5SDave Young	select KEXEC_CORE
2959ea6e942bSAtsushi Nemoto	help
2960ea6e942bSAtsushi Nemoto	  kexec is a system call that implements the ability to shutdown your
2961ea6e942bSAtsushi Nemoto	  current kernel, and to start another kernel.  It is like a reboot
29623dde6ad8SDavid Sterba	  but it is independent of the system firmware.   And like a reboot
2963ea6e942bSAtsushi Nemoto	  you can start any kernel with it, not just Linux.
2964ea6e942bSAtsushi Nemoto
296501dd2fbfSMatt LaPlante	  The name comes from the similarity to the exec system call.
2966ea6e942bSAtsushi Nemoto
2967ea6e942bSAtsushi Nemoto	  It is an ongoing process to be certain the hardware in a machine
2968ea6e942bSAtsushi Nemoto	  is properly shutdown, so do not be surprised if this code does not
2969bf220695SGeert Uytterhoeven	  initially work for you.  As of this writing the exact hardware
2970bf220695SGeert Uytterhoeven	  interface is strongly in flux, so no good recommendation can be
2971bf220695SGeert Uytterhoeven	  made.
2972ea6e942bSAtsushi Nemoto
29737aa1c8f4SRalf Baechleconfig CRASH_DUMP
29747aa1c8f4SRalf Baechle	bool "Kernel crash dumps"
29757aa1c8f4SRalf Baechle	help
29767aa1c8f4SRalf Baechle	  Generate crash dump after being started by kexec.
29777aa1c8f4SRalf Baechle	  This should be normally only set in special crash dump kernels
29787aa1c8f4SRalf Baechle	  which are loaded in the main kernel with kexec-tools into
29797aa1c8f4SRalf Baechle	  a specially reserved region and then later executed after
29807aa1c8f4SRalf Baechle	  a crash by kdump/kexec. The crash dump kernel must be compiled
29817aa1c8f4SRalf Baechle	  to a memory address not used by the main kernel or firmware using
29827aa1c8f4SRalf Baechle	  PHYSICAL_START.
29837aa1c8f4SRalf Baechle
29847aa1c8f4SRalf Baechleconfig PHYSICAL_START
29857aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
29868bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
29877aa1c8f4SRalf Baechle	depends on CRASH_DUMP
29887aa1c8f4SRalf Baechle	help
29897aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
29907aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
29917aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
29927aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
29937aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
29947aa1c8f4SRalf Baechle
2995597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2996b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2997597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2998597ce172SPaul Burton	help
2999597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
3000597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
3001597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
3002597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
3003597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
3004597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
3005597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
3006597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
3007597ce172SPaul Burton	  saying N here.
3008597ce172SPaul Burton
300906e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
301006e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
301118ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
301206e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
301306e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
301406e2e882SPaul Burton	  said details.
301506e2e882SPaul Burton
301606e2e882SPaul Burton	  If unsure, say N.
3017597ce172SPaul Burton
3018f2ffa5abSDezhong Diaoconfig USE_OF
30190b3e06fdSJonas Gorski	bool
3020f2ffa5abSDezhong Diao	select OF
3021e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
3022abd2363fSGrant Likely	select IRQ_DOMAIN
3023f2ffa5abSDezhong Diao
30242fe8ea39SDengcheng Zhuconfig UHI_BOOT
30252fe8ea39SDengcheng Zhu	bool
30262fe8ea39SDengcheng Zhu
30277fafb068SAndrew Brestickerconfig BUILTIN_DTB
30287fafb068SAndrew Bresticker	bool
30297fafb068SAndrew Bresticker
30301da8f179SJonas Gorskichoice
30315b24d52cSJonas Gorski	prompt "Kernel appended dtb support" if USE_OF
30321da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
30331da8f179SJonas Gorski
30341da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
30351da8f179SJonas Gorski		bool "None"
30361da8f179SJonas Gorski		help
30371da8f179SJonas Gorski		  Do not enable appended dtb support.
30381da8f179SJonas Gorski
303987db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
304087db537dSAaro Koskinen		bool "vmlinux"
304187db537dSAaro Koskinen		help
304287db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
304387db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
304487db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
304587db537dSAaro Koskinen		  objcopy:
304687db537dSAaro Koskinen
304787db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
304887db537dSAaro Koskinen
304918ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
305087db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
305187db537dSAaro Koskinen		  the documented boot protocol using a device tree.
305287db537dSAaro Koskinen
30531da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
3054b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
30551da8f179SJonas Gorski		help
30561da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
3057b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
30581da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
30591da8f179SJonas Gorski
30601da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
30611da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
30621da8f179SJonas Gorski		  the documented boot protocol using a device tree.
30631da8f179SJonas Gorski
30641da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
30651da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
30661da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
30671da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
30681da8f179SJonas Gorski		  if you don't intend to always append a DTB.
30691da8f179SJonas Gorskiendchoice
30701da8f179SJonas Gorski
30712024972eSJonas Gorskichoice
30722024972eSJonas Gorski	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
30732bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
307487fcfa7bSJiaxun Yang					 !MACH_LOONGSON64 && !MIPS_MALTA && \
30752bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
30762024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
30772024972eSJonas Gorski
30782024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
30792024972eSJonas Gorski		depends on USE_OF
30802024972eSJonas Gorski		bool "Dtb kernel arguments if available"
30812024972eSJonas Gorski
30822024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
30832024972eSJonas Gorski		depends on USE_OF
30842024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
30852024972eSJonas Gorski
30862024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
30872024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
3088ed47e153SRabin Vincent
3089ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
3090ed47e153SRabin Vincent		depends on CMDLINE_BOOL
3091ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
30922024972eSJonas Gorskiendchoice
30932024972eSJonas Gorski
30945e83d430SRalf Baechleendmenu
30955e83d430SRalf Baechle
30961df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
30971df0f0ffSAtsushi Nemoto	bool
30981df0f0ffSAtsushi Nemoto	default y
30991df0f0ffSAtsushi Nemoto
31001df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
31011df0f0ffSAtsushi Nemoto	bool
31021df0f0ffSAtsushi Nemoto	default y
31031df0f0ffSAtsushi Nemoto
3104a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3105a728ab52SKirill A. Shutemov	int
31063377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
3107a728ab52SKirill A. Shutemov	default 3 if 64BIT && !PAGE_SIZE_64KB
3108a728ab52SKirill A. Shutemov	default 2
3109a728ab52SKirill A. Shutemov
31106c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
31116c359eb1SPaul Burton	bool
31126c359eb1SPaul Burton
31131da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
31141da177e4SLinus Torvalds
3115c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
31162eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3117c5611df9SPaul Burton	bool
3118c5611df9SPaul Burton
3119c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3120c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3121c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
31222eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
31231da177e4SLinus Torvalds
31241da177e4SLinus Torvalds#
31251da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
31261da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
31271da177e4SLinus Torvalds# users to choose the right thing ...
31281da177e4SLinus Torvalds#
31291da177e4SLinus Torvaldsconfig ISA
31301da177e4SLinus Torvalds	bool
31311da177e4SLinus Torvalds
31321da177e4SLinus Torvaldsconfig TC
31331da177e4SLinus Torvalds	bool "TURBOchannel support"
31341da177e4SLinus Torvalds	depends on MACH_DECSTATION
31351da177e4SLinus Torvalds	help
313650a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
313750a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
313850a23e6eSJustin P. Mattock	  at:
313950a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
314050a23e6eSJustin P. Mattock	  and:
314150a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
314250a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
314350a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
31441da177e4SLinus Torvalds
31451da177e4SLinus Torvaldsconfig MMU
31461da177e4SLinus Torvalds	bool
31471da177e4SLinus Torvalds	default y
31481da177e4SLinus Torvalds
3149109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3150109c32ffSMatt Redfearn	default 12 if 64BIT
3151109c32ffSMatt Redfearn	default 8
3152109c32ffSMatt Redfearn
3153109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3154109c32ffSMatt Redfearn	default 18 if 64BIT
3155109c32ffSMatt Redfearn	default 15
3156109c32ffSMatt Redfearn
3157109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3158109c32ffSMatt Redfearn	default 8
3159109c32ffSMatt Redfearn
3160109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3161109c32ffSMatt Redfearn	default 15
3162109c32ffSMatt Redfearn
3163d865bea4SRalf Baechleconfig I8253
3164d865bea4SRalf Baechle	bool
3165798778b8SRussell King	select CLKSRC_I8253
31662d02612fSThomas Gleixner	select CLKEVT_I8253
31679726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
31681da177e4SLinus Torvaldsendmenu
31691da177e4SLinus Torvalds
31701da177e4SLinus Torvaldsconfig TRAD_SIGNALS
31711da177e4SLinus Torvalds	bool
31721da177e4SLinus Torvalds
31731da177e4SLinus Torvaldsconfig MIPS32_COMPAT
317478aaf956SRalf Baechle	bool
31751da177e4SLinus Torvalds
31761da177e4SLinus Torvaldsconfig COMPAT
31771da177e4SLinus Torvalds	bool
31781da177e4SLinus Torvalds
317905e43966SAtsushi Nemotoconfig SYSVIPC_COMPAT
318005e43966SAtsushi Nemoto	bool
318105e43966SAtsushi Nemoto
31821da177e4SLinus Torvaldsconfig MIPS32_O32
31831da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
318478aaf956SRalf Baechle	depends on 64BIT
318578aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
318678aaf956SRalf Baechle	select COMPAT
318778aaf956SRalf Baechle	select MIPS32_COMPAT
318878aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
31891da177e4SLinus Torvalds	help
31901da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
31911da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
31921da177e4SLinus Torvalds	  existing binaries are in this format.
31931da177e4SLinus Torvalds
31941da177e4SLinus Torvalds	  If unsure, say Y.
31951da177e4SLinus Torvalds
31961da177e4SLinus Torvaldsconfig MIPS32_N32
31971da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3198c22eacfeSRalf Baechle	depends on 64BIT
31995a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
320078aaf956SRalf Baechle	select COMPAT
320178aaf956SRalf Baechle	select MIPS32_COMPAT
320278aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
32031da177e4SLinus Torvalds	help
32041da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
32051da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
32061da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
32071da177e4SLinus Torvalds	  cases.
32081da177e4SLinus Torvalds
32091da177e4SLinus Torvalds	  If unsure, say N.
32101da177e4SLinus Torvalds
32112116245eSRalf Baechlemenu "Power management options"
3212952fa954SRodolfo Giometti
3213363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3214363c55caSWu Zhangjin	def_bool y
32153f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3216363c55caSWu Zhangjin
3217f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3218f4cb5700SJohannes Berg	def_bool y
32193f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3220f4cb5700SJohannes Berg
32212116245eSRalf Baechlesource "kernel/power/Kconfig"
3222952fa954SRodolfo Giometti
32231da177e4SLinus Torvaldsendmenu
32241da177e4SLinus Torvalds
32257a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
32267a998935SViresh Kumar	bool
32277a998935SViresh Kumar
32287a998935SViresh Kumarmenu "CPU Power Management"
3229c095ebafSPaul Burton
3230c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
32317a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
32327a998935SViresh Kumarendif
32339726b43aSWu Zhangjin
3234c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3235c095ebafSPaul Burton
3236c095ebafSPaul Burtonendmenu
3237c095ebafSPaul Burton
323898cdee0eSRalf Baechlesource "drivers/firmware/Kconfig"
323998cdee0eSRalf Baechle
32402235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3241e91946d6SNathan Chancellor
3242e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3243