xref: /linux/arch/mips/Kconfig (revision 67faad74352d1ce0c1f411f92fdb1e0c0f3c9380)
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
78690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
87f066a22SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
9b847bd64SKees Cook	select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
10dfad83cbSFlorian Fainelli	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
11de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS if MACH_JAZZ
1234c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
1334c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1466633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1534c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
16e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
17e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1812597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
19918327e9SKees Cook	select ARCH_HAS_UBSAN
208b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
21c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
221ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2312597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
24dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2525da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
260b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
27855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
289035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2912597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
30d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
3110916706SShile Zhang	select BUILDTIME_TABLE_SORT
3204e4ec98SMasahiro Yamada	select BUILTIN_DTB_ALL if BUILTIN_DTB
3312597988SMatt Redfearn	select CLONE_BACKWARDS
3457eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
352226d454SJiaxun Yang	select CPU_PM if CPU_IDLE || SUSPEND
3612597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3704e4ec98SMasahiro Yamada	select GENERIC_BUILTIN_DTB if BUILTIN_DTB
3812597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
3912597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
4024640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
4112597988SMatt Redfearn	select GENERIC_IRQ_PROBE
4212597988SMatt Redfearn	select GENERIC_IRQ_SHOW
436630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
44740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
45740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
46740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
47740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
48740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
49976bf3aeSArnd Bergmann	select GENERIC_PCI_IOMAP
5012597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
5112597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
52975fd3c2SJiaxun Yang	select GENERIC_IDLE_POLL_SETUP
5312597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
5469896119SThomas Weißschuh	select GENERIC_VDSO_DATA_STORE
556ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
56fcbfe812SNiklas Schnelle	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
57906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
5812597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
5942b20995SArnd Bergmann	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
60109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
61109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
62490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
63c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
6445e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
652ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
6624a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
67490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6864575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6912597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
7012597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
7112597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
7212597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
737364d60cSJiaxun Yang	select HAVE_EBPF_JIT if !CPU_MICROMIPS
7412597988SMatt Redfearn	select HAVE_EXIT_THREAD
7525176ad0SDavid Hildenbrand	select HAVE_GUP_FAST
7612597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
7729c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7812597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7934c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
8034c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
81b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
8212597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
8312597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
84c1bf207dSDavid Daney	select HAVE_KPROBES
85c1bf207dSDavid Daney	select HAVE_KRETPROBES
86c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
87786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8842a0bb3fSPetr Mladek	select HAVE_NMI
89ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB if !CPU_LOONGSON2EF && !CPU_LOONGSON64
90ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB if !CPU_R3000
91ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_64KB if !CPU_R3000
9212597988SMatt Redfearn	select HAVE_PERF_EVENTS
931ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
941ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
9508bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
969ea141adSPaul Burton	select HAVE_RSEQ
9716c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
98d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9912597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
100a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
10112597988SMatt Redfearn	select IRQ_FORCED_THREADING
1026630a8e5SChristoph Hellwig	select ISA if EISA
1034bce37a6SBen Hutchings	select LOCK_MM_AND_FIND_VMA
10412597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
10534c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
10612597988SMatt Redfearn	select PERF_USE_VMALLOC
107981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
10805a0a344SArnd Bergmann	select RTC_LIB
10912597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1104aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
1110bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
112e0a8b93eSNemanja Rakovic	select HAVE_ARCH_KCSAN if 64BIT
1131da177e4SLinus Torvalds
114d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
115d3991572SChristoph Hellwig	bool
116d3991572SChristoph Hellwig
117c434b9f8SPaul Cercueilconfig MIPS_GENERIC
118c434b9f8SPaul Cercueil	bool
119c434b9f8SPaul Cercueil
12080f2e4cdSGregory CLEMENTconfig MACH_GENERIC_CORE
12180f2e4cdSGregory CLEMENT	bool
12280f2e4cdSGregory CLEMENT
123f0f4a753SPaul Cercueilconfig MACH_INGENIC
124f0f4a753SPaul Cercueil	bool
125f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
126f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
127f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
128f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
129f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
130f0f4a753SPaul Cercueil	select PINCTRL
131f0f4a753SPaul Cercueil	select GPIOLIB
132f0f4a753SPaul Cercueil	select COMMON_CLK
133f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
134f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
135f0f4a753SPaul Cercueil	select USE_OF
136f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
137f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
138f0f4a753SPaul Cercueil
1391da177e4SLinus Torvaldsmenu "Machine selection"
1401da177e4SLinus Torvalds
1415e83d430SRalf Baechlechoice
1425e83d430SRalf Baechle	prompt "System type"
143c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1441da177e4SLinus Torvalds
145c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
146eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
147c434b9f8SPaul Cercueil	select MIPS_GENERIC
148eed0eabdSPaul Burton	select BOOT_RAW
149eed0eabdSPaul Burton	select BUILTIN_DTB
150eed0eabdSPaul Burton	select CEVT_R4K
151eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
152eed0eabdSPaul Burton	select COMMON_CLK
153eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
15434c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
155eed0eabdSPaul Burton	select CSRC_R4K
1564e066441SChristoph Hellwig	select DMA_NONCOHERENT
157eb01d42aSChristoph Hellwig	select HAVE_PCI
158eed0eabdSPaul Burton	select IRQ_MIPS_CPU
15980f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
1600211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
161eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
162eed0eabdSPaul Burton	select MIPS_GIC
163eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
164eed0eabdSPaul Burton	select NO_EXCEPT_FILL
165eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
166eed0eabdSPaul Burton	select SMP_UP if SMP
167a3078e59SMatt Redfearn	select SWAP_IO_SPACE
168eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
169eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
170fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R5
171eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
172eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
173eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
174fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R5
175eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
176eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
177eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
178eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
179eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
180eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
181eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
182eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
18334c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
184eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
185eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
186eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
187c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
18834c01e41SAlexander Lobakin	select UHI_BOOT
1892e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1902e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1912e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1922e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1932e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1942e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
195eed0eabdSPaul Burton	select USE_OF
196eed0eabdSPaul Burton	help
197eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
198eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
199eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
200eed0eabdSPaul Burton	  Interface) specification.
201eed0eabdSPaul Burton
20242a4f17dSManuel Laussconfig MIPS_ALCHEMY
203c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
204d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
205f772cdb2SRalf Baechle	select CEVT_R4K
206d7ea335cSSteven J. Hill	select CSRC_R4K
20767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
208a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
209d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
21042a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
21142a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
21242a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
213d30a2b47SLinus Walleij	select GPIOLIB
2141b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
21547440229SManuel Lauss	select COMMON_CLK
2161da177e4SLinus Torvalds
21743cc739fSSergey Ryazanovconfig ATH25
21843cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
21943cc739fSSergey Ryazanov	select CEVT_R4K
22043cc739fSSergey Ryazanov	select CSRC_R4K
22143cc739fSSergey Ryazanov	select DMA_NONCOHERENT
22267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2231753e74eSSergey Ryazanov	select IRQ_DOMAIN
22443cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
22543cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
22643cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2278aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
22843cc739fSSergey Ryazanov	help
22943cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
23043cc739fSSergey Ryazanov
231d4a67d9dSGabor Juhosconfig ATH79
232d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
233ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
234d4a67d9dSGabor Juhos	select BOOT_RAW
235d4a67d9dSGabor Juhos	select CEVT_R4K
236d4a67d9dSGabor Juhos	select CSRC_R4K
237d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
238d30a2b47SLinus Walleij	select GPIOLIB
239a08227a2SJohn Crispin	select PINCTRL
240411520afSAlban Bedel	select COMMON_CLK
24167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
242d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
243d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
244d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
245d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
246377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
247b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
24803c8c407SAlban Bedel	select USE_OF
24953d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
250d4a67d9dSGabor Juhos	help
251d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
252d4a67d9dSGabor Juhos
2535f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2545f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
25529906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
256d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
257d666cd02SKevin Cernekee	select BOOT_RAW
258d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
259d666cd02SKevin Cernekee	select USE_OF
260d666cd02SKevin Cernekee	select CEVT_R4K
261d666cd02SKevin Cernekee	select CSRC_R4K
262d666cd02SKevin Cernekee	select SYNC_R4K
263d666cd02SKevin Cernekee	select COMMON_CLK
264c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
26560b858f2SKevin Cernekee	select BCM7038_L1_IRQ
26660b858f2SKevin Cernekee	select BCM7120_L2_IRQ
26760b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
26867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
26960b858f2SKevin Cernekee	select DMA_NONCOHERENT
270d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
27160b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
272d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
273d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
27460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
27560b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
27660b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
277d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
278d666cd02SKevin Cernekee	select SWAP_IO_SPACE
27960b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28060b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
28160b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28260b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2834dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
2841d987052SFlorian Fainelli	select HAVE_PCI
2851d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
286466ab2eaSFlorian Fainelli	select FW_CFE
287d666cd02SKevin Cernekee	help
2885f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2895f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2905f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2915f2d4459SKevin Cernekee	  must be set appropriately for your board.
292d666cd02SKevin Cernekee
2931c0c13ebSAurelien Jarnoconfig BCM47XX
294c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
295fe08f8c2SHauke Mehrtens	select BOOT_RAW
29642f77542SRalf Baechle	select CEVT_R4K
297940f6b48SRalf Baechle	select CSRC_R4K
2981c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
299eb01d42aSChristoph Hellwig	select HAVE_PCI
30067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
301314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
302dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
3031c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3041c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
305377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3066507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
30725e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
308e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
309c949c0bcSRafał Miłecki	select GPIOLIB
310c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
311f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3122ab71a02SRafał Miłecki	select BCM47XX_SPROM
313dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3141c0c13ebSAurelien Jarno	help
3151c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3161c0c13ebSAurelien Jarno
317e7300d04SMaxime Bizonconfig BCM63XX
318e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
319ae8de61cSFlorian Fainelli	select BOOT_RAW
320e7300d04SMaxime Bizon	select CEVT_R4K
321e7300d04SMaxime Bizon	select CSRC_R4K
322fc264022SJonas Gorski	select SYNC_R4K
323e7300d04SMaxime Bizon	select DMA_NONCOHERENT
32467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
325e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
326e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
327e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3285eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3295eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3305eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
331e7300d04SMaxime Bizon	select SWAP_IO_SPACE
332d30a2b47SLinus Walleij	select GPIOLIB
333af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
334bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
335e7300d04SMaxime Bizon	help
336e7300d04SMaxime Bizon	  Support for BCM63XX based boards
337e7300d04SMaxime Bizon
3381da177e4SLinus Torvaldsconfig MIPS_COBALT
3393fa986faSMartin Michlmayr	bool "Cobalt Server"
34042f77542SRalf Baechle	select CEVT_R4K
341940f6b48SRalf Baechle	select CSRC_R4K
3421097c6acSYoichi Yuasa	select CEVT_GT641XX
3431da177e4SLinus Torvalds	select DMA_NONCOHERENT
344eb01d42aSChristoph Hellwig	select FORCE_PCI
345d865bea4SRalf Baechle	select I8253
3461da177e4SLinus Torvalds	select I8259
34767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
348d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
349252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3507cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3510a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
352ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3530e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3545e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
355e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3561da177e4SLinus Torvalds
3571da177e4SLinus Torvaldsconfig MACH_DECSTATION
3583fa986faSMartin Michlmayr	bool "DECstations"
3591da177e4SLinus Torvalds	select BOOT_ELF32
3606457d9fcSYoichi Yuasa	select CEVT_DS1287
36181d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3624247417dSYoichi Yuasa	select CSRC_IOASIC
36381d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
36420d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
36520d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
36620d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3671da177e4SLinus Torvalds	select DMA_NONCOHERENT
368ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
36967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3707cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3717cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
372ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3737d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3745e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3751723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3761723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3771723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
378930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3795e83d430SRalf Baechle	help
3801da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3811da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3821da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3831da177e4SLinus Torvalds
3841da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3851da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3861da177e4SLinus Torvalds
3871da177e4SLinus Torvalds		DECstation 5000/50
3881da177e4SLinus Torvalds		DECstation 5000/150
3891da177e4SLinus Torvalds		DECstation 5000/260
3901da177e4SLinus Torvalds		DECsystem 5900/260
3911da177e4SLinus Torvalds
3921da177e4SLinus Torvalds	  otherwise choose R3000.
3931da177e4SLinus Torvalds
39435fb26f9SCaleb James DeLisleconfig ECONET
39535fb26f9SCaleb James DeLisle	bool "EcoNet MIPS family"
39635fb26f9SCaleb James DeLisle	select BOOT_RAW
39735fb26f9SCaleb James DeLisle	select CPU_BIG_ENDIAN
398*79ee1d20SCaleb James DeLisle	select DEBUG_ZBOOT if DEBUG_KERNEL
39935fb26f9SCaleb James DeLisle	select EARLY_PRINTK_8250
40035fb26f9SCaleb James DeLisle	select ECONET_EN751221_TIMER
401*79ee1d20SCaleb James DeLisle	select SERIAL_8250
40235fb26f9SCaleb James DeLisle	select SERIAL_OF_PLATFORM
40335fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_BIG_ENDIAN
40435fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R1
40535fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R2
40635fb26f9SCaleb James DeLisle	select SYS_HAS_EARLY_PRINTK
40735fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_32BIT_KERNEL
40835fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_MIPS16
40935fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_ZBOOT_UART16550
41035fb26f9SCaleb James DeLisle	select USE_GENERIC_EARLY_PRINTK_8250
41135fb26f9SCaleb James DeLisle	select USE_OF
41235fb26f9SCaleb James DeLisle	help
41335fb26f9SCaleb James DeLisle	  EcoNet EN75xx MIPS devices are big endian MIPS machines used
41435fb26f9SCaleb James DeLisle	  in XPON (fiber) and DSL applications. They have SPI, PCI, USB,
41535fb26f9SCaleb James DeLisle	  GPIO, and Ethernet, with optional XPON, DSL, and VoIP DSP cores.
41635fb26f9SCaleb James DeLisle	  Don't confuse these with the Airoha ARM devices sometimes referred
41735fb26f9SCaleb James DeLisle	  to as "EcoNet", this family is for MIPS based devices only.
41835fb26f9SCaleb James DeLisle
4195e83d430SRalf Baechleconfig MACH_JAZZ
4203fa986faSMartin Michlmayr	bool "Jazz family of machines"
42139b2d756SThomas Bogendoerfer	select ARC_MEMORY
42239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
423a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
4247a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4250e2794b0SRalf Baechle	select FW_ARC
4260e2794b0SRalf Baechle	select FW_ARC32
4275e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
42842f77542SRalf Baechle	select CEVT_R4K
429940f6b48SRalf Baechle	select CSRC_R4K
430e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4315e83d430SRalf Baechle	select GENERIC_ISA_DMA
4328a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
43367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
434d865bea4SRalf Baechle	select I8253
4355e83d430SRalf Baechle	select I8259
4365e83d430SRalf Baechle	select ISA
4377cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4385e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4397d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4401723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
441aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4421da177e4SLinus Torvalds	help
4435e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4445e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
445692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4465e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4475e83d430SRalf Baechle
448f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
449de361e8bSPaul Burton	bool "Ingenic SoC based machines"
450f0f4a753SPaul Cercueil	select MIPS_GENERIC
451f0f4a753SPaul Cercueil	select MACH_INGENIC
45280f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
453f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
454eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
455eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4565ebabe59SLars-Peter Clausen
457171bb2f1SJohn Crispinconfig LANTIQ
458171bb2f1SJohn Crispin	bool "Lantiq based platforms"
459171bb2f1SJohn Crispin	select DMA_NONCOHERENT
46067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
461171bb2f1SJohn Crispin	select CEVT_R4K
462171bb2f1SJohn Crispin	select CSRC_R4K
463b74cc639SSander Vanheule	select NO_EXCEPT_FILL
464171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
465171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
466171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
467171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
468377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
469171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
470f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
471171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
472d30a2b47SLinus Walleij	select GPIOLIB
473171bb2f1SJohn Crispin	select SWAP_IO_SPACE
474171bb2f1SJohn Crispin	select BOOT_RAW
475bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
476a0392222SJohn Crispin	select USE_OF
4773f8c50c9SJohn Crispin	select PINCTRL
4783f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
479c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
480c530781cSJohn Crispin	select RESET_CONTROLLER
481171bb2f1SJohn Crispin
48230ad29bbSHuacai Chenconfig MACH_LOONGSON32
483caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
484c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
485ade299d8SYoichi Yuasa	help
48630ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
48785749d24SWu Zhangjin
48830ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
48930ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
49030ad29bbSHuacai Chen	  Sciences (CAS).
491ade299d8SYoichi Yuasa
49271e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
49371e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
494ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
495ca585cf9SKelvin Cheung	help
49671e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
497ca585cf9SKelvin Cheung
49871e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
499caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
500edc0378eSJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT
5016fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
5026fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
5036fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
5046fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
5056fbde6b4SJiaxun Yang	select BOOT_ELF32
5066fbde6b4SJiaxun Yang	select BOARD_SCACHE
5076fbde6b4SJiaxun Yang	select CSRC_R4K
5086fbde6b4SJiaxun Yang	select CEVT_R4K
509fa165f91SJiaxun Yang	select SYNC_R4K
5106fbde6b4SJiaxun Yang	select FORCE_PCI
5116fbde6b4SJiaxun Yang	select ISA
5126fbde6b4SJiaxun Yang	select I8259
5136fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
5147d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
5155125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
5166fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
5176423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
5186fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
5196fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
5206fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
5216fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
5226fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
5236fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
5246fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
5256fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
52671e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
527a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
5286fbde6b4SJiaxun Yang	select ZONE_DMA32
52987fcfa7bSJiaxun Yang	select COMMON_CLK
53087fcfa7bSJiaxun Yang	select USE_OF
53187fcfa7bSJiaxun Yang	select BUILTIN_DTB
53239c1485cSHuacai Chen	select PCI_HOST_GENERIC
53371e2f4ddSJiaxun Yang	help
534caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
535caed1d1bSHuacai Chen
536caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
537caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
538caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
539caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
540ca585cf9SKelvin Cheung
5411da177e4SLinus Torvaldsconfig MIPS_MALTA
5423fa986faSMartin Michlmayr	bool "MIPS Malta board"
54361ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
544a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5457a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5461da177e4SLinus Torvalds	select BOOT_ELF32
547fa71c960SRalf Baechle	select BOOT_RAW
548e8823d26SPaul Burton	select BUILTIN_DTB
54942f77542SRalf Baechle	select CEVT_R4K
550fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
55142b002abSGuenter Roeck	select COMMON_CLK
55247bf2b03SMaksym Kokhan	select CSRC_R4K
553a86497d6SChristoph Hellwig	select DMA_NONCOHERENT
5541da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5558a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
556eb01d42aSChristoph Hellwig	select HAVE_PCI
557d865bea4SRalf Baechle	select I8253
5581da177e4SLinus Torvalds	select I8259
55947bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5605e83d430SRalf Baechle	select MIPS_BONITO64
5619318c51aSChris Dearman	select MIPS_CPU_SCACHE
56247bf2b03SMaksym Kokhan	select MIPS_GIC
563a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5645e83d430SRalf Baechle	select MIPS_MSC
56547bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
566ecafe3e9SPaul Burton	select SMP_UP if SMP
5671da177e4SLinus Torvalds	select SWAP_IO_SPACE
5687cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5697cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
570bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
571c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
572575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5737cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5745d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
575575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5767cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5777cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
578ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
579ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5805e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
581c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5825e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
583424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
58447bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
585e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
586f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
58747bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
5889693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
589f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5901b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
591e8823d26SPaul Burton	select USE_OF
592886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
593abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
5941da177e4SLinus Torvalds	help
595f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5961da177e4SLinus Torvalds	  board.
5971da177e4SLinus Torvalds
5982572f00dSJoshua Hendersonconfig MACH_PIC32
5992572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
6002572f00dSJoshua Henderson	help
6012572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
6022572f00dSJoshua Henderson
6032572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
6042572f00dSJoshua Henderson	  microcontrollers.
6052572f00dSJoshua Henderson
606fbe0fae6SGregory CLEMENTconfig EYEQ
607fbe0fae6SGregory CLEMENT	bool "Mobileye EyeQ SoC"
608101bd58fSGregory CLEMENT	select MACH_GENERIC_CORE
609101bd58fSGregory CLEMENT	select ARM_AMBA
610101bd58fSGregory CLEMENT	select PHYSICAL_START_BOOL
611101bd58fSGregory CLEMENT	select ARCH_SPARSEMEM_DEFAULT if 64BIT
612101bd58fSGregory CLEMENT	select BOOT_RAW
613101bd58fSGregory CLEMENT	select BUILTIN_DTB
614101bd58fSGregory CLEMENT	select CEVT_R4K
615101bd58fSGregory CLEMENT	select CLKSRC_MIPS_GIC
616101bd58fSGregory CLEMENT	select COMMON_CLK
617101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_EI
618101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_VI
619101bd58fSGregory CLEMENT	select CSRC_R4K
620101bd58fSGregory CLEMENT	select DMA_NONCOHERENT
621101bd58fSGregory CLEMENT	select HAVE_PCI
622101bd58fSGregory CLEMENT	select IRQ_MIPS_CPU
623101bd58fSGregory CLEMENT	select MIPS_AUTO_PFN_OFFSET
624101bd58fSGregory CLEMENT	select MIPS_CPU_SCACHE
625101bd58fSGregory CLEMENT	select MIPS_GIC
626101bd58fSGregory CLEMENT	select MIPS_L1_CACHE_SHIFT_7
627101bd58fSGregory CLEMENT	select PCI_DRIVERS_GENERIC
628101bd58fSGregory CLEMENT	select SMP_UP if SMP
629101bd58fSGregory CLEMENT	select SWAP_IO_SPACE
630101bd58fSGregory CLEMENT	select SYS_HAS_CPU_MIPS64_R6
631101bd58fSGregory CLEMENT	select SYS_SUPPORTS_64BIT_KERNEL
632101bd58fSGregory CLEMENT	select SYS_SUPPORTS_HIGHMEM
633101bd58fSGregory CLEMENT	select SYS_SUPPORTS_LITTLE_ENDIAN
634101bd58fSGregory CLEMENT	select SYS_SUPPORTS_MIPS_CPS
635101bd58fSGregory CLEMENT	select SYS_SUPPORTS_RELOCATABLE
636101bd58fSGregory CLEMENT	select SYS_SUPPORTS_ZBOOT
637101bd58fSGregory CLEMENT	select UHI_BOOT
638101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
639101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
640101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
641101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
642101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
643101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
644101bd58fSGregory CLEMENT	select USE_OF
64576c43eb5SGregory CLEMENT	select HOTPLUG_PARALLEL if SMP
646101bd58fSGregory CLEMENT	help
647fbe0fae6SGregory CLEMENT	  Select this to build a kernel supporting EyeQ SoC from Mobileye.
648101bd58fSGregory CLEMENT
649101bd58fSGregory CLEMENT	bool
650101bd58fSGregory CLEMENT
651baec970aSLauri Kasanenconfig MACH_NINTENDO64
652baec970aSLauri Kasanen	bool "Nintendo 64 console"
653baec970aSLauri Kasanen	select CEVT_R4K
654baec970aSLauri Kasanen	select CSRC_R4K
655baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
656baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
657baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
658baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
659baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
660baec970aSLauri Kasanen	select DMA_NONCOHERENT
661baec970aSLauri Kasanen	select IRQ_MIPS_CPU
662baec970aSLauri Kasanen
663ae2b5bb6SJohn Crispinconfig RALINK
664ae2b5bb6SJohn Crispin	bool "Ralink based machines"
665ae2b5bb6SJohn Crispin	select CEVT_R4K
66635f752beSArnd Bergmann	select COMMON_CLK
667ae2b5bb6SJohn Crispin	select CSRC_R4K
668ae2b5bb6SJohn Crispin	select BOOT_RAW
669ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
67067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
671ae2b5bb6SJohn Crispin	select USE_OF
672ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
673ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
674ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
675377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6761f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
677ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6782a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6792a153f1cSJohn Crispin	select RESET_CONTROLLER
680ae2b5bb6SJohn Crispin
6814042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6824042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6834042147aSBert Vermeulen	select MIPS_GENERIC
68480f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
6854042147aSBert Vermeulen	select DMA_NONCOHERENT
6864042147aSBert Vermeulen	select IRQ_MIPS_CPU
6874042147aSBert Vermeulen	select CSRC_R4K
6884042147aSBert Vermeulen	select CEVT_R4K
6894042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
6904042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
6914042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
6924042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
6934042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
6944042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
6954042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
6964042147aSBert Vermeulen	select BOOT_RAW
6974042147aSBert Vermeulen	select PINCTRL
6984042147aSBert Vermeulen	select USE_OF
69962b8db3aSChris Packham	select REALTEK_OTTO_TIMER
7004042147aSBert Vermeulen
7011da177e4SLinus Torvaldsconfig SGI_IP22
7023fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
703c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
70439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7050e2794b0SRalf Baechle	select FW_ARC
7060e2794b0SRalf Baechle	select FW_ARC32
7077a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
7081da177e4SLinus Torvalds	select BOOT_ELF32
70942f77542SRalf Baechle	select CEVT_R4K
710940f6b48SRalf Baechle	select CSRC_R4K
711e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
7121da177e4SLinus Torvalds	select DMA_NONCOHERENT
7136630a8e5SChristoph Hellwig	select HAVE_EISA
714d865bea4SRalf Baechle	select I8253
71568de4803SThomas Bogendoerfer	select I8259
7161da177e4SLinus Torvalds	select IP22_CPU_SCACHE
71767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
718aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
719e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
720e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
72136e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
722e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
723e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
724e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
7251da177e4SLinus Torvalds	select SWAP_IO_SPACE
7267cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
7277cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
728c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
729ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
730ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7315e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
732802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
7335e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
73444def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
735930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7361da177e4SLinus Torvalds	help
7371da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
7381da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
7391da177e4SLinus Torvalds	  that runs on these, say Y here.
7401da177e4SLinus Torvalds
7411da177e4SLinus Torvaldsconfig SGI_IP27
7423fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
74354aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
744397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
7450e2794b0SRalf Baechle	select FW_ARC
7460e2794b0SRalf Baechle	select FW_ARC64
747e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
7485e83d430SRalf Baechle	select BOOT_ELF64
749e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
75004100459SChristoph Hellwig	select FORCE_PCI
75136a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
752eb01d42aSChristoph Hellwig	select HAVE_PCI
75369a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
754e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
755130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
756a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
757a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7587cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
759ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7605e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
761d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
7621a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
763256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
764930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7656c86a302SMike Rapoport	select NUMA
7661da177e4SLinus Torvalds	help
7671da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7681da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7691da177e4SLinus Torvalds	  here.
7701da177e4SLinus Torvalds
771e2defae5SThomas Bogendoerferconfig SGI_IP28
7727d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
773c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
77439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7750e2794b0SRalf Baechle	select FW_ARC
7760e2794b0SRalf Baechle	select FW_ARC64
7777a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
778e2defae5SThomas Bogendoerfer	select BOOT_ELF64
779e2defae5SThomas Bogendoerfer	select CEVT_R4K
780e2defae5SThomas Bogendoerfer	select CSRC_R4K
781e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
782e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
783e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
78467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7856630a8e5SChristoph Hellwig	select HAVE_EISA
786e2defae5SThomas Bogendoerfer	select I8253
787e2defae5SThomas Bogendoerfer	select I8259
788e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
789e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
7905b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
791e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
792e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
793e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
794e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
795e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
796c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
797e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
798e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
799256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
800dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
801e2defae5SThomas Bogendoerfer	help
802e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
803e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
804e2defae5SThomas Bogendoerfer
8057505576dSThomas Bogendoerferconfig SGI_IP30
8067505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
8077505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
8087505576dSThomas Bogendoerfer	select FW_ARC
8097505576dSThomas Bogendoerfer	select FW_ARC64
8107505576dSThomas Bogendoerfer	select BOOT_ELF64
8117505576dSThomas Bogendoerfer	select CEVT_R4K
8127505576dSThomas Bogendoerfer	select CSRC_R4K
81304100459SChristoph Hellwig	select FORCE_PCI
8147505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
8157505576dSThomas Bogendoerfer	select ZONE_DMA32
8167505576dSThomas Bogendoerfer	select HAVE_PCI
8177505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
8187505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
8197505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
8207505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
8217505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
8227505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8237505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
8247505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8257505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
826256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
8277505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
8287505576dSThomas Bogendoerfer	select ARC_MEMORY
8297505576dSThomas Bogendoerfer	help
8307505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
8317505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
8327505576dSThomas Bogendoerfer
8331da177e4SLinus Torvaldsconfig SGI_IP32
834cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
83539b2d756SThomas Bogendoerfer	select ARC_MEMORY
83639b2d756SThomas Bogendoerfer	select ARC_PROMLIB
83703df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
8380e2794b0SRalf Baechle	select FW_ARC
8390e2794b0SRalf Baechle	select FW_ARC32
8401da177e4SLinus Torvalds	select BOOT_ELF32
84142f77542SRalf Baechle	select CEVT_R4K
842940f6b48SRalf Baechle	select CSRC_R4K
8431da177e4SLinus Torvalds	select DMA_NONCOHERENT
844eb01d42aSChristoph Hellwig	select HAVE_PCI
84567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8461da177e4SLinus Torvalds	select R5000_CPU_SCACHE
8471da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
8487cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
8497cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
8507cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
851dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
852ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
8535e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
854886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
8551da177e4SLinus Torvalds	help
8561da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8571da177e4SLinus Torvalds
8585e83d430SRalf Baechleconfig SIBYTE_CRHONE
8593fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
8605e83d430SRalf Baechle	select BOOT_ELF32
8615e83d430SRalf Baechle	select SIBYTE_BCM1125
8625e83d430SRalf Baechle	select SWAP_IO_SPACE
8637cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8645e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8655e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8665e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8675e83d430SRalf Baechle
868ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
869ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
870ade299d8SYoichi Yuasa	select BOOT_ELF32
87103452347SThomas Bogendoerfer	select SIBYTE_SB1250
872ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
873ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
874ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
875ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
876ade299d8SYoichi Yuasa
877ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
878ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
879ade299d8SYoichi Yuasa	select BOOT_ELF32
880fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
881ade299d8SYoichi Yuasa	select SIBYTE_SB1250
882ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
883ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
884ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
885ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
886ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
887cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
888e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
889ade299d8SYoichi Yuasa
890ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
891ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
892ade299d8SYoichi Yuasa	select BOOT_ELF32
893fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
894ade299d8SYoichi Yuasa	select SIBYTE_SB1250
895ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
896ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
897ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
898ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
899ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
900756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
901ade299d8SYoichi Yuasa
902ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
903ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
904ade299d8SYoichi Yuasa	select BOOT_ELF32
905ade299d8SYoichi Yuasa	select SIBYTE_SB1250
906ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
907ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
908ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
909ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
910e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
911ade299d8SYoichi Yuasa
912ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
913ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
914ade299d8SYoichi Yuasa	select BOOT_ELF32
915ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
916ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
917ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
918ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
919ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
920651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
921ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
922cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
923e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
924ade299d8SYoichi Yuasa
92514b36af4SThomas Bogendoerferconfig SNI_RM
92614b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
92739b2d756SThomas Bogendoerfer	select ARC_MEMORY
92839b2d756SThomas Bogendoerfer	select ARC_PROMLIB
9290e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
9300e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
931aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
9325e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
933a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9347a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
9355e83d430SRalf Baechle	select BOOT_ELF32
93642f77542SRalf Baechle	select CEVT_R4K
937940f6b48SRalf Baechle	select CSRC_R4K
938e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9395e83d430SRalf Baechle	select DMA_NONCOHERENT
9405e83d430SRalf Baechle	select GENERIC_ISA_DMA
9416630a8e5SChristoph Hellwig	select HAVE_EISA
9428a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
943eb01d42aSChristoph Hellwig	select HAVE_PCI
94467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
945d865bea4SRalf Baechle	select I8253
9465e83d430SRalf Baechle	select I8259
9475e83d430SRalf Baechle	select ISA
948564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9494a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9507cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
9514a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
952c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
9534a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
95436a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
955ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
9567d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
9574a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
9585e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
9595e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
96044def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
9611da177e4SLinus Torvalds	help
96214b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
96314b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9645e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9655e83d430SRalf Baechle	  support this machine type.
9661da177e4SLinus Torvalds
967edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
968edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
96924a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
97023fbee9dSRalf Baechle
97173b4390fSRalf Baechleconfig MIKROTIK_RB532
97273b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
97373b4390fSRalf Baechle	select CEVT_R4K
97473b4390fSRalf Baechle	select CSRC_R4K
97573b4390fSRalf Baechle	select DMA_NONCOHERENT
976eb01d42aSChristoph Hellwig	select HAVE_PCI
97767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
97873b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
97973b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
98073b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
98173b4390fSRalf Baechle	select SWAP_IO_SPACE
98273b4390fSRalf Baechle	select BOOT_RAW
983d30a2b47SLinus Walleij	select GPIOLIB
984930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
98573b4390fSRalf Baechle	help
98673b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
98773b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
98873b4390fSRalf Baechle
9899ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9909ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
991a86c7f72SDavid Daney	select CEVT_R4K
992ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
9931753d50cSChristoph Hellwig	select HAVE_RAPIDIO
994d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
995a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
996a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
997f65aad41SRalf Baechle	select EDAC_SUPPORT
998b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
99973569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
100073569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
1001a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
10025e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
1003eb01d42aSChristoph Hellwig	select HAVE_PCI
100478bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
100578bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
100678bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
1007f00e001eSDavid Daney	select ZONE_DMA32
1008d30a2b47SLinus Walleij	select GPIOLIB
10096e511163SDavid Daney	select USE_OF
10106e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
10116e511163SDavid Daney	select SYS_SUPPORTS_SMP
10127820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
10137820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
1014e326479fSAndrew Bresticker	select BUILTIN_DTB
1015f766b28aSJulian Braha	select MTD
10168c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
101709230cbcSChristoph Hellwig	select SWIOTLB
10183ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
1019a86c7f72SDavid Daney	help
1020a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
1021a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
1022a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
1023a86c7f72SDavid Daney	  Some of the supported boards are:
1024a86c7f72SDavid Daney		EBT3000
1025a86c7f72SDavid Daney		EBH3000
1026a86c7f72SDavid Daney		EBH3100
1027a86c7f72SDavid Daney		Thunder
1028a86c7f72SDavid Daney		Kodama
1029a86c7f72SDavid Daney		Hikari
1030a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
1031a86c7f72SDavid Daney
10321da177e4SLinus Torvaldsendchoice
10331da177e4SLinus Torvalds
10349a88b338SMasahiro Yamadaconfig FIT_IMAGE_FDT_EPM5
10359a88b338SMasahiro Yamada	bool "Include FDT for Mobileye EyeQ5 development platforms"
10369a88b338SMasahiro Yamada	depends on MACH_EYEQ5
10379a88b338SMasahiro Yamada	default n
10389a88b338SMasahiro Yamada	help
10399a88b338SMasahiro Yamada	  Enable this to include the FDT for the EyeQ5 development platforms
10409a88b338SMasahiro Yamada	  from Mobileye in the FIT kernel image.
10419a88b338SMasahiro Yamada	  This requires u-boot on the platform.
10429a88b338SMasahiro Yamada
1043e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10443b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1045d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1046a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1047e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10488945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
104935fb26f9SCaleb James DeLislesource "arch/mips/econet/Kconfig"
1050eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
1051a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
10525e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10538ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
1054fbe0fae6SGregory CLEMENTsource "arch/mips/mobileye/Kconfig"
10552572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1056ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
105729c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
105838b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
105922b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
1060a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
106171e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
106230ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
106330ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
106438b18f72SRalf Baechle
10655e83d430SRalf Baechleendmenu
10665e83d430SRalf Baechle
10673c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10683c9ee7efSAkinobu Mita	bool
10693c9ee7efSAkinobu Mita	default y
10703c9ee7efSAkinobu Mita
10711da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10721da177e4SLinus Torvalds	bool
10731da177e4SLinus Torvalds	default y
10741da177e4SLinus Torvalds
1075ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10761cc89038SAtsushi Nemoto	bool
10771cc89038SAtsushi Nemoto	default y
10781cc89038SAtsushi Nemoto
10791da177e4SLinus Torvalds#
10801da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10811da177e4SLinus Torvalds#
10820e2794b0SRalf Baechleconfig FW_ARC
10831da177e4SLinus Torvalds	bool
10841da177e4SLinus Torvalds
108561ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
108661ed242dSRalf Baechle	bool
108761ed242dSRalf Baechle
10889267a30dSMarc St-Jeanconfig BOOT_RAW
10899267a30dSMarc St-Jean	bool
10909267a30dSMarc St-Jean
1091217dd11eSRalf Baechleconfig CEVT_BCM1480
1092217dd11eSRalf Baechle	bool
1093217dd11eSRalf Baechle
10946457d9fcSYoichi Yuasaconfig CEVT_DS1287
10956457d9fcSYoichi Yuasa	bool
10966457d9fcSYoichi Yuasa
10971097c6acSYoichi Yuasaconfig CEVT_GT641XX
10981097c6acSYoichi Yuasa	bool
10991097c6acSYoichi Yuasa
110042f77542SRalf Baechleconfig CEVT_R4K
110142f77542SRalf Baechle	bool
110242f77542SRalf Baechle
1103217dd11eSRalf Baechleconfig CEVT_SB1250
1104217dd11eSRalf Baechle	bool
1105217dd11eSRalf Baechle
1106229f773eSAtsushi Nemotoconfig CEVT_TXX9
1107229f773eSAtsushi Nemoto	bool
1108229f773eSAtsushi Nemoto
1109217dd11eSRalf Baechleconfig CSRC_BCM1480
1110217dd11eSRalf Baechle	bool
1111217dd11eSRalf Baechle
11124247417dSYoichi Yuasaconfig CSRC_IOASIC
11134247417dSYoichi Yuasa	bool
11144247417dSYoichi Yuasa
1115940f6b48SRalf Baechleconfig CSRC_R4K
111638586428SSerge Semin	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1117940f6b48SRalf Baechle	bool
1118940f6b48SRalf Baechle
1119217dd11eSRalf Baechleconfig CSRC_SB1250
1120217dd11eSRalf Baechle	bool
1121217dd11eSRalf Baechle
1122a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1123a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1124a7f4df4eSAlex Smith
1125a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1126d30a2b47SLinus Walleij	select GPIOLIB
1127a9aec7feSAtsushi Nemoto	bool
1128a9aec7feSAtsushi Nemoto
11290e2794b0SRalf Baechleconfig FW_CFE
1130df78b5c8SAurelien Jarno	bool
1131df78b5c8SAurelien Jarno
113240e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
1133f5748b8cSTiezhu Yang	def_bool y
113440e084a5SRalf Baechle
11351da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11361da177e4SLinus Torvalds	bool
1137db91427bSChristoph Hellwig	#
1138db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1139db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1140db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1141db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1142db91427bSChristoph Hellwig	# significant advantages.
1143db91427bSChristoph Hellwig	#
11446be87d61SJiaxun Yang	select ARCH_HAS_SETUP_DMA_OPS
1145419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1146fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1147e0b7fd12SJiaxun Yang	select ARCH_HAS_SYNC_DMA_FOR_CPU
1148f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1149fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
115034dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
115134dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11524ce588cdSRalf Baechle
115336a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11541da177e4SLinus Torvalds	bool
11551da177e4SLinus Torvalds
11561b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1157dbb74540SRalf Baechle	bool
1158dbb74540SRalf Baechle
11591da177e4SLinus Torvaldsconfig MIPS_BONITO64
11601da177e4SLinus Torvalds	bool
11611da177e4SLinus Torvalds
11621da177e4SLinus Torvaldsconfig MIPS_MSC
11631da177e4SLinus Torvalds	bool
11641da177e4SLinus Torvalds
116539b8d525SRalf Baechleconfig SYNC_R4K
116639b8d525SRalf Baechle	bool
116739b8d525SRalf Baechle
1168ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1169d388d685SMaciej W. Rozycki	def_bool n
1170d388d685SMaciej W. Rozycki
11714e0748f5SMarkos Chandrasconfig GENERIC_CSUM
117218d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11734e0748f5SMarkos Chandras
11748313da30SRalf Baechleconfig GENERIC_ISA_DMA
11758313da30SRalf Baechle	bool
11768313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1177a35bee8aSNamhyung Kim	select ISA_DMA_API
11788313da30SRalf Baechle
1179aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1180aa414dffSRalf Baechle	bool
11818313da30SRalf Baechle	select GENERIC_ISA_DMA
1182aa414dffSRalf Baechle
118378bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
118478bdbbacSMasahiro Yamada	bool
118578bdbbacSMasahiro Yamada
118678bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
118778bdbbacSMasahiro Yamada	bool
118878bdbbacSMasahiro Yamada
118978bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
119078bdbbacSMasahiro Yamada	bool
119178bdbbacSMasahiro Yamada
1192a35bee8aSNamhyung Kimconfig ISA_DMA_API
1193a35bee8aSNamhyung Kim	bool
1194a35bee8aSNamhyung Kim
11958c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11968c530ea3SMatt Redfearn	bool
11978c530ea3SMatt Redfearn	help
11988c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11998c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
12008c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
12018c530ea3SMatt Redfearn
12025e83d430SRalf Baechle#
12036b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
12045e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
12055e83d430SRalf Baechle# choice statement should be more obvious to the user.
12065e83d430SRalf Baechle#
12075e83d430SRalf Baechlechoice
12086b2aac42SMasanari Iida	prompt "Endianness selection"
12091da177e4SLinus Torvalds	help
12101da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
12115e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
12123cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
12135e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
12143dde6ad8SDavid Sterba	  one or the other endianness.
12155e83d430SRalf Baechle
12165e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
12175e83d430SRalf Baechle	bool "Big endian"
12185e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
12195e83d430SRalf Baechle
12205e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
12215e83d430SRalf Baechle	bool "Little endian"
12225e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
12235e83d430SRalf Baechle
12245e83d430SRalf Baechleendchoice
12255e83d430SRalf Baechle
122622b0763aSDavid Daneyconfig EXPORT_UASM
122722b0763aSDavid Daney	bool
122822b0763aSDavid Daney
12292116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12302116245eSRalf Baechle	bool
12312116245eSRalf Baechle
12325e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12335e83d430SRalf Baechle	bool
12345e83d430SRalf Baechle
12355e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12365e83d430SRalf Baechle	bool
12371da177e4SLinus Torvalds
1238aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1239aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1240aa1762f4SDavid Daney
12418420fd00SAtsushi Nemotoconfig IRQ_TXX9
12428420fd00SAtsushi Nemoto	bool
12438420fd00SAtsushi Nemoto
1244d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1245d5ab1a69SYoichi Yuasa	bool
1246d5ab1a69SYoichi Yuasa
1247252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12481da177e4SLinus Torvalds	bool
12491da177e4SLinus Torvalds
1250a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1251a57140e9SThomas Bogendoerfer	bool
1252a57140e9SThomas Bogendoerfer
12539267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12549267a30dSMarc St-Jean	bool
12559267a30dSMarc St-Jean
1256a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1257a7e07b1aSMarkos Chandras	bool
1258a7e07b1aSMarkos Chandras
12591da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12601da177e4SLinus Torvalds	bool
12611da177e4SLinus Torvalds
1262e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1263e2defae5SThomas Bogendoerfer	bool
1264e2defae5SThomas Bogendoerfer
12655b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12665b438c44SThomas Bogendoerfer	bool
12675b438c44SThomas Bogendoerfer
1268e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1269e2defae5SThomas Bogendoerfer	bool
1270e2defae5SThomas Bogendoerfer
1271e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1272e2defae5SThomas Bogendoerfer	bool
1273e2defae5SThomas Bogendoerfer
1274e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1275e2defae5SThomas Bogendoerfer	bool
1276e2defae5SThomas Bogendoerfer
1277e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1278e2defae5SThomas Bogendoerfer	bool
1279e2defae5SThomas Bogendoerfer
1280e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1281e2defae5SThomas Bogendoerfer	bool
1282e2defae5SThomas Bogendoerfer
12830e2794b0SRalf Baechleconfig FW_ARC32
12845e83d430SRalf Baechle	bool
12855e83d430SRalf Baechle
1286aaa9fad3SPaul Bolleconfig FW_SNIPROM
1287231a35d3SThomas Bogendoerfer	bool
1288231a35d3SThomas Bogendoerfer
12891da177e4SLinus Torvaldsconfig BOOT_ELF32
12901da177e4SLinus Torvalds	bool
12911da177e4SLinus Torvalds
1292930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1293930beb5aSFlorian Fainelli	bool
1294930beb5aSFlorian Fainelli
1295930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1296930beb5aSFlorian Fainelli	bool
1297930beb5aSFlorian Fainelli
1298930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1299930beb5aSFlorian Fainelli	bool
1300930beb5aSFlorian Fainelli
1301930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1302930beb5aSFlorian Fainelli	bool
1303930beb5aSFlorian Fainelli
13041da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
13051da177e4SLinus Torvalds	int
1306a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
13075432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
13085432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
13095432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
13101da177e4SLinus Torvalds	default "5"
13111da177e4SLinus Torvalds
1312e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1313e9422427SThomas Bogendoerfer	bool
1314e9422427SThomas Bogendoerfer
13151da177e4SLinus Torvaldsconfig ARC_CONSOLE
13161da177e4SLinus Torvalds	bool "ARC console support"
1317e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
13181da177e4SLinus Torvalds
13191da177e4SLinus Torvaldsconfig ARC_MEMORY
13201da177e4SLinus Torvalds	bool
13211da177e4SLinus Torvalds
13221da177e4SLinus Torvaldsconfig ARC_PROMLIB
13231da177e4SLinus Torvalds	bool
13241da177e4SLinus Torvalds
13250e2794b0SRalf Baechleconfig FW_ARC64
13261da177e4SLinus Torvalds	bool
13271da177e4SLinus Torvalds
13281da177e4SLinus Torvaldsconfig BOOT_ELF64
13291da177e4SLinus Torvalds	bool
13301da177e4SLinus Torvalds
13311da177e4SLinus Torvaldsmenu "CPU selection"
13321da177e4SLinus Torvalds
13331da177e4SLinus Torvaldschoice
13341da177e4SLinus Torvalds	prompt "CPU type"
13351da177e4SLinus Torvalds	default CPU_R4X00
13361da177e4SLinus Torvalds
1337268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1338caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1339268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1340d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
134151522217SJiaxun Yang	select CPU_MIPSR2
134251522217SJiaxun Yang	select CPU_HAS_PREFETCH
13430e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13440e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13450e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13467507445bSHuacai Chen	select CPU_SUPPORTS_MSA
1347a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
134851522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
134951522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
1350edc0378eSJiaxun Yang	select DMA_NONCOHERENT
13510e476d91SHuacai Chen	select WEAK_ORDERING
13520e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13537507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1354b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
135517c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
13567f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1357d30a2b47SLinus Walleij	select GPIOLIB
135809230cbcSChristoph Hellwig	select SWIOTLB
13590e476d91SHuacai Chen	help
1360caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1361caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1362caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1363caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1364caed1d1bSHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
13650e476d91SHuacai Chen
13663702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13673702bba5SWu Zhangjin	bool "Loongson 2E"
13683702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1369268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13702a21c730SFuxin Zhang	help
13712a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13722a21c730SFuxin Zhang	  with many extensions.
13732a21c730SFuxin Zhang
137425985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13756f7a251aSWu Zhangjin	  bonito64.
13766f7a251aSWu Zhangjin
13776f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13786f7a251aSWu Zhangjin	bool "Loongson 2F"
13796f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1380268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13816f7a251aSWu Zhangjin	help
13826f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13836f7a251aSWu Zhangjin	  with many extensions.
13846f7a251aSWu Zhangjin
13856f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
13866f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
13876f7a251aSWu Zhangjin	  Loongson2E.
13886f7a251aSWu Zhangjin
1389ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1390ca585cf9SKelvin Cheung	bool "Loongson 1B"
1391ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1392b2afb64cSHuacai Chen	select CPU_LOONGSON32
13939ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1394ca585cf9SKelvin Cheung	help
1395ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1396968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1397968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
1398ca585cf9SKelvin Cheung
139912e3280bSYang Lingconfig CPU_LOONGSON1C
140012e3280bSYang Ling	bool "Loongson 1C"
140112e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
1402b2afb64cSHuacai Chen	select CPU_LOONGSON32
140312e3280bSYang Ling	select LEDS_GPIO_REGISTER
140412e3280bSYang Ling	help
140512e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1406968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1407968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
140812e3280bSYang Ling
14096e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14106e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14117cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14126e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1413797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1414ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14156e760c8dSRalf Baechle	help
14165e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14171e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14181e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14191e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14201e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14211e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14221e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14231e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14241e5f1caaSRalf Baechle	  performance.
14251e5f1caaSRalf Baechle
14261e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14271e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14287cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14291e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1430797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1431ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1432a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14331e5f1caaSRalf Baechle	help
14345e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14356e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14366e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14376e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14386e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14391da177e4SLinus Torvalds
1440ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1441ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1442ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1443ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1444ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1445ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1446ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1447a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1448ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1449ab7c01fdSSerge Semin	help
1450ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1451ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1452ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1453ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1454ab7c01fdSSerge Semin
14557fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1456674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14577fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14587fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
145918d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14607fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14617fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14627fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
1463a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
14647fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14657fd08ca5SLeonid Yegoshin	help
14667fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14677fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14687fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14697fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14707fd08ca5SLeonid Yegoshin
14716e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14726e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14737cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1474797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1475ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1476ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1477ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14789cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
14796e760c8dSRalf Baechle	help
14806e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14816e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14826e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14836e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14846e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14851e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14861e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14871e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14881e5f1caaSRalf Baechle	  performance.
14891e5f1caaSRalf Baechle
14901e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
14911e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
14927cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1493797798c1SRalf Baechle	select CPU_HAS_PREFETCH
14941e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
14951e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1496ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14979cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1498a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14991e5f1caaSRalf Baechle	help
15001e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
15011e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15021e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15031e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15041e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15051da177e4SLinus Torvalds
1506ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1507ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1508ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1509ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1510ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1511ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1512ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1513ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1514ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1515ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1516a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1517ab7c01fdSSerge Semin	help
1518ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1519ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1520ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1521ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1522ab7c01fdSSerge Semin
15237fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1524674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15257fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15267fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
152718d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15287fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15297fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15307fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1531afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15327fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15332e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1534a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
15357fd08ca5SLeonid Yegoshin	help
15367fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15377fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15387fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15397fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15407fd08ca5SLeonid Yegoshin
1541281e3aeaSSerge Seminconfig CPU_P5600
1542281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1543281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1544281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1545281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1546281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1547281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1548281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1549a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1550281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1551281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1552281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1553281e3aeaSSerge Semin	help
1554281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1555281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1556281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1557281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1558281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1559281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1560281e3aeaSSerge Semin	  eJTAG and PDtrace.
1561281e3aeaSSerge Semin
15621da177e4SLinus Torvaldsconfig CPU_R3000
15631da177e4SLinus Torvalds	bool "R3000"
15647cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1565f7062ddbSRalf Baechle	select CPU_HAS_WB
156654746829SPaul Burton	select CPU_R3K_TLB
1567ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1568797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15691da177e4SLinus Torvalds	help
15701da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15711da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15721da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15731da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15741da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15751da177e4SLinus Torvalds	  try to recompile with R3000.
15761da177e4SLinus Torvalds
157765ce6197SLauri Kasanenconfig CPU_R4300
157865ce6197SLauri Kasanen	bool "R4300"
157965ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
158065ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
158165ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
158265ce6197SLauri Kasanen	help
158365ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
158465ce6197SLauri Kasanen
15851da177e4SLinus Torvaldsconfig CPU_R4X00
15861da177e4SLinus Torvalds	bool "R4x00"
15877cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1588ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1589ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1590970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15911da177e4SLinus Torvalds	help
15921da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15931da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
15941da177e4SLinus Torvalds
15951da177e4SLinus Torvaldsconfig CPU_TX49XX
15961da177e4SLinus Torvalds	bool "R49XX"
15977cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1598de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1599ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1600ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1601970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16021da177e4SLinus Torvalds
16031da177e4SLinus Torvaldsconfig CPU_R5000
16041da177e4SLinus Torvalds	bool "R5000"
16057cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1606ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1607ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1608970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16091da177e4SLinus Torvalds	help
16101da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16111da177e4SLinus Torvalds
1612542c1020SShinya Kuribayashiconfig CPU_R5500
1613542c1020SShinya Kuribayashi	bool "R5500"
1614542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1615542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1616542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16179cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1618542c1020SShinya Kuribayashi	help
1619542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1620542c1020SShinya Kuribayashi	  instruction set.
1621542c1020SShinya Kuribayashi
16221da177e4SLinus Torvaldsconfig CPU_NEVADA
16231da177e4SLinus Torvalds	bool "RM52xx"
16247cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1625ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1626ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1627970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16281da177e4SLinus Torvalds	help
16291da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16301da177e4SLinus Torvalds
16311da177e4SLinus Torvaldsconfig CPU_R10000
16321da177e4SLinus Torvalds	bool "R10000"
16337cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16345e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1635ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1636ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1637797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1638970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16391da177e4SLinus Torvalds	help
16401da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16411da177e4SLinus Torvalds
16421da177e4SLinus Torvaldsconfig CPU_RM7000
16431da177e4SLinus Torvalds	bool "RM7000"
16447cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16455e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1646ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1647ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1648797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1649970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16501da177e4SLinus Torvalds
16511da177e4SLinus Torvaldsconfig CPU_SB1
16521da177e4SLinus Torvalds	bool "SB1"
16537cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1654ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1655ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1656797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1657970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16580004a9dfSRalf Baechle	select WEAK_ORDERING
16591da177e4SLinus Torvalds
1660a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1661a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16625e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1663a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1664a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1665ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_8KB if !MIPS_VA_BITS_48
1666ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_32KB if !MIPS_VA_BITS_48
1667a86c7f72SDavid Daney	select WEAK_ORDERING
1668a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16699cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1670df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1671df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1672930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
1673a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1674a86c7f72SDavid Daney	help
1675a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1676a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1677a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1678a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1679a86c7f72SDavid Daney
1680cd746249SJonas Gorskiconfig CPU_BMIPS
1681cd746249SJonas Gorski	bool "Broadcom BMIPS"
1682cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1683cd746249SJonas Gorski	select CPU_MIPS32
1684fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1685cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1686cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1687cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1688cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1689cd746249SJonas Gorski	select DMA_NONCOHERENT
169067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1691cd746249SJonas Gorski	select SWAP_IO_SPACE
1692cd746249SJonas Gorski	select WEAK_ORDERING
1693c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
169469aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1695a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1696a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1697bf8bde41SFlorian Fainelli	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1698c1c0c461SKevin Cernekee	help
1699fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1700c1c0c461SKevin Cernekee
17011da177e4SLinus Torvaldsendchoice
17021da177e4SLinus Torvalds
17035033ad56SMasahiro Yamadaconfig LOONGSON3_ENHANCEMENT
17045033ad56SMasahiro Yamada	bool "New Loongson-3 CPU Enhancements"
17055033ad56SMasahiro Yamada	default n
17065033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17075033ad56SMasahiro Yamada	help
17085033ad56SMasahiro Yamada	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
17095033ad56SMasahiro Yamada	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
17105033ad56SMasahiro Yamada	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
17115033ad56SMasahiro Yamada	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
17125033ad56SMasahiro Yamada	  Fast TLB refill support, etc.
17135033ad56SMasahiro Yamada
17145033ad56SMasahiro Yamada	  This option enable those enhancements which are not probed at run
17155033ad56SMasahiro Yamada	  time. If you want a generic kernel to run on all Loongson 3 machines,
17165033ad56SMasahiro Yamada	  please say 'N' here. If you want a high-performance kernel to run on
17175033ad56SMasahiro Yamada	  new Loongson-3 machines only, please say 'Y' here.
17185033ad56SMasahiro Yamada
17195033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_WORKAROUNDS
17205033ad56SMasahiro Yamada	bool "Loongson-3 LLSC Workarounds"
17215033ad56SMasahiro Yamada	default y if SMP
17225033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17235033ad56SMasahiro Yamada	help
17245033ad56SMasahiro Yamada	  Loongson-3 processors have the llsc issues which require workarounds.
17255033ad56SMasahiro Yamada	  Without workarounds the system may hang unexpectedly.
17265033ad56SMasahiro Yamada
17275033ad56SMasahiro Yamada	  Say Y, unless you know what you are doing.
17285033ad56SMasahiro Yamada
17295033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_CPUCFG_EMULATION
17305033ad56SMasahiro Yamada	bool "Emulate the CPUCFG instruction on older Loongson cores"
17315033ad56SMasahiro Yamada	default y
17325033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17335033ad56SMasahiro Yamada	help
17345033ad56SMasahiro Yamada	  Loongson-3A R4 and newer have the CPUCFG instruction available for
17355033ad56SMasahiro Yamada	  userland to query CPU capabilities, much like CPUID on x86. This
17365033ad56SMasahiro Yamada	  option provides emulation of the instruction on older Loongson
17375033ad56SMasahiro Yamada	  cores, back to Loongson-3A1000.
17385033ad56SMasahiro Yamada
17395033ad56SMasahiro Yamada	  If unsure, please say Y.
17405033ad56SMasahiro Yamada
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
18403702bba5SWu Zhangjin
1841b2afb64cSHuacai Chenconfig CPU_LOONGSON32
1842ca585cf9SKelvin Cheung	bool
1843ca585cf9SKelvin Cheung	select CPU_MIPS32
18447e280f6bSJiaxun Yang	select CPU_MIPSR2
1845ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1846ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1847ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1848f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1849ca585cf9SKelvin Cheung
1850fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
185104fa8bf7SJonas Gorski	select SMP_UP if SMP
18521bbb6c1bSKevin Cernekee	bool
1853cd746249SJonas Gorski
1854cd746249SJonas Gorskiconfig CPU_BMIPS4350
1855cd746249SJonas Gorski	bool
1856cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1857cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1858cd746249SJonas Gorski
1859cd746249SJonas Gorskiconfig CPU_BMIPS4380
1860cd746249SJonas Gorski	bool
1861bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1862cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1863cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1864b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1865cd746249SJonas Gorski
1866cd746249SJonas Gorskiconfig CPU_BMIPS5000
1867cd746249SJonas Gorski	bool
1868cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1869bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1870cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1871cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1872b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18731bbb6c1bSKevin Cernekee
1874268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
18750e476d91SHuacai Chen	bool
18760e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1877b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18780e476d91SHuacai Chen
18793702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18802a21c730SFuxin Zhang	bool
18812a21c730SFuxin Zhang
18826f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18836f7a251aSWu Zhangjin	bool
188455045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
188555045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18866f7a251aSWu Zhangjin
1887ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1888ca585cf9SKelvin Cheung	bool
1889ca585cf9SKelvin Cheung
189012e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
189112e3280bSYang Ling	bool
189212e3280bSYang Ling
18937cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18947cf8053bSRalf Baechle	bool
18957cf8053bSRalf Baechle
18967cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18977cf8053bSRalf Baechle	bool
18987cf8053bSRalf Baechle
1899a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1900a6e18781SLeonid Yegoshin	bool
1901a6e18781SLeonid Yegoshin
1902c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1903c5b36783SSteven J. Hill	bool
1904c5b36783SSteven J. Hill
19057fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
19067fd08ca5SLeonid Yegoshin	bool
19077fd08ca5SLeonid Yegoshin
19087cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
19097cf8053bSRalf Baechle	bool
19107cf8053bSRalf Baechle
19117cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
19127cf8053bSRalf Baechle	bool
19137cf8053bSRalf Baechle
1914fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1915fd4eb90bSLukas Bulwahn	bool
1916fd4eb90bSLukas Bulwahn
19177fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19187fd08ca5SLeonid Yegoshin	bool
19197fd08ca5SLeonid Yegoshin
1920281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1921281e3aeaSSerge Semin	bool
1922281e3aeaSSerge Semin
19237cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19247cf8053bSRalf Baechle	bool
19257cf8053bSRalf Baechle
192665ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
192765ce6197SLauri Kasanen	bool
192865ce6197SLauri Kasanen
19297cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19307cf8053bSRalf Baechle	bool
19317cf8053bSRalf Baechle
19327cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19337cf8053bSRalf Baechle	bool
19347cf8053bSRalf Baechle
19357cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19367cf8053bSRalf Baechle	bool
19377cf8053bSRalf Baechle
1938542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1939542c1020SShinya Kuribayashi	bool
1940542c1020SShinya Kuribayashi
19417cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19427cf8053bSRalf Baechle	bool
19437cf8053bSRalf Baechle
19447cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19457cf8053bSRalf Baechle	bool
19467cf8053bSRalf Baechle
19477cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19487cf8053bSRalf Baechle	bool
19497cf8053bSRalf Baechle
19507cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19517cf8053bSRalf Baechle	bool
19527cf8053bSRalf Baechle
19535e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19545e683389SDavid Daney	bool
19555e683389SDavid Daney
1956cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1957c1c0c461SKevin Cernekee	bool
1958c1c0c461SKevin Cernekee
1959fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1960c1c0c461SKevin Cernekee	bool
1961cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1962c1c0c461SKevin Cernekee
1963c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1964c1c0c461SKevin Cernekee	bool
1965cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1966c1c0c461SKevin Cernekee
1967c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1968c1c0c461SKevin Cernekee	bool
1969cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1970c1c0c461SKevin Cernekee
1971c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1972c1c0c461SKevin Cernekee	bool
1973cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1974c1c0c461SKevin Cernekee
197517099b11SRalf Baechle#
197617099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
197717099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
197817099b11SRalf Baechle#
19790004a9dfSRalf Baechleconfig WEAK_ORDERING
19800004a9dfSRalf Baechle	bool
198117099b11SRalf Baechle
198217099b11SRalf Baechle#
198317099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
198417099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
198517099b11SRalf Baechle#
198617099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
198717099b11SRalf Baechle	bool
19885e83d430SRalf Baechleendmenu
19895e83d430SRalf Baechle
19905e83d430SRalf Baechle#
19915e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19925e83d430SRalf Baechle#
19935e83d430SRalf Baechleconfig CPU_MIPS32
19945e83d430SRalf Baechle	bool
1995ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1996281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
19975e83d430SRalf Baechle
19985e83d430SRalf Baechleconfig CPU_MIPS64
19995e83d430SRalf Baechle	bool
2000ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
20015a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
20025e83d430SRalf Baechle
20035e83d430SRalf Baechle#
200457eeacedSPaul Burton# These indicate the revision of the architecture
20055e83d430SRalf Baechle#
20065e83d430SRalf Baechleconfig CPU_MIPSR1
20075e83d430SRalf Baechle	bool
20085e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
20095e83d430SRalf Baechle
20105e83d430SRalf Baechleconfig CPU_MIPSR2
20115e83d430SRalf Baechle	bool
2012a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20138256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2014ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2015a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20165e83d430SRalf Baechle
2017ab7c01fdSSerge Seminconfig CPU_MIPSR5
2018ab7c01fdSSerge Semin	bool
2019281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2020ab7c01fdSSerge Semin	select CPU_HAS_RIXI
2021ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2022ab7c01fdSSerge Semin	select MIPS_SPRAM
2023ab7c01fdSSerge Semin
20247fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20257fd08ca5SLeonid Yegoshin	bool
20267fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
2027289c270eSEric Biggers	select ARCH_HAS_CRC32
20288256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2029ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
203087321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20312db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
2032a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20335e83d430SRalf Baechle
203457eeacedSPaul Burtonconfig TARGET_ISA_REV
203557eeacedSPaul Burton	int
203657eeacedSPaul Burton	default 1 if CPU_MIPSR1
203757eeacedSPaul Burton	default 2 if CPU_MIPSR2
2038ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
203957eeacedSPaul Burton	default 6 if CPU_MIPSR6
204057eeacedSPaul Burton	default 0
204157eeacedSPaul Burton	help
204257eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
204357eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
204457eeacedSPaul Burton
2045a6e18781SLeonid Yegoshinconfig EVA
2046a6e18781SLeonid Yegoshin	bool
2047a6e18781SLeonid Yegoshin
2048c5b36783SSteven J. Hillconfig XPA
2049c5b36783SSteven J. Hill	bool
2050c5b36783SSteven J. Hill
20515e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20525e83d430SRalf Baechle	bool
20535e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20545e83d430SRalf Baechle	bool
20555e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20565e83d430SRalf Baechle	bool
20575e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20585e83d430SRalf Baechle	bool
205955045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
206055045ff5SWu Zhangjin	bool
206155045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
206255045ff5SWu Zhangjin	bool
20639cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20649cffd154SDavid Daney	bool
2065a670c82dSLukas Bulwahn	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
2066a6d54338SPaolo Bonziniconfig CPU_SUPPORTS_VZ
2067a6d54338SPaolo Bonzini	bool
206882622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
206982622284SDavid Daney	bool
2070c6972fb9SHuang Pei	depends on 64BIT
207195b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20725e83d430SRalf Baechle
20738192c9eaSDavid Daney#
20748192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20758192c9eaSDavid Daney#
20768192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20778192c9eaSDavid Daney	bool
2078679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20798192c9eaSDavid Daney
20805e83d430SRalf Baechlemenu "Kernel type"
20815e83d430SRalf Baechle
20825e83d430SRalf Baechlechoice
20835e83d430SRalf Baechle	prompt "Kernel code model"
20845e83d430SRalf Baechle	help
20855e83d430SRalf Baechle	  You should only select this option if you have a workload that
20865e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20875e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20885e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20895e83d430SRalf Baechle
20905e83d430SRalf Baechleconfig 32BIT
20915e83d430SRalf Baechle	bool "32-bit kernel"
20925e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20935e83d430SRalf Baechle	select TRAD_SIGNALS
20945e83d430SRalf Baechle	help
20955e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2096f17c4ca3SRalf Baechle
20975e83d430SRalf Baechleconfig 64BIT
20985e83d430SRalf Baechle	bool "64-bit kernel"
20995e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
21005e83d430SRalf Baechle	help
21015e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
21025e83d430SRalf Baechle
21035e83d430SRalf Baechleendchoice
21045e83d430SRalf Baechle
21051e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
21061e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
21071e321fa9SLeonid Yegoshin	depends on 64BIT
21081e321fa9SLeonid Yegoshin	help
21093377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
21103377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
21113377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
21123377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
21133377e227SAlex Belits	  level of page tables is added which imposes both a memory
21143377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21153377e227SAlex Belits
21161e321fa9SLeonid Yegoshin	  If unsure, say N.
21171e321fa9SLeonid Yegoshin
211879876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
211979876cc1SYunQiang Su	hex "Compressed kernel load address"
212079876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
212179876cc1SYunQiang Su	default 0x0
212279876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
212379876cc1SYunQiang Su	help
212479876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
212579876cc1SYunQiang Su
212679876cc1SYunQiang Su	  This is only used if non-zero.
212779876cc1SYunQiang Su
21280192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2129c9bace7cSDavid Daney	int "Maximum zone order"
213023baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
213123baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
213223baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
213323baf831SKirill A. Shutemov	default "10"
2134c9bace7cSDavid Daney	help
2135c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2136c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2137c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2138c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2139c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2140c9bace7cSDavid Daney	  increase this value.
2141c9bace7cSDavid Daney
2142c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2143c9bace7cSDavid Daney	  when choosing a value for this option.
2144c9bace7cSDavid Daney
21451da177e4SLinus Torvaldsconfig BOARD_SCACHE
21461da177e4SLinus Torvalds	bool
21471da177e4SLinus Torvalds
21481da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21491da177e4SLinus Torvalds	bool
21501da177e4SLinus Torvalds	select BOARD_SCACHE
21511da177e4SLinus Torvalds
21529318c51aSChris Dearman#
21539318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21549318c51aSChris Dearman#
21559318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21569318c51aSChris Dearman	bool
21579318c51aSChris Dearman	select BOARD_SCACHE
21589318c51aSChris Dearman
21591da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21601da177e4SLinus Torvalds	bool
21611da177e4SLinus Torvalds	select BOARD_SCACHE
21621da177e4SLinus Torvalds
21631da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21641da177e4SLinus Torvalds	bool
21651da177e4SLinus Torvalds	select BOARD_SCACHE
21661da177e4SLinus Torvalds
21671da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21681da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21691da177e4SLinus Torvalds	depends on CPU_SB1
21701da177e4SLinus Torvalds	help
21711da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21721da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21731da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21741da177e4SLinus Torvalds
21751da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2176c8094b53SRalf Baechle	bool
21771da177e4SLinus Torvalds
21783165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
21793165c846SFlorian Fainelli	bool
2180455481fcSThomas Bogendoerfer	default y if !CPU_R3000
21813165c846SFlorian Fainelli
2182c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2183183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2184183b40f9SPaul Burton	default y
2185183b40f9SPaul Burton	help
2186183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2187183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2188183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2189183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2190183b40f9SPaul Burton	  receive a SIGILL.
2191183b40f9SPaul Burton
2192183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2193183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2194183b40f9SPaul Burton
2195183b40f9SPaul Burton	  If unsure, say y.
2196c92e47e5SPaul Burton
219797f7dcbfSPaul Burtonconfig CPU_R2300_FPU
219897f7dcbfSPaul Burton	bool
2199c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2200455481fcSThomas Bogendoerfer	default y if CPU_R3000
220197f7dcbfSPaul Burton
220254746829SPaul Burtonconfig CPU_R3K_TLB
220354746829SPaul Burton	bool
220454746829SPaul Burton
220591405eb6SFlorian Fainelliconfig CPU_R4K_FPU
220691405eb6SFlorian Fainelli	bool
2207c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
220897f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
220991405eb6SFlorian Fainelli
221062cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
221162cedc4fSFlorian Fainelli	bool
221254746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
221362cedc4fSFlorian Fainelli
221459d6ab86SRalf Baechleconfig MIPS_MT_SMP
2215a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
22165cbf9688SPaul Burton	default y
221774efddadSJiaxun Yang	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
221874efddadSJiaxun Yang	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
221959d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2220d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2221c080faa5SSteven J. Hill	select SYNC_R4K
222259d6ab86SRalf Baechle	select MIPS_MT
222359d6ab86SRalf Baechle	select SMP
222487353d8aSRalf Baechle	select SMP_UP
2225c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2226c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2227399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
222859d6ab86SRalf Baechle	help
2229c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2230c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2231c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2232c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2233c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
223459d6ab86SRalf Baechle
2235f41ae0b2SRalf Baechleconfig MIPS_MT
2236f41ae0b2SRalf Baechle	bool
2237f41ae0b2SRalf Baechle
22380ab7aefcSRalf Baechleconfig SCHED_SMT
22390ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22400ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22410ab7aefcSRalf Baechle	default n
22420ab7aefcSRalf Baechle	help
22430ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
22440ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
22450ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
22460ab7aefcSRalf Baechle
22470ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
22480ab7aefcSRalf Baechle	bool
22490ab7aefcSRalf Baechle
2250f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2251f41ae0b2SRalf Baechle	bool
2252f41ae0b2SRalf Baechle
2253f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2254f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2255f088fc84SRalf Baechle	default y
2256b633648cSRalf Baechle	depends on MIPS_MT_SMP
225707cc0c9eSRalf Baechle
2258b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2259b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
22609eaa9a82SPaul Burton	depends on CPU_MIPSR6
2261c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2262b0a668fbSLeonid Yegoshin	default y
2263b0a668fbSLeonid Yegoshin	help
2264b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2265b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
226607edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2267b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2268b0a668fbSLeonid Yegoshin	  final kernel image.
2269b0a668fbSLeonid Yegoshin
2270f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2271f35764e7SJames Hogan	bool
2272f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2273f35764e7SJames Hogan	help
2274f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2275f35764e7SJames Hogan	  physical_memsize.
2276f35764e7SJames Hogan
227707cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
227807cc0c9eSRalf Baechle	bool "VPE loader support."
2279f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
228007cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
228107cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
228207cc0c9eSRalf Baechle	select MIPS_MT
228307cc0c9eSRalf Baechle	help
228407cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
228507cc0c9eSRalf Baechle	  onto another VPE and running it.
2286f088fc84SRalf Baechle
22871a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22881a2a6d7eSDeng-Cheng Zhu	bool
22891a2a6d7eSDeng-Cheng Zhu	default "y"
22907fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_LOADER
22911a2a6d7eSDeng-Cheng Zhu
2292e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2293e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2294e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2295e01402b1SRalf Baechle	default y
2296e01402b1SRalf Baechle	help
2297e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2298e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2299e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2300e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2301e01402b1SRalf Baechle
2302e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2303e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2304e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2305e01402b1SRalf Baechle
23062c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
23072c973ef0SDeng-Cheng Zhu	bool
23082c973ef0SDeng-Cheng Zhu	default "y"
23097fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_APSP_API
23105cac93b3SPaul Burton
23110ee958e1SPaul Burtonconfig MIPS_CPS
23120ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
23135a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
23140ee958e1SPaul Burton	select MIPS_CM
23151d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
23160ee958e1SPaul Burton	select SMP
231776c43eb5SGregory CLEMENT	select HOTPLUG_SMT if HOTPLUG_PARALLEL
2318c8d2bcc4SThomas Gleixner	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
23190ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
23201d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2321c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
23220ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
23230ee958e1SPaul Burton	select WEAK_ORDERING
2324d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
23250ee958e1SPaul Burton	help
23260ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
23270ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23280ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23290ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23300ee958e1SPaul Burton	  support is unavailable.
23310ee958e1SPaul Burton
23323179d37eSPaul Burtonconfig MIPS_CPS_PM
233339a59593SMarkos Chandras	depends on MIPS_CPS
23343179d37eSPaul Burton	bool
23353179d37eSPaul Burton
23369f98f3ddSPaul Burtonconfig MIPS_CM
23379f98f3ddSPaul Burton	bool
23383c9b4166SPaul Burton	select MIPS_CPC
23399f98f3ddSPaul Burton
23409c38cf44SPaul Burtonconfig MIPS_CPC
23419c38cf44SPaul Burton	bool
23424a16ff4cSRalf Baechle
23431da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23441da177e4SLinus Torvalds	bool
23451da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23461da177e4SLinus Torvalds	default y
23471da177e4SLinus Torvalds
23481da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23491da177e4SLinus Torvalds	bool
23501da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23511da177e4SLinus Torvalds	default y
23521da177e4SLinus Torvalds
23539e2b5372SMarkos Chandraschoice
23549e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23559e2b5372SMarkos Chandras
23569e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23579e2b5372SMarkos Chandras	bool "None"
23589e2b5372SMarkos Chandras	help
23599e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23609e2b5372SMarkos Chandras
23619693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23629693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
23639e2b5372SMarkos Chandras	bool "SmartMIPS"
23649693a853SFranck Bui-Huu	help
23659693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23669693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23679693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23689693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23699693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23709693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23719693a853SFranck Bui-Huu	  here.
23729693a853SFranck Bui-Huu
2373bce86083SSteven J. Hillconfig CPU_MICROMIPS
23747fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
23759e2b5372SMarkos Chandras	bool "microMIPS"
2376bce86083SSteven J. Hill	help
2377bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2378bce86083SSteven J. Hill	  microMIPS ISA
2379bce86083SSteven J. Hill
23809e2b5372SMarkos Chandrasendchoice
23819e2b5372SMarkos Chandras
2382a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
23830ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2384a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2385c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
23862a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2387a5e9a69eSPaul Burton	help
2388a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2389a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23901db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23911db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23921db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23931db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
23941db1af84SPaul Burton	  the size & complexity of your kernel.
2395a5e9a69eSPaul Burton
2396a5e9a69eSPaul Burton	  If unsure, say Y.
2397a5e9a69eSPaul Burton
23981da177e4SLinus Torvaldsconfig CPU_HAS_WB
2399f7062ddbSRalf Baechle	bool
2400e01402b1SRalf Baechle
2401df0ac8a4SKevin Cernekeeconfig XKS01
2402df0ac8a4SKevin Cernekee	bool
2403df0ac8a4SKevin Cernekee
2404ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2405ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2406ba9196d2SJiaxun Yang	bool
2407ba9196d2SJiaxun Yang
2408ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2409ba9196d2SJiaxun Yang	bool
2410ba9196d2SJiaxun Yang
24118256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
24128256b17eSFlorian Fainelli	bool
24138256b17eSFlorian Fainelli
241418d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2415932afdeeSYasha Cherikovsky	bool
2416932afdeeSYasha Cherikovsky	help
241718d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2418932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
241918d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
242018d84e2eSAlexander Lobakin	  systems).
2421932afdeeSYasha Cherikovsky
2422f41ae0b2SRalf Baechle#
2423f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2424f41ae0b2SRalf Baechle#
2425e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2426f41ae0b2SRalf Baechle	bool
2427e01402b1SRalf Baechle
2428f41ae0b2SRalf Baechle#
2429f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2430f41ae0b2SRalf Baechle#
2431e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2432f41ae0b2SRalf Baechle	bool
2433e01402b1SRalf Baechle
24341da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24351da177e4SLinus Torvalds	bool
24361da177e4SLinus Torvalds	depends on !CPU_R3000
24371da177e4SLinus Torvalds	default y
24381da177e4SLinus Torvalds
24391da177e4SLinus Torvalds#
244020d60d99SMaciej W. Rozycki# CPU non-features
244120d60d99SMaciej W. Rozycki#
2442b56d1cafSThomas Bogendoerfer
2443b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2444b56d1cafSThomas Bogendoerfer#
2445b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2446b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2447b56d1cafSThomas Bogendoerfer#   erratum #23
2448b56d1cafSThomas Bogendoerfer#
2449b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2450b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2451b56d1cafSThomas Bogendoerfer#   erratum #41
2452b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2453b56d1cafSThomas Bogendoerfer#   #15
2454b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2455b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
245620d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
245720d60d99SMaciej W. Rozycki	bool
245820d60d99SMaciej W. Rozycki
2459b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2460b56d1cafSThomas Bogendoerfer#
2461b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2462b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2463b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2464b56d1cafSThomas Bogendoerfer#   erratum #28
2465b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2466b56d1cafSThomas Bogendoerfer#   #19
2467b56d1cafSThomas Bogendoerfer#
2468b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2469b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2470b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2471b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2472b56d1cafSThomas Bogendoerfer#
2473b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2474b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2475b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2476b56d1cafSThomas Bogendoerfer#   erratum #52
247720d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
247820d60d99SMaciej W. Rozycki	bool
247920d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
248020d60d99SMaciej W. Rozycki
2481b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2482b56d1cafSThomas Bogendoerfer#
2483b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2484b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2485b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2486b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
248720d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
248820d60d99SMaciej W. Rozycki	bool
248920d60d99SMaciej W. Rozycki
2490071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2491071d2f0bSPaul Burton	bool
2492071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2493071d2f0bSPaul Burton
24944edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
24954edf00a4SPaul Burton	int
2496455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24974edf00a4SPaul Burton	default 0
24984edf00a4SPaul Burton
24994edf00a4SPaul Burtonconfig MIPS_ASID_BITS
25004edf00a4SPaul Burton	int
25012db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
2502455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
25034edf00a4SPaul Burton	default 8
25044edf00a4SPaul Burton
25052db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
25062db003a5SPaul Burton	bool
25072db003a5SPaul Burton
2508802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2509802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2510802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2511802b8362SThomas Bogendoerfer# with the issue.
2512802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2513802b8362SThomas Bogendoerfer	bool
2514802b8362SThomas Bogendoerfer
25155e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
25165e5b6527SThomas Bogendoerfer#
25175e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
25185e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
25195e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
252018ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
25215e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
25225e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
25235e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
25245e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
25255e5b6527SThomas Bogendoerfer#      instruction.
25265e5b6527SThomas Bogendoerfer#
25275e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25285e5b6527SThomas Bogendoerfer#                              nop
25295e5b6527SThomas Bogendoerfer#                              nop
25305e5b6527SThomas Bogendoerfer#                              nop
25315e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25325e5b6527SThomas Bogendoerfer#
25335e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25345e5b6527SThomas Bogendoerfer#                              nop
25355e5b6527SThomas Bogendoerfer#                              nop
25365e5b6527SThomas Bogendoerfer#                              nop
25375e5b6527SThomas Bogendoerfer#                              nop
25385e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25395e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25405e5b6527SThomas Bogendoerfer	bool
25415e5b6527SThomas Bogendoerfer
254244def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
254344def342SThomas Bogendoerfer#
254444def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
254544def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
254644def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
254744def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
254844def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
254944def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
255044def342SThomas Bogendoerfer# in .pdf format.)
255144def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
255244def342SThomas Bogendoerfer	bool
255344def342SThomas Bogendoerfer
255424a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
255524a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
255624a1c023SThomas Bogendoerfer# operation is not guaranteed."
255724a1c023SThomas Bogendoerfer#
255824a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
255924a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
256024a1c023SThomas Bogendoerfer	bool
256124a1c023SThomas Bogendoerfer
2562886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2563886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2564886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2565886ee136SThomas Bogendoerfer# exceptions.
2566886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2567886ee136SThomas Bogendoerfer	bool
2568886ee136SThomas Bogendoerfer
2569256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2570256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2571256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2572256ec489SThomas Bogendoerfer	bool
2573256ec489SThomas Bogendoerfer
2574a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2575a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2576a7fbed98SThomas Bogendoerfer	bool
2577a7fbed98SThomas Bogendoerfer
257820d60d99SMaciej W. Rozycki#
25791da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25801da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25811da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25821da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25831da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25841da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25851da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25861da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2587797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2588797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2589797798c1SRalf Baechle#   support.
25901da177e4SLinus Torvalds#
25911da177e4SLinus Torvaldsconfig HIGHMEM
25921da177e4SLinus Torvalds	bool "High Memory Support"
2593a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2594a4c33e83SThomas Gleixner	select KMAP_LOCAL
2595797798c1SRalf Baechle
2596797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2597797798c1SRalf Baechle	bool
2598797798c1SRalf Baechle
2599797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2600797798c1SRalf Baechle	bool
26011da177e4SLinus Torvalds
26029693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
26039693a853SFranck Bui-Huu	bool
26049693a853SFranck Bui-Huu
2605a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2606a6a4834cSSteven J. Hill	bool
2607a6a4834cSSteven J. Hill
2608377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2609377cb1b6SRalf Baechle	bool
2610377cb1b6SRalf Baechle	help
2611377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2612377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2613377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2614377cb1b6SRalf Baechle
2615a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2616a5e9a69eSPaul Burton	bool
2617a5e9a69eSPaul Burton
2618b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2619b4819b59SYoichi Yuasa	def_bool y
2620268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2621b4819b59SYoichi Yuasa
2622b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2623b1c6cd42SAtsushi Nemoto	bool
262431473747SAtsushi Nemoto
2625d8cb4e11SRalf Baechleconfig NUMA
2626d8cb4e11SRalf Baechle	bool "NUMA Support"
2627d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2628cf8194e4STiezhu Yang	select SMP
26297ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
26307ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2631d8cb4e11SRalf Baechle	help
2632d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2633d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2634d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2635172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2636d8cb4e11SRalf Baechle	  disabled.
2637d8cb4e11SRalf Baechle
2638d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2639d8cb4e11SRalf Baechle	bool
2640d8cb4e11SRalf Baechle
26418c530ea3SMatt Redfearnconfig RELOCATABLE
26428c530ea3SMatt Redfearn	bool "Relocatable kernel"
2643ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2644ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2645ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2646ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2647a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2648a307a4ceSJinyang He		   CPU_LOONGSON64
26499b400d17SArd Biesheuvel	select ARCH_VMLINUX_NEEDS_RELOCS
26508c530ea3SMatt Redfearn	help
26518c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26528c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26538c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26548c530ea3SMatt Redfearn	  but are discarded at runtime
26558c530ea3SMatt Redfearn
2656069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2657069fd766SMatt Redfearn	hex "Relocation table size"
2658069fd766SMatt Redfearn	depends on RELOCATABLE
2659069fd766SMatt Redfearn	range 0x0 0x01000000
2660a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2661069fd766SMatt Redfearn	default "0x00100000"
2662a7f7f624SMasahiro Yamada	help
2663069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2664069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2665069fd766SMatt Redfearn
2666069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2667069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2668069fd766SMatt Redfearn
2669069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2670069fd766SMatt Redfearn
2671069fd766SMatt Redfearn	  If unsure, leave at the default value.
2672069fd766SMatt Redfearn
2673405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2674405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2675405bc8fdSMatt Redfearn	depends on RELOCATABLE
2676a7f7f624SMasahiro Yamada	help
2677405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2678405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2679405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2680405bc8fdSMatt Redfearn	  of kernel internals.
2681405bc8fdSMatt Redfearn
2682405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2683405bc8fdSMatt Redfearn
2684405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2685405bc8fdSMatt Redfearn
2686405bc8fdSMatt Redfearn	  If unsure, say N.
2687405bc8fdSMatt Redfearn
2688405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2689405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2690405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2691405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2692405bc8fdSMatt Redfearn	range 0x0 0x08000000
2693405bc8fdSMatt Redfearn	default "0x01000000"
2694a7f7f624SMasahiro Yamada	help
2695405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2696405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2697405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2698405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2699405bc8fdSMatt Redfearn
2700405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2701405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2702405bc8fdSMatt Redfearn
2703c80d79d7SYasunori Gotoconfig NODES_SHIFT
2704c80d79d7SYasunori Goto	int
2705c80d79d7SYasunori Goto	default "6"
2706a9ee6cf5SMike Rapoport	depends on NUMA
2707c80d79d7SYasunori Goto
270814f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
270914f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
271095b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
271114f70012SDeng-Cheng Zhu	default y
271214f70012SDeng-Cheng Zhu	help
271314f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
271414f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
271514f70012SDeng-Cheng Zhu
2716be8fa1cbSTiezhu Yangconfig DMI
2717be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2718be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2719be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2720be8fa1cbSTiezhu Yang	default y
2721be8fa1cbSTiezhu Yang	help
2722be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2723be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2724be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2725be8fa1cbSTiezhu Yang	  BIOS code.
2726be8fa1cbSTiezhu Yang
27271da177e4SLinus Torvaldsconfig SMP
27281da177e4SLinus Torvalds	bool "Multi-Processing support"
2729e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2730e73ea273SRalf Baechle	help
27311da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27324a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27334a474157SRobert Graffham	  than one CPU, say Y.
27341da177e4SLinus Torvalds
27354a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27361da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27371da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27384a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27391da177e4SLinus Torvalds	  will run faster if you say N here.
27401da177e4SLinus Torvalds
27411da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27421da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27431da177e4SLinus Torvalds
274403502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2745ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27461da177e4SLinus Torvalds
27471da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27481da177e4SLinus Torvalds
27497840d618SMatt Redfearnconfig HOTPLUG_CPU
27507840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27517840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27527840d618SMatt Redfearn	help
27537840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27547840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27557840d618SMatt Redfearn	  (Note: power management support will enable this option
27567840d618SMatt Redfearn	    automatically on SMP systems. )
27577840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
27587840d618SMatt Redfearn
275987353d8aSRalf Baechleconfig SMP_UP
276087353d8aSRalf Baechle	bool
276187353d8aSRalf Baechle
27620ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27630ee958e1SPaul Burton	bool
27640ee958e1SPaul Burton
2765e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2766e73ea273SRalf Baechle	bool
2767e73ea273SRalf Baechle
2768130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2769130e2fb7SRalf Baechle	bool
2770130e2fb7SRalf Baechle
2771130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2772130e2fb7SRalf Baechle	bool
2773130e2fb7SRalf Baechle
2774130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2775130e2fb7SRalf Baechle	bool
2776130e2fb7SRalf Baechle
2777130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2778130e2fb7SRalf Baechle	bool
2779130e2fb7SRalf Baechle
2780130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2781130e2fb7SRalf Baechle	bool
2782130e2fb7SRalf Baechle
27831da177e4SLinus Torvaldsconfig NR_CPUS
2784a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2785a91796a9SJayachandran C	range 2 256
27861da177e4SLinus Torvalds	depends on SMP
2787130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2788130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2789130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2790130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2791130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27921da177e4SLinus Torvalds	help
27931da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27941da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27951da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
279672ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
279772ede9b1SAtsushi Nemoto	  and 2 for all others.
27981da177e4SLinus Torvalds
27991da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
280072ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
280172ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
280272ede9b1SAtsushi Nemoto	  power of two.
28031da177e4SLinus Torvalds
2804399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2805399aaa25SAl Cooper	bool
2806399aaa25SAl Cooper
28077820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
28087820b84bSDavid Daney	bool
28097820b84bSDavid Daney
28107820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
28117820b84bSDavid Daney	int
28127820b84bSDavid Daney	depends on SMP
28137820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
28147820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
28157820b84bSDavid Daney
28161723b4a3SAtsushi Nemoto#
28171723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
28181723b4a3SAtsushi Nemoto#
28191723b4a3SAtsushi Nemoto
28201723b4a3SAtsushi Nemotochoice
28211723b4a3SAtsushi Nemoto	prompt "Timer frequency"
28221723b4a3SAtsushi Nemoto	default HZ_250
28231723b4a3SAtsushi Nemoto	help
28241723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
28251723b4a3SAtsushi Nemoto
282667596573SPaul Burton	config HZ_24
282767596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
282867596573SPaul Burton
28291723b4a3SAtsushi Nemoto	config HZ_48
28300f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28311723b4a3SAtsushi Nemoto
28321723b4a3SAtsushi Nemoto	config HZ_100
28331723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28341723b4a3SAtsushi Nemoto
28351723b4a3SAtsushi Nemoto	config HZ_128
28361723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28371723b4a3SAtsushi Nemoto
28381723b4a3SAtsushi Nemoto	config HZ_250
28391723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28401723b4a3SAtsushi Nemoto
28411723b4a3SAtsushi Nemoto	config HZ_256
28421723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28431723b4a3SAtsushi Nemoto
28441723b4a3SAtsushi Nemoto	config HZ_1000
28451723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28461723b4a3SAtsushi Nemoto
28471723b4a3SAtsushi Nemoto	config HZ_1024
28481723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28491723b4a3SAtsushi Nemoto
28501723b4a3SAtsushi Nemotoendchoice
28511723b4a3SAtsushi Nemoto
285267596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
285367596573SPaul Burton	bool
285467596573SPaul Burton
28551723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28561723b4a3SAtsushi Nemoto	bool
28571723b4a3SAtsushi Nemoto
28581723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28591723b4a3SAtsushi Nemoto	bool
28601723b4a3SAtsushi Nemoto
28611723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28621723b4a3SAtsushi Nemoto	bool
28631723b4a3SAtsushi Nemoto
28641723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28651723b4a3SAtsushi Nemoto	bool
28661723b4a3SAtsushi Nemoto
28671723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28681723b4a3SAtsushi Nemoto	bool
28691723b4a3SAtsushi Nemoto
28701723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28711723b4a3SAtsushi Nemoto	bool
28721723b4a3SAtsushi Nemoto
28731723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28741723b4a3SAtsushi Nemoto	bool
28751723b4a3SAtsushi Nemoto
28761723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28771723b4a3SAtsushi Nemoto	bool
287867596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
287967596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
288067596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
288167596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
288267596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
288367596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
288467596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28851723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28861723b4a3SAtsushi Nemoto
28871723b4a3SAtsushi Nemotoconfig HZ
28881723b4a3SAtsushi Nemoto	int
288967596573SPaul Burton	default 24 if HZ_24
28901723b4a3SAtsushi Nemoto	default 48 if HZ_48
28911723b4a3SAtsushi Nemoto	default 100 if HZ_100
28921723b4a3SAtsushi Nemoto	default 128 if HZ_128
28931723b4a3SAtsushi Nemoto	default 250 if HZ_250
28941723b4a3SAtsushi Nemoto	default 256 if HZ_256
28951723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28961723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28971723b4a3SAtsushi Nemoto
289896685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
289996685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
290096685b17SDeng-Cheng Zhu
2901571feed5SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
2902571feed5SEric DeVolder	def_bool y
2903ea6e942bSAtsushi Nemoto
2904571feed5SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
2905571feed5SEric DeVolder	def_bool y
29067aa1c8f4SRalf Baechle
290731daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
290831daa343SDave Vasilevsky	def_bool y
290931daa343SDave Vasilevsky
29107aa1c8f4SRalf Baechleconfig PHYSICAL_START
29117aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
29128bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
29137aa1c8f4SRalf Baechle	depends on CRASH_DUMP
29147aa1c8f4SRalf Baechle	help
29157aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
29167aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
29177aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
29187aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
29197aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
29207aa1c8f4SRalf Baechle
2921597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2922b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2923597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2924597ce172SPaul Burton	help
2925597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2926597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2927597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2928597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2929597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2930597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2931597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2932597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2933597ce172SPaul Burton	  saying N here.
2934597ce172SPaul Burton
293506e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
293606e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
293718ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
293806e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
293906e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
294006e2e882SPaul Burton	  said details.
294106e2e882SPaul Burton
294206e2e882SPaul Burton	  If unsure, say N.
2943597ce172SPaul Burton
2944f2ffa5abSDezhong Diaoconfig USE_OF
29450b3e06fdSJonas Gorski	bool
2946f2ffa5abSDezhong Diao	select OF
2947e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2948abd2363fSGrant Likely	select IRQ_DOMAIN
2949f2ffa5abSDezhong Diao
29502fe8ea39SDengcheng Zhuconfig UHI_BOOT
29512fe8ea39SDengcheng Zhu	bool
29522fe8ea39SDengcheng Zhu
29537fafb068SAndrew Brestickerconfig BUILTIN_DTB
29547fafb068SAndrew Bresticker	bool
29557fafb068SAndrew Bresticker
29561da8f179SJonas Gorskichoice
2957b9d73218SMasahiro Yamada	prompt "Kernel appended dtb support"
2958b9d73218SMasahiro Yamada	depends on USE_OF
29591da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29601da8f179SJonas Gorski
29611da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29621da8f179SJonas Gorski		bool "None"
29631da8f179SJonas Gorski		help
29641da8f179SJonas Gorski		  Do not enable appended dtb support.
29651da8f179SJonas Gorski
296687db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
296787db537dSAaro Koskinen		bool "vmlinux"
296887db537dSAaro Koskinen		help
296987db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
297087db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
297187db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
297287db537dSAaro Koskinen		  objcopy:
297387db537dSAaro Koskinen
297487db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
297587db537dSAaro Koskinen
297618ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
297787db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
297887db537dSAaro Koskinen		  the documented boot protocol using a device tree.
297987db537dSAaro Koskinen
29801da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2981b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29821da8f179SJonas Gorski		help
29831da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2984b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29851da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29861da8f179SJonas Gorski
29871da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29881da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29891da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29901da8f179SJonas Gorski
29911da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29921da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29931da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29941da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29951da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29961da8f179SJonas Gorskiendchoice
29971da8f179SJonas Gorski
29982024972eSJonas Gorskichoice
2999b9d73218SMasahiro Yamada	prompt "Kernel command line type"
3000b9d73218SMasahiro Yamada	depends on !CMDLINE_OVERRIDE
30012bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
300287fcfa7bSJiaxun Yang					 !MACH_LOONGSON64 && !MIPS_MALTA && \
30032bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
30042024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
30052024972eSJonas Gorski
30062024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
30072024972eSJonas Gorski		depends on USE_OF
30082024972eSJonas Gorski		bool "Dtb kernel arguments if available"
30092024972eSJonas Gorski
30102024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
30112024972eSJonas Gorski		depends on USE_OF
30122024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
30132024972eSJonas Gorski
30142024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
30152024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
3016ed47e153SRabin Vincent
3017ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
3018ed47e153SRabin Vincent		depends on CMDLINE_BOOL
3019ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
30202024972eSJonas Gorskiendchoice
30212024972eSJonas Gorski
30225e83d430SRalf Baechleendmenu
30235e83d430SRalf Baechle
30241df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
30251df0f0ffSAtsushi Nemoto	bool
30261df0f0ffSAtsushi Nemoto	default y
30271df0f0ffSAtsushi Nemoto
30281df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
30291df0f0ffSAtsushi Nemoto	bool
30301df0f0ffSAtsushi Nemoto	default y
30311df0f0ffSAtsushi Nemoto
3032a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3033a728ab52SKirill A. Shutemov	int
30343377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
303541ce097fSHuang Pei	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3036a728ab52SKirill A. Shutemov	default 2
3037a728ab52SKirill A. Shutemov
30386c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30396c359eb1SPaul Burton	bool
30406c359eb1SPaul Burton
30411da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30421da177e4SLinus Torvalds
3043c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
30442eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3045c5611df9SPaul Burton	bool
3046c5611df9SPaul Burton
3047c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3048c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3049c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
30502eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
30511da177e4SLinus Torvalds
30521da177e4SLinus Torvalds#
30531da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30541da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30551da177e4SLinus Torvalds# users to choose the right thing ...
30561da177e4SLinus Torvalds#
30571da177e4SLinus Torvaldsconfig ISA
30581da177e4SLinus Torvalds	bool
30591da177e4SLinus Torvalds
30601da177e4SLinus Torvaldsconfig TC
30611da177e4SLinus Torvalds	bool "TURBOchannel support"
30621da177e4SLinus Torvalds	depends on MACH_DECSTATION
30631da177e4SLinus Torvalds	help
306450a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
306550a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
306650a23e6eSJustin P. Mattock	  at:
306750a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
306850a23e6eSJustin P. Mattock	  and:
306950a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
307050a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
307150a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30721da177e4SLinus Torvalds
30731da177e4SLinus Torvaldsconfig MMU
30741da177e4SLinus Torvalds	bool
30751da177e4SLinus Torvalds	default y
30761da177e4SLinus Torvalds
3077109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3078109c32ffSMatt Redfearn	default 12 if 64BIT
3079109c32ffSMatt Redfearn	default 8
3080109c32ffSMatt Redfearn
3081109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3082109c32ffSMatt Redfearn	default 18 if 64BIT
3083109c32ffSMatt Redfearn	default 15
3084109c32ffSMatt Redfearn
3085109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3086109c32ffSMatt Redfearn	default 8
3087109c32ffSMatt Redfearn
3088109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3089109c32ffSMatt Redfearn	default 15
3090109c32ffSMatt Redfearn
3091d865bea4SRalf Baechleconfig I8253
3092d865bea4SRalf Baechle	bool
3093798778b8SRussell King	select CLKSRC_I8253
30942d02612fSThomas Gleixner	select CLKEVT_I8253
30959726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
30961da177e4SLinus Torvaldsendmenu
30971da177e4SLinus Torvalds
30981da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30991da177e4SLinus Torvalds	bool
31001da177e4SLinus Torvalds
31011da177e4SLinus Torvaldsconfig MIPS32_COMPAT
310278aaf956SRalf Baechle	bool
31031da177e4SLinus Torvalds
31041da177e4SLinus Torvaldsconfig COMPAT
31051da177e4SLinus Torvalds	bool
31061da177e4SLinus Torvalds
31071da177e4SLinus Torvaldsconfig MIPS32_O32
31081da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
310978aaf956SRalf Baechle	depends on 64BIT
311078aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
311178aaf956SRalf Baechle	select COMPAT
311278aaf956SRalf Baechle	select MIPS32_COMPAT
31131da177e4SLinus Torvalds	help
31141da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
31151da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
31161da177e4SLinus Torvalds	  existing binaries are in this format.
31171da177e4SLinus Torvalds
31181da177e4SLinus Torvalds	  If unsure, say Y.
31191da177e4SLinus Torvalds
31201da177e4SLinus Torvaldsconfig MIPS32_N32
31211da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3122c22eacfeSRalf Baechle	depends on 64BIT
31235a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
312478aaf956SRalf Baechle	select COMPAT
312578aaf956SRalf Baechle	select MIPS32_COMPAT
31261da177e4SLinus Torvalds	help
31271da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31281da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31291da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31301da177e4SLinus Torvalds	  cases.
31311da177e4SLinus Torvalds
31321da177e4SLinus Torvalds	  If unsure, say N.
31331da177e4SLinus Torvalds
3134d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3135d49fc692SNathan Chancellor	def_bool y
3136d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
3137d49fc692SNathan Chancellor
31381a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31391a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31401a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31411a2c73f4SJiaxun Yang
31422116245eSRalf Baechlemenu "Power management options"
3143952fa954SRodolfo Giometti
3144363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3145363c55caSWu Zhangjin	def_bool y
31463f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3147363c55caSWu Zhangjin
3148f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3149f4cb5700SJohannes Berg	def_bool y
31503f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3151f4cb5700SJohannes Berg
31522116245eSRalf Baechlesource "kernel/power/Kconfig"
3153952fa954SRodolfo Giometti
31541da177e4SLinus Torvaldsendmenu
31551da177e4SLinus Torvalds
31567a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31577a998935SViresh Kumar	bool
31587a998935SViresh Kumar
31597a998935SViresh Kumarmenu "CPU Power Management"
3160c095ebafSPaul Burton
3161c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31627a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
316331f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31649726b43aSWu Zhangjin
3165c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3166c095ebafSPaul Burton
3167c095ebafSPaul Burtonendmenu
3168c095ebafSPaul Burton
31692235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3170e91946d6SNathan Chancellor
3171e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3172