xref: /linux/arch/mips/Kconfig (revision 2226d454db931455018521db13ab763d276952a7)
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
1134c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
1234c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1366633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1434c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
15e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
16e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1712597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
18918327e9SKees Cook	select ARCH_HAS_UBSAN
198b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
20c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
211ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2212597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
23dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2425da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
250b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
26855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
279035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2812597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
29d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
3010916706SShile Zhang	select BUILDTIME_TABLE_SORT
3112597988SMatt Redfearn	select CLONE_BACKWARDS
3257eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
33*2226d454SJiaxun Yang	select CPU_PM if CPU_IDLE || SUSPEND
3412597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3512597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
3612597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
3724640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
38b962aeb0SPaul Burton	select GENERIC_IOMAP
3912597988SMatt Redfearn	select GENERIC_IRQ_PROBE
4012597988SMatt Redfearn	select GENERIC_IRQ_SHOW
416630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
42740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
43740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
44740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
45740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
46740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
4712597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
4812597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
49975fd3c2SJiaxun Yang	select GENERIC_IDLE_POLL_SETUP
5012597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
516ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
52fcbfe812SNiklas Schnelle	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
53906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
5412597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
5542b20995SArnd Bergmann	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
56109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
57109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
58490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
59c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
6045e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
612ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
6224a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
63490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6464575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6512597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
6612597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
6712597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
6812597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
697364d60cSJiaxun Yang	select HAVE_EBPF_JIT if !CPU_MICROMIPS
7012597988SMatt Redfearn	select HAVE_EXIT_THREAD
7125176ad0SDavid Hildenbrand	select HAVE_GUP_FAST
7212597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
7329c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7412597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7534c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
7634c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
77b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
7812597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
7912597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
80c1bf207dSDavid Daney	select HAVE_KPROBES
81c1bf207dSDavid Daney	select HAVE_KRETPROBES
82c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
83786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8442a0bb3fSPetr Mladek	select HAVE_NMI
85ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB if !CPU_LOONGSON2EF && !CPU_LOONGSON64
86ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB if !CPU_R3000
87ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_64KB if !CPU_R3000
8812597988SMatt Redfearn	select HAVE_PERF_EVENTS
891ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
901ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
9108bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
929ea141adSPaul Burton	select HAVE_RSEQ
9316c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
94d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9512597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
96a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
9712597988SMatt Redfearn	select IRQ_FORCED_THREADING
986630a8e5SChristoph Hellwig	select ISA if EISA
994bce37a6SBen Hutchings	select LOCK_MM_AND_FIND_VMA
10012597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
10134c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
10212597988SMatt Redfearn	select PERF_USE_VMALLOC
103981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
10405a0a344SArnd Bergmann	select RTC_LIB
10512597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1064aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
1070bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
108e0a8b93eSNemanja Rakovic	select HAVE_ARCH_KCSAN if 64BIT
1091da177e4SLinus Torvalds
110d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
111d3991572SChristoph Hellwig	bool
112d3991572SChristoph Hellwig
113c434b9f8SPaul Cercueilconfig MIPS_GENERIC
114c434b9f8SPaul Cercueil	bool
115c434b9f8SPaul Cercueil
11680f2e4cdSGregory CLEMENTconfig MACH_GENERIC_CORE
11780f2e4cdSGregory CLEMENT	bool
11880f2e4cdSGregory CLEMENT
119f0f4a753SPaul Cercueilconfig MACH_INGENIC
120f0f4a753SPaul Cercueil	bool
121f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
122f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
123f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
124f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
125f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
126f0f4a753SPaul Cercueil	select PINCTRL
127f0f4a753SPaul Cercueil	select GPIOLIB
128f0f4a753SPaul Cercueil	select COMMON_CLK
129f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
130f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
131f0f4a753SPaul Cercueil	select USE_OF
132f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
133f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
134f0f4a753SPaul Cercueil
1351da177e4SLinus Torvaldsmenu "Machine selection"
1361da177e4SLinus Torvalds
1375e83d430SRalf Baechlechoice
1385e83d430SRalf Baechle	prompt "System type"
139c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1401da177e4SLinus Torvalds
141c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
142eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
143c434b9f8SPaul Cercueil	select MIPS_GENERIC
144eed0eabdSPaul Burton	select BOOT_RAW
145eed0eabdSPaul Burton	select BUILTIN_DTB
146eed0eabdSPaul Burton	select CEVT_R4K
147eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
148eed0eabdSPaul Burton	select COMMON_CLK
149eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
15034c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
151eed0eabdSPaul Burton	select CSRC_R4K
1524e066441SChristoph Hellwig	select DMA_NONCOHERENT
153eb01d42aSChristoph Hellwig	select HAVE_PCI
154eed0eabdSPaul Burton	select IRQ_MIPS_CPU
15580f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
1560211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
157eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
158eed0eabdSPaul Burton	select MIPS_GIC
159eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
160eed0eabdSPaul Burton	select NO_EXCEPT_FILL
161eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
162eed0eabdSPaul Burton	select SMP_UP if SMP
163a3078e59SMatt Redfearn	select SWAP_IO_SPACE
164eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
165eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
166fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R5
167eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
168eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
169eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
170fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R5
171eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
172eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
173eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
174eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
175eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
176eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
177eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
178eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
17934c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
180eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
181eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
182eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
183c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
18434c01e41SAlexander Lobakin	select UHI_BOOT
1852e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1862e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1872e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1882e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1892e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1902e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
191eed0eabdSPaul Burton	select USE_OF
192eed0eabdSPaul Burton	help
193eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
194eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
195eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
196eed0eabdSPaul Burton	  Interface) specification.
197eed0eabdSPaul Burton
19842a4f17dSManuel Laussconfig MIPS_ALCHEMY
199c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
200d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
201f772cdb2SRalf Baechle	select CEVT_R4K
202d7ea335cSSteven J. Hill	select CSRC_R4K
20367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
204a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
205d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
20642a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
20742a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
20842a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
209d30a2b47SLinus Walleij	select GPIOLIB
2101b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
21147440229SManuel Lauss	select COMMON_CLK
2121da177e4SLinus Torvalds
21343cc739fSSergey Ryazanovconfig ATH25
21443cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
21543cc739fSSergey Ryazanov	select CEVT_R4K
21643cc739fSSergey Ryazanov	select CSRC_R4K
21743cc739fSSergey Ryazanov	select DMA_NONCOHERENT
21867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2191753e74eSSergey Ryazanov	select IRQ_DOMAIN
22043cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
22143cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
22243cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2238aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
22443cc739fSSergey Ryazanov	help
22543cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
22643cc739fSSergey Ryazanov
227d4a67d9dSGabor Juhosconfig ATH79
228d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
229ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
230d4a67d9dSGabor Juhos	select BOOT_RAW
231d4a67d9dSGabor Juhos	select CEVT_R4K
232d4a67d9dSGabor Juhos	select CSRC_R4K
233d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
234d30a2b47SLinus Walleij	select GPIOLIB
235a08227a2SJohn Crispin	select PINCTRL
236411520afSAlban Bedel	select COMMON_CLK
23767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
238d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
239d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
240d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
241d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
242377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
243b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
24403c8c407SAlban Bedel	select USE_OF
24553d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
246d4a67d9dSGabor Juhos	help
247d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
248d4a67d9dSGabor Juhos
2495f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2505f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
25129906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
252d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
253d666cd02SKevin Cernekee	select BOOT_RAW
254d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
255d666cd02SKevin Cernekee	select USE_OF
256d666cd02SKevin Cernekee	select CEVT_R4K
257d666cd02SKevin Cernekee	select CSRC_R4K
258d666cd02SKevin Cernekee	select SYNC_R4K
259d666cd02SKevin Cernekee	select COMMON_CLK
260c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
26160b858f2SKevin Cernekee	select BCM7038_L1_IRQ
26260b858f2SKevin Cernekee	select BCM7120_L2_IRQ
26360b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
26467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
26560b858f2SKevin Cernekee	select DMA_NONCOHERENT
266d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
26760b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
268d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
269d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
27060b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
27160b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
27260b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
273d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
274d666cd02SKevin Cernekee	select SWAP_IO_SPACE
27560b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
27660b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
27760b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
27860b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2794dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
2801d987052SFlorian Fainelli	select HAVE_PCI
2811d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
282466ab2eaSFlorian Fainelli	select FW_CFE
283d666cd02SKevin Cernekee	help
2845f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2855f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2865f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2875f2d4459SKevin Cernekee	  must be set appropriately for your board.
288d666cd02SKevin Cernekee
2891c0c13ebSAurelien Jarnoconfig BCM47XX
290c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
291fe08f8c2SHauke Mehrtens	select BOOT_RAW
29242f77542SRalf Baechle	select CEVT_R4K
293940f6b48SRalf Baechle	select CSRC_R4K
2941c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
295eb01d42aSChristoph Hellwig	select HAVE_PCI
29667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
297314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
298dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
2991c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3001c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
301377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3026507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
30325e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
304e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
305c949c0bcSRafał Miłecki	select GPIOLIB
306c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
307f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3082ab71a02SRafał Miłecki	select BCM47XX_SPROM
309dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3101c0c13ebSAurelien Jarno	help
3111c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3121c0c13ebSAurelien Jarno
313e7300d04SMaxime Bizonconfig BCM63XX
314e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
315ae8de61cSFlorian Fainelli	select BOOT_RAW
316e7300d04SMaxime Bizon	select CEVT_R4K
317e7300d04SMaxime Bizon	select CSRC_R4K
318fc264022SJonas Gorski	select SYNC_R4K
319e7300d04SMaxime Bizon	select DMA_NONCOHERENT
32067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
321e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
322e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
323e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3245eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3255eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3265eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
327e7300d04SMaxime Bizon	select SWAP_IO_SPACE
328d30a2b47SLinus Walleij	select GPIOLIB
329af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
330bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
331e7300d04SMaxime Bizon	help
332e7300d04SMaxime Bizon	  Support for BCM63XX based boards
333e7300d04SMaxime Bizon
3341da177e4SLinus Torvaldsconfig MIPS_COBALT
3353fa986faSMartin Michlmayr	bool "Cobalt Server"
33642f77542SRalf Baechle	select CEVT_R4K
337940f6b48SRalf Baechle	select CSRC_R4K
3381097c6acSYoichi Yuasa	select CEVT_GT641XX
3391da177e4SLinus Torvalds	select DMA_NONCOHERENT
340eb01d42aSChristoph Hellwig	select FORCE_PCI
341d865bea4SRalf Baechle	select I8253
3421da177e4SLinus Torvalds	select I8259
34367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
344d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
345252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3467cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3470a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
348ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3490e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3505e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
351e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3521da177e4SLinus Torvalds
3531da177e4SLinus Torvaldsconfig MACH_DECSTATION
3543fa986faSMartin Michlmayr	bool "DECstations"
3551da177e4SLinus Torvalds	select BOOT_ELF32
3566457d9fcSYoichi Yuasa	select CEVT_DS1287
35781d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3584247417dSYoichi Yuasa	select CSRC_IOASIC
35981d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
36020d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
36120d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
36220d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3631da177e4SLinus Torvalds	select DMA_NONCOHERENT
364ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
36567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3667cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3677cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
368ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3697d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3705e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3711723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3721723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3731723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
374930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3755e83d430SRalf Baechle	help
3761da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3771da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3781da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3791da177e4SLinus Torvalds
3801da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3811da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3821da177e4SLinus Torvalds
3831da177e4SLinus Torvalds		DECstation 5000/50
3841da177e4SLinus Torvalds		DECstation 5000/150
3851da177e4SLinus Torvalds		DECstation 5000/260
3861da177e4SLinus Torvalds		DECsystem 5900/260
3871da177e4SLinus Torvalds
3881da177e4SLinus Torvalds	  otherwise choose R3000.
3891da177e4SLinus Torvalds
3905e83d430SRalf Baechleconfig MACH_JAZZ
3913fa986faSMartin Michlmayr	bool "Jazz family of machines"
39239b2d756SThomas Bogendoerfer	select ARC_MEMORY
39339b2d756SThomas Bogendoerfer	select ARC_PROMLIB
394a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
3957a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
3962f9237d4SChristoph Hellwig	select DMA_OPS
3970e2794b0SRalf Baechle	select FW_ARC
3980e2794b0SRalf Baechle	select FW_ARC32
3995e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
40042f77542SRalf Baechle	select CEVT_R4K
401940f6b48SRalf Baechle	select CSRC_R4K
402e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4035e83d430SRalf Baechle	select GENERIC_ISA_DMA
4048a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
40567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
406d865bea4SRalf Baechle	select I8253
4075e83d430SRalf Baechle	select I8259
4085e83d430SRalf Baechle	select ISA
4097cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4105e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4117d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4121723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
413aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4141da177e4SLinus Torvalds	help
4155e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4165e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
417692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4185e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4195e83d430SRalf Baechle
420f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
421de361e8bSPaul Burton	bool "Ingenic SoC based machines"
422f0f4a753SPaul Cercueil	select MIPS_GENERIC
423f0f4a753SPaul Cercueil	select MACH_INGENIC
42480f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
425f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
426eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
427eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4285ebabe59SLars-Peter Clausen
429171bb2f1SJohn Crispinconfig LANTIQ
430171bb2f1SJohn Crispin	bool "Lantiq based platforms"
431171bb2f1SJohn Crispin	select DMA_NONCOHERENT
43267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
433171bb2f1SJohn Crispin	select CEVT_R4K
434171bb2f1SJohn Crispin	select CSRC_R4K
435b74cc639SSander Vanheule	select NO_EXCEPT_FILL
436171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
437171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
438171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
439171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
440377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
441171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
442f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
443171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
444d30a2b47SLinus Walleij	select GPIOLIB
445171bb2f1SJohn Crispin	select SWAP_IO_SPACE
446171bb2f1SJohn Crispin	select BOOT_RAW
447bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
448a0392222SJohn Crispin	select USE_OF
4493f8c50c9SJohn Crispin	select PINCTRL
4503f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
451c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
452c530781cSJohn Crispin	select RESET_CONTROLLER
453171bb2f1SJohn Crispin
45430ad29bbSHuacai Chenconfig MACH_LOONGSON32
455caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
456c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
457ade299d8SYoichi Yuasa	help
45830ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
45985749d24SWu Zhangjin
46030ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
46130ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
46230ad29bbSHuacai Chen	  Sciences (CAS).
463ade299d8SYoichi Yuasa
46471e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
46571e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
466ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
467ca585cf9SKelvin Cheung	help
46871e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
469ca585cf9SKelvin Cheung
47071e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
471caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
472edc0378eSJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT
4736fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
4746fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
4756fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
4766fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
4776fbde6b4SJiaxun Yang	select BOOT_ELF32
4786fbde6b4SJiaxun Yang	select BOARD_SCACHE
4796fbde6b4SJiaxun Yang	select CSRC_R4K
4806fbde6b4SJiaxun Yang	select CEVT_R4K
4816fbde6b4SJiaxun Yang	select FORCE_PCI
4826fbde6b4SJiaxun Yang	select ISA
4836fbde6b4SJiaxun Yang	select I8259
4846fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
4857d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
4865125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
4876fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
4886423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
4896fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
4906fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
4916fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
4926fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
4936fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
4946fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
4956fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
4966fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
49771e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
498a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
4996fbde6b4SJiaxun Yang	select ZONE_DMA32
50087fcfa7bSJiaxun Yang	select COMMON_CLK
50187fcfa7bSJiaxun Yang	select USE_OF
50287fcfa7bSJiaxun Yang	select BUILTIN_DTB
50339c1485cSHuacai Chen	select PCI_HOST_GENERIC
504f8f9f21cSFeiyang Chen	select HAVE_ARCH_NODEDATA_EXTENSION if NUMA
50571e2f4ddSJiaxun Yang	help
506caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
507caed1d1bSHuacai Chen
508caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
509caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
510caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
511caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
512ca585cf9SKelvin Cheung
5131da177e4SLinus Torvaldsconfig MIPS_MALTA
5143fa986faSMartin Michlmayr	bool "MIPS Malta board"
51561ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
516a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5177a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5181da177e4SLinus Torvalds	select BOOT_ELF32
519fa71c960SRalf Baechle	select BOOT_RAW
520e8823d26SPaul Burton	select BUILTIN_DTB
52142f77542SRalf Baechle	select CEVT_R4K
522fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
52342b002abSGuenter Roeck	select COMMON_CLK
52447bf2b03SMaksym Kokhan	select CSRC_R4K
525a86497d6SChristoph Hellwig	select DMA_NONCOHERENT
5261da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5278a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
528eb01d42aSChristoph Hellwig	select HAVE_PCI
529d865bea4SRalf Baechle	select I8253
5301da177e4SLinus Torvalds	select I8259
53147bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5325e83d430SRalf Baechle	select MIPS_BONITO64
5339318c51aSChris Dearman	select MIPS_CPU_SCACHE
53447bf2b03SMaksym Kokhan	select MIPS_GIC
535a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5365e83d430SRalf Baechle	select MIPS_MSC
53747bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
538ecafe3e9SPaul Burton	select SMP_UP if SMP
5391da177e4SLinus Torvalds	select SWAP_IO_SPACE
5407cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5417cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
542bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
543c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
544575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5457cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5465d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
547575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5487cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5497cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
550ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
551ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5525e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
553c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5545e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
555424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
55647bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
557e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
558f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
55947bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
5609693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
561f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5621b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
563e8823d26SPaul Burton	select USE_OF
564886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
565abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
5661da177e4SLinus Torvalds	help
567f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5681da177e4SLinus Torvalds	  board.
5691da177e4SLinus Torvalds
5702572f00dSJoshua Hendersonconfig MACH_PIC32
5712572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5722572f00dSJoshua Henderson	help
5732572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5742572f00dSJoshua Henderson
5752572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5762572f00dSJoshua Henderson	  microcontrollers.
5772572f00dSJoshua Henderson
578fbe0fae6SGregory CLEMENTconfig EYEQ
579fbe0fae6SGregory CLEMENT	bool "Mobileye EyeQ SoC"
580101bd58fSGregory CLEMENT	select MACH_GENERIC_CORE
581101bd58fSGregory CLEMENT	select ARM_AMBA
582101bd58fSGregory CLEMENT	select PHYSICAL_START_BOOL
583101bd58fSGregory CLEMENT	select ARCH_SPARSEMEM_DEFAULT if 64BIT
584101bd58fSGregory CLEMENT	select BOOT_RAW
585101bd58fSGregory CLEMENT	select BUILTIN_DTB
586101bd58fSGregory CLEMENT	select CEVT_R4K
587101bd58fSGregory CLEMENT	select CLKSRC_MIPS_GIC
588101bd58fSGregory CLEMENT	select COMMON_CLK
589101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_EI
590101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_VI
591101bd58fSGregory CLEMENT	select CSRC_R4K
592101bd58fSGregory CLEMENT	select DMA_NONCOHERENT
593101bd58fSGregory CLEMENT	select HAVE_PCI
594101bd58fSGregory CLEMENT	select IRQ_MIPS_CPU
595101bd58fSGregory CLEMENT	select MIPS_AUTO_PFN_OFFSET
596101bd58fSGregory CLEMENT	select MIPS_CPU_SCACHE
597101bd58fSGregory CLEMENT	select MIPS_GIC
598101bd58fSGregory CLEMENT	select MIPS_L1_CACHE_SHIFT_7
599101bd58fSGregory CLEMENT	select PCI_DRIVERS_GENERIC
600101bd58fSGregory CLEMENT	select SMP_UP if SMP
601101bd58fSGregory CLEMENT	select SWAP_IO_SPACE
602101bd58fSGregory CLEMENT	select SYS_HAS_CPU_MIPS64_R6
603101bd58fSGregory CLEMENT	select SYS_SUPPORTS_64BIT_KERNEL
604101bd58fSGregory CLEMENT	select SYS_SUPPORTS_HIGHMEM
605101bd58fSGregory CLEMENT	select SYS_SUPPORTS_LITTLE_ENDIAN
606101bd58fSGregory CLEMENT	select SYS_SUPPORTS_MIPS_CPS
607101bd58fSGregory CLEMENT	select SYS_SUPPORTS_RELOCATABLE
608101bd58fSGregory CLEMENT	select SYS_SUPPORTS_ZBOOT
609101bd58fSGregory CLEMENT	select UHI_BOOT
610101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
611101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
612101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
613101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
614101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
615101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
616101bd58fSGregory CLEMENT	select USE_OF
617101bd58fSGregory CLEMENT	help
618fbe0fae6SGregory CLEMENT	  Select this to build a kernel supporting EyeQ SoC from Mobileye.
619101bd58fSGregory CLEMENT
620101bd58fSGregory CLEMENT	bool
621101bd58fSGregory CLEMENT
622baec970aSLauri Kasanenconfig MACH_NINTENDO64
623baec970aSLauri Kasanen	bool "Nintendo 64 console"
624baec970aSLauri Kasanen	select CEVT_R4K
625baec970aSLauri Kasanen	select CSRC_R4K
626baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
627baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
628baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
629baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
630baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
631baec970aSLauri Kasanen	select DMA_NONCOHERENT
632baec970aSLauri Kasanen	select IRQ_MIPS_CPU
633baec970aSLauri Kasanen
634ae2b5bb6SJohn Crispinconfig RALINK
635ae2b5bb6SJohn Crispin	bool "Ralink based machines"
636ae2b5bb6SJohn Crispin	select CEVT_R4K
63735f752beSArnd Bergmann	select COMMON_CLK
638ae2b5bb6SJohn Crispin	select CSRC_R4K
639ae2b5bb6SJohn Crispin	select BOOT_RAW
640ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
64167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
642ae2b5bb6SJohn Crispin	select USE_OF
643ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
644ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
645ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
646377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6471f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
648ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6492a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6502a153f1cSJohn Crispin	select RESET_CONTROLLER
651ae2b5bb6SJohn Crispin
6524042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6534042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6544042147aSBert Vermeulen	select MIPS_GENERIC
65580f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
6564042147aSBert Vermeulen	select DMA_NONCOHERENT
6574042147aSBert Vermeulen	select IRQ_MIPS_CPU
6584042147aSBert Vermeulen	select CSRC_R4K
6594042147aSBert Vermeulen	select CEVT_R4K
6604042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
6614042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
6624042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
6634042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
6644042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
6654042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
6664042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
6674042147aSBert Vermeulen	select BOOT_RAW
6684042147aSBert Vermeulen	select PINCTRL
6694042147aSBert Vermeulen	select USE_OF
6704042147aSBert Vermeulen
6711da177e4SLinus Torvaldsconfig SGI_IP22
6723fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
673c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
67439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
6750e2794b0SRalf Baechle	select FW_ARC
6760e2794b0SRalf Baechle	select FW_ARC32
6777a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
6781da177e4SLinus Torvalds	select BOOT_ELF32
67942f77542SRalf Baechle	select CEVT_R4K
680940f6b48SRalf Baechle	select CSRC_R4K
681e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
6821da177e4SLinus Torvalds	select DMA_NONCOHERENT
6836630a8e5SChristoph Hellwig	select HAVE_EISA
684d865bea4SRalf Baechle	select I8253
68568de4803SThomas Bogendoerfer	select I8259
6861da177e4SLinus Torvalds	select IP22_CPU_SCACHE
68767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
688aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
689e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
690e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
69136e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
692e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
693e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
694e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
6951da177e4SLinus Torvalds	select SWAP_IO_SPACE
6967cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
6977cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
698c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
699ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
700ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7015e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
702802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
7035e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
70444def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
705930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7061da177e4SLinus Torvalds	help
7071da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
7081da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
7091da177e4SLinus Torvalds	  that runs on these, say Y here.
7101da177e4SLinus Torvalds
7111da177e4SLinus Torvaldsconfig SGI_IP27
7123fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
71354aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
714397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
7150e2794b0SRalf Baechle	select FW_ARC
7160e2794b0SRalf Baechle	select FW_ARC64
717e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
7185e83d430SRalf Baechle	select BOOT_ELF64
719e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
72004100459SChristoph Hellwig	select FORCE_PCI
72136a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
722eb01d42aSChristoph Hellwig	select HAVE_PCI
72369a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
724e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
725130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
726a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
727a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7287cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
729ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7305e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
731d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
7321a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
733256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
734930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7356c86a302SMike Rapoport	select NUMA
736f8f9f21cSFeiyang Chen	select HAVE_ARCH_NODEDATA_EXTENSION
7371da177e4SLinus Torvalds	help
7381da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7391da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7401da177e4SLinus Torvalds	  here.
7411da177e4SLinus Torvalds
742e2defae5SThomas Bogendoerferconfig SGI_IP28
7437d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
744c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
74539b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7460e2794b0SRalf Baechle	select FW_ARC
7470e2794b0SRalf Baechle	select FW_ARC64
7487a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
749e2defae5SThomas Bogendoerfer	select BOOT_ELF64
750e2defae5SThomas Bogendoerfer	select CEVT_R4K
751e2defae5SThomas Bogendoerfer	select CSRC_R4K
752e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
753e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
754e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
75567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7566630a8e5SChristoph Hellwig	select HAVE_EISA
757e2defae5SThomas Bogendoerfer	select I8253
758e2defae5SThomas Bogendoerfer	select I8259
759e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
760e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
7615b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
762e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
763e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
764e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
765e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
766e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
767c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
768e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
769e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
770256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
771dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
772e2defae5SThomas Bogendoerfer	help
773e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
774e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
775e2defae5SThomas Bogendoerfer
7767505576dSThomas Bogendoerferconfig SGI_IP30
7777505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
7787505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
7797505576dSThomas Bogendoerfer	select FW_ARC
7807505576dSThomas Bogendoerfer	select FW_ARC64
7817505576dSThomas Bogendoerfer	select BOOT_ELF64
7827505576dSThomas Bogendoerfer	select CEVT_R4K
7837505576dSThomas Bogendoerfer	select CSRC_R4K
78404100459SChristoph Hellwig	select FORCE_PCI
7857505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
7867505576dSThomas Bogendoerfer	select ZONE_DMA32
7877505576dSThomas Bogendoerfer	select HAVE_PCI
7887505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
7897505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
7907505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7917505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7927505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
7937505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7947505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
7957505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
7967505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
797256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
7987505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
7997505576dSThomas Bogendoerfer	select ARC_MEMORY
8007505576dSThomas Bogendoerfer	help
8017505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
8027505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
8037505576dSThomas Bogendoerfer
8041da177e4SLinus Torvaldsconfig SGI_IP32
805cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
80639b2d756SThomas Bogendoerfer	select ARC_MEMORY
80739b2d756SThomas Bogendoerfer	select ARC_PROMLIB
80803df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
8090e2794b0SRalf Baechle	select FW_ARC
8100e2794b0SRalf Baechle	select FW_ARC32
8111da177e4SLinus Torvalds	select BOOT_ELF32
81242f77542SRalf Baechle	select CEVT_R4K
813940f6b48SRalf Baechle	select CSRC_R4K
8141da177e4SLinus Torvalds	select DMA_NONCOHERENT
815eb01d42aSChristoph Hellwig	select HAVE_PCI
81667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8171da177e4SLinus Torvalds	select R5000_CPU_SCACHE
8181da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
8197cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
8207cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
8217cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
822dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
823ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
8245e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
825886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
8261da177e4SLinus Torvalds	help
8271da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8281da177e4SLinus Torvalds
8295e83d430SRalf Baechleconfig SIBYTE_CRHONE
8303fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
8315e83d430SRalf Baechle	select BOOT_ELF32
8325e83d430SRalf Baechle	select SIBYTE_BCM1125
8335e83d430SRalf Baechle	select SWAP_IO_SPACE
8347cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8355e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8365e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8375e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8385e83d430SRalf Baechle
839ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
840ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
841ade299d8SYoichi Yuasa	select BOOT_ELF32
84203452347SThomas Bogendoerfer	select SIBYTE_SB1250
843ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
844ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
845ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
846ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
847ade299d8SYoichi Yuasa
848ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
849ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
850ade299d8SYoichi Yuasa	select BOOT_ELF32
851fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
852ade299d8SYoichi Yuasa	select SIBYTE_SB1250
853ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
854ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
855ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
856ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
857ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
858cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
859e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
860ade299d8SYoichi Yuasa
861ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
862ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
863ade299d8SYoichi Yuasa	select BOOT_ELF32
864fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
865ade299d8SYoichi Yuasa	select SIBYTE_SB1250
866ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
867ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
868ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
869ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
870ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
871756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
872ade299d8SYoichi Yuasa
873ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
874ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
875ade299d8SYoichi Yuasa	select BOOT_ELF32
876ade299d8SYoichi Yuasa	select SIBYTE_SB1250
877ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
878ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
879ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
880ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
881e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
882ade299d8SYoichi Yuasa
883ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
884ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
885ade299d8SYoichi Yuasa	select BOOT_ELF32
886ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
887ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
888ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
889ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
890ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
891651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
892ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
893cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
894e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
895ade299d8SYoichi Yuasa
89614b36af4SThomas Bogendoerferconfig SNI_RM
89714b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
89839b2d756SThomas Bogendoerfer	select ARC_MEMORY
89939b2d756SThomas Bogendoerfer	select ARC_PROMLIB
9000e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
9010e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
902aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
9035e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
904a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9057a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
9065e83d430SRalf Baechle	select BOOT_ELF32
90742f77542SRalf Baechle	select CEVT_R4K
908940f6b48SRalf Baechle	select CSRC_R4K
909e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9105e83d430SRalf Baechle	select DMA_NONCOHERENT
9115e83d430SRalf Baechle	select GENERIC_ISA_DMA
9126630a8e5SChristoph Hellwig	select HAVE_EISA
9138a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
914eb01d42aSChristoph Hellwig	select HAVE_PCI
91567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
916d865bea4SRalf Baechle	select I8253
9175e83d430SRalf Baechle	select I8259
9185e83d430SRalf Baechle	select ISA
919564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9204a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9217cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
9224a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
923c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
9244a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
92536a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
926ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
9277d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
9284a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
9295e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
9305e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
93144def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
9321da177e4SLinus Torvalds	help
93314b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
93414b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9355e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9365e83d430SRalf Baechle	  support this machine type.
9371da177e4SLinus Torvalds
938edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
939edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
94024a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
94123fbee9dSRalf Baechle
94273b4390fSRalf Baechleconfig MIKROTIK_RB532
94373b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
94473b4390fSRalf Baechle	select CEVT_R4K
94573b4390fSRalf Baechle	select CSRC_R4K
94673b4390fSRalf Baechle	select DMA_NONCOHERENT
947eb01d42aSChristoph Hellwig	select HAVE_PCI
94867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
94973b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
95073b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
95173b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
95273b4390fSRalf Baechle	select SWAP_IO_SPACE
95373b4390fSRalf Baechle	select BOOT_RAW
954d30a2b47SLinus Walleij	select GPIOLIB
955930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
95673b4390fSRalf Baechle	help
95773b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
95873b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
95973b4390fSRalf Baechle
9609ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9619ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
962a86c7f72SDavid Daney	select CEVT_R4K
963ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
9641753d50cSChristoph Hellwig	select HAVE_RAPIDIO
965d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
966a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
967a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
968f65aad41SRalf Baechle	select EDAC_SUPPORT
969b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
97073569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
97173569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
972a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
9735e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
974eb01d42aSChristoph Hellwig	select HAVE_PCI
97578bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
97678bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
97778bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
978f00e001eSDavid Daney	select ZONE_DMA32
979d30a2b47SLinus Walleij	select GPIOLIB
9806e511163SDavid Daney	select USE_OF
9816e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9826e511163SDavid Daney	select SYS_SUPPORTS_SMP
9837820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
9847820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
985e326479fSAndrew Bresticker	select BUILTIN_DTB
986f766b28aSJulian Braha	select MTD
9878c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
98809230cbcSChristoph Hellwig	select SWIOTLB
9893ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
990a86c7f72SDavid Daney	help
991a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
992a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
993a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
994a86c7f72SDavid Daney	  Some of the supported boards are:
995a86c7f72SDavid Daney		EBT3000
996a86c7f72SDavid Daney		EBH3000
997a86c7f72SDavid Daney		EBH3100
998a86c7f72SDavid Daney		Thunder
999a86c7f72SDavid Daney		Kodama
1000a86c7f72SDavid Daney		Hikari
1001a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
1002a86c7f72SDavid Daney
10031da177e4SLinus Torvaldsendchoice
10041da177e4SLinus Torvalds
10059a88b338SMasahiro Yamadaconfig FIT_IMAGE_FDT_EPM5
10069a88b338SMasahiro Yamada	bool "Include FDT for Mobileye EyeQ5 development platforms"
10079a88b338SMasahiro Yamada	depends on MACH_EYEQ5
10089a88b338SMasahiro Yamada	default n
10099a88b338SMasahiro Yamada	help
10109a88b338SMasahiro Yamada	  Enable this to include the FDT for the EyeQ5 development platforms
10119a88b338SMasahiro Yamada	  from Mobileye in the FIT kernel image.
10129a88b338SMasahiro Yamada	  This requires u-boot on the platform.
10139a88b338SMasahiro Yamada
1014e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10153b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1016d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1017a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1018e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10198945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
1020eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
1021a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
10225e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10238ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
1024fbe0fae6SGregory CLEMENTsource "arch/mips/mobileye/Kconfig"
10252572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1026ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
102729c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
102838b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
102922b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
1030a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
103171e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
103230ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
103330ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
103438b18f72SRalf Baechle
10355e83d430SRalf Baechleendmenu
10365e83d430SRalf Baechle
10373c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10383c9ee7efSAkinobu Mita	bool
10393c9ee7efSAkinobu Mita	default y
10403c9ee7efSAkinobu Mita
10411da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10421da177e4SLinus Torvalds	bool
10431da177e4SLinus Torvalds	default y
10441da177e4SLinus Torvalds
1045ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10461cc89038SAtsushi Nemoto	bool
10471cc89038SAtsushi Nemoto	default y
10481cc89038SAtsushi Nemoto
10491da177e4SLinus Torvalds#
10501da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10511da177e4SLinus Torvalds#
10520e2794b0SRalf Baechleconfig FW_ARC
10531da177e4SLinus Torvalds	bool
10541da177e4SLinus Torvalds
105561ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
105661ed242dSRalf Baechle	bool
105761ed242dSRalf Baechle
10589267a30dSMarc St-Jeanconfig BOOT_RAW
10599267a30dSMarc St-Jean	bool
10609267a30dSMarc St-Jean
1061217dd11eSRalf Baechleconfig CEVT_BCM1480
1062217dd11eSRalf Baechle	bool
1063217dd11eSRalf Baechle
10646457d9fcSYoichi Yuasaconfig CEVT_DS1287
10656457d9fcSYoichi Yuasa	bool
10666457d9fcSYoichi Yuasa
10671097c6acSYoichi Yuasaconfig CEVT_GT641XX
10681097c6acSYoichi Yuasa	bool
10691097c6acSYoichi Yuasa
107042f77542SRalf Baechleconfig CEVT_R4K
107142f77542SRalf Baechle	bool
107242f77542SRalf Baechle
1073217dd11eSRalf Baechleconfig CEVT_SB1250
1074217dd11eSRalf Baechle	bool
1075217dd11eSRalf Baechle
1076229f773eSAtsushi Nemotoconfig CEVT_TXX9
1077229f773eSAtsushi Nemoto	bool
1078229f773eSAtsushi Nemoto
1079217dd11eSRalf Baechleconfig CSRC_BCM1480
1080217dd11eSRalf Baechle	bool
1081217dd11eSRalf Baechle
10824247417dSYoichi Yuasaconfig CSRC_IOASIC
10834247417dSYoichi Yuasa	bool
10844247417dSYoichi Yuasa
1085940f6b48SRalf Baechleconfig CSRC_R4K
108638586428SSerge Semin	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1087940f6b48SRalf Baechle	bool
1088940f6b48SRalf Baechle
1089217dd11eSRalf Baechleconfig CSRC_SB1250
1090217dd11eSRalf Baechle	bool
1091217dd11eSRalf Baechle
1092a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1093a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1094a7f4df4eSAlex Smith
1095a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1096d30a2b47SLinus Walleij	select GPIOLIB
1097a9aec7feSAtsushi Nemoto	bool
1098a9aec7feSAtsushi Nemoto
10990e2794b0SRalf Baechleconfig FW_CFE
1100df78b5c8SAurelien Jarno	bool
1101df78b5c8SAurelien Jarno
110240e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
1103f5748b8cSTiezhu Yang	def_bool y
110440e084a5SRalf Baechle
11051da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11061da177e4SLinus Torvalds	bool
1107db91427bSChristoph Hellwig	#
1108db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1109db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1110db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1111db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1112db91427bSChristoph Hellwig	# significant advantages.
1113db91427bSChristoph Hellwig	#
11146be87d61SJiaxun Yang	select ARCH_HAS_SETUP_DMA_OPS
1115419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1116fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1117e0b7fd12SJiaxun Yang	select ARCH_HAS_SYNC_DMA_FOR_CPU
1118f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1119fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
112034dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
112134dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11224ce588cdSRalf Baechle
112336a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11241da177e4SLinus Torvalds	bool
11251da177e4SLinus Torvalds
11261b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1127dbb74540SRalf Baechle	bool
1128dbb74540SRalf Baechle
11291da177e4SLinus Torvaldsconfig MIPS_BONITO64
11301da177e4SLinus Torvalds	bool
11311da177e4SLinus Torvalds
11321da177e4SLinus Torvaldsconfig MIPS_MSC
11331da177e4SLinus Torvalds	bool
11341da177e4SLinus Torvalds
113539b8d525SRalf Baechleconfig SYNC_R4K
113639b8d525SRalf Baechle	bool
113739b8d525SRalf Baechle
1138ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1139d388d685SMaciej W. Rozycki	def_bool n
1140d388d685SMaciej W. Rozycki
11414e0748f5SMarkos Chandrasconfig GENERIC_CSUM
114218d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11434e0748f5SMarkos Chandras
11448313da30SRalf Baechleconfig GENERIC_ISA_DMA
11458313da30SRalf Baechle	bool
11468313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1147a35bee8aSNamhyung Kim	select ISA_DMA_API
11488313da30SRalf Baechle
1149aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1150aa414dffSRalf Baechle	bool
11518313da30SRalf Baechle	select GENERIC_ISA_DMA
1152aa414dffSRalf Baechle
115378bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
115478bdbbacSMasahiro Yamada	bool
115578bdbbacSMasahiro Yamada
115678bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
115778bdbbacSMasahiro Yamada	bool
115878bdbbacSMasahiro Yamada
115978bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
116078bdbbacSMasahiro Yamada	bool
116178bdbbacSMasahiro Yamada
1162a35bee8aSNamhyung Kimconfig ISA_DMA_API
1163a35bee8aSNamhyung Kim	bool
1164a35bee8aSNamhyung Kim
11658c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11668c530ea3SMatt Redfearn	bool
11678c530ea3SMatt Redfearn	help
11688c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11698c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11708c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
11718c530ea3SMatt Redfearn
11725e83d430SRalf Baechle#
11736b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
11745e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11755e83d430SRalf Baechle# choice statement should be more obvious to the user.
11765e83d430SRalf Baechle#
11775e83d430SRalf Baechlechoice
11786b2aac42SMasanari Iida	prompt "Endianness selection"
11791da177e4SLinus Torvalds	help
11801da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
11815e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
11823cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
11835e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
11843dde6ad8SDavid Sterba	  one or the other endianness.
11855e83d430SRalf Baechle
11865e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
11875e83d430SRalf Baechle	bool "Big endian"
11885e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
11895e83d430SRalf Baechle
11905e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
11915e83d430SRalf Baechle	bool "Little endian"
11925e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
11935e83d430SRalf Baechle
11945e83d430SRalf Baechleendchoice
11955e83d430SRalf Baechle
119622b0763aSDavid Daneyconfig EXPORT_UASM
119722b0763aSDavid Daney	bool
119822b0763aSDavid Daney
11992116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12002116245eSRalf Baechle	bool
12012116245eSRalf Baechle
12025e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12035e83d430SRalf Baechle	bool
12045e83d430SRalf Baechle
12055e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12065e83d430SRalf Baechle	bool
12071da177e4SLinus Torvalds
1208aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1209aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1210aa1762f4SDavid Daney
12118420fd00SAtsushi Nemotoconfig IRQ_TXX9
12128420fd00SAtsushi Nemoto	bool
12138420fd00SAtsushi Nemoto
1214d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1215d5ab1a69SYoichi Yuasa	bool
1216d5ab1a69SYoichi Yuasa
1217252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12181da177e4SLinus Torvalds	bool
12191da177e4SLinus Torvalds
1220a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1221a57140e9SThomas Bogendoerfer	bool
1222a57140e9SThomas Bogendoerfer
12239267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12249267a30dSMarc St-Jean	bool
12259267a30dSMarc St-Jean
1226a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1227a7e07b1aSMarkos Chandras	bool
1228a7e07b1aSMarkos Chandras
12291da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12301da177e4SLinus Torvalds	bool
12311da177e4SLinus Torvalds
1232e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1233e2defae5SThomas Bogendoerfer	bool
1234e2defae5SThomas Bogendoerfer
12355b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12365b438c44SThomas Bogendoerfer	bool
12375b438c44SThomas Bogendoerfer
1238e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1239e2defae5SThomas Bogendoerfer	bool
1240e2defae5SThomas Bogendoerfer
1241e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1242e2defae5SThomas Bogendoerfer	bool
1243e2defae5SThomas Bogendoerfer
1244e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1245e2defae5SThomas Bogendoerfer	bool
1246e2defae5SThomas Bogendoerfer
1247e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1248e2defae5SThomas Bogendoerfer	bool
1249e2defae5SThomas Bogendoerfer
1250e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1251e2defae5SThomas Bogendoerfer	bool
1252e2defae5SThomas Bogendoerfer
12530e2794b0SRalf Baechleconfig FW_ARC32
12545e83d430SRalf Baechle	bool
12555e83d430SRalf Baechle
1256aaa9fad3SPaul Bolleconfig FW_SNIPROM
1257231a35d3SThomas Bogendoerfer	bool
1258231a35d3SThomas Bogendoerfer
12591da177e4SLinus Torvaldsconfig BOOT_ELF32
12601da177e4SLinus Torvalds	bool
12611da177e4SLinus Torvalds
1262930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1263930beb5aSFlorian Fainelli	bool
1264930beb5aSFlorian Fainelli
1265930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1266930beb5aSFlorian Fainelli	bool
1267930beb5aSFlorian Fainelli
1268930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1269930beb5aSFlorian Fainelli	bool
1270930beb5aSFlorian Fainelli
1271930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1272930beb5aSFlorian Fainelli	bool
1273930beb5aSFlorian Fainelli
12741da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
12751da177e4SLinus Torvalds	int
1276a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
12775432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
12785432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
12795432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
12801da177e4SLinus Torvalds	default "5"
12811da177e4SLinus Torvalds
1282e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1283e9422427SThomas Bogendoerfer	bool
1284e9422427SThomas Bogendoerfer
12851da177e4SLinus Torvaldsconfig ARC_CONSOLE
12861da177e4SLinus Torvalds	bool "ARC console support"
1287e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
12881da177e4SLinus Torvalds
12891da177e4SLinus Torvaldsconfig ARC_MEMORY
12901da177e4SLinus Torvalds	bool
12911da177e4SLinus Torvalds
12921da177e4SLinus Torvaldsconfig ARC_PROMLIB
12931da177e4SLinus Torvalds	bool
12941da177e4SLinus Torvalds
12950e2794b0SRalf Baechleconfig FW_ARC64
12961da177e4SLinus Torvalds	bool
12971da177e4SLinus Torvalds
12981da177e4SLinus Torvaldsconfig BOOT_ELF64
12991da177e4SLinus Torvalds	bool
13001da177e4SLinus Torvalds
13011da177e4SLinus Torvaldsmenu "CPU selection"
13021da177e4SLinus Torvalds
13031da177e4SLinus Torvaldschoice
13041da177e4SLinus Torvalds	prompt "CPU type"
13051da177e4SLinus Torvalds	default CPU_R4X00
13061da177e4SLinus Torvalds
1307268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1308caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1309268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1310d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
131151522217SJiaxun Yang	select CPU_MIPSR2
131251522217SJiaxun Yang	select CPU_HAS_PREFETCH
13130e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13140e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13150e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13167507445bSHuacai Chen	select CPU_SUPPORTS_MSA
1317a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
131851522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
131951522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
1320edc0378eSJiaxun Yang	select DMA_NONCOHERENT
13210e476d91SHuacai Chen	select WEAK_ORDERING
13220e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13237507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1324b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
132517c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
13267f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1327d30a2b47SLinus Walleij	select GPIOLIB
132809230cbcSChristoph Hellwig	select SWIOTLB
13290e476d91SHuacai Chen	help
1330caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1331caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1332caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1333caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1334caed1d1bSHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
13350e476d91SHuacai Chen
13363702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13373702bba5SWu Zhangjin	bool "Loongson 2E"
13383702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1339268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13402a21c730SFuxin Zhang	help
13412a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13422a21c730SFuxin Zhang	  with many extensions.
13432a21c730SFuxin Zhang
134425985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13456f7a251aSWu Zhangjin	  bonito64.
13466f7a251aSWu Zhangjin
13476f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13486f7a251aSWu Zhangjin	bool "Loongson 2F"
13496f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1350268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13516f7a251aSWu Zhangjin	help
13526f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13536f7a251aSWu Zhangjin	  with many extensions.
13546f7a251aSWu Zhangjin
13556f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
13566f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
13576f7a251aSWu Zhangjin	  Loongson2E.
13586f7a251aSWu Zhangjin
1359ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1360ca585cf9SKelvin Cheung	bool "Loongson 1B"
1361ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1362b2afb64cSHuacai Chen	select CPU_LOONGSON32
13639ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1364ca585cf9SKelvin Cheung	help
1365ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1366968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1367968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
1368ca585cf9SKelvin Cheung
136912e3280bSYang Lingconfig CPU_LOONGSON1C
137012e3280bSYang Ling	bool "Loongson 1C"
137112e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
1372b2afb64cSHuacai Chen	select CPU_LOONGSON32
137312e3280bSYang Ling	select LEDS_GPIO_REGISTER
137412e3280bSYang Ling	help
137512e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1376968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1377968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
137812e3280bSYang Ling
13796e760c8dSRalf Baechleconfig CPU_MIPS32_R1
13806e760c8dSRalf Baechle	bool "MIPS32 Release 1"
13817cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
13826e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1383797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1384ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
13856e760c8dSRalf Baechle	help
13865e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
13871e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
13881e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
13891e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
13901e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
13911e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
13921e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
13931e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
13941e5f1caaSRalf Baechle	  performance.
13951e5f1caaSRalf Baechle
13961e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
13971e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
13987cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
13991e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1400797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1401ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1402a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14031e5f1caaSRalf Baechle	help
14045e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14056e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14066e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14076e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14086e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14091da177e4SLinus Torvalds
1410ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1411ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1412ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1413ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1414ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1415ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1416ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1417a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1418ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1419ab7c01fdSSerge Semin	help
1420ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1421ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1422ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1423ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1424ab7c01fdSSerge Semin
14257fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1426674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14277fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14287fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
142918d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14307fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14317fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14327fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
1433a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
14347fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14357fd08ca5SLeonid Yegoshin	help
14367fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14377fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14387fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14397fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14407fd08ca5SLeonid Yegoshin
14416e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14426e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14437cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1444797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1445ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1446ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1447ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14489cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
14496e760c8dSRalf Baechle	help
14506e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14516e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14526e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14536e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14546e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14551e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14561e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14571e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14581e5f1caaSRalf Baechle	  performance.
14591e5f1caaSRalf Baechle
14601e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
14611e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
14627cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1463797798c1SRalf Baechle	select CPU_HAS_PREFETCH
14641e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
14651e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1466ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14679cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1468a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14691e5f1caaSRalf Baechle	help
14701e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14711e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14721e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14731e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14741e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14751da177e4SLinus Torvalds
1476ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1477ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1478ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1479ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1480ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1481ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1482ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1483ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1484ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1485ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1486a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1487ab7c01fdSSerge Semin	help
1488ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1489ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1490ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1491ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1492ab7c01fdSSerge Semin
14937fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1494674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
14957fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
14967fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
149718d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14987fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14997fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15007fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1501afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15027fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15032e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1504a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
15057fd08ca5SLeonid Yegoshin	help
15067fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15077fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15087fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15097fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15107fd08ca5SLeonid Yegoshin
1511281e3aeaSSerge Seminconfig CPU_P5600
1512281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1513281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1514281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1515281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1516281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1517281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1518281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1519a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1520281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1521281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1522281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1523281e3aeaSSerge Semin	help
1524281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1525281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1526281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1527281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1528281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1529281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1530281e3aeaSSerge Semin	  eJTAG and PDtrace.
1531281e3aeaSSerge Semin
15321da177e4SLinus Torvaldsconfig CPU_R3000
15331da177e4SLinus Torvalds	bool "R3000"
15347cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1535f7062ddbSRalf Baechle	select CPU_HAS_WB
153654746829SPaul Burton	select CPU_R3K_TLB
1537ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1538797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15391da177e4SLinus Torvalds	help
15401da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15411da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15421da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15431da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15441da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15451da177e4SLinus Torvalds	  try to recompile with R3000.
15461da177e4SLinus Torvalds
154765ce6197SLauri Kasanenconfig CPU_R4300
154865ce6197SLauri Kasanen	bool "R4300"
154965ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
155065ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
155165ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
155265ce6197SLauri Kasanen	help
155365ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
155465ce6197SLauri Kasanen
15551da177e4SLinus Torvaldsconfig CPU_R4X00
15561da177e4SLinus Torvalds	bool "R4x00"
15577cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1558ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1559ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1560970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15611da177e4SLinus Torvalds	help
15621da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15631da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
15641da177e4SLinus Torvalds
15651da177e4SLinus Torvaldsconfig CPU_TX49XX
15661da177e4SLinus Torvalds	bool "R49XX"
15677cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1568de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1569ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1570ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1571970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15721da177e4SLinus Torvalds
15731da177e4SLinus Torvaldsconfig CPU_R5000
15741da177e4SLinus Torvalds	bool "R5000"
15757cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1576ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1577ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1578970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15791da177e4SLinus Torvalds	help
15801da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
15811da177e4SLinus Torvalds
1582542c1020SShinya Kuribayashiconfig CPU_R5500
1583542c1020SShinya Kuribayashi	bool "R5500"
1584542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1585542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1586542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
15879cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1588542c1020SShinya Kuribayashi	help
1589542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1590542c1020SShinya Kuribayashi	  instruction set.
1591542c1020SShinya Kuribayashi
15921da177e4SLinus Torvaldsconfig CPU_NEVADA
15931da177e4SLinus Torvalds	bool "RM52xx"
15947cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1595ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1596ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1597970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15981da177e4SLinus Torvalds	help
15991da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16001da177e4SLinus Torvalds
16011da177e4SLinus Torvaldsconfig CPU_R10000
16021da177e4SLinus Torvalds	bool "R10000"
16037cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16045e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1605ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1606ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1607797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1608970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16091da177e4SLinus Torvalds	help
16101da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16111da177e4SLinus Torvalds
16121da177e4SLinus Torvaldsconfig CPU_RM7000
16131da177e4SLinus Torvalds	bool "RM7000"
16147cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16155e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1616ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1617ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1618797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1619970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16201da177e4SLinus Torvalds
16211da177e4SLinus Torvaldsconfig CPU_SB1
16221da177e4SLinus Torvalds	bool "SB1"
16237cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1624ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1625ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1626797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1627970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16280004a9dfSRalf Baechle	select WEAK_ORDERING
16291da177e4SLinus Torvalds
1630a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1631a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16325e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1633a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1634a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1635ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_8KB if !MIPS_VA_BITS_48
1636ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_32KB if !MIPS_VA_BITS_48
1637a86c7f72SDavid Daney	select WEAK_ORDERING
1638a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16399cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1640df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1641df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1642930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
1643a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1644a86c7f72SDavid Daney	help
1645a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1646a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1647a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1648a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1649a86c7f72SDavid Daney
1650cd746249SJonas Gorskiconfig CPU_BMIPS
1651cd746249SJonas Gorski	bool "Broadcom BMIPS"
1652cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1653cd746249SJonas Gorski	select CPU_MIPS32
1654fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1655cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1656cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1657cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1658cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1659cd746249SJonas Gorski	select DMA_NONCOHERENT
166067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1661cd746249SJonas Gorski	select SWAP_IO_SPACE
1662cd746249SJonas Gorski	select WEAK_ORDERING
1663c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
166469aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1665a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1666a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1667bf8bde41SFlorian Fainelli	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1668c1c0c461SKevin Cernekee	help
1669fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1670c1c0c461SKevin Cernekee
16711da177e4SLinus Torvaldsendchoice
16721da177e4SLinus Torvalds
16735033ad56SMasahiro Yamadaconfig LOONGSON3_ENHANCEMENT
16745033ad56SMasahiro Yamada	bool "New Loongson-3 CPU Enhancements"
16755033ad56SMasahiro Yamada	default n
16765033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
16775033ad56SMasahiro Yamada	help
16785033ad56SMasahiro Yamada	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
16795033ad56SMasahiro Yamada	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
16805033ad56SMasahiro Yamada	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
16815033ad56SMasahiro Yamada	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
16825033ad56SMasahiro Yamada	  Fast TLB refill support, etc.
16835033ad56SMasahiro Yamada
16845033ad56SMasahiro Yamada	  This option enable those enhancements which are not probed at run
16855033ad56SMasahiro Yamada	  time. If you want a generic kernel to run on all Loongson 3 machines,
16865033ad56SMasahiro Yamada	  please say 'N' here. If you want a high-performance kernel to run on
16875033ad56SMasahiro Yamada	  new Loongson-3 machines only, please say 'Y' here.
16885033ad56SMasahiro Yamada
16895033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_WORKAROUNDS
16905033ad56SMasahiro Yamada	bool "Loongson-3 LLSC Workarounds"
16915033ad56SMasahiro Yamada	default y if SMP
16925033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
16935033ad56SMasahiro Yamada	help
16945033ad56SMasahiro Yamada	  Loongson-3 processors have the llsc issues which require workarounds.
16955033ad56SMasahiro Yamada	  Without workarounds the system may hang unexpectedly.
16965033ad56SMasahiro Yamada
16975033ad56SMasahiro Yamada	  Say Y, unless you know what you are doing.
16985033ad56SMasahiro Yamada
16995033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_CPUCFG_EMULATION
17005033ad56SMasahiro Yamada	bool "Emulate the CPUCFG instruction on older Loongson cores"
17015033ad56SMasahiro Yamada	default y
17025033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17035033ad56SMasahiro Yamada	help
17045033ad56SMasahiro Yamada	  Loongson-3A R4 and newer have the CPUCFG instruction available for
17055033ad56SMasahiro Yamada	  userland to query CPU capabilities, much like CPUID on x86. This
17065033ad56SMasahiro Yamada	  option provides emulation of the instruction on older Loongson
17075033ad56SMasahiro Yamada	  cores, back to Loongson-3A1000.
17085033ad56SMasahiro Yamada
17095033ad56SMasahiro Yamada	  If unsure, please say Y.
17105033ad56SMasahiro Yamada
1711a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1712a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1713a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1714281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1715281e3aeaSSerge Semin		   CPU_P5600
1716a6e18781SLeonid Yegoshin	help
1717a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1718a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1719a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1720a6e18781SLeonid Yegoshin
1721a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1722a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1723a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1724a6e18781SLeonid Yegoshin	select EVA
1725a6e18781SLeonid Yegoshin	default y
1726a6e18781SLeonid Yegoshin	help
1727a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1728a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1729a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1730a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1731a6e18781SLeonid Yegoshin
1732c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1733c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1734c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1735281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1736c5b36783SSteven J. Hill	help
1737c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1738c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1739c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1740c5b36783SSteven J. Hill
1741c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1742c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1743c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1744c5b36783SSteven J. Hill	depends on !EVA
1745c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1746c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1747c5b36783SSteven J. Hill	select XPA
1748c5b36783SSteven J. Hill	select HIGHMEM
1749d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1750c5b36783SSteven J. Hill	default n
1751c5b36783SSteven J. Hill	help
1752c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1753c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1754c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1755c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1756c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1757c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1758c5b36783SSteven J. Hill
1759622844bfSWu Zhangjinif CPU_LOONGSON2F
1760622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1761622844bfSWu Zhangjin	bool
1762622844bfSWu Zhangjin
1763622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1764622844bfSWu Zhangjin	bool
1765622844bfSWu Zhangjin
1766622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1767622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1768622844bfSWu Zhangjin	default y
1769622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1770622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1771622844bfSWu Zhangjin	help
1772622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1773622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1774622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1775622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1776622844bfSWu Zhangjin
1777622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1778622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1779622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1780622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1781622844bfSWu Zhangjin	  systems.
1782622844bfSWu Zhangjin
1783622844bfSWu Zhangjin	  If unsure, please say Y.
1784622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1785622844bfSWu Zhangjin
17861b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
17871b93b3c3SWu Zhangjin	bool
17881b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
17891b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
179031c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
17911b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1792fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
17934e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1794a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
17951b93b3c3SWu Zhangjin
17961b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
17971b93b3c3SWu Zhangjin	bool
17981b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
17991b93b3c3SWu Zhangjin
1800dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1801dbb98314SAlban Bedel	bool
1802dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1803dbb98314SAlban Bedel
1804268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
18053702bba5SWu Zhangjin	bool
18063702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18073702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18083702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1809970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
18103702bba5SWu Zhangjin
1811b2afb64cSHuacai Chenconfig CPU_LOONGSON32
1812ca585cf9SKelvin Cheung	bool
1813ca585cf9SKelvin Cheung	select CPU_MIPS32
18147e280f6bSJiaxun Yang	select CPU_MIPSR2
1815ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1816ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1817ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1818f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1819ca585cf9SKelvin Cheung
1820fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
182104fa8bf7SJonas Gorski	select SMP_UP if SMP
18221bbb6c1bSKevin Cernekee	bool
1823cd746249SJonas Gorski
1824cd746249SJonas Gorskiconfig CPU_BMIPS4350
1825cd746249SJonas Gorski	bool
1826cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1827cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1828cd746249SJonas Gorski
1829cd746249SJonas Gorskiconfig CPU_BMIPS4380
1830cd746249SJonas Gorski	bool
1831bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1832cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1833cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1834b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1835cd746249SJonas Gorski
1836cd746249SJonas Gorskiconfig CPU_BMIPS5000
1837cd746249SJonas Gorski	bool
1838cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1839bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1840cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1841cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1842b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18431bbb6c1bSKevin Cernekee
1844268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
18450e476d91SHuacai Chen	bool
18460e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1847b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18480e476d91SHuacai Chen
18493702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18502a21c730SFuxin Zhang	bool
18512a21c730SFuxin Zhang
18526f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18536f7a251aSWu Zhangjin	bool
185455045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
185555045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18566f7a251aSWu Zhangjin
1857ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1858ca585cf9SKelvin Cheung	bool
1859ca585cf9SKelvin Cheung
186012e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
186112e3280bSYang Ling	bool
186212e3280bSYang Ling
18637cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18647cf8053bSRalf Baechle	bool
18657cf8053bSRalf Baechle
18667cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18677cf8053bSRalf Baechle	bool
18687cf8053bSRalf Baechle
1869a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1870a6e18781SLeonid Yegoshin	bool
1871a6e18781SLeonid Yegoshin
1872c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1873c5b36783SSteven J. Hill	bool
1874c5b36783SSteven J. Hill
18757fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
18767fd08ca5SLeonid Yegoshin	bool
18777fd08ca5SLeonid Yegoshin
18787cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
18797cf8053bSRalf Baechle	bool
18807cf8053bSRalf Baechle
18817cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
18827cf8053bSRalf Baechle	bool
18837cf8053bSRalf Baechle
1884fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1885fd4eb90bSLukas Bulwahn	bool
1886fd4eb90bSLukas Bulwahn
18877fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
18887fd08ca5SLeonid Yegoshin	bool
18897fd08ca5SLeonid Yegoshin
1890281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1891281e3aeaSSerge Semin	bool
1892281e3aeaSSerge Semin
18937cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
18947cf8053bSRalf Baechle	bool
18957cf8053bSRalf Baechle
189665ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
189765ce6197SLauri Kasanen	bool
189865ce6197SLauri Kasanen
18997cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19007cf8053bSRalf Baechle	bool
19017cf8053bSRalf Baechle
19027cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19037cf8053bSRalf Baechle	bool
19047cf8053bSRalf Baechle
19057cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19067cf8053bSRalf Baechle	bool
19077cf8053bSRalf Baechle
1908542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1909542c1020SShinya Kuribayashi	bool
1910542c1020SShinya Kuribayashi
19117cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19127cf8053bSRalf Baechle	bool
19137cf8053bSRalf Baechle
19147cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19157cf8053bSRalf Baechle	bool
19167cf8053bSRalf Baechle
19177cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19187cf8053bSRalf Baechle	bool
19197cf8053bSRalf Baechle
19207cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19217cf8053bSRalf Baechle	bool
19227cf8053bSRalf Baechle
19235e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19245e683389SDavid Daney	bool
19255e683389SDavid Daney
1926cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1927c1c0c461SKevin Cernekee	bool
1928c1c0c461SKevin Cernekee
1929fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1930c1c0c461SKevin Cernekee	bool
1931cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1932c1c0c461SKevin Cernekee
1933c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1934c1c0c461SKevin Cernekee	bool
1935cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1936c1c0c461SKevin Cernekee
1937c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1938c1c0c461SKevin Cernekee	bool
1939cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1940c1c0c461SKevin Cernekee
1941c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1942c1c0c461SKevin Cernekee	bool
1943cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1944c1c0c461SKevin Cernekee
194517099b11SRalf Baechle#
194617099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
194717099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
194817099b11SRalf Baechle#
19490004a9dfSRalf Baechleconfig WEAK_ORDERING
19500004a9dfSRalf Baechle	bool
195117099b11SRalf Baechle
195217099b11SRalf Baechle#
195317099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
195417099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
195517099b11SRalf Baechle#
195617099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
195717099b11SRalf Baechle	bool
19585e83d430SRalf Baechleendmenu
19595e83d430SRalf Baechle
19605e83d430SRalf Baechle#
19615e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19625e83d430SRalf Baechle#
19635e83d430SRalf Baechleconfig CPU_MIPS32
19645e83d430SRalf Baechle	bool
1965ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1966281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
19675e83d430SRalf Baechle
19685e83d430SRalf Baechleconfig CPU_MIPS64
19695e83d430SRalf Baechle	bool
1970ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
19715a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
19725e83d430SRalf Baechle
19735e83d430SRalf Baechle#
197457eeacedSPaul Burton# These indicate the revision of the architecture
19755e83d430SRalf Baechle#
19765e83d430SRalf Baechleconfig CPU_MIPSR1
19775e83d430SRalf Baechle	bool
19785e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
19795e83d430SRalf Baechle
19805e83d430SRalf Baechleconfig CPU_MIPSR2
19815e83d430SRalf Baechle	bool
1982a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
19838256b17eSFlorian Fainelli	select CPU_HAS_RIXI
1984ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1985a7e07b1aSMarkos Chandras	select MIPS_SPRAM
19865e83d430SRalf Baechle
1987ab7c01fdSSerge Seminconfig CPU_MIPSR5
1988ab7c01fdSSerge Semin	bool
1989281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
1990ab7c01fdSSerge Semin	select CPU_HAS_RIXI
1991ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1992ab7c01fdSSerge Semin	select MIPS_SPRAM
1993ab7c01fdSSerge Semin
19947fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
19957fd08ca5SLeonid Yegoshin	bool
19967fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
19978256b17eSFlorian Fainelli	select CPU_HAS_RIXI
1998ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
199987321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20002db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
20014a5dc51eSMarcin Nowakowski	select MIPS_CRC_SUPPORT
2002a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20035e83d430SRalf Baechle
200457eeacedSPaul Burtonconfig TARGET_ISA_REV
200557eeacedSPaul Burton	int
200657eeacedSPaul Burton	default 1 if CPU_MIPSR1
200757eeacedSPaul Burton	default 2 if CPU_MIPSR2
2008ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
200957eeacedSPaul Burton	default 6 if CPU_MIPSR6
201057eeacedSPaul Burton	default 0
201157eeacedSPaul Burton	help
201257eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
201357eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
201457eeacedSPaul Burton
2015a6e18781SLeonid Yegoshinconfig EVA
2016a6e18781SLeonid Yegoshin	bool
2017a6e18781SLeonid Yegoshin
2018c5b36783SSteven J. Hillconfig XPA
2019c5b36783SSteven J. Hill	bool
2020c5b36783SSteven J. Hill
20215e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20225e83d430SRalf Baechle	bool
20235e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20245e83d430SRalf Baechle	bool
20255e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20265e83d430SRalf Baechle	bool
20275e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20285e83d430SRalf Baechle	bool
202955045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
203055045ff5SWu Zhangjin	bool
203155045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
203255045ff5SWu Zhangjin	bool
20339cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20349cffd154SDavid Daney	bool
2035a670c82dSLukas Bulwahn	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
2036a6d54338SPaolo Bonziniconfig CPU_SUPPORTS_VZ
2037a6d54338SPaolo Bonzini	bool
203882622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
203982622284SDavid Daney	bool
2040c6972fb9SHuang Pei	depends on 64BIT
204195b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20425e83d430SRalf Baechle
20438192c9eaSDavid Daney#
20448192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20458192c9eaSDavid Daney#
20468192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20478192c9eaSDavid Daney	bool
2048679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20498192c9eaSDavid Daney
20505e83d430SRalf Baechlemenu "Kernel type"
20515e83d430SRalf Baechle
20525e83d430SRalf Baechlechoice
20535e83d430SRalf Baechle	prompt "Kernel code model"
20545e83d430SRalf Baechle	help
20555e83d430SRalf Baechle	  You should only select this option if you have a workload that
20565e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20575e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20585e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20595e83d430SRalf Baechle
20605e83d430SRalf Baechleconfig 32BIT
20615e83d430SRalf Baechle	bool "32-bit kernel"
20625e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20635e83d430SRalf Baechle	select TRAD_SIGNALS
20645e83d430SRalf Baechle	help
20655e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2066f17c4ca3SRalf Baechle
20675e83d430SRalf Baechleconfig 64BIT
20685e83d430SRalf Baechle	bool "64-bit kernel"
20695e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
20705e83d430SRalf Baechle	help
20715e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
20725e83d430SRalf Baechle
20735e83d430SRalf Baechleendchoice
20745e83d430SRalf Baechle
20751e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
20761e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
20771e321fa9SLeonid Yegoshin	depends on 64BIT
20781e321fa9SLeonid Yegoshin	help
20793377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
20803377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
20813377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
20823377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
20833377e227SAlex Belits	  level of page tables is added which imposes both a memory
20843377e227SAlex Belits	  overhead as well as slower TLB fault handling.
20853377e227SAlex Belits
20861e321fa9SLeonid Yegoshin	  If unsure, say N.
20871e321fa9SLeonid Yegoshin
208879876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
208979876cc1SYunQiang Su	hex "Compressed kernel load address"
209079876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
209179876cc1SYunQiang Su	default 0x0
209279876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
209379876cc1SYunQiang Su	help
209479876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
209579876cc1SYunQiang Su
209679876cc1SYunQiang Su	  This is only used if non-zero.
209779876cc1SYunQiang Su
20980192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2099c9bace7cSDavid Daney	int "Maximum zone order"
210023baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
210123baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
210223baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
210323baf831SKirill A. Shutemov	default "10"
2104c9bace7cSDavid Daney	help
2105c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2106c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2107c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2108c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2109c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2110c9bace7cSDavid Daney	  increase this value.
2111c9bace7cSDavid Daney
2112c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2113c9bace7cSDavid Daney	  when choosing a value for this option.
2114c9bace7cSDavid Daney
21151da177e4SLinus Torvaldsconfig BOARD_SCACHE
21161da177e4SLinus Torvalds	bool
21171da177e4SLinus Torvalds
21181da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21191da177e4SLinus Torvalds	bool
21201da177e4SLinus Torvalds	select BOARD_SCACHE
21211da177e4SLinus Torvalds
21229318c51aSChris Dearman#
21239318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21249318c51aSChris Dearman#
21259318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21269318c51aSChris Dearman	bool
21279318c51aSChris Dearman	select BOARD_SCACHE
21289318c51aSChris Dearman
21291da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21301da177e4SLinus Torvalds	bool
21311da177e4SLinus Torvalds	select BOARD_SCACHE
21321da177e4SLinus Torvalds
21331da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21341da177e4SLinus Torvalds	bool
21351da177e4SLinus Torvalds	select BOARD_SCACHE
21361da177e4SLinus Torvalds
21371da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21381da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21391da177e4SLinus Torvalds	depends on CPU_SB1
21401da177e4SLinus Torvalds	help
21411da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21421da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21431da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21441da177e4SLinus Torvalds
21451da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2146c8094b53SRalf Baechle	bool
21471da177e4SLinus Torvalds
21483165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
21493165c846SFlorian Fainelli	bool
2150455481fcSThomas Bogendoerfer	default y if !CPU_R3000
21513165c846SFlorian Fainelli
2152c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2153183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2154183b40f9SPaul Burton	default y
2155183b40f9SPaul Burton	help
2156183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2157183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2158183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2159183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2160183b40f9SPaul Burton	  receive a SIGILL.
2161183b40f9SPaul Burton
2162183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2163183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2164183b40f9SPaul Burton
2165183b40f9SPaul Burton	  If unsure, say y.
2166c92e47e5SPaul Burton
216797f7dcbfSPaul Burtonconfig CPU_R2300_FPU
216897f7dcbfSPaul Burton	bool
2169c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2170455481fcSThomas Bogendoerfer	default y if CPU_R3000
217197f7dcbfSPaul Burton
217254746829SPaul Burtonconfig CPU_R3K_TLB
217354746829SPaul Burton	bool
217454746829SPaul Burton
217591405eb6SFlorian Fainelliconfig CPU_R4K_FPU
217691405eb6SFlorian Fainelli	bool
2177c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
217897f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
217991405eb6SFlorian Fainelli
218062cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
218162cedc4fSFlorian Fainelli	bool
218254746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
218362cedc4fSFlorian Fainelli
218459d6ab86SRalf Baechleconfig MIPS_MT_SMP
2185a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
21865cbf9688SPaul Burton	default y
218774efddadSJiaxun Yang	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
218874efddadSJiaxun Yang	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
218959d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2190d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2191c080faa5SSteven J. Hill	select SYNC_R4K
219259d6ab86SRalf Baechle	select MIPS_MT
219359d6ab86SRalf Baechle	select SMP
219487353d8aSRalf Baechle	select SMP_UP
2195c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2196c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2197399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
219859d6ab86SRalf Baechle	help
2199c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2200c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2201c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2202c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2203c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
220459d6ab86SRalf Baechle
2205f41ae0b2SRalf Baechleconfig MIPS_MT
2206f41ae0b2SRalf Baechle	bool
2207f41ae0b2SRalf Baechle
22080ab7aefcSRalf Baechleconfig SCHED_SMT
22090ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22100ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22110ab7aefcSRalf Baechle	default n
22120ab7aefcSRalf Baechle	help
22130ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
22140ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
22150ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
22160ab7aefcSRalf Baechle
22170ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
22180ab7aefcSRalf Baechle	bool
22190ab7aefcSRalf Baechle
2220f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2221f41ae0b2SRalf Baechle	bool
2222f41ae0b2SRalf Baechle
2223f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2224f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2225f088fc84SRalf Baechle	default y
2226b633648cSRalf Baechle	depends on MIPS_MT_SMP
222707cc0c9eSRalf Baechle
2228b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2229b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
22309eaa9a82SPaul Burton	depends on CPU_MIPSR6
2231c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2232b0a668fbSLeonid Yegoshin	default y
2233b0a668fbSLeonid Yegoshin	help
2234b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2235b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
223607edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2237b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2238b0a668fbSLeonid Yegoshin	  final kernel image.
2239b0a668fbSLeonid Yegoshin
2240f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2241f35764e7SJames Hogan	bool
2242f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2243f35764e7SJames Hogan	help
2244f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2245f35764e7SJames Hogan	  physical_memsize.
2246f35764e7SJames Hogan
224707cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
224807cc0c9eSRalf Baechle	bool "VPE loader support."
2249f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
225007cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
225107cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
225207cc0c9eSRalf Baechle	select MIPS_MT
225307cc0c9eSRalf Baechle	help
225407cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
225507cc0c9eSRalf Baechle	  onto another VPE and running it.
2256f088fc84SRalf Baechle
22571a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22581a2a6d7eSDeng-Cheng Zhu	bool
22591a2a6d7eSDeng-Cheng Zhu	default "y"
22607fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_LOADER
22611a2a6d7eSDeng-Cheng Zhu
2262e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2263e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2264e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2265e01402b1SRalf Baechle	default y
2266e01402b1SRalf Baechle	help
2267e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2268e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2269e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2270e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2271e01402b1SRalf Baechle
2272e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2273e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2274e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2275e01402b1SRalf Baechle
22762c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
22772c973ef0SDeng-Cheng Zhu	bool
22782c973ef0SDeng-Cheng Zhu	default "y"
22797fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_APSP_API
22805cac93b3SPaul Burton
22810ee958e1SPaul Burtonconfig MIPS_CPS
22820ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
22835a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
22840ee958e1SPaul Burton	select MIPS_CM
22851d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
22860ee958e1SPaul Burton	select SMP
2287c8d2bcc4SThomas Gleixner	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
22880ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
22891d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2290c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
22910ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
22920ee958e1SPaul Burton	select WEAK_ORDERING
2293d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
22940ee958e1SPaul Burton	help
22950ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
22960ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
22970ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
22980ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
22990ee958e1SPaul Burton	  support is unavailable.
23000ee958e1SPaul Burton
23013179d37eSPaul Burtonconfig MIPS_CPS_PM
230239a59593SMarkos Chandras	depends on MIPS_CPS
23033179d37eSPaul Burton	bool
23043179d37eSPaul Burton
23059f98f3ddSPaul Burtonconfig MIPS_CM
23069f98f3ddSPaul Burton	bool
23073c9b4166SPaul Burton	select MIPS_CPC
23089f98f3ddSPaul Burton
23099c38cf44SPaul Burtonconfig MIPS_CPC
23109c38cf44SPaul Burton	bool
23114a16ff4cSRalf Baechle
23121da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23131da177e4SLinus Torvalds	bool
23141da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23151da177e4SLinus Torvalds	default y
23161da177e4SLinus Torvalds
23171da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23181da177e4SLinus Torvalds	bool
23191da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23201da177e4SLinus Torvalds	default y
23211da177e4SLinus Torvalds
23229e2b5372SMarkos Chandraschoice
23239e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23249e2b5372SMarkos Chandras
23259e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23269e2b5372SMarkos Chandras	bool "None"
23279e2b5372SMarkos Chandras	help
23289e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23299e2b5372SMarkos Chandras
23309693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23319693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
23329e2b5372SMarkos Chandras	bool "SmartMIPS"
23339693a853SFranck Bui-Huu	help
23349693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23359693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23369693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23379693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23389693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23399693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23409693a853SFranck Bui-Huu	  here.
23419693a853SFranck Bui-Huu
2342bce86083SSteven J. Hillconfig CPU_MICROMIPS
23437fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
23449e2b5372SMarkos Chandras	bool "microMIPS"
2345bce86083SSteven J. Hill	help
2346bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2347bce86083SSteven J. Hill	  microMIPS ISA
2348bce86083SSteven J. Hill
23499e2b5372SMarkos Chandrasendchoice
23509e2b5372SMarkos Chandras
2351a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
23520ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2353a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2354c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
23552a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2356a5e9a69eSPaul Burton	help
2357a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2358a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23591db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23601db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23611db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23621db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
23631db1af84SPaul Burton	  the size & complexity of your kernel.
2364a5e9a69eSPaul Burton
2365a5e9a69eSPaul Burton	  If unsure, say Y.
2366a5e9a69eSPaul Burton
23671da177e4SLinus Torvaldsconfig CPU_HAS_WB
2368f7062ddbSRalf Baechle	bool
2369e01402b1SRalf Baechle
2370df0ac8a4SKevin Cernekeeconfig XKS01
2371df0ac8a4SKevin Cernekee	bool
2372df0ac8a4SKevin Cernekee
2373ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2374ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2375ba9196d2SJiaxun Yang	bool
2376ba9196d2SJiaxun Yang
2377ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2378ba9196d2SJiaxun Yang	bool
2379ba9196d2SJiaxun Yang
23808256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
23818256b17eSFlorian Fainelli	bool
23828256b17eSFlorian Fainelli
238318d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2384932afdeeSYasha Cherikovsky	bool
2385932afdeeSYasha Cherikovsky	help
238618d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2387932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
238818d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
238918d84e2eSAlexander Lobakin	  systems).
2390932afdeeSYasha Cherikovsky
2391f41ae0b2SRalf Baechle#
2392f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2393f41ae0b2SRalf Baechle#
2394e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2395f41ae0b2SRalf Baechle	bool
2396e01402b1SRalf Baechle
2397f41ae0b2SRalf Baechle#
2398f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2399f41ae0b2SRalf Baechle#
2400e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2401f41ae0b2SRalf Baechle	bool
2402e01402b1SRalf Baechle
24031da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24041da177e4SLinus Torvalds	bool
24051da177e4SLinus Torvalds	depends on !CPU_R3000
24061da177e4SLinus Torvalds	default y
24071da177e4SLinus Torvalds
24081da177e4SLinus Torvalds#
240920d60d99SMaciej W. Rozycki# CPU non-features
241020d60d99SMaciej W. Rozycki#
2411b56d1cafSThomas Bogendoerfer
2412b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2413b56d1cafSThomas Bogendoerfer#
2414b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2415b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2416b56d1cafSThomas Bogendoerfer#   erratum #23
2417b56d1cafSThomas Bogendoerfer#
2418b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2419b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2420b56d1cafSThomas Bogendoerfer#   erratum #41
2421b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2422b56d1cafSThomas Bogendoerfer#   #15
2423b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2424b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
242520d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
242620d60d99SMaciej W. Rozycki	bool
242720d60d99SMaciej W. Rozycki
2428b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2429b56d1cafSThomas Bogendoerfer#
2430b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2431b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2432b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2433b56d1cafSThomas Bogendoerfer#   erratum #28
2434b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2435b56d1cafSThomas Bogendoerfer#   #19
2436b56d1cafSThomas Bogendoerfer#
2437b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2438b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2439b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2440b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2441b56d1cafSThomas Bogendoerfer#
2442b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2443b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2444b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2445b56d1cafSThomas Bogendoerfer#   erratum #52
244620d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
244720d60d99SMaciej W. Rozycki	bool
244820d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
244920d60d99SMaciej W. Rozycki
2450b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2451b56d1cafSThomas Bogendoerfer#
2452b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2453b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2454b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2455b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
245620d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
245720d60d99SMaciej W. Rozycki	bool
245820d60d99SMaciej W. Rozycki
2459071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2460071d2f0bSPaul Burton	bool
2461071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2462071d2f0bSPaul Burton
24634edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
24644edf00a4SPaul Burton	int
2465455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24664edf00a4SPaul Burton	default 0
24674edf00a4SPaul Burton
24684edf00a4SPaul Burtonconfig MIPS_ASID_BITS
24694edf00a4SPaul Burton	int
24702db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
2471455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24724edf00a4SPaul Burton	default 8
24734edf00a4SPaul Burton
24742db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
24752db003a5SPaul Burton	bool
24762db003a5SPaul Burton
24774a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT
24784a5dc51eSMarcin Nowakowski	bool
24794a5dc51eSMarcin Nowakowski
2480802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2481802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2482802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2483802b8362SThomas Bogendoerfer# with the issue.
2484802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2485802b8362SThomas Bogendoerfer	bool
2486802b8362SThomas Bogendoerfer
24875e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
24885e5b6527SThomas Bogendoerfer#
24895e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
24905e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
24915e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
249218ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
24935e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
24945e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
24955e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
24965e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
24975e5b6527SThomas Bogendoerfer#      instruction.
24985e5b6527SThomas Bogendoerfer#
24995e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25005e5b6527SThomas Bogendoerfer#                              nop
25015e5b6527SThomas Bogendoerfer#                              nop
25025e5b6527SThomas Bogendoerfer#                              nop
25035e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25045e5b6527SThomas Bogendoerfer#
25055e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25065e5b6527SThomas Bogendoerfer#                              nop
25075e5b6527SThomas Bogendoerfer#                              nop
25085e5b6527SThomas Bogendoerfer#                              nop
25095e5b6527SThomas Bogendoerfer#                              nop
25105e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25115e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25125e5b6527SThomas Bogendoerfer	bool
25135e5b6527SThomas Bogendoerfer
251444def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
251544def342SThomas Bogendoerfer#
251644def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
251744def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
251844def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
251944def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
252044def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
252144def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
252244def342SThomas Bogendoerfer# in .pdf format.)
252344def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
252444def342SThomas Bogendoerfer	bool
252544def342SThomas Bogendoerfer
252624a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
252724a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
252824a1c023SThomas Bogendoerfer# operation is not guaranteed."
252924a1c023SThomas Bogendoerfer#
253024a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
253124a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
253224a1c023SThomas Bogendoerfer	bool
253324a1c023SThomas Bogendoerfer
2534886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2535886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2536886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2537886ee136SThomas Bogendoerfer# exceptions.
2538886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2539886ee136SThomas Bogendoerfer	bool
2540886ee136SThomas Bogendoerfer
2541256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2542256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2543256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2544256ec489SThomas Bogendoerfer	bool
2545256ec489SThomas Bogendoerfer
2546a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2547a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2548a7fbed98SThomas Bogendoerfer	bool
2549a7fbed98SThomas Bogendoerfer
255020d60d99SMaciej W. Rozycki#
25511da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25521da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25531da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25541da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25551da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25561da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25571da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25581da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2559797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2560797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2561797798c1SRalf Baechle#   support.
25621da177e4SLinus Torvalds#
25631da177e4SLinus Torvaldsconfig HIGHMEM
25641da177e4SLinus Torvalds	bool "High Memory Support"
2565a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2566a4c33e83SThomas Gleixner	select KMAP_LOCAL
2567797798c1SRalf Baechle
2568797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2569797798c1SRalf Baechle	bool
2570797798c1SRalf Baechle
2571797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2572797798c1SRalf Baechle	bool
25731da177e4SLinus Torvalds
25749693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25759693a853SFranck Bui-Huu	bool
25769693a853SFranck Bui-Huu
2577a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2578a6a4834cSSteven J. Hill	bool
2579a6a4834cSSteven J. Hill
2580377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2581377cb1b6SRalf Baechle	bool
2582377cb1b6SRalf Baechle	help
2583377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2584377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2585377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2586377cb1b6SRalf Baechle
2587a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2588a5e9a69eSPaul Burton	bool
2589a5e9a69eSPaul Burton
2590b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2591b4819b59SYoichi Yuasa	def_bool y
2592268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2593b4819b59SYoichi Yuasa
2594b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2595b1c6cd42SAtsushi Nemoto	bool
259631473747SAtsushi Nemoto
2597d8cb4e11SRalf Baechleconfig NUMA
2598d8cb4e11SRalf Baechle	bool "NUMA Support"
2599d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2600cf8194e4STiezhu Yang	select SMP
26017ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
26027ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2603d8cb4e11SRalf Baechle	help
2604d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2605d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2606d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2607172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2608d8cb4e11SRalf Baechle	  disabled.
2609d8cb4e11SRalf Baechle
2610d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2611d8cb4e11SRalf Baechle	bool
2612d8cb4e11SRalf Baechle
2613f8f9f21cSFeiyang Chenconfig HAVE_ARCH_NODEDATA_EXTENSION
2614f8f9f21cSFeiyang Chen	bool
2615f8f9f21cSFeiyang Chen
26168c530ea3SMatt Redfearnconfig RELOCATABLE
26178c530ea3SMatt Redfearn	bool "Relocatable kernel"
2618ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2619ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2620ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2621ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2622a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2623a307a4ceSJinyang He		   CPU_LOONGSON64
26248c530ea3SMatt Redfearn	help
26258c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26268c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26278c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26288c530ea3SMatt Redfearn	  but are discarded at runtime
26298c530ea3SMatt Redfearn
2630069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2631069fd766SMatt Redfearn	hex "Relocation table size"
2632069fd766SMatt Redfearn	depends on RELOCATABLE
2633069fd766SMatt Redfearn	range 0x0 0x01000000
2634a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2635069fd766SMatt Redfearn	default "0x00100000"
2636a7f7f624SMasahiro Yamada	help
2637069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2638069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2639069fd766SMatt Redfearn
2640069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2641069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2642069fd766SMatt Redfearn
2643069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2644069fd766SMatt Redfearn
2645069fd766SMatt Redfearn	  If unsure, leave at the default value.
2646069fd766SMatt Redfearn
2647405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2648405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2649405bc8fdSMatt Redfearn	depends on RELOCATABLE
2650a7f7f624SMasahiro Yamada	help
2651405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2652405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2653405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2654405bc8fdSMatt Redfearn	  of kernel internals.
2655405bc8fdSMatt Redfearn
2656405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2657405bc8fdSMatt Redfearn
2658405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2659405bc8fdSMatt Redfearn
2660405bc8fdSMatt Redfearn	  If unsure, say N.
2661405bc8fdSMatt Redfearn
2662405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2663405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2664405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2665405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2666405bc8fdSMatt Redfearn	range 0x0 0x08000000
2667405bc8fdSMatt Redfearn	default "0x01000000"
2668a7f7f624SMasahiro Yamada	help
2669405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2670405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2671405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2672405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2673405bc8fdSMatt Redfearn
2674405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2675405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2676405bc8fdSMatt Redfearn
2677c80d79d7SYasunori Gotoconfig NODES_SHIFT
2678c80d79d7SYasunori Goto	int
2679c80d79d7SYasunori Goto	default "6"
2680a9ee6cf5SMike Rapoport	depends on NUMA
2681c80d79d7SYasunori Goto
268214f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
268314f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
268495b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
268514f70012SDeng-Cheng Zhu	default y
268614f70012SDeng-Cheng Zhu	help
268714f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
268814f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
268914f70012SDeng-Cheng Zhu
2690be8fa1cbSTiezhu Yangconfig DMI
2691be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2692be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2693be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2694be8fa1cbSTiezhu Yang	default y
2695be8fa1cbSTiezhu Yang	help
2696be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2697be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2698be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2699be8fa1cbSTiezhu Yang	  BIOS code.
2700be8fa1cbSTiezhu Yang
27011da177e4SLinus Torvaldsconfig SMP
27021da177e4SLinus Torvalds	bool "Multi-Processing support"
2703e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2704e73ea273SRalf Baechle	help
27051da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27064a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27074a474157SRobert Graffham	  than one CPU, say Y.
27081da177e4SLinus Torvalds
27094a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27101da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27111da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27124a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27131da177e4SLinus Torvalds	  will run faster if you say N here.
27141da177e4SLinus Torvalds
27151da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27161da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27171da177e4SLinus Torvalds
271803502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2719ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27201da177e4SLinus Torvalds
27211da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27221da177e4SLinus Torvalds
27237840d618SMatt Redfearnconfig HOTPLUG_CPU
27247840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27257840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27267840d618SMatt Redfearn	help
27277840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27287840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27297840d618SMatt Redfearn	  (Note: power management support will enable this option
27307840d618SMatt Redfearn	    automatically on SMP systems. )
27317840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
27327840d618SMatt Redfearn
273387353d8aSRalf Baechleconfig SMP_UP
273487353d8aSRalf Baechle	bool
273587353d8aSRalf Baechle
27360ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27370ee958e1SPaul Burton	bool
27380ee958e1SPaul Burton
2739e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2740e73ea273SRalf Baechle	bool
2741e73ea273SRalf Baechle
2742130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2743130e2fb7SRalf Baechle	bool
2744130e2fb7SRalf Baechle
2745130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2746130e2fb7SRalf Baechle	bool
2747130e2fb7SRalf Baechle
2748130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2749130e2fb7SRalf Baechle	bool
2750130e2fb7SRalf Baechle
2751130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2752130e2fb7SRalf Baechle	bool
2753130e2fb7SRalf Baechle
2754130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2755130e2fb7SRalf Baechle	bool
2756130e2fb7SRalf Baechle
27571da177e4SLinus Torvaldsconfig NR_CPUS
2758a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2759a91796a9SJayachandran C	range 2 256
27601da177e4SLinus Torvalds	depends on SMP
2761130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2762130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2763130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2764130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2765130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27661da177e4SLinus Torvalds	help
27671da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27681da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27691da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
277072ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
277172ede9b1SAtsushi Nemoto	  and 2 for all others.
27721da177e4SLinus Torvalds
27731da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
277472ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
277572ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
277672ede9b1SAtsushi Nemoto	  power of two.
27771da177e4SLinus Torvalds
2778399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2779399aaa25SAl Cooper	bool
2780399aaa25SAl Cooper
27817820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27827820b84bSDavid Daney	bool
27837820b84bSDavid Daney
27847820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27857820b84bSDavid Daney	int
27867820b84bSDavid Daney	depends on SMP
27877820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
27887820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
27897820b84bSDavid Daney
27901723b4a3SAtsushi Nemoto#
27911723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
27921723b4a3SAtsushi Nemoto#
27931723b4a3SAtsushi Nemoto
27941723b4a3SAtsushi Nemotochoice
27951723b4a3SAtsushi Nemoto	prompt "Timer frequency"
27961723b4a3SAtsushi Nemoto	default HZ_250
27971723b4a3SAtsushi Nemoto	help
27981723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
27991723b4a3SAtsushi Nemoto
280067596573SPaul Burton	config HZ_24
280167596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
280267596573SPaul Burton
28031723b4a3SAtsushi Nemoto	config HZ_48
28040f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28051723b4a3SAtsushi Nemoto
28061723b4a3SAtsushi Nemoto	config HZ_100
28071723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28081723b4a3SAtsushi Nemoto
28091723b4a3SAtsushi Nemoto	config HZ_128
28101723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28111723b4a3SAtsushi Nemoto
28121723b4a3SAtsushi Nemoto	config HZ_250
28131723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28141723b4a3SAtsushi Nemoto
28151723b4a3SAtsushi Nemoto	config HZ_256
28161723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28171723b4a3SAtsushi Nemoto
28181723b4a3SAtsushi Nemoto	config HZ_1000
28191723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28201723b4a3SAtsushi Nemoto
28211723b4a3SAtsushi Nemoto	config HZ_1024
28221723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28231723b4a3SAtsushi Nemoto
28241723b4a3SAtsushi Nemotoendchoice
28251723b4a3SAtsushi Nemoto
282667596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
282767596573SPaul Burton	bool
282867596573SPaul Burton
28291723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28301723b4a3SAtsushi Nemoto	bool
28311723b4a3SAtsushi Nemoto
28321723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28331723b4a3SAtsushi Nemoto	bool
28341723b4a3SAtsushi Nemoto
28351723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28361723b4a3SAtsushi Nemoto	bool
28371723b4a3SAtsushi Nemoto
28381723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28391723b4a3SAtsushi Nemoto	bool
28401723b4a3SAtsushi Nemoto
28411723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28421723b4a3SAtsushi Nemoto	bool
28431723b4a3SAtsushi Nemoto
28441723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28451723b4a3SAtsushi Nemoto	bool
28461723b4a3SAtsushi Nemoto
28471723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28481723b4a3SAtsushi Nemoto	bool
28491723b4a3SAtsushi Nemoto
28501723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28511723b4a3SAtsushi Nemoto	bool
285267596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
285367596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
285467596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
285567596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
285667596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
285767596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
285867596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28591723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28601723b4a3SAtsushi Nemoto
28611723b4a3SAtsushi Nemotoconfig HZ
28621723b4a3SAtsushi Nemoto	int
286367596573SPaul Burton	default 24 if HZ_24
28641723b4a3SAtsushi Nemoto	default 48 if HZ_48
28651723b4a3SAtsushi Nemoto	default 100 if HZ_100
28661723b4a3SAtsushi Nemoto	default 128 if HZ_128
28671723b4a3SAtsushi Nemoto	default 250 if HZ_250
28681723b4a3SAtsushi Nemoto	default 256 if HZ_256
28691723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28701723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28711723b4a3SAtsushi Nemoto
287296685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
287396685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
287496685b17SDeng-Cheng Zhu
2875571feed5SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
2876571feed5SEric DeVolder	def_bool y
2877ea6e942bSAtsushi Nemoto
2878571feed5SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
2879571feed5SEric DeVolder	def_bool y
28807aa1c8f4SRalf Baechle
28817aa1c8f4SRalf Baechleconfig PHYSICAL_START
28827aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
28838bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
28847aa1c8f4SRalf Baechle	depends on CRASH_DUMP
28857aa1c8f4SRalf Baechle	help
28867aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
28877aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
28887aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
28897aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
28907aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
28917aa1c8f4SRalf Baechle
2892597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2893b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2894597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2895597ce172SPaul Burton	help
2896597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2897597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2898597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2899597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2900597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2901597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2902597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2903597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2904597ce172SPaul Burton	  saying N here.
2905597ce172SPaul Burton
290606e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
290706e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
290818ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
290906e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
291006e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
291106e2e882SPaul Burton	  said details.
291206e2e882SPaul Burton
291306e2e882SPaul Burton	  If unsure, say N.
2914597ce172SPaul Burton
2915f2ffa5abSDezhong Diaoconfig USE_OF
29160b3e06fdSJonas Gorski	bool
2917f2ffa5abSDezhong Diao	select OF
2918e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2919abd2363fSGrant Likely	select IRQ_DOMAIN
2920f2ffa5abSDezhong Diao
29212fe8ea39SDengcheng Zhuconfig UHI_BOOT
29222fe8ea39SDengcheng Zhu	bool
29232fe8ea39SDengcheng Zhu
29247fafb068SAndrew Brestickerconfig BUILTIN_DTB
29257fafb068SAndrew Bresticker	bool
29267fafb068SAndrew Bresticker
29271da8f179SJonas Gorskichoice
29285b24d52cSJonas Gorski	prompt "Kernel appended dtb support" if USE_OF
29291da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29301da8f179SJonas Gorski
29311da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29321da8f179SJonas Gorski		bool "None"
29331da8f179SJonas Gorski		help
29341da8f179SJonas Gorski		  Do not enable appended dtb support.
29351da8f179SJonas Gorski
293687db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
293787db537dSAaro Koskinen		bool "vmlinux"
293887db537dSAaro Koskinen		help
293987db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
294087db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
294187db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
294287db537dSAaro Koskinen		  objcopy:
294387db537dSAaro Koskinen
294487db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
294587db537dSAaro Koskinen
294618ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
294787db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
294887db537dSAaro Koskinen		  the documented boot protocol using a device tree.
294987db537dSAaro Koskinen
29501da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2951b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29521da8f179SJonas Gorski		help
29531da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2954b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29551da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29561da8f179SJonas Gorski
29571da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29581da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29591da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29601da8f179SJonas Gorski
29611da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29621da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29631da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29641da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29651da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29661da8f179SJonas Gorskiendchoice
29671da8f179SJonas Gorski
29682024972eSJonas Gorskichoice
29692024972eSJonas Gorski	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
29702bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
297187fcfa7bSJiaxun Yang					 !MACH_LOONGSON64 && !MIPS_MALTA && \
29722bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
29732024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29742024972eSJonas Gorski
29752024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
29762024972eSJonas Gorski		depends on USE_OF
29772024972eSJonas Gorski		bool "Dtb kernel arguments if available"
29782024972eSJonas Gorski
29792024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
29802024972eSJonas Gorski		depends on USE_OF
29812024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
29822024972eSJonas Gorski
29832024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
29842024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
2985ed47e153SRabin Vincent
2986ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
2987ed47e153SRabin Vincent		depends on CMDLINE_BOOL
2988ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
29892024972eSJonas Gorskiendchoice
29902024972eSJonas Gorski
29915e83d430SRalf Baechleendmenu
29925e83d430SRalf Baechle
29931df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
29941df0f0ffSAtsushi Nemoto	bool
29951df0f0ffSAtsushi Nemoto	default y
29961df0f0ffSAtsushi Nemoto
29971df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
29981df0f0ffSAtsushi Nemoto	bool
29991df0f0ffSAtsushi Nemoto	default y
30001df0f0ffSAtsushi Nemoto
3001a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3002a728ab52SKirill A. Shutemov	int
30033377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
300441ce097fSHuang Pei	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3005a728ab52SKirill A. Shutemov	default 2
3006a728ab52SKirill A. Shutemov
30076c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30086c359eb1SPaul Burton	bool
30096c359eb1SPaul Burton
30101da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30111da177e4SLinus Torvalds
3012c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
30132eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3014c5611df9SPaul Burton	bool
3015c5611df9SPaul Burton
3016c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3017c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3018c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
30192eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
30201da177e4SLinus Torvalds
30211da177e4SLinus Torvalds#
30221da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30231da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30241da177e4SLinus Torvalds# users to choose the right thing ...
30251da177e4SLinus Torvalds#
30261da177e4SLinus Torvaldsconfig ISA
30271da177e4SLinus Torvalds	bool
30281da177e4SLinus Torvalds
30291da177e4SLinus Torvaldsconfig TC
30301da177e4SLinus Torvalds	bool "TURBOchannel support"
30311da177e4SLinus Torvalds	depends on MACH_DECSTATION
30321da177e4SLinus Torvalds	help
303350a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
303450a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
303550a23e6eSJustin P. Mattock	  at:
303650a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
303750a23e6eSJustin P. Mattock	  and:
303850a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
303950a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
304050a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30411da177e4SLinus Torvalds
30421da177e4SLinus Torvaldsconfig MMU
30431da177e4SLinus Torvalds	bool
30441da177e4SLinus Torvalds	default y
30451da177e4SLinus Torvalds
3046109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3047109c32ffSMatt Redfearn	default 12 if 64BIT
3048109c32ffSMatt Redfearn	default 8
3049109c32ffSMatt Redfearn
3050109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3051109c32ffSMatt Redfearn	default 18 if 64BIT
3052109c32ffSMatt Redfearn	default 15
3053109c32ffSMatt Redfearn
3054109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3055109c32ffSMatt Redfearn	default 8
3056109c32ffSMatt Redfearn
3057109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3058109c32ffSMatt Redfearn	default 15
3059109c32ffSMatt Redfearn
3060d865bea4SRalf Baechleconfig I8253
3061d865bea4SRalf Baechle	bool
3062798778b8SRussell King	select CLKSRC_I8253
30632d02612fSThomas Gleixner	select CLKEVT_I8253
30649726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
30651da177e4SLinus Torvaldsendmenu
30661da177e4SLinus Torvalds
30671da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30681da177e4SLinus Torvalds	bool
30691da177e4SLinus Torvalds
30701da177e4SLinus Torvaldsconfig MIPS32_COMPAT
307178aaf956SRalf Baechle	bool
30721da177e4SLinus Torvalds
30731da177e4SLinus Torvaldsconfig COMPAT
30741da177e4SLinus Torvalds	bool
30751da177e4SLinus Torvalds
30761da177e4SLinus Torvaldsconfig MIPS32_O32
30771da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
307878aaf956SRalf Baechle	depends on 64BIT
307978aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
308078aaf956SRalf Baechle	select COMPAT
308178aaf956SRalf Baechle	select MIPS32_COMPAT
30821da177e4SLinus Torvalds	help
30831da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
30841da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
30851da177e4SLinus Torvalds	  existing binaries are in this format.
30861da177e4SLinus Torvalds
30871da177e4SLinus Torvalds	  If unsure, say Y.
30881da177e4SLinus Torvalds
30891da177e4SLinus Torvaldsconfig MIPS32_N32
30901da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3091c22eacfeSRalf Baechle	depends on 64BIT
30925a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
309378aaf956SRalf Baechle	select COMPAT
309478aaf956SRalf Baechle	select MIPS32_COMPAT
30951da177e4SLinus Torvalds	help
30961da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
30971da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
30981da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
30991da177e4SLinus Torvalds	  cases.
31001da177e4SLinus Torvalds
31011da177e4SLinus Torvalds	  If unsure, say N.
31021da177e4SLinus Torvalds
3103d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3104d49fc692SNathan Chancellor	def_bool y
3105d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
3106d49fc692SNathan Chancellor
31071a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31081a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31091a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31101a2c73f4SJiaxun Yang
31112116245eSRalf Baechlemenu "Power management options"
3112952fa954SRodolfo Giometti
3113363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3114363c55caSWu Zhangjin	def_bool y
31153f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3116363c55caSWu Zhangjin
3117f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3118f4cb5700SJohannes Berg	def_bool y
31193f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3120f4cb5700SJohannes Berg
31212116245eSRalf Baechlesource "kernel/power/Kconfig"
3122952fa954SRodolfo Giometti
31231da177e4SLinus Torvaldsendmenu
31241da177e4SLinus Torvalds
31257a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31267a998935SViresh Kumar	bool
31277a998935SViresh Kumar
31287a998935SViresh Kumarmenu "CPU Power Management"
3129c095ebafSPaul Burton
3130c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31317a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
313231f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31339726b43aSWu Zhangjin
3134c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3135c095ebafSPaul Burton
3136c095ebafSPaul Burtonendmenu
3137c095ebafSPaul Burton
31382235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3139e91946d6SNathan Chancellor
3140e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3141