xref: /linux/arch/mips/Kconfig (revision 24a1c023f3ff3082fee9c019c17e6a34e2ddfe6b)
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
734c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
834c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
934c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
1012597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
111e35918aSHassan Naveed	select ARCH_HAS_UBSAN_SANITIZE_ALL
1212597988SMatt Redfearn	select ARCH_SUPPORTS_UPROBES
131ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
1412597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
1525da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
160b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
179035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
1812597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
1910916706SShile Zhang	select BUILDTIME_TABLE_SORT
2012597988SMatt Redfearn	select CLONE_BACKWARDS
2157eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
2212597988SMatt Redfearn	select CPU_PM if CPU_IDLE
2312597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
2412597988SMatt Redfearn	select GENERIC_CLOCKEVENTS
2512597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
2612597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
2724640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
28b962aeb0SPaul Burton	select GENERIC_IOMAP
2912597988SMatt Redfearn	select GENERIC_IRQ_PROBE
3012597988SMatt Redfearn	select GENERIC_IRQ_SHOW
316630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
32740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
33740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
34740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
35740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
36740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
3712597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
3812597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
3912597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
40446f062bSChristoph Hellwig	select GUP_GET_PTE_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
4112597988SMatt Redfearn	select HANDLE_DOMAIN_IRQ
42906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
4312597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
4488547001SJason Wessel	select HAVE_ARCH_KGDB
45109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
46109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
47490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
48c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
4945e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
502ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
5136366e36SPaul Burton	select HAVE_CBPF_JIT if !64BIT && !CPU_MICROMIPS
5212597988SMatt Redfearn	select HAVE_CONTEXT_TRACKING
53490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
5464575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
5512597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
5612597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
5712597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
5812597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
5934c01e41SAlexander Lobakin	select HAVE_EBPF_JIT if 64BIT && !CPU_MICROMIPS && TARGET_ISA_REV >= 2
6012597988SMatt Redfearn	select HAVE_EXIT_THREAD
6167a929e0SChristoph Hellwig	select HAVE_FAST_GUP
6212597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
6329c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
6412597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
6534c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
6634c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
6712597988SMatt Redfearn	select HAVE_IDE
68b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
6912597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
7012597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
71c1bf207dSDavid Daney	select HAVE_KPROBES
72c1bf207dSDavid Daney	select HAVE_KRETPROBES
73c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
74786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
7542a0bb3fSPetr Mladek	select HAVE_NMI
7612597988SMatt Redfearn	select HAVE_OPROFILE
7712597988SMatt Redfearn	select HAVE_PERF_EVENTS
7808bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
799ea141adSPaul Burton	select HAVE_RSEQ
8016c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
81d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
8212597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
83a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
8412597988SMatt Redfearn	select IRQ_FORCED_THREADING
856630a8e5SChristoph Hellwig	select ISA if EISA
8612597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
8734c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
8812597988SMatt Redfearn	select PERF_USE_VMALLOC
8905a0a344SArnd Bergmann	select RTC_LIB
9012597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
9112597988SMatt Redfearn	select VIRT_TO_BUS
921da177e4SLinus Torvalds
93d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
94d3991572SChristoph Hellwig	bool
95d3991572SChristoph Hellwig
961da177e4SLinus Torvaldsmenu "Machine selection"
971da177e4SLinus Torvalds
985e83d430SRalf Baechlechoice
995e83d430SRalf Baechle	prompt "System type"
100d41e6858SMatt Redfearn	default MIPS_GENERIC
1011da177e4SLinus Torvalds
102eed0eabdSPaul Burtonconfig MIPS_GENERIC
103eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
104eed0eabdSPaul Burton	select BOOT_RAW
105eed0eabdSPaul Burton	select BUILTIN_DTB
106eed0eabdSPaul Burton	select CEVT_R4K
107eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
108eed0eabdSPaul Burton	select COMMON_CLK
109eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
11034c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
111eed0eabdSPaul Burton	select CSRC_R4K
112eed0eabdSPaul Burton	select DMA_PERDEV_COHERENT
113eb01d42aSChristoph Hellwig	select HAVE_PCI
114eed0eabdSPaul Burton	select IRQ_MIPS_CPU
1150211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
116eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
117eed0eabdSPaul Burton	select MIPS_GIC
118eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
119eed0eabdSPaul Burton	select NO_EXCEPT_FILL
120eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
121eed0eabdSPaul Burton	select SMP_UP if SMP
122a3078e59SMatt Redfearn	select SWAP_IO_SPACE
123eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
124eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
125eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
126eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
127eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
128eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
129eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
130eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
131eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
132eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
133eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
134eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
135eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
13634c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
137eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
138eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
139eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
14034c01e41SAlexander Lobakin	select UHI_BOOT
1412e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1422e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1432e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1442e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1452e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1462e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
147eed0eabdSPaul Burton	select USE_OF
148eed0eabdSPaul Burton	help
149eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
150eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
151eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
152eed0eabdSPaul Burton	  Interface) specification.
153eed0eabdSPaul Burton
15442a4f17dSManuel Laussconfig MIPS_ALCHEMY
155c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
156d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
157f772cdb2SRalf Baechle	select CEVT_R4K
158d7ea335cSSteven J. Hill	select CSRC_R4K
15967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
16088e9a93cSManuel Lauss	select DMA_MAYBE_COHERENT	# Au1000,1500,1100 aren't, rest is
161d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
16242a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
16342a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
16442a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
165d30a2b47SLinus Walleij	select GPIOLIB
1661b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
16747440229SManuel Lauss	select COMMON_CLK
1681da177e4SLinus Torvalds
1697ca5dc14SFlorian Fainelliconfig AR7
1707ca5dc14SFlorian Fainelli	bool "Texas Instruments AR7"
1717ca5dc14SFlorian Fainelli	select BOOT_ELF32
1727ca5dc14SFlorian Fainelli	select DMA_NONCOHERENT
1737ca5dc14SFlorian Fainelli	select CEVT_R4K
1747ca5dc14SFlorian Fainelli	select CSRC_R4K
17567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1767ca5dc14SFlorian Fainelli	select NO_EXCEPT_FILL
1777ca5dc14SFlorian Fainelli	select SWAP_IO_SPACE
1787ca5dc14SFlorian Fainelli	select SYS_HAS_CPU_MIPS32_R1
1797ca5dc14SFlorian Fainelli	select SYS_HAS_EARLY_PRINTK
1807ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_32BIT_KERNEL
1817ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_LITTLE_ENDIAN
182377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
1831b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT_UART16550
184d30a2b47SLinus Walleij	select GPIOLIB
1857ca5dc14SFlorian Fainelli	select VLYNQ
186bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
1877ca5dc14SFlorian Fainelli	help
1887ca5dc14SFlorian Fainelli	  Support for the Texas Instruments AR7 System-on-a-Chip
1897ca5dc14SFlorian Fainelli	  family: TNETD7100, 7200 and 7300.
1907ca5dc14SFlorian Fainelli
19143cc739fSSergey Ryazanovconfig ATH25
19243cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
19343cc739fSSergey Ryazanov	select CEVT_R4K
19443cc739fSSergey Ryazanov	select CSRC_R4K
19543cc739fSSergey Ryazanov	select DMA_NONCOHERENT
19667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1971753e74eSSergey Ryazanov	select IRQ_DOMAIN
19843cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
19943cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
20043cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2018aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
20243cc739fSSergey Ryazanov	help
20343cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
20443cc739fSSergey Ryazanov
205d4a67d9dSGabor Juhosconfig ATH79
206d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
207ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
208d4a67d9dSGabor Juhos	select BOOT_RAW
209d4a67d9dSGabor Juhos	select CEVT_R4K
210d4a67d9dSGabor Juhos	select CSRC_R4K
211d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
212d30a2b47SLinus Walleij	select GPIOLIB
213a08227a2SJohn Crispin	select PINCTRL
214411520afSAlban Bedel	select COMMON_CLK
21567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
216d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
217d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
218d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
219d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
220377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
221b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
22203c8c407SAlban Bedel	select USE_OF
22353d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
224d4a67d9dSGabor Juhos	help
225d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
226d4a67d9dSGabor Juhos
2275f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2285f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
229d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
230d59098a0SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
231d666cd02SKevin Cernekee	select BOOT_RAW
232d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
233d666cd02SKevin Cernekee	select USE_OF
234d666cd02SKevin Cernekee	select CEVT_R4K
235d666cd02SKevin Cernekee	select CSRC_R4K
236d666cd02SKevin Cernekee	select SYNC_R4K
237d666cd02SKevin Cernekee	select COMMON_CLK
238c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
23960b858f2SKevin Cernekee	select BCM7038_L1_IRQ
24060b858f2SKevin Cernekee	select BCM7120_L2_IRQ
24160b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
24267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
24360b858f2SKevin Cernekee	select DMA_NONCOHERENT
244d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
24560b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
246d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
247d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
24860b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
24960b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
25060b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
251d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
252d666cd02SKevin Cernekee	select SWAP_IO_SPACE
25360b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
25460b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
25560b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
25660b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2574dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
258d666cd02SKevin Cernekee	help
2595f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2605f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2615f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2625f2d4459SKevin Cernekee	  must be set appropriately for your board.
263d666cd02SKevin Cernekee
2641c0c13ebSAurelien Jarnoconfig BCM47XX
265c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
266fe08f8c2SHauke Mehrtens	select BOOT_RAW
26742f77542SRalf Baechle	select CEVT_R4K
268940f6b48SRalf Baechle	select CSRC_R4K
2691c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
270eb01d42aSChristoph Hellwig	select HAVE_PCI
27167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
272314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
273dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
2741c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
2751c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
276377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
2776507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
27825e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
279e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
280c949c0bcSRafał Miłecki	select GPIOLIB
281c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
282f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
2832ab71a02SRafał Miłecki	select BCM47XX_SPROM
284dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
2851c0c13ebSAurelien Jarno	help
2861c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
2871c0c13ebSAurelien Jarno
288e7300d04SMaxime Bizonconfig BCM63XX
289e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
290ae8de61cSFlorian Fainelli	select BOOT_RAW
291e7300d04SMaxime Bizon	select CEVT_R4K
292e7300d04SMaxime Bizon	select CSRC_R4K
293fc264022SJonas Gorski	select SYNC_R4K
294e7300d04SMaxime Bizon	select DMA_NONCOHERENT
29567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
296e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
297e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
298e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
299e7300d04SMaxime Bizon	select SWAP_IO_SPACE
300d30a2b47SLinus Walleij	select GPIOLIB
301af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
302c5af3c2dSJonas Gorski	select CLKDEV_LOOKUP
303bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
304e7300d04SMaxime Bizon	help
305e7300d04SMaxime Bizon	  Support for BCM63XX based boards
306e7300d04SMaxime Bizon
3071da177e4SLinus Torvaldsconfig MIPS_COBALT
3083fa986faSMartin Michlmayr	bool "Cobalt Server"
30942f77542SRalf Baechle	select CEVT_R4K
310940f6b48SRalf Baechle	select CSRC_R4K
3111097c6acSYoichi Yuasa	select CEVT_GT641XX
3121da177e4SLinus Torvalds	select DMA_NONCOHERENT
313eb01d42aSChristoph Hellwig	select FORCE_PCI
314d865bea4SRalf Baechle	select I8253
3151da177e4SLinus Torvalds	select I8259
31667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
317d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
318252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3197cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3200a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
321ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3220e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3235e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
324e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3251da177e4SLinus Torvalds
3261da177e4SLinus Torvaldsconfig MACH_DECSTATION
3273fa986faSMartin Michlmayr	bool "DECstations"
3281da177e4SLinus Torvalds	select BOOT_ELF32
3296457d9fcSYoichi Yuasa	select CEVT_DS1287
33081d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3314247417dSYoichi Yuasa	select CSRC_IOASIC
33281d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
33320d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
33420d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
33520d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3361da177e4SLinus Torvalds	select DMA_NONCOHERENT
337ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
33867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3397cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3407cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
341ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3427d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3435e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3441723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3451723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3461723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
347930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3485e83d430SRalf Baechle	help
3491da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3501da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3511da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3521da177e4SLinus Torvalds
3531da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3541da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3551da177e4SLinus Torvalds
3561da177e4SLinus Torvalds		DECstation 5000/50
3571da177e4SLinus Torvalds		DECstation 5000/150
3581da177e4SLinus Torvalds		DECstation 5000/260
3591da177e4SLinus Torvalds		DECsystem 5900/260
3601da177e4SLinus Torvalds
3611da177e4SLinus Torvalds	  otherwise choose R3000.
3621da177e4SLinus Torvalds
3635e83d430SRalf Baechleconfig MACH_JAZZ
3643fa986faSMartin Michlmayr	bool "Jazz family of machines"
36539b2d756SThomas Bogendoerfer	select ARC_MEMORY
36639b2d756SThomas Bogendoerfer	select ARC_PROMLIB
367a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
3687a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
3692f9237d4SChristoph Hellwig	select DMA_OPS
3700e2794b0SRalf Baechle	select FW_ARC
3710e2794b0SRalf Baechle	select FW_ARC32
3725e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
37342f77542SRalf Baechle	select CEVT_R4K
374940f6b48SRalf Baechle	select CSRC_R4K
375e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
3765e83d430SRalf Baechle	select GENERIC_ISA_DMA
3778a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
37867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
379d865bea4SRalf Baechle	select I8253
3805e83d430SRalf Baechle	select I8259
3815e83d430SRalf Baechle	select ISA
3827cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
3835e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
3847d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3851723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
3861da177e4SLinus Torvalds	help
3875e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
3885e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
389692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
3905e83d430SRalf Baechle	  Olivetti M700-10 workstations.
3915e83d430SRalf Baechle
392de361e8bSPaul Burtonconfig MACH_INGENIC
393de361e8bSPaul Burton	bool "Ingenic SoC based machines"
3945ebabe59SLars-Peter Clausen	select SYS_SUPPORTS_32BIT_KERNEL
3955ebabe59SLars-Peter Clausen	select SYS_SUPPORTS_LITTLE_ENDIAN
396f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
397b35d2653SDaniel Silsby	select CPU_SUPPORTS_HUGEPAGES
3985ebabe59SLars-Peter Clausen	select DMA_NONCOHERENT
39967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
40037b4c3caSPaul Cercueil	select PINCTRL
401d30a2b47SLinus Walleij	select GPIOLIB
402ff1930c6SPaul Burton	select COMMON_CLK
40383bc7692SLars-Peter Clausen	select GENERIC_IRQ_CHIP
40415205fc0SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
405ffb1843dSPaul Burton	select USE_OF
4065ebabe59SLars-Peter Clausen
407171bb2f1SJohn Crispinconfig LANTIQ
408171bb2f1SJohn Crispin	bool "Lantiq based platforms"
409171bb2f1SJohn Crispin	select DMA_NONCOHERENT
41067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
411171bb2f1SJohn Crispin	select CEVT_R4K
412171bb2f1SJohn Crispin	select CSRC_R4K
413171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
414171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
415171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
416171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
417377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
418171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
419f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
420171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
421d30a2b47SLinus Walleij	select GPIOLIB
422171bb2f1SJohn Crispin	select SWAP_IO_SPACE
423171bb2f1SJohn Crispin	select BOOT_RAW
424287e3f3fSJohn Crispin	select CLKDEV_LOOKUP
425bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
426a0392222SJohn Crispin	select USE_OF
4273f8c50c9SJohn Crispin	select PINCTRL
4283f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
429c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
430c530781cSJohn Crispin	select RESET_CONTROLLER
431171bb2f1SJohn Crispin
43230ad29bbSHuacai Chenconfig MACH_LOONGSON32
433caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
434c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
435ade299d8SYoichi Yuasa	help
43630ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
43785749d24SWu Zhangjin
43830ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
43930ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
44030ad29bbSHuacai Chen	  Sciences (CAS).
441ade299d8SYoichi Yuasa
44271e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
44371e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
444ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
445ca585cf9SKelvin Cheung	help
44671e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
447ca585cf9SKelvin Cheung
44871e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
449caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
4506fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
4516fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
4526fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
4536fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
4546fbde6b4SJiaxun Yang	select BOOT_ELF32
4556fbde6b4SJiaxun Yang	select BOARD_SCACHE
4566fbde6b4SJiaxun Yang	select CSRC_R4K
4576fbde6b4SJiaxun Yang	select CEVT_R4K
4586fbde6b4SJiaxun Yang	select CPU_HAS_WB
4596fbde6b4SJiaxun Yang	select FORCE_PCI
4606fbde6b4SJiaxun Yang	select ISA
4616fbde6b4SJiaxun Yang	select I8259
4626fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
4637d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
4645125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
4656fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
4666423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
4676fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
4686fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
4696fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
4706fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
4716fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
4726fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
4736fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
4746fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
47571e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
4766fbde6b4SJiaxun Yang	select ZONE_DMA32
4776fbde6b4SJiaxun Yang	select NUMA
47887fcfa7bSJiaxun Yang	select COMMON_CLK
47987fcfa7bSJiaxun Yang	select USE_OF
48087fcfa7bSJiaxun Yang	select BUILTIN_DTB
48139c1485cSHuacai Chen	select PCI_HOST_GENERIC
48271e2f4ddSJiaxun Yang	help
483caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
484caed1d1bSHuacai Chen
485caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
486caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
487caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
488caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
489ca585cf9SKelvin Cheung
4906a438309SAndrew Brestickerconfig MACH_PISTACHIO
4916a438309SAndrew Bresticker	bool "IMG Pistachio SoC based boards"
4926a438309SAndrew Bresticker	select BOOT_ELF32
4936a438309SAndrew Bresticker	select BOOT_RAW
4946a438309SAndrew Bresticker	select CEVT_R4K
4956a438309SAndrew Bresticker	select CLKSRC_MIPS_GIC
4966a438309SAndrew Bresticker	select COMMON_CLK
4976a438309SAndrew Bresticker	select CSRC_R4K
498645c7827SZubair Lutfullah Kakakhel	select DMA_NONCOHERENT
499d30a2b47SLinus Walleij	select GPIOLIB
50067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
5016a438309SAndrew Bresticker	select MFD_SYSCON
5026a438309SAndrew Bresticker	select MIPS_CPU_SCACHE
5036a438309SAndrew Bresticker	select MIPS_GIC
5046a438309SAndrew Bresticker	select PINCTRL
5056a438309SAndrew Bresticker	select REGULATOR
5066a438309SAndrew Bresticker	select SYS_HAS_CPU_MIPS32_R2
5076a438309SAndrew Bresticker	select SYS_SUPPORTS_32BIT_KERNEL
5086a438309SAndrew Bresticker	select SYS_SUPPORTS_LITTLE_ENDIAN
5096a438309SAndrew Bresticker	select SYS_SUPPORTS_MIPS_CPS
5106a438309SAndrew Bresticker	select SYS_SUPPORTS_MULTITHREADING
51141cc07beSMatt Redfearn	select SYS_SUPPORTS_RELOCATABLE
5126a438309SAndrew Bresticker	select SYS_SUPPORTS_ZBOOT
513018f62eeSEzequiel Garcia	select SYS_HAS_EARLY_PRINTK
514018f62eeSEzequiel Garcia	select USE_GENERIC_EARLY_PRINTK_8250
5156a438309SAndrew Bresticker	select USE_OF
5166a438309SAndrew Bresticker	help
5176a438309SAndrew Bresticker	  This enables support for the IMG Pistachio SoC platform.
5186a438309SAndrew Bresticker
5191da177e4SLinus Torvaldsconfig MIPS_MALTA
5203fa986faSMartin Michlmayr	bool "MIPS Malta board"
52161ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
522a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5237a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5241da177e4SLinus Torvalds	select BOOT_ELF32
525fa71c960SRalf Baechle	select BOOT_RAW
526e8823d26SPaul Burton	select BUILTIN_DTB
52742f77542SRalf Baechle	select CEVT_R4K
528fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
52942b002abSGuenter Roeck	select COMMON_CLK
53047bf2b03SMaksym Kokhan	select CSRC_R4K
531885014bcSFelix Fietkau	select DMA_MAYBE_COHERENT
5321da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5338a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
534eb01d42aSChristoph Hellwig	select HAVE_PCI
535d865bea4SRalf Baechle	select I8253
5361da177e4SLinus Torvalds	select I8259
53747bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5385e83d430SRalf Baechle	select MIPS_BONITO64
5399318c51aSChris Dearman	select MIPS_CPU_SCACHE
54047bf2b03SMaksym Kokhan	select MIPS_GIC
541a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5425e83d430SRalf Baechle	select MIPS_MSC
54347bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
544ecafe3e9SPaul Burton	select SMP_UP if SMP
5451da177e4SLinus Torvalds	select SWAP_IO_SPACE
5467cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5477cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
548bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
549c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
550575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5517cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5525d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
553575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5547cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5557cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
556ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
557ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5585e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
559c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5605e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
561424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
56247bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
5630365070fSTim Anderson	select SYS_SUPPORTS_MIPS_CMP
564e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
565f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
56647bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
5679693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
568f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5691b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
570e8823d26SPaul Burton	select USE_OF
571abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
5721da177e4SLinus Torvalds	help
573f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5741da177e4SLinus Torvalds	  board.
5751da177e4SLinus Torvalds
5762572f00dSJoshua Hendersonconfig MACH_PIC32
5772572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5782572f00dSJoshua Henderson	help
5792572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5802572f00dSJoshua Henderson
5812572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5822572f00dSJoshua Henderson	  microcontrollers.
5832572f00dSJoshua Henderson
5845e83d430SRalf Baechleconfig MACH_VR41XX
58574142d65SYoichi Yuasa	bool "NEC VR4100 series based machines"
58642f77542SRalf Baechle	select CEVT_R4K
587940f6b48SRalf Baechle	select CSRC_R4K
5887cf8053bSRalf Baechle	select SYS_HAS_CPU_VR41XX
589377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
590d30a2b47SLinus Walleij	select GPIOLIB
5915e83d430SRalf Baechle
592ae2b5bb6SJohn Crispinconfig RALINK
593ae2b5bb6SJohn Crispin	bool "Ralink based machines"
594ae2b5bb6SJohn Crispin	select CEVT_R4K
595ae2b5bb6SJohn Crispin	select CSRC_R4K
596ae2b5bb6SJohn Crispin	select BOOT_RAW
597ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
59867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
599ae2b5bb6SJohn Crispin	select USE_OF
600ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
601ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
602ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
603ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
604377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
605ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
606ae2b5bb6SJohn Crispin	select CLKDEV_LOOKUP
6072a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6082a153f1cSJohn Crispin	select RESET_CONTROLLER
609ae2b5bb6SJohn Crispin
6101da177e4SLinus Torvaldsconfig SGI_IP22
6113fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
612c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
61339b2d756SThomas Bogendoerfer	select ARC_PROMLIB
6140e2794b0SRalf Baechle	select FW_ARC
6150e2794b0SRalf Baechle	select FW_ARC32
6167a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
6171da177e4SLinus Torvalds	select BOOT_ELF32
61842f77542SRalf Baechle	select CEVT_R4K
619940f6b48SRalf Baechle	select CSRC_R4K
620e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
6211da177e4SLinus Torvalds	select DMA_NONCOHERENT
6226630a8e5SChristoph Hellwig	select HAVE_EISA
623d865bea4SRalf Baechle	select I8253
62468de4803SThomas Bogendoerfer	select I8259
6251da177e4SLinus Torvalds	select IP22_CPU_SCACHE
62667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
627aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
628e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
629e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
63036e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
631e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
632e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
633e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
6341da177e4SLinus Torvalds	select SWAP_IO_SPACE
6357cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
6367cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
637c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
638ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
639ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6405e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
641802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
6425e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
64344def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
644930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
6451da177e4SLinus Torvalds	help
6461da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
6471da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
6481da177e4SLinus Torvalds	  that runs on these, say Y here.
6491da177e4SLinus Torvalds
6501da177e4SLinus Torvaldsconfig SGI_IP27
6513fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
65254aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
653397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
6540e2794b0SRalf Baechle	select FW_ARC
6550e2794b0SRalf Baechle	select FW_ARC64
656e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
6575e83d430SRalf Baechle	select BOOT_ELF64
658e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
65936a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
660eb01d42aSChristoph Hellwig	select HAVE_PCI
66169a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
662e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
663130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
664a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
665a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
6667cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
667ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6685e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
669d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
6701a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
671930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
6726c86a302SMike Rapoport	select NUMA
6731da177e4SLinus Torvalds	help
6741da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
6751da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
6761da177e4SLinus Torvalds	  here.
6771da177e4SLinus Torvalds
678e2defae5SThomas Bogendoerferconfig SGI_IP28
6797d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
680c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
68139b2d756SThomas Bogendoerfer	select ARC_PROMLIB
6820e2794b0SRalf Baechle	select FW_ARC
6830e2794b0SRalf Baechle	select FW_ARC64
6847a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
685e2defae5SThomas Bogendoerfer	select BOOT_ELF64
686e2defae5SThomas Bogendoerfer	select CEVT_R4K
687e2defae5SThomas Bogendoerfer	select CSRC_R4K
688e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
689e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
690e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
69167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
6926630a8e5SChristoph Hellwig	select HAVE_EISA
693e2defae5SThomas Bogendoerfer	select I8253
694e2defae5SThomas Bogendoerfer	select I8259
695e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
696e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
6975b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
698e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
699e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
700e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
701e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
702e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
703c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
704e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
705e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
706dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
707e2defae5SThomas Bogendoerfer	help
708e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
709e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
710e2defae5SThomas Bogendoerfer
7117505576dSThomas Bogendoerferconfig SGI_IP30
7127505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
7137505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
7147505576dSThomas Bogendoerfer	select FW_ARC
7157505576dSThomas Bogendoerfer	select FW_ARC64
7167505576dSThomas Bogendoerfer	select BOOT_ELF64
7177505576dSThomas Bogendoerfer	select CEVT_R4K
7187505576dSThomas Bogendoerfer	select CSRC_R4K
7197505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
7207505576dSThomas Bogendoerfer	select ZONE_DMA32
7217505576dSThomas Bogendoerfer	select HAVE_PCI
7227505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
7237505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
7247505576dSThomas Bogendoerfer	select NR_CPUS_DEFAULT_2
7257505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7267505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7277505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
7287505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7297505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
7307505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
7317505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
7327505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
7337505576dSThomas Bogendoerfer	select ARC_MEMORY
7347505576dSThomas Bogendoerfer	help
7357505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
7367505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
7377505576dSThomas Bogendoerfer
7381da177e4SLinus Torvaldsconfig SGI_IP32
739cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
74039b2d756SThomas Bogendoerfer	select ARC_MEMORY
74139b2d756SThomas Bogendoerfer	select ARC_PROMLIB
74203df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
7430e2794b0SRalf Baechle	select FW_ARC
7440e2794b0SRalf Baechle	select FW_ARC32
7451da177e4SLinus Torvalds	select BOOT_ELF32
74642f77542SRalf Baechle	select CEVT_R4K
747940f6b48SRalf Baechle	select CSRC_R4K
7481da177e4SLinus Torvalds	select DMA_NONCOHERENT
749eb01d42aSChristoph Hellwig	select HAVE_PCI
75067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7511da177e4SLinus Torvalds	select R5000_CPU_SCACHE
7521da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
7537cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
7547cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
7557cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
756dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
757ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7585e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7591da177e4SLinus Torvalds	help
7601da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
7611da177e4SLinus Torvalds
762ade299d8SYoichi Yuasaconfig SIBYTE_CRHINE
763ade299d8SYoichi Yuasa	bool "Sibyte BCM91120C-CRhine"
7645e83d430SRalf Baechle	select BOOT_ELF32
7655e83d430SRalf Baechle	select SIBYTE_BCM1120
7665e83d430SRalf Baechle	select SWAP_IO_SPACE
7677cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7685e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7695e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7705e83d430SRalf Baechle
771ade299d8SYoichi Yuasaconfig SIBYTE_CARMEL
772ade299d8SYoichi Yuasa	bool "Sibyte BCM91120x-Carmel"
7735e83d430SRalf Baechle	select BOOT_ELF32
7745e83d430SRalf Baechle	select SIBYTE_BCM1120
7755e83d430SRalf Baechle	select SWAP_IO_SPACE
7767cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7775e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7785e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7795e83d430SRalf Baechle
7805e83d430SRalf Baechleconfig SIBYTE_CRHONE
7813fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
7825e83d430SRalf Baechle	select BOOT_ELF32
7835e83d430SRalf Baechle	select SIBYTE_BCM1125
7845e83d430SRalf Baechle	select SWAP_IO_SPACE
7857cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7865e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7875e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
7885e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7895e83d430SRalf Baechle
790ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
791ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
792ade299d8SYoichi Yuasa	select BOOT_ELF32
793ade299d8SYoichi Yuasa	select SIBYTE_BCM1125H
794ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
795ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
796ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
797ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
798ade299d8SYoichi Yuasa
799ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
800ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
801ade299d8SYoichi Yuasa	select BOOT_ELF32
802fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
803ade299d8SYoichi Yuasa	select SIBYTE_SB1250
804ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
805ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
806ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
807ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
808ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
809cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
810e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
811ade299d8SYoichi Yuasa
812ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
813ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
814ade299d8SYoichi Yuasa	select BOOT_ELF32
815fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
816ade299d8SYoichi Yuasa	select SIBYTE_SB1250
817ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
818ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
819ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
820ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
821ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
822756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
823ade299d8SYoichi Yuasa
824ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
825ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
826ade299d8SYoichi Yuasa	select BOOT_ELF32
827ade299d8SYoichi Yuasa	select SIBYTE_SB1250
828ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
829ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
830ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
831ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
832e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
833ade299d8SYoichi Yuasa
834ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
835ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
836ade299d8SYoichi Yuasa	select BOOT_ELF32
837ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
838ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
839ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
840ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
841ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
842651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
843ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
844cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
845e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
846ade299d8SYoichi Yuasa
84714b36af4SThomas Bogendoerferconfig SNI_RM
84814b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
84939b2d756SThomas Bogendoerfer	select ARC_MEMORY
85039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
8510e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
8520e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
853aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
8545e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
855a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
8567a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
8575e83d430SRalf Baechle	select BOOT_ELF32
85842f77542SRalf Baechle	select CEVT_R4K
859940f6b48SRalf Baechle	select CSRC_R4K
860e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
8615e83d430SRalf Baechle	select DMA_NONCOHERENT
8625e83d430SRalf Baechle	select GENERIC_ISA_DMA
8636630a8e5SChristoph Hellwig	select HAVE_EISA
8648a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
865eb01d42aSChristoph Hellwig	select HAVE_PCI
86667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
867d865bea4SRalf Baechle	select I8253
8685e83d430SRalf Baechle	select I8259
8695e83d430SRalf Baechle	select ISA
8704a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
8717cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
8724a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
873c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8744a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
87536a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
876ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
8777d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
8784a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8795e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8805e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
88144def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
8821da177e4SLinus Torvalds	help
88314b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
88414b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
8855e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
8865e83d430SRalf Baechle	  support this machine type.
8871da177e4SLinus Torvalds
888edcaf1a6SAtsushi Nemotoconfig MACH_TX39XX
889edcaf1a6SAtsushi Nemoto	bool "Toshiba TX39 series based machines"
8905e83d430SRalf Baechle
891edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
892edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
893*24a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
89423fbee9dSRalf Baechle
89573b4390fSRalf Baechleconfig MIKROTIK_RB532
89673b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
89773b4390fSRalf Baechle	select CEVT_R4K
89873b4390fSRalf Baechle	select CSRC_R4K
89973b4390fSRalf Baechle	select DMA_NONCOHERENT
900eb01d42aSChristoph Hellwig	select HAVE_PCI
90167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
90273b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
90373b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
90473b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
90573b4390fSRalf Baechle	select SWAP_IO_SPACE
90673b4390fSRalf Baechle	select BOOT_RAW
907d30a2b47SLinus Walleij	select GPIOLIB
908930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
90973b4390fSRalf Baechle	help
91073b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
91173b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
91273b4390fSRalf Baechle
9139ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9149ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
915a86c7f72SDavid Daney	select CEVT_R4K
916ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
9171753d50cSChristoph Hellwig	select HAVE_RAPIDIO
918d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
919a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
920a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
921f65aad41SRalf Baechle	select EDAC_SUPPORT
922b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
92373569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
92473569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
925a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
9265e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
927eb01d42aSChristoph Hellwig	select HAVE_PCI
92878bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
92978bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
93078bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
931f00e001eSDavid Daney	select ZONE_DMA32
932465aaed0SDavid Daney	select HOLES_IN_ZONE
933d30a2b47SLinus Walleij	select GPIOLIB
9346e511163SDavid Daney	select USE_OF
9356e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9366e511163SDavid Daney	select SYS_SUPPORTS_SMP
9377820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
9387820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
939e326479fSAndrew Bresticker	select BUILTIN_DTB
9408c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
94109230cbcSChristoph Hellwig	select SWIOTLB
9423ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
943a86c7f72SDavid Daney	help
944a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
945a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
946a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
947a86c7f72SDavid Daney	  Some of the supported boards are:
948a86c7f72SDavid Daney		EBT3000
949a86c7f72SDavid Daney		EBH3000
950a86c7f72SDavid Daney		EBH3100
951a86c7f72SDavid Daney		Thunder
952a86c7f72SDavid Daney		Kodama
953a86c7f72SDavid Daney		Hikari
954a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
955a86c7f72SDavid Daney
9567f058e85SJayachandran Cconfig NLM_XLR_BOARD
9577f058e85SJayachandran C	bool "Netlogic XLR/XLS based systems"
9587f058e85SJayachandran C	select BOOT_ELF32
9597f058e85SJayachandran C	select NLM_COMMON
9607f058e85SJayachandran C	select SYS_HAS_CPU_XLR
9617f058e85SJayachandran C	select SYS_SUPPORTS_SMP
962eb01d42aSChristoph Hellwig	select HAVE_PCI
9637f058e85SJayachandran C	select SWAP_IO_SPACE
9647f058e85SJayachandran C	select SYS_SUPPORTS_32BIT_KERNEL
9657f058e85SJayachandran C	select SYS_SUPPORTS_64BIT_KERNEL
966d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
9677f058e85SJayachandran C	select SYS_SUPPORTS_BIG_ENDIAN
9687f058e85SJayachandran C	select SYS_SUPPORTS_HIGHMEM
9697f058e85SJayachandran C	select NR_CPUS_DEFAULT_32
9707f058e85SJayachandran C	select CEVT_R4K
9717f058e85SJayachandran C	select CSRC_R4K
97267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
973b97215fdSJayachandran C	select ZONE_DMA32 if 64BIT
9747f058e85SJayachandran C	select SYNC_R4K
9757f058e85SJayachandran C	select SYS_HAS_EARLY_PRINTK
9768f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT
9778f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT_UART16550
9787f058e85SJayachandran C	help
9797f058e85SJayachandran C	  Support for systems based on Netlogic XLR and XLS processors.
9807f058e85SJayachandran C	  Say Y here if you have a XLR or XLS based board.
9817f058e85SJayachandran C
9821c773ea4SJayachandran Cconfig NLM_XLP_BOARD
9831c773ea4SJayachandran C	bool "Netlogic XLP based systems"
9841c773ea4SJayachandran C	select BOOT_ELF32
9851c773ea4SJayachandran C	select NLM_COMMON
9861c773ea4SJayachandran C	select SYS_HAS_CPU_XLP
9871c773ea4SJayachandran C	select SYS_SUPPORTS_SMP
988eb01d42aSChristoph Hellwig	select HAVE_PCI
9891c773ea4SJayachandran C	select SYS_SUPPORTS_32BIT_KERNEL
9901c773ea4SJayachandran C	select SYS_SUPPORTS_64BIT_KERNEL
991d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
992d30a2b47SLinus Walleij	select GPIOLIB
9931c773ea4SJayachandran C	select SYS_SUPPORTS_BIG_ENDIAN
9941c773ea4SJayachandran C	select SYS_SUPPORTS_LITTLE_ENDIAN
9951c773ea4SJayachandran C	select SYS_SUPPORTS_HIGHMEM
9961c773ea4SJayachandran C	select NR_CPUS_DEFAULT_32
9971c773ea4SJayachandran C	select CEVT_R4K
9981c773ea4SJayachandran C	select CSRC_R4K
99967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1000b97215fdSJayachandran C	select ZONE_DMA32 if 64BIT
10011c773ea4SJayachandran C	select SYNC_R4K
10021c773ea4SJayachandran C	select SYS_HAS_EARLY_PRINTK
10032f6528e1SJayachandran C	select USE_OF
10048f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT
10058f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT_UART16550
10061c773ea4SJayachandran C	help
10071c773ea4SJayachandran C	  This board is based on Netlogic XLP Processor.
10081c773ea4SJayachandran C	  Say Y here if you have a XLP based board.
10091c773ea4SJayachandran C
10101da177e4SLinus Torvaldsendchoice
10111da177e4SLinus Torvalds
1012e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10133b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1014d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1015a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1016e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10178945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
1018eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
10195e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10205ebabe59SLars-Peter Clausensource "arch/mips/jz4740/Kconfig"
10218ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
10222572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1023af0cfb2cSEzequiel Garciasource "arch/mips/pistachio/Kconfig"
1024ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
102529c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
102638b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
102722b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
10285e83d430SRalf Baechlesource "arch/mips/vr41xx/Kconfig"
1029a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
103071e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
103130ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
103230ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
10337f058e85SJayachandran Csource "arch/mips/netlogic/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
110340e084a5SRalf Baechle	bool
110440e084a5SRalf Baechle
1105885014bcSFelix Fietkauconfig DMA_MAYBE_COHERENT
1106f3ecc0ffSChristoph Hellwig	select ARCH_HAS_DMA_COHERENCE_H
1107885014bcSFelix Fietkau	select DMA_NONCOHERENT
1108885014bcSFelix Fietkau	bool
1109885014bcSFelix Fietkau
111020d33064SPaul Burtonconfig DMA_PERDEV_COHERENT
111120d33064SPaul Burton	bool
1112347cb6afSChristoph Hellwig	select ARCH_HAS_SETUP_DMA_OPS
11135748e1b3SChristoph Hellwig	select DMA_NONCOHERENT
111420d33064SPaul Burton
11151da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11161da177e4SLinus Torvalds	bool
1117db91427bSChristoph Hellwig	#
1118db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1119db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1120db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1121db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1122db91427bSChristoph Hellwig	# significant advantages.
1123db91427bSChristoph Hellwig	#
1124419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1125fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1126f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1127fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
112834dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
1129f8c55dc6SChristoph Hellwig	select DMA_NONCOHERENT_CACHE_SYNC
113034dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11314ce588cdSRalf Baechle
113236a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11331da177e4SLinus Torvalds	bool
11341da177e4SLinus Torvalds
11351b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1136dbb74540SRalf Baechle	bool
1137dbb74540SRalf Baechle
11381da177e4SLinus Torvaldsconfig MIPS_BONITO64
11391da177e4SLinus Torvalds	bool
11401da177e4SLinus Torvalds
11411da177e4SLinus Torvaldsconfig MIPS_MSC
11421da177e4SLinus Torvalds	bool
11431da177e4SLinus Torvalds
114439b8d525SRalf Baechleconfig SYNC_R4K
114539b8d525SRalf Baechle	bool
114639b8d525SRalf Baechle
1147ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1148d388d685SMaciej W. Rozycki	def_bool n
1149d388d685SMaciej W. Rozycki
11504e0748f5SMarkos Chandrasconfig GENERIC_CSUM
115118d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11524e0748f5SMarkos Chandras
11538313da30SRalf Baechleconfig GENERIC_ISA_DMA
11548313da30SRalf Baechle	bool
11558313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1156a35bee8aSNamhyung Kim	select ISA_DMA_API
11578313da30SRalf Baechle
1158aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1159aa414dffSRalf Baechle	bool
11608313da30SRalf Baechle	select GENERIC_ISA_DMA
1161aa414dffSRalf Baechle
116278bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
116378bdbbacSMasahiro Yamada	bool
116478bdbbacSMasahiro Yamada
116578bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
116678bdbbacSMasahiro Yamada	bool
116778bdbbacSMasahiro Yamada
116878bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
116978bdbbacSMasahiro Yamada	bool
117078bdbbacSMasahiro Yamada
1171a35bee8aSNamhyung Kimconfig ISA_DMA_API
1172a35bee8aSNamhyung Kim	bool
1173a35bee8aSNamhyung Kim
1174465aaed0SDavid Daneyconfig HOLES_IN_ZONE
1175465aaed0SDavid Daney	bool
1176465aaed0SDavid Daney
11778c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11788c530ea3SMatt Redfearn	bool
11798c530ea3SMatt Redfearn	help
11808c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11818c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11828c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
11838c530ea3SMatt Redfearn
1184f381bf6dSDavid Daneyconfig MIPS_CBPF_JIT
1185f381bf6dSDavid Daney	def_bool y
1186f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_CBPF_JIT
1187f381bf6dSDavid Daney
1188f381bf6dSDavid Daneyconfig MIPS_EBPF_JIT
1189f381bf6dSDavid Daney	def_bool y
1190f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_EBPF_JIT
1191f381bf6dSDavid Daney
1192f381bf6dSDavid Daney
11935e83d430SRalf Baechle#
11946b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
11955e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11965e83d430SRalf Baechle# choice statement should be more obvious to the user.
11975e83d430SRalf Baechle#
11985e83d430SRalf Baechlechoice
11996b2aac42SMasanari Iida	prompt "Endianness selection"
12001da177e4SLinus Torvalds	help
12011da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
12025e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
12033cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
12045e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
12053dde6ad8SDavid Sterba	  one or the other endianness.
12065e83d430SRalf Baechle
12075e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
12085e83d430SRalf Baechle	bool "Big endian"
12095e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
12105e83d430SRalf Baechle
12115e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
12125e83d430SRalf Baechle	bool "Little endian"
12135e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
12145e83d430SRalf Baechle
12155e83d430SRalf Baechleendchoice
12165e83d430SRalf Baechle
121722b0763aSDavid Daneyconfig EXPORT_UASM
121822b0763aSDavid Daney	bool
121922b0763aSDavid Daney
12202116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12212116245eSRalf Baechle	bool
12222116245eSRalf Baechle
12235e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12245e83d430SRalf Baechle	bool
12255e83d430SRalf Baechle
12265e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12275e83d430SRalf Baechle	bool
12281da177e4SLinus Torvalds
12299cffd154SDavid Daneyconfig SYS_SUPPORTS_HUGETLBFS
12309cffd154SDavid Daney	bool
123145e03e62SDaniel Silsby	depends on CPU_SUPPORTS_HUGEPAGES
12329cffd154SDavid Daney	default y
12339cffd154SDavid Daney
1234aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1235aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1236aa1762f4SDavid Daney
12371da177e4SLinus Torvaldsconfig IRQ_CPU_RM7K
12381da177e4SLinus Torvalds	bool
12391da177e4SLinus Torvalds
12409267a30dSMarc St-Jeanconfig IRQ_MSP_SLP
12419267a30dSMarc St-Jean	bool
12429267a30dSMarc St-Jean
12439267a30dSMarc St-Jeanconfig IRQ_MSP_CIC
12449267a30dSMarc St-Jean	bool
12459267a30dSMarc St-Jean
12468420fd00SAtsushi Nemotoconfig IRQ_TXX9
12478420fd00SAtsushi Nemoto	bool
12488420fd00SAtsushi Nemoto
1249d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1250d5ab1a69SYoichi Yuasa	bool
1251d5ab1a69SYoichi Yuasa
1252252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12531da177e4SLinus Torvalds	bool
12541da177e4SLinus Torvalds
1255a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1256a57140e9SThomas Bogendoerfer	bool
1257a57140e9SThomas Bogendoerfer
12589267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12599267a30dSMarc St-Jean	bool
12609267a30dSMarc St-Jean
1261a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1262a7e07b1aSMarkos Chandras	bool
1263a7e07b1aSMarkos Chandras
12641da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12651da177e4SLinus Torvalds	bool
12661da177e4SLinus Torvalds
1267e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1268e2defae5SThomas Bogendoerfer	bool
1269e2defae5SThomas Bogendoerfer
12705b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12715b438c44SThomas Bogendoerfer	bool
12725b438c44SThomas Bogendoerfer
1273e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1274e2defae5SThomas Bogendoerfer	bool
1275e2defae5SThomas Bogendoerfer
1276e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1277e2defae5SThomas Bogendoerfer	bool
1278e2defae5SThomas Bogendoerfer
1279e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1280e2defae5SThomas Bogendoerfer	bool
1281e2defae5SThomas Bogendoerfer
1282e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1283e2defae5SThomas Bogendoerfer	bool
1284e2defae5SThomas Bogendoerfer
1285e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1286e2defae5SThomas Bogendoerfer	bool
1287e2defae5SThomas Bogendoerfer
12880e2794b0SRalf Baechleconfig FW_ARC32
12895e83d430SRalf Baechle	bool
12905e83d430SRalf Baechle
1291aaa9fad3SPaul Bolleconfig FW_SNIPROM
1292231a35d3SThomas Bogendoerfer	bool
1293231a35d3SThomas Bogendoerfer
12941da177e4SLinus Torvaldsconfig BOOT_ELF32
12951da177e4SLinus Torvalds	bool
12961da177e4SLinus Torvalds
1297930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1298930beb5aSFlorian Fainelli	bool
1299930beb5aSFlorian Fainelli
1300930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1301930beb5aSFlorian Fainelli	bool
1302930beb5aSFlorian Fainelli
1303930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1304930beb5aSFlorian Fainelli	bool
1305930beb5aSFlorian Fainelli
1306930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1307930beb5aSFlorian Fainelli	bool
1308930beb5aSFlorian Fainelli
13091da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
13101da177e4SLinus Torvalds	int
1311a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
13125432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
13135432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
13145432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
13151da177e4SLinus Torvalds	default "5"
13161da177e4SLinus Torvalds
1317e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1318e9422427SThomas Bogendoerfer	bool
1319e9422427SThomas Bogendoerfer
13201da177e4SLinus Torvaldsconfig ARC_CONSOLE
13211da177e4SLinus Torvalds	bool "ARC console support"
1322e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
13231da177e4SLinus Torvalds
13241da177e4SLinus Torvaldsconfig ARC_MEMORY
13251da177e4SLinus Torvalds	bool
13261da177e4SLinus Torvalds
13271da177e4SLinus Torvaldsconfig ARC_PROMLIB
13281da177e4SLinus Torvalds	bool
13291da177e4SLinus Torvalds
13300e2794b0SRalf Baechleconfig FW_ARC64
13311da177e4SLinus Torvalds	bool
13321da177e4SLinus Torvalds
13331da177e4SLinus Torvaldsconfig BOOT_ELF64
13341da177e4SLinus Torvalds	bool
13351da177e4SLinus Torvalds
13361da177e4SLinus Torvaldsmenu "CPU selection"
13371da177e4SLinus Torvalds
13381da177e4SLinus Torvaldschoice
13391da177e4SLinus Torvalds	prompt "CPU type"
13401da177e4SLinus Torvalds	default CPU_R4X00
13411da177e4SLinus Torvalds
1342268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1343caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1344268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1345d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
134651522217SJiaxun Yang	select CPU_MIPSR2
134751522217SJiaxun Yang	select CPU_HAS_PREFETCH
13480e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13490e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13500e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13517507445bSHuacai Chen	select CPU_SUPPORTS_MSA
135251522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
135351522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
13540e476d91SHuacai Chen	select WEAK_ORDERING
13550e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13567507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1357b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
135817c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
1359d30a2b47SLinus Walleij	select GPIOLIB
136009230cbcSChristoph Hellwig	select SWIOTLB
13610f78355cSHuacai Chen	select HAVE_KVM
13620e476d91SHuacai Chen	help
1363caed1d1bSHuacai Chen		The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1364caed1d1bSHuacai Chen		cores implements the MIPS64R2 instruction set with many extensions,
1365caed1d1bSHuacai Chen		including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1366caed1d1bSHuacai Chen		3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1367caed1d1bSHuacai Chen		Loongson-2E/2F is not covered here and will be removed in future.
13680e476d91SHuacai Chen
1369caed1d1bSHuacai Chenconfig LOONGSON3_ENHANCEMENT
1370caed1d1bSHuacai Chen	bool "New Loongson-3 CPU Enhancements"
13711e820da3SHuacai Chen	default n
1372268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
13731e820da3SHuacai Chen	help
1374caed1d1bSHuacai Chen	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
13751e820da3SHuacai Chen	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1376268a2d60SJiaxun Yang	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
13771e820da3SHuacai Chen	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
13781e820da3SHuacai Chen	  Fast TLB refill support, etc.
13791e820da3SHuacai Chen
13801e820da3SHuacai Chen	  This option enable those enhancements which are not probed at run
13811e820da3SHuacai Chen	  time. If you want a generic kernel to run on all Loongson 3 machines,
13821e820da3SHuacai Chen	  please say 'N' here. If you want a high-performance kernel to run on
1383caed1d1bSHuacai Chen	  new Loongson-3 machines only, please say 'Y' here.
13841e820da3SHuacai Chen
1385e02e07e3SHuacai Chenconfig CPU_LOONGSON3_WORKAROUNDS
1386caed1d1bSHuacai Chen	bool "Old Loongson-3 LLSC Workarounds"
1387e02e07e3SHuacai Chen	default y if SMP
1388268a2d60SJiaxun Yang	depends on CPU_LOONGSON64
1389e02e07e3SHuacai Chen	help
1390caed1d1bSHuacai Chen	  Loongson-3 processors have the llsc issues which require workarounds.
1391e02e07e3SHuacai Chen	  Without workarounds the system may hang unexpectedly.
1392e02e07e3SHuacai Chen
1393caed1d1bSHuacai Chen	  Newer Loongson-3 will fix these issues and no workarounds are needed.
1394e02e07e3SHuacai Chen	  The workarounds have no significant side effect on them but may
1395e02e07e3SHuacai Chen	  decrease the performance of the system so this option should be
1396e02e07e3SHuacai Chen	  disabled unless the kernel is intended to be run on old systems.
1397e02e07e3SHuacai Chen
1398e02e07e3SHuacai Chen	  If unsure, please say Y.
1399e02e07e3SHuacai Chen
1400ec7a9318SWANG Xueruiconfig CPU_LOONGSON3_CPUCFG_EMULATION
1401ec7a9318SWANG Xuerui	bool "Emulate the CPUCFG instruction on older Loongson cores"
1402ec7a9318SWANG Xuerui	default y
1403ec7a9318SWANG Xuerui	depends on CPU_LOONGSON64
1404ec7a9318SWANG Xuerui	help
1405ec7a9318SWANG Xuerui	  Loongson-3A R4 and newer have the CPUCFG instruction available for
1406ec7a9318SWANG Xuerui	  userland to query CPU capabilities, much like CPUID on x86. This
1407ec7a9318SWANG Xuerui	  option provides emulation of the instruction on older Loongson
1408ec7a9318SWANG Xuerui	  cores, back to Loongson-3A1000.
1409ec7a9318SWANG Xuerui
1410ec7a9318SWANG Xuerui	  If unsure, please say Y.
1411ec7a9318SWANG Xuerui
14123702bba5SWu Zhangjinconfig CPU_LOONGSON2E
14133702bba5SWu Zhangjin	bool "Loongson 2E"
14143702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1415268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
14162a21c730SFuxin Zhang	help
14172a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
14182a21c730SFuxin Zhang	  with many extensions.
14192a21c730SFuxin Zhang
142025985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
14216f7a251aSWu Zhangjin	  bonito64.
14226f7a251aSWu Zhangjin
14236f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
14246f7a251aSWu Zhangjin	bool "Loongson 2F"
14256f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1426268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
1427d30a2b47SLinus Walleij	select GPIOLIB
14286f7a251aSWu Zhangjin	help
14296f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
14306f7a251aSWu Zhangjin	  with many extensions.
14316f7a251aSWu Zhangjin
14326f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
14336f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
14346f7a251aSWu Zhangjin	  Loongson2E.
14356f7a251aSWu Zhangjin
1436ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1437ca585cf9SKelvin Cheung	bool "Loongson 1B"
1438ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1439b2afb64cSHuacai Chen	select CPU_LOONGSON32
14409ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1441ca585cf9SKelvin Cheung	help
1442ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1443968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1444968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
1445ca585cf9SKelvin Cheung
144612e3280bSYang Lingconfig CPU_LOONGSON1C
144712e3280bSYang Ling	bool "Loongson 1C"
144812e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
1449b2afb64cSHuacai Chen	select CPU_LOONGSON32
145012e3280bSYang Ling	select LEDS_GPIO_REGISTER
145112e3280bSYang Ling	help
145212e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1453968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1454968dc5a0S谢致邦 (XIE Zhibang)	  instruction set.
145512e3280bSYang Ling
14566e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14576e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14587cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14596e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1460797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1461ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14626e760c8dSRalf Baechle	help
14635e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14641e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14651e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14661e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14671e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14681e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14691e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14701e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14711e5f1caaSRalf Baechle	  performance.
14721e5f1caaSRalf Baechle
14731e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14741e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14757cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14761e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1477797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1478ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1479a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14802235a54dSSanjay Lal	select HAVE_KVM
14811e5f1caaSRalf Baechle	help
14825e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14836e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14846e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14856e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14866e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14871da177e4SLinus Torvalds
1488ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1489ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1490ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1491ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1492ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1493ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1494ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1495ab7c01fdSSerge Semin	select HAVE_KVM
1496ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1497ab7c01fdSSerge Semin	help
1498ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1499ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1500ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1501ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1502ab7c01fdSSerge Semin
15037fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1504674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
15057fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
15067fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
150718d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15087fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15097fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
15107fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15117fd08ca5SLeonid Yegoshin	select HAVE_KVM
15127fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
15137fd08ca5SLeonid Yegoshin	help
15147fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15157fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
15167fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
15177fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
15187fd08ca5SLeonid Yegoshin
15196e760c8dSRalf Baechleconfig CPU_MIPS64_R1
15206e760c8dSRalf Baechle	bool "MIPS64 Release 1"
15217cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1522797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1523ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1524ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1525ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15269cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
15276e760c8dSRalf Baechle	help
15286e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
15296e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15306e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15316e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
15326e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15331e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
15341e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
15351e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
15361e5f1caaSRalf Baechle	  performance.
15371e5f1caaSRalf Baechle
15381e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
15391e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
15407cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1541797798c1SRalf Baechle	select CPU_HAS_PREFETCH
15421e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
15431e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1544ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15459cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1546a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
154740a2df49SJames Hogan	select HAVE_KVM
15481e5f1caaSRalf Baechle	help
15491e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
15501e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15511e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15521e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15531e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15541da177e4SLinus Torvalds
1555ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1556ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1557ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1558ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1559ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1560ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1561ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1562ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1563ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1564ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1565ab7c01fdSSerge Semin	select HAVE_KVM
1566ab7c01fdSSerge Semin	help
1567ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1568ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1569ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1570ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1571ab7c01fdSSerge Semin
15727fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1573674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15747fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15757fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
157618d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15777fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15787fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15797fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1580afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15817fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15822e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
158340a2df49SJames Hogan	select HAVE_KVM
15847fd08ca5SLeonid Yegoshin	help
15857fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15867fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15877fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15887fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15897fd08ca5SLeonid Yegoshin
1590281e3aeaSSerge Seminconfig CPU_P5600
1591281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1592281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1593281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1594281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1595281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1596281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1597281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1598281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1599281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1600281e3aeaSSerge Semin	select HAVE_KVM
1601281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1602281e3aeaSSerge Semin	help
1603281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1604281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1605281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1606281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1607281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1608281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1609281e3aeaSSerge Semin	  eJTAG and PDtrace.
1610281e3aeaSSerge Semin
16111da177e4SLinus Torvaldsconfig CPU_R3000
16121da177e4SLinus Torvalds	bool "R3000"
16137cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1614f7062ddbSRalf Baechle	select CPU_HAS_WB
161554746829SPaul Burton	select CPU_R3K_TLB
1616ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1617797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
16181da177e4SLinus Torvalds	help
16191da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
16201da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
16211da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
16221da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
16231da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
16241da177e4SLinus Torvalds	  try to recompile with R3000.
16251da177e4SLinus Torvalds
16261da177e4SLinus Torvaldsconfig CPU_TX39XX
16271da177e4SLinus Torvalds	bool "R39XX"
16287cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX39XX
1629ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
163054746829SPaul Burton	select CPU_R3K_TLB
16311da177e4SLinus Torvalds
16321da177e4SLinus Torvaldsconfig CPU_VR41XX
16331da177e4SLinus Torvalds	bool "R41xx"
16347cf8053bSRalf Baechle	depends on SYS_HAS_CPU_VR41XX
1635ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1636ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
16371da177e4SLinus Torvalds	help
16385e83d430SRalf Baechle	  The options selects support for the NEC VR4100 series of processors.
16391da177e4SLinus Torvalds	  Only choose this option if you have one of these processors as a
16401da177e4SLinus Torvalds	  kernel built with this option will not run on any other type of
16411da177e4SLinus Torvalds	  processor or vice versa.
16421da177e4SLinus Torvalds
16431da177e4SLinus Torvaldsconfig CPU_R4X00
16441da177e4SLinus Torvalds	bool "R4x00"
16457cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1646ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1647ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1648970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16491da177e4SLinus Torvalds	help
16501da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
16511da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
16521da177e4SLinus Torvalds
16531da177e4SLinus Torvaldsconfig CPU_TX49XX
16541da177e4SLinus Torvalds	bool "R49XX"
16557cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1656de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1657ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1658ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1659970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16601da177e4SLinus Torvalds
16611da177e4SLinus Torvaldsconfig CPU_R5000
16621da177e4SLinus Torvalds	bool "R5000"
16637cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1664ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1665ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1666970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16671da177e4SLinus Torvalds	help
16681da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16691da177e4SLinus Torvalds
1670542c1020SShinya Kuribayashiconfig CPU_R5500
1671542c1020SShinya Kuribayashi	bool "R5500"
1672542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1673542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1674542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16759cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1676542c1020SShinya Kuribayashi	help
1677542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1678542c1020SShinya Kuribayashi	  instruction set.
1679542c1020SShinya Kuribayashi
16801da177e4SLinus Torvaldsconfig CPU_NEVADA
16811da177e4SLinus Torvalds	bool "RM52xx"
16827cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1683ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1684ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1685970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16861da177e4SLinus Torvalds	help
16871da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16881da177e4SLinus Torvalds
16891da177e4SLinus Torvaldsconfig CPU_R10000
16901da177e4SLinus Torvalds	bool "R10000"
16917cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16925e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1693ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1694ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1695797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1696970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16971da177e4SLinus Torvalds	help
16981da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16991da177e4SLinus Torvalds
17001da177e4SLinus Torvaldsconfig CPU_RM7000
17011da177e4SLinus Torvalds	bool "RM7000"
17027cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
17035e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1704ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1705ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1706797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1707970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
17081da177e4SLinus Torvalds
17091da177e4SLinus Torvaldsconfig CPU_SB1
17101da177e4SLinus Torvalds	bool "SB1"
17117cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1712ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1713ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1714797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1715970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
17160004a9dfSRalf Baechle	select WEAK_ORDERING
17171da177e4SLinus Torvalds
1718a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1719a86c7f72SDavid Daney	bool "Cavium Octeon processor"
17205e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1721a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1722a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1723a86c7f72SDavid Daney	select WEAK_ORDERING
1724a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
17259cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1726df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1727df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1728930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
17290ae3abcdSJames Hogan	select HAVE_KVM
1730a86c7f72SDavid Daney	help
1731a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1732a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1733a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1734a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1735a86c7f72SDavid Daney
1736cd746249SJonas Gorskiconfig CPU_BMIPS
1737cd746249SJonas Gorski	bool "Broadcom BMIPS"
1738cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1739cd746249SJonas Gorski	select CPU_MIPS32
1740fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1741cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1742cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1743cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1744cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1745cd746249SJonas Gorski	select DMA_NONCOHERENT
174667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1747cd746249SJonas Gorski	select SWAP_IO_SPACE
1748cd746249SJonas Gorski	select WEAK_ORDERING
1749c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
175069aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1751a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1752a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1753c1c0c461SKevin Cernekee	help
1754fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1755c1c0c461SKevin Cernekee
17567f058e85SJayachandran Cconfig CPU_XLR
17577f058e85SJayachandran C	bool "Netlogic XLR SoC"
17587f058e85SJayachandran C	depends on SYS_HAS_CPU_XLR
17597f058e85SJayachandran C	select CPU_SUPPORTS_32BIT_KERNEL
17607f058e85SJayachandran C	select CPU_SUPPORTS_64BIT_KERNEL
17617f058e85SJayachandran C	select CPU_SUPPORTS_HIGHMEM
1762970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
17637f058e85SJayachandran C	select WEAK_ORDERING
17647f058e85SJayachandran C	select WEAK_REORDERING_BEYOND_LLSC
17657f058e85SJayachandran C	help
17667f058e85SJayachandran C	  Netlogic Microsystems XLR/XLS processors.
17671c773ea4SJayachandran C
17681c773ea4SJayachandran Cconfig CPU_XLP
17691c773ea4SJayachandran C	bool "Netlogic XLP SoC"
17701c773ea4SJayachandran C	depends on SYS_HAS_CPU_XLP
17711c773ea4SJayachandran C	select CPU_SUPPORTS_32BIT_KERNEL
17721c773ea4SJayachandran C	select CPU_SUPPORTS_64BIT_KERNEL
17731c773ea4SJayachandran C	select CPU_SUPPORTS_HIGHMEM
17741c773ea4SJayachandran C	select WEAK_ORDERING
17751c773ea4SJayachandran C	select WEAK_REORDERING_BEYOND_LLSC
17761c773ea4SJayachandran C	select CPU_HAS_PREFETCH
1777d6504846SJayachandran C	select CPU_MIPSR2
1778ddba6833SPrem Mallappa	select CPU_SUPPORTS_HUGEPAGES
17792db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
17801c773ea4SJayachandran C	help
17811c773ea4SJayachandran C	  Netlogic Microsystems XLP processors.
17821da177e4SLinus Torvaldsendchoice
17831da177e4SLinus Torvalds
1784a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1785a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1786a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1787281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1788281e3aeaSSerge Semin		   CPU_P5600
1789a6e18781SLeonid Yegoshin	help
1790a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1791a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1792a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1793a6e18781SLeonid Yegoshin
1794a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1795a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1796a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1797a6e18781SLeonid Yegoshin	select EVA
1798a6e18781SLeonid Yegoshin	default y
1799a6e18781SLeonid Yegoshin	help
1800a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1801a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1802a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1803a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1804a6e18781SLeonid Yegoshin
1805c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1806c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1807c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1808281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1809c5b36783SSteven J. Hill	help
1810c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1811c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1812c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1813c5b36783SSteven J. Hill
1814c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1815c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1816c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1817c5b36783SSteven J. Hill	depends on !EVA
1818c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1819c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1820c5b36783SSteven J. Hill	select XPA
1821c5b36783SSteven J. Hill	select HIGHMEM
1822d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1823c5b36783SSteven J. Hill	default n
1824c5b36783SSteven J. Hill	help
1825c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1826c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1827c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1828c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1829c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1830c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1831c5b36783SSteven J. Hill
1832622844bfSWu Zhangjinif CPU_LOONGSON2F
1833622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1834622844bfSWu Zhangjin	bool
1835622844bfSWu Zhangjin
1836622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1837622844bfSWu Zhangjin	bool
1838622844bfSWu Zhangjin
1839622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1840622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1841622844bfSWu Zhangjin	default y
1842622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1843622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1844622844bfSWu Zhangjin	help
1845622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1846622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1847622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1848622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1849622844bfSWu Zhangjin
1850622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1851622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1852622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1853622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1854622844bfSWu Zhangjin	  systems.
1855622844bfSWu Zhangjin
1856622844bfSWu Zhangjin	  If unsure, please say Y.
1857622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1858622844bfSWu Zhangjin
18591b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
18601b93b3c3SWu Zhangjin	bool
18611b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
18621b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
186331c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
18641b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1865fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
18664e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1867a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
18681b93b3c3SWu Zhangjin
18691b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18701b93b3c3SWu Zhangjin	bool
18711b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
18721b93b3c3SWu Zhangjin
1873dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1874dbb98314SAlban Bedel	bool
1875dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1876dbb98314SAlban Bedel
1877268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
18783702bba5SWu Zhangjin	bool
18793702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18803702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18813702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1882970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
1883e905086eSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
18843702bba5SWu Zhangjin
1885b2afb64cSHuacai Chenconfig CPU_LOONGSON32
1886ca585cf9SKelvin Cheung	bool
1887ca585cf9SKelvin Cheung	select CPU_MIPS32
18887e280f6bSJiaxun Yang	select CPU_MIPSR2
1889ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1890ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1891ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1892f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1893ca585cf9SKelvin Cheung
1894fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
189504fa8bf7SJonas Gorski	select SMP_UP if SMP
18961bbb6c1bSKevin Cernekee	bool
1897cd746249SJonas Gorski
1898cd746249SJonas Gorskiconfig CPU_BMIPS4350
1899cd746249SJonas Gorski	bool
1900cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1901cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1902cd746249SJonas Gorski
1903cd746249SJonas Gorskiconfig CPU_BMIPS4380
1904cd746249SJonas Gorski	bool
1905bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1906cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1907cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1908b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1909cd746249SJonas Gorski
1910cd746249SJonas Gorskiconfig CPU_BMIPS5000
1911cd746249SJonas Gorski	bool
1912cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1913bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1914cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1915cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1916b4720809SFlorian Fainelli	select CPU_HAS_RIXI
19171bbb6c1bSKevin Cernekee
1918268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
19190e476d91SHuacai Chen	bool
19200e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1921b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
19220e476d91SHuacai Chen
19233702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
19242a21c730SFuxin Zhang	bool
19252a21c730SFuxin Zhang
19266f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
19276f7a251aSWu Zhangjin	bool
192855045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
192955045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
19306f7a251aSWu Zhangjin
1931ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1932ca585cf9SKelvin Cheung	bool
1933ca585cf9SKelvin Cheung
193412e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
193512e3280bSYang Ling	bool
193612e3280bSYang Ling
19377cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
19387cf8053bSRalf Baechle	bool
19397cf8053bSRalf Baechle
19407cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
19417cf8053bSRalf Baechle	bool
19427cf8053bSRalf Baechle
1943a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1944a6e18781SLeonid Yegoshin	bool
1945a6e18781SLeonid Yegoshin
1946c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1947c5b36783SSteven J. Hill	bool
19489ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1949c5b36783SSteven J. Hill
19507fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
19517fd08ca5SLeonid Yegoshin	bool
19529ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19537fd08ca5SLeonid Yegoshin
19547cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
19557cf8053bSRalf Baechle	bool
19567cf8053bSRalf Baechle
19577cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
19587cf8053bSRalf Baechle	bool
19597cf8053bSRalf Baechle
19607fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19617fd08ca5SLeonid Yegoshin	bool
19629ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19637fd08ca5SLeonid Yegoshin
1964281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1965281e3aeaSSerge Semin	bool
1966281e3aeaSSerge Semin	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
1967281e3aeaSSerge Semin
19687cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19697cf8053bSRalf Baechle	bool
19707cf8053bSRalf Baechle
19717cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX39XX
19727cf8053bSRalf Baechle	bool
19737cf8053bSRalf Baechle
19747cf8053bSRalf Baechleconfig SYS_HAS_CPU_VR41XX
19757cf8053bSRalf Baechle	bool
19767cf8053bSRalf Baechle
19777cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19787cf8053bSRalf Baechle	bool
19797cf8053bSRalf Baechle
19807cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19817cf8053bSRalf Baechle	bool
19827cf8053bSRalf Baechle
19837cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19847cf8053bSRalf Baechle	bool
19857cf8053bSRalf Baechle
1986542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1987542c1020SShinya Kuribayashi	bool
1988542c1020SShinya Kuribayashi
19897cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19907cf8053bSRalf Baechle	bool
19917cf8053bSRalf Baechle
19927cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19937cf8053bSRalf Baechle	bool
19949ae1f262SPaul Burton	select ARCH_HAS_SYNC_DMA_FOR_CPU if DMA_NONCOHERENT
19957cf8053bSRalf Baechle
19967cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19977cf8053bSRalf Baechle	bool
19987cf8053bSRalf Baechle
19997cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
20007cf8053bSRalf Baechle	bool
20017cf8053bSRalf Baechle
20025e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
20035e683389SDavid Daney	bool
20045e683389SDavid Daney
2005cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
2006c1c0c461SKevin Cernekee	bool
2007c1c0c461SKevin Cernekee
2008fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
2009c1c0c461SKevin Cernekee	bool
2010cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
2011c1c0c461SKevin Cernekee
2012c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
2013c1c0c461SKevin Cernekee	bool
2014cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
2015c1c0c461SKevin Cernekee
2016c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
2017c1c0c461SKevin Cernekee	bool
2018cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
2019c1c0c461SKevin Cernekee
2020c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
2021c1c0c461SKevin Cernekee	bool
2022cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
2023f263f2a2SHauke Mehrtens	select ARCH_HAS_SYNC_DMA_FOR_CPU
2024c1c0c461SKevin Cernekee
20257f058e85SJayachandran Cconfig SYS_HAS_CPU_XLR
20267f058e85SJayachandran C	bool
20277f058e85SJayachandran C
20281c773ea4SJayachandran Cconfig SYS_HAS_CPU_XLP
20291c773ea4SJayachandran C	bool
20301c773ea4SJayachandran C
203117099b11SRalf Baechle#
203217099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
203317099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
203417099b11SRalf Baechle#
20350004a9dfSRalf Baechleconfig WEAK_ORDERING
20360004a9dfSRalf Baechle	bool
203717099b11SRalf Baechle
203817099b11SRalf Baechle#
203917099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
204017099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
204117099b11SRalf Baechle#
204217099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
204317099b11SRalf Baechle	bool
20445e83d430SRalf Baechleendmenu
20455e83d430SRalf Baechle
20465e83d430SRalf Baechle#
20475e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
20485e83d430SRalf Baechle#
20495e83d430SRalf Baechleconfig CPU_MIPS32
20505e83d430SRalf Baechle	bool
2051ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
2052281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
20535e83d430SRalf Baechle
20545e83d430SRalf Baechleconfig CPU_MIPS64
20555e83d430SRalf Baechle	bool
2056ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
2057ab7c01fdSSerge Semin		     CPU_MIPS64_R6
20585e83d430SRalf Baechle
20595e83d430SRalf Baechle#
206057eeacedSPaul Burton# These indicate the revision of the architecture
20615e83d430SRalf Baechle#
20625e83d430SRalf Baechleconfig CPU_MIPSR1
20635e83d430SRalf Baechle	bool
20645e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
20655e83d430SRalf Baechle
20665e83d430SRalf Baechleconfig CPU_MIPSR2
20675e83d430SRalf Baechle	bool
2068a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20698256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2070ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2071a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20725e83d430SRalf Baechle
2073ab7c01fdSSerge Seminconfig CPU_MIPSR5
2074ab7c01fdSSerge Semin	bool
2075281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2076ab7c01fdSSerge Semin	select CPU_HAS_RIXI
2077ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2078ab7c01fdSSerge Semin	select MIPS_SPRAM
2079ab7c01fdSSerge Semin
20807fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20817fd08ca5SLeonid Yegoshin	bool
20827fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20838256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2084ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
208587321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20862db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
20874a5dc51eSMarcin Nowakowski	select MIPS_CRC_SUPPORT
2088a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20895e83d430SRalf Baechle
209057eeacedSPaul Burtonconfig TARGET_ISA_REV
209157eeacedSPaul Burton	int
209257eeacedSPaul Burton	default 1 if CPU_MIPSR1
209357eeacedSPaul Burton	default 2 if CPU_MIPSR2
2094ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
209557eeacedSPaul Burton	default 6 if CPU_MIPSR6
209657eeacedSPaul Burton	default 0
209757eeacedSPaul Burton	help
209857eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
209957eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
210057eeacedSPaul Burton
2101a6e18781SLeonid Yegoshinconfig EVA
2102a6e18781SLeonid Yegoshin	bool
2103a6e18781SLeonid Yegoshin
2104c5b36783SSteven J. Hillconfig XPA
2105c5b36783SSteven J. Hill	bool
2106c5b36783SSteven J. Hill
21075e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
21085e83d430SRalf Baechle	bool
21095e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
21105e83d430SRalf Baechle	bool
21115e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
21125e83d430SRalf Baechle	bool
21135e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
21145e83d430SRalf Baechle	bool
211555045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
211655045ff5SWu Zhangjin	bool
211755045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
211855045ff5SWu Zhangjin	bool
21199cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
21209cffd154SDavid Daney	bool
2121171543e7SDaniel Silsby	depends on !(32BIT && (ARCH_PHYS_ADDR_T_64BIT || EVA))
212282622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
212382622284SDavid Daney	bool
2124cebf8c0fSPaul Burton	default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
21255e83d430SRalf Baechle
21268192c9eaSDavid Daney#
21278192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
21288192c9eaSDavid Daney#
21298192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
21308192c9eaSDavid Daney	bool
2131679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
21328192c9eaSDavid Daney
21335e83d430SRalf Baechlemenu "Kernel type"
21345e83d430SRalf Baechle
21355e83d430SRalf Baechlechoice
21365e83d430SRalf Baechle	prompt "Kernel code model"
21375e83d430SRalf Baechle	help
21385e83d430SRalf Baechle	  You should only select this option if you have a workload that
21395e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
21405e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
21415e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
21425e83d430SRalf Baechle
21435e83d430SRalf Baechleconfig 32BIT
21445e83d430SRalf Baechle	bool "32-bit kernel"
21455e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
21465e83d430SRalf Baechle	select TRAD_SIGNALS
21475e83d430SRalf Baechle	help
21485e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2149f17c4ca3SRalf Baechle
21505e83d430SRalf Baechleconfig 64BIT
21515e83d430SRalf Baechle	bool "64-bit kernel"
21525e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
21535e83d430SRalf Baechle	help
21545e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
21555e83d430SRalf Baechle
21565e83d430SRalf Baechleendchoice
21575e83d430SRalf Baechle
21582235a54dSSanjay Lalconfig KVM_GUEST
21592235a54dSSanjay Lal	bool "KVM Guest Kernel"
216001edc5e7SJiaxun Yang	depends on CPU_MIPS32_R2
2161f2a5b1d7SJames Hogan	depends on BROKEN_ON_SMP
21622235a54dSSanjay Lal	help
2163caa1faa7SJames Hogan	  Select this option if building a guest kernel for KVM (Trap & Emulate)
2164caa1faa7SJames Hogan	  mode.
21652235a54dSSanjay Lal
2166eda3d33cSJames Hoganconfig KVM_GUEST_TIMER_FREQ
2167eda3d33cSJames Hogan	int "Count/Compare Timer Frequency (MHz)"
21682235a54dSSanjay Lal	depends on KVM_GUEST
2169eda3d33cSJames Hogan	default 100
21702235a54dSSanjay Lal	help
2171eda3d33cSJames Hogan	  Set this to non-zero if building a guest kernel for KVM to skip RTC
2172eda3d33cSJames Hogan	  emulation when determining guest CPU Frequency. Instead, the guest's
2173eda3d33cSJames Hogan	  timer frequency is specified directly.
21742235a54dSSanjay Lal
21751e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
21761e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
21771e321fa9SLeonid Yegoshin	depends on 64BIT
21781e321fa9SLeonid Yegoshin	help
21793377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
21803377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
21813377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
21823377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
21833377e227SAlex Belits	  level of page tables is added which imposes both a memory
21843377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21853377e227SAlex Belits
21861e321fa9SLeonid Yegoshin	  If unsure, say N.
21871e321fa9SLeonid Yegoshin
21881da177e4SLinus Torvaldschoice
21891da177e4SLinus Torvalds	prompt "Kernel page size"
21901da177e4SLinus Torvalds	default PAGE_SIZE_4KB
21911da177e4SLinus Torvalds
21921da177e4SLinus Torvaldsconfig PAGE_SIZE_4KB
21931da177e4SLinus Torvalds	bool "4kB"
2194268a2d60SJiaxun Yang	depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
21951da177e4SLinus Torvalds	help
21961da177e4SLinus Torvalds	  This option select the standard 4kB Linux page size.  On some
21971da177e4SLinus Torvalds	  R3000-family processors this is the only available page size.  Using
21981da177e4SLinus Torvalds	  4kB page size will minimize memory consumption and is therefore
21991da177e4SLinus Torvalds	  recommended for low memory systems.
22001da177e4SLinus Torvalds
22011da177e4SLinus Torvaldsconfig PAGE_SIZE_8KB
22021da177e4SLinus Torvalds	bool "8kB"
2203c2aeaaeaSPaul Burton	depends on CPU_CAVIUM_OCTEON
22041e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
22051da177e4SLinus Torvalds	help
22061da177e4SLinus Torvalds	  Using 8kB page size will result in higher performance kernel at
22071da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available
2208c2aeaaeaSPaul Burton	  only on cnMIPS processors.  Note that you will need a suitable Linux
2209c2aeaaeaSPaul Burton	  distribution to support this.
22101da177e4SLinus Torvalds
22111da177e4SLinus Torvaldsconfig PAGE_SIZE_16KB
22121da177e4SLinus Torvalds	bool "16kB"
2213714bfad6SRalf Baechle	depends on !CPU_R3000 && !CPU_TX39XX
22141da177e4SLinus Torvalds	help
22151da177e4SLinus Torvalds	  Using 16kB page size will result in higher performance kernel at
22161da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
2217714bfad6SRalf Baechle	  all non-R3000 family processors.  Note that you will need a suitable
2218714bfad6SRalf Baechle	  Linux distribution to support this.
22191da177e4SLinus Torvalds
2220c52399beSRalf Baechleconfig PAGE_SIZE_32KB
2221c52399beSRalf Baechle	bool "32kB"
2222c52399beSRalf Baechle	depends on CPU_CAVIUM_OCTEON
22231e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
2224c52399beSRalf Baechle	help
2225c52399beSRalf Baechle	  Using 32kB page size will result in higher performance kernel at
2226c52399beSRalf Baechle	  the price of higher memory consumption.  This option is available
2227c52399beSRalf Baechle	  only on cnMIPS cores.  Note that you will need a suitable Linux
2228c52399beSRalf Baechle	  distribution to support this.
2229c52399beSRalf Baechle
22301da177e4SLinus Torvaldsconfig PAGE_SIZE_64KB
22311da177e4SLinus Torvalds	bool "64kB"
22323b2db173SPaul Burton	depends on !CPU_R3000 && !CPU_TX39XX
22331da177e4SLinus Torvalds	help
22341da177e4SLinus Torvalds	  Using 64kB page size will result in higher performance kernel at
22351da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
22361da177e4SLinus Torvalds	  all non-R3000 family processor.  Not that at the time of this
2237714bfad6SRalf Baechle	  writing this option is still high experimental.
22381da177e4SLinus Torvalds
22391da177e4SLinus Torvaldsendchoice
22401da177e4SLinus Torvalds
2241c9bace7cSDavid Daneyconfig FORCE_MAX_ZONEORDER
2242c9bace7cSDavid Daney	int "Maximum zone order"
2243e4362d1eSAlex Smith	range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2244e4362d1eSAlex Smith	default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2245e4362d1eSAlex Smith	range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2246e4362d1eSAlex Smith	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2247e4362d1eSAlex Smith	range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2248e4362d1eSAlex Smith	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2249c9bace7cSDavid Daney	range 11 64
2250c9bace7cSDavid Daney	default "11"
2251c9bace7cSDavid Daney	help
2252c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2253c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2254c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2255c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2256c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2257c9bace7cSDavid Daney	  increase this value.
2258c9bace7cSDavid Daney
2259c9bace7cSDavid Daney	  This config option is actually maximum order plus one. For example,
2260c9bace7cSDavid Daney	  a value of 11 means that the largest free memory block is 2^10 pages.
2261c9bace7cSDavid Daney
2262c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2263c9bace7cSDavid Daney	  when choosing a value for this option.
2264c9bace7cSDavid Daney
22651da177e4SLinus Torvaldsconfig BOARD_SCACHE
22661da177e4SLinus Torvalds	bool
22671da177e4SLinus Torvalds
22681da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
22691da177e4SLinus Torvalds	bool
22701da177e4SLinus Torvalds	select BOARD_SCACHE
22711da177e4SLinus Torvalds
22729318c51aSChris Dearman#
22739318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
22749318c51aSChris Dearman#
22759318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
22769318c51aSChris Dearman	bool
22779318c51aSChris Dearman	select BOARD_SCACHE
22789318c51aSChris Dearman
22791da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
22801da177e4SLinus Torvalds	bool
22811da177e4SLinus Torvalds	select BOARD_SCACHE
22821da177e4SLinus Torvalds
22831da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
22841da177e4SLinus Torvalds	bool
22851da177e4SLinus Torvalds	select BOARD_SCACHE
22861da177e4SLinus Torvalds
22871da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
22881da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
22891da177e4SLinus Torvalds	depends on CPU_SB1
22901da177e4SLinus Torvalds	help
22911da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
22921da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
22931da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
22941da177e4SLinus Torvalds
22951da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2296c8094b53SRalf Baechle	bool
22971da177e4SLinus Torvalds
22983165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
22993165c846SFlorian Fainelli	bool
2300c2aeaaeaSPaul Burton	default y if !(CPU_R3000 || CPU_TX39XX)
23013165c846SFlorian Fainelli
2302c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2303183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2304183b40f9SPaul Burton	default y
2305183b40f9SPaul Burton	help
2306183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2307183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2308183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2309183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2310183b40f9SPaul Burton	  receive a SIGILL.
2311183b40f9SPaul Burton
2312183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2313183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2314183b40f9SPaul Burton
2315183b40f9SPaul Burton	  If unsure, say y.
2316c92e47e5SPaul Burton
231797f7dcbfSPaul Burtonconfig CPU_R2300_FPU
231897f7dcbfSPaul Burton	bool
2319c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
232097f7dcbfSPaul Burton	default y if CPU_R3000 || CPU_TX39XX
232197f7dcbfSPaul Burton
232254746829SPaul Burtonconfig CPU_R3K_TLB
232354746829SPaul Burton	bool
232454746829SPaul Burton
232591405eb6SFlorian Fainelliconfig CPU_R4K_FPU
232691405eb6SFlorian Fainelli	bool
2327c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
232897f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
232991405eb6SFlorian Fainelli
233062cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
233162cedc4fSFlorian Fainelli	bool
233254746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
233362cedc4fSFlorian Fainelli
233459d6ab86SRalf Baechleconfig MIPS_MT_SMP
2335a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
23365cbf9688SPaul Burton	default y
2337527f1028SPaul Burton	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
233859d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2339d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2340c080faa5SSteven J. Hill	select SYNC_R4K
234159d6ab86SRalf Baechle	select MIPS_MT
234259d6ab86SRalf Baechle	select SMP
234387353d8aSRalf Baechle	select SMP_UP
2344c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2345c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2346399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
234759d6ab86SRalf Baechle	help
2348c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2349c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2350c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2351c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2352c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
235359d6ab86SRalf Baechle
2354f41ae0b2SRalf Baechleconfig MIPS_MT
2355f41ae0b2SRalf Baechle	bool
2356f41ae0b2SRalf Baechle
23570ab7aefcSRalf Baechleconfig SCHED_SMT
23580ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
23590ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
23600ab7aefcSRalf Baechle	default n
23610ab7aefcSRalf Baechle	help
23620ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
23630ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
23640ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
23650ab7aefcSRalf Baechle
23660ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
23670ab7aefcSRalf Baechle	bool
23680ab7aefcSRalf Baechle
2369f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2370f41ae0b2SRalf Baechle	bool
2371f41ae0b2SRalf Baechle
2372f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2373f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2374f088fc84SRalf Baechle	default y
2375b633648cSRalf Baechle	depends on MIPS_MT_SMP
237607cc0c9eSRalf Baechle
2377b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2378b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
23799eaa9a82SPaul Burton	depends on CPU_MIPSR6
2380c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2381b0a668fbSLeonid Yegoshin	default y
2382b0a668fbSLeonid Yegoshin	help
2383b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2384b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
238507edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2386b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2387b0a668fbSLeonid Yegoshin	  final kernel image.
2388b0a668fbSLeonid Yegoshin
2389f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2390f35764e7SJames Hogan	bool
2391f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2392f35764e7SJames Hogan	help
2393f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2394f35764e7SJames Hogan	  physical_memsize.
2395f35764e7SJames Hogan
239607cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
239707cc0c9eSRalf Baechle	bool "VPE loader support."
2398f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
239907cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
240007cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
240107cc0c9eSRalf Baechle	select MIPS_MT
240207cc0c9eSRalf Baechle	help
240307cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
240407cc0c9eSRalf Baechle	  onto another VPE and running it.
2405f088fc84SRalf Baechle
240617a1d523SDeng-Cheng Zhuconfig MIPS_VPE_LOADER_CMP
240717a1d523SDeng-Cheng Zhu	bool
240817a1d523SDeng-Cheng Zhu	default "y"
240917a1d523SDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && MIPS_CMP
241017a1d523SDeng-Cheng Zhu
24111a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
24121a2a6d7eSDeng-Cheng Zhu	bool
24131a2a6d7eSDeng-Cheng Zhu	default "y"
24141a2a6d7eSDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && !MIPS_CMP
24151a2a6d7eSDeng-Cheng Zhu
2416e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2417e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2418e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2419e01402b1SRalf Baechle	default y
2420e01402b1SRalf Baechle	help
2421e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2422e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2423e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2424e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2425e01402b1SRalf Baechle
2426e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2427e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2428e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2429e01402b1SRalf Baechle
2430da615cf6SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_CMP
2431da615cf6SDeng-Cheng Zhu	bool
2432da615cf6SDeng-Cheng Zhu	default "y"
2433da615cf6SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && MIPS_CMP
2434da615cf6SDeng-Cheng Zhu
24352c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
24362c973ef0SDeng-Cheng Zhu	bool
24372c973ef0SDeng-Cheng Zhu	default "y"
24382c973ef0SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && !MIPS_CMP
24392c973ef0SDeng-Cheng Zhu
24404a16ff4cSRalf Baechleconfig MIPS_CMP
24415cac93b3SPaul Burton	bool "MIPS CMP framework support (DEPRECATED)"
24425676319cSMarkos Chandras	depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2443b10b43baSMarkos Chandras	select SMP
2444eb9b5141STim Anderson	select SYNC_R4K
2445b10b43baSMarkos Chandras	select SYS_SUPPORTS_SMP
24464a16ff4cSRalf Baechle	select WEAK_ORDERING
24474a16ff4cSRalf Baechle	default n
24484a16ff4cSRalf Baechle	help
2449044505c7SPaul Burton	  Select this if you are using a bootloader which implements the "CMP
2450044505c7SPaul Burton	  framework" protocol (ie. YAMON) and want your kernel to make use of
2451044505c7SPaul Burton	  its ability to start secondary CPUs.
24524a16ff4cSRalf Baechle
24535cac93b3SPaul Burton	  Unless you have a specific need, you should use CONFIG_MIPS_CPS
24545cac93b3SPaul Burton	  instead of this.
24555cac93b3SPaul Burton
24560ee958e1SPaul Burtonconfig MIPS_CPS
24570ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
24585a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
24590ee958e1SPaul Burton	select MIPS_CM
24601d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
24610ee958e1SPaul Burton	select SMP
24620ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
24631d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2464c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
24650ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
24660ee958e1SPaul Burton	select WEAK_ORDERING
24670ee958e1SPaul Burton	help
24680ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
24690ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
24700ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
24710ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
24720ee958e1SPaul Burton	  support is unavailable.
24730ee958e1SPaul Burton
24743179d37eSPaul Burtonconfig MIPS_CPS_PM
247539a59593SMarkos Chandras	depends on MIPS_CPS
24763179d37eSPaul Burton	bool
24773179d37eSPaul Burton
24789f98f3ddSPaul Burtonconfig MIPS_CM
24799f98f3ddSPaul Burton	bool
24803c9b4166SPaul Burton	select MIPS_CPC
24819f98f3ddSPaul Burton
24829c38cf44SPaul Burtonconfig MIPS_CPC
24839c38cf44SPaul Burton	bool
24842600990eSRalf Baechle
24851da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
24861da177e4SLinus Torvalds	bool
24871da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
24881da177e4SLinus Torvalds	default y
24891da177e4SLinus Torvalds
24901da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
24911da177e4SLinus Torvalds	bool
24921da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
24931da177e4SLinus Torvalds	default y
24941da177e4SLinus Torvalds
24959e2b5372SMarkos Chandraschoice
24969e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
24979e2b5372SMarkos Chandras
24989e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
24999e2b5372SMarkos Chandras	bool "None"
25009e2b5372SMarkos Chandras	help
25019e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
25029e2b5372SMarkos Chandras
25039693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
25049693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
25059e2b5372SMarkos Chandras	bool "SmartMIPS"
25069693a853SFranck Bui-Huu	help
25079693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
25089693a853SFranck Bui-Huu	  increased security at both hardware and software level for
25099693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
25109693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
25119693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
25129693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
25139693a853SFranck Bui-Huu	  here.
25149693a853SFranck Bui-Huu
2515bce86083SSteven J. Hillconfig CPU_MICROMIPS
25167fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
25179e2b5372SMarkos Chandras	bool "microMIPS"
2518bce86083SSteven J. Hill	help
2519bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2520bce86083SSteven J. Hill	  microMIPS ISA
2521bce86083SSteven J. Hill
25229e2b5372SMarkos Chandrasendchoice
25239e2b5372SMarkos Chandras
2524a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
25250ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2526a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2527c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
25282a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2529a5e9a69eSPaul Burton	help
2530a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2531a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
25321db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
25331db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
25341db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
25351db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
25361db1af84SPaul Burton	  the size & complexity of your kernel.
2537a5e9a69eSPaul Burton
2538a5e9a69eSPaul Burton	  If unsure, say Y.
2539a5e9a69eSPaul Burton
25401da177e4SLinus Torvaldsconfig CPU_HAS_WB
2541f7062ddbSRalf Baechle	bool
2542e01402b1SRalf Baechle
2543df0ac8a4SKevin Cernekeeconfig XKS01
2544df0ac8a4SKevin Cernekee	bool
2545df0ac8a4SKevin Cernekee
2546ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2547ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2548ba9196d2SJiaxun Yang	bool
2549ba9196d2SJiaxun Yang
2550ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2551ba9196d2SJiaxun Yang	bool
2552ba9196d2SJiaxun Yang
25538256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
25548256b17eSFlorian Fainelli	bool
25558256b17eSFlorian Fainelli
255618d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2557932afdeeSYasha Cherikovsky	bool
2558932afdeeSYasha Cherikovsky	help
255918d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2560932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
256118d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
256218d84e2eSAlexander Lobakin	  systems).
2563932afdeeSYasha Cherikovsky
2564f41ae0b2SRalf Baechle#
2565f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2566f41ae0b2SRalf Baechle#
2567e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2568f41ae0b2SRalf Baechle	bool
2569e01402b1SRalf Baechle
2570f41ae0b2SRalf Baechle#
2571f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2572f41ae0b2SRalf Baechle#
2573e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2574f41ae0b2SRalf Baechle	bool
2575e01402b1SRalf Baechle
25761da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
25771da177e4SLinus Torvalds	bool
25781da177e4SLinus Torvalds	depends on !CPU_R3000
25791da177e4SLinus Torvalds	default y
25801da177e4SLinus Torvalds
25811da177e4SLinus Torvalds#
258220d60d99SMaciej W. Rozycki# CPU non-features
258320d60d99SMaciej W. Rozycki#
258420d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
258520d60d99SMaciej W. Rozycki	bool
258620d60d99SMaciej W. Rozycki
258720d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
258820d60d99SMaciej W. Rozycki	bool
258920d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
259020d60d99SMaciej W. Rozycki
259120d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
259220d60d99SMaciej W. Rozycki	bool
259320d60d99SMaciej W. Rozycki
2594071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2595071d2f0bSPaul Burton	bool
2596071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2597071d2f0bSPaul Burton
25984edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
25994edf00a4SPaul Burton	int
26004edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
26014edf00a4SPaul Burton	default 0
26024edf00a4SPaul Burton
26034edf00a4SPaul Burtonconfig MIPS_ASID_BITS
26044edf00a4SPaul Burton	int
26052db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
26064edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
26074edf00a4SPaul Burton	default 8
26084edf00a4SPaul Burton
26092db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
26102db003a5SPaul Burton	bool
26112db003a5SPaul Burton
26124a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT
26134a5dc51eSMarcin Nowakowski	bool
26144a5dc51eSMarcin Nowakowski
2615802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2616802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2617802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2618802b8362SThomas Bogendoerfer# with the issue.
2619802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2620802b8362SThomas Bogendoerfer	bool
2621802b8362SThomas Bogendoerfer
26225e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
26235e5b6527SThomas Bogendoerfer#
26245e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
26255e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
26265e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
26275e5b6527SThomas Bogendoerfer#      accessed for another instruction immeidately preceding when these
26285e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
26295e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
26305e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
26315e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
26325e5b6527SThomas Bogendoerfer#      instruction.
26335e5b6527SThomas Bogendoerfer#
26345e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
26355e5b6527SThomas Bogendoerfer#                              nop
26365e5b6527SThomas Bogendoerfer#                              nop
26375e5b6527SThomas Bogendoerfer#                              nop
26385e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
26395e5b6527SThomas Bogendoerfer#
26405e5b6527SThomas Bogendoerfer#      This is allowed:        lw
26415e5b6527SThomas Bogendoerfer#                              nop
26425e5b6527SThomas Bogendoerfer#                              nop
26435e5b6527SThomas Bogendoerfer#                              nop
26445e5b6527SThomas Bogendoerfer#                              nop
26455e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
26465e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
26475e5b6527SThomas Bogendoerfer	bool
26485e5b6527SThomas Bogendoerfer
264944def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
265044def342SThomas Bogendoerfer#
265144def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
265244def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
265344def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
265444def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
265544def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
265644def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
265744def342SThomas Bogendoerfer# in .pdf format.)
265844def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
265944def342SThomas Bogendoerfer	bool
266044def342SThomas Bogendoerfer
2661*24a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
2662*24a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
2663*24a1c023SThomas Bogendoerfer# operation is not guaranteed."
2664*24a1c023SThomas Bogendoerfer#
2665*24a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
2666*24a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
2667*24a1c023SThomas Bogendoerfer	bool
2668*24a1c023SThomas Bogendoerfer
266920d60d99SMaciej W. Rozycki#
26701da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
26711da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
26721da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
26731da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
26741da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
26751da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
26761da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
26771da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2678797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2679797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2680797798c1SRalf Baechle#   support.
26811da177e4SLinus Torvalds#
26821da177e4SLinus Torvaldsconfig HIGHMEM
26831da177e4SLinus Torvalds	bool "High Memory Support"
2684a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2685797798c1SRalf Baechle
2686797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2687797798c1SRalf Baechle	bool
2688797798c1SRalf Baechle
2689797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2690797798c1SRalf Baechle	bool
26911da177e4SLinus Torvalds
26929693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
26939693a853SFranck Bui-Huu	bool
26949693a853SFranck Bui-Huu
2695a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2696a6a4834cSSteven J. Hill	bool
2697a6a4834cSSteven J. Hill
2698377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2699377cb1b6SRalf Baechle	bool
2700377cb1b6SRalf Baechle	help
2701377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2702377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2703377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2704377cb1b6SRalf Baechle
2705a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2706a5e9a69eSPaul Burton	bool
2707a5e9a69eSPaul Burton
2708b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2709b4819b59SYoichi Yuasa	def_bool y
2710268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2711b4819b59SYoichi Yuasa
2712b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2713b1c6cd42SAtsushi Nemoto	bool
2714397dc00eSMike Rapoport	select SPARSEMEM_STATIC if !SGI_IP27
271531473747SAtsushi Nemoto
2716d8cb4e11SRalf Baechleconfig NUMA
2717d8cb4e11SRalf Baechle	bool "NUMA Support"
2718d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2719d8cb4e11SRalf Baechle	help
2720d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2721d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2722d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2723172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2724d8cb4e11SRalf Baechle	  disabled.
2725d8cb4e11SRalf Baechle
2726d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2727d8cb4e11SRalf Baechle	bool
2728d8cb4e11SRalf Baechle
2729f3c560a6SThomas Bogendoerferconfig HAVE_SETUP_PER_CPU_AREA
2730f3c560a6SThomas Bogendoerfer	def_bool y
2731f3c560a6SThomas Bogendoerfer	depends on NUMA
2732f3c560a6SThomas Bogendoerfer
2733f3c560a6SThomas Bogendoerferconfig NEED_PER_CPU_EMBED_FIRST_CHUNK
2734f3c560a6SThomas Bogendoerfer	def_bool y
2735f3c560a6SThomas Bogendoerfer	depends on NUMA
2736f3c560a6SThomas Bogendoerfer
27378c530ea3SMatt Redfearnconfig RELOCATABLE
27388c530ea3SMatt Redfearn	bool "Relocatable kernel"
2739ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2740ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2741ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2742ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2743281e3aeaSSerge Semin		   CPU_P5600 || CAVIUM_OCTEON_SOC
27448c530ea3SMatt Redfearn	help
27458c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
27468c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
27478c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
27488c530ea3SMatt Redfearn	  but are discarded at runtime
27498c530ea3SMatt Redfearn
2750069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2751069fd766SMatt Redfearn	hex "Relocation table size"
2752069fd766SMatt Redfearn	depends on RELOCATABLE
2753069fd766SMatt Redfearn	range 0x0 0x01000000
2754069fd766SMatt Redfearn	default "0x00100000"
2755a7f7f624SMasahiro Yamada	help
2756069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2757069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2758069fd766SMatt Redfearn
2759069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2760069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2761069fd766SMatt Redfearn
2762069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2763069fd766SMatt Redfearn
2764069fd766SMatt Redfearn	  If unsure, leave at the default value.
2765069fd766SMatt Redfearn
2766405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2767405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2768405bc8fdSMatt Redfearn	depends on RELOCATABLE
2769a7f7f624SMasahiro Yamada	help
2770405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2771405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2772405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2773405bc8fdSMatt Redfearn	  of kernel internals.
2774405bc8fdSMatt Redfearn
2775405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2776405bc8fdSMatt Redfearn
2777405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2778405bc8fdSMatt Redfearn
2779405bc8fdSMatt Redfearn	  If unsure, say N.
2780405bc8fdSMatt Redfearn
2781405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2782405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2783405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2784405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2785405bc8fdSMatt Redfearn	range 0x0 0x08000000
2786405bc8fdSMatt Redfearn	default "0x01000000"
2787a7f7f624SMasahiro Yamada	help
2788405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2789405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2790405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2791405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2792405bc8fdSMatt Redfearn
2793405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2794405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2795405bc8fdSMatt Redfearn
2796c80d79d7SYasunori Gotoconfig NODES_SHIFT
2797c80d79d7SYasunori Goto	int
2798c80d79d7SYasunori Goto	default "6"
2799c80d79d7SYasunori Goto	depends on NEED_MULTIPLE_NODES
2800c80d79d7SYasunori Goto
280114f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
280214f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
2803268a2d60SJiaxun Yang	depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON64)
280414f70012SDeng-Cheng Zhu	default y
280514f70012SDeng-Cheng Zhu	help
280614f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
280714f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
280814f70012SDeng-Cheng Zhu
2809be8fa1cbSTiezhu Yangconfig DMI
2810be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2811be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2812be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2813be8fa1cbSTiezhu Yang	default y
2814be8fa1cbSTiezhu Yang	help
2815be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2816be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2817be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2818be8fa1cbSTiezhu Yang	  BIOS code.
2819be8fa1cbSTiezhu Yang
28201da177e4SLinus Torvaldsconfig SMP
28211da177e4SLinus Torvalds	bool "Multi-Processing support"
2822e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2823e73ea273SRalf Baechle	help
28241da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
28254a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
28264a474157SRobert Graffham	  than one CPU, say Y.
28271da177e4SLinus Torvalds
28284a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
28291da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
28301da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
28314a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
28321da177e4SLinus Torvalds	  will run faster if you say N here.
28331da177e4SLinus Torvalds
28341da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
28351da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
28361da177e4SLinus Torvalds
283703502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2838ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
28391da177e4SLinus Torvalds
28401da177e4SLinus Torvalds	  If you don't know what to do here, say N.
28411da177e4SLinus Torvalds
28427840d618SMatt Redfearnconfig HOTPLUG_CPU
28437840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
28447840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
28457840d618SMatt Redfearn	help
28467840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
28477840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
28487840d618SMatt Redfearn	  (Note: power management support will enable this option
28497840d618SMatt Redfearn	    automatically on SMP systems. )
28507840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
28517840d618SMatt Redfearn
285287353d8aSRalf Baechleconfig SMP_UP
285387353d8aSRalf Baechle	bool
285487353d8aSRalf Baechle
28554a16ff4cSRalf Baechleconfig SYS_SUPPORTS_MIPS_CMP
28564a16ff4cSRalf Baechle	bool
28574a16ff4cSRalf Baechle
28580ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
28590ee958e1SPaul Burton	bool
28600ee958e1SPaul Burton
2861e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2862e73ea273SRalf Baechle	bool
2863e73ea273SRalf Baechle
2864130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2865130e2fb7SRalf Baechle	bool
2866130e2fb7SRalf Baechle
2867130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2868130e2fb7SRalf Baechle	bool
2869130e2fb7SRalf Baechle
2870130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2871130e2fb7SRalf Baechle	bool
2872130e2fb7SRalf Baechle
2873130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2874130e2fb7SRalf Baechle	bool
2875130e2fb7SRalf Baechle
2876130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2877130e2fb7SRalf Baechle	bool
2878130e2fb7SRalf Baechle
28791da177e4SLinus Torvaldsconfig NR_CPUS
2880a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2881a91796a9SJayachandran C	range 2 256
28821da177e4SLinus Torvalds	depends on SMP
2883130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2884130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2885130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2886130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2887130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
28881da177e4SLinus Torvalds	help
28891da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
28901da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
28911da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
289272ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
289372ede9b1SAtsushi Nemoto	  and 2 for all others.
28941da177e4SLinus Torvalds
28951da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
289672ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
289772ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
289872ede9b1SAtsushi Nemoto	  power of two.
28991da177e4SLinus Torvalds
2900399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2901399aaa25SAl Cooper	bool
2902399aaa25SAl Cooper
29037820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
29047820b84bSDavid Daney	bool
29057820b84bSDavid Daney
29067820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
29077820b84bSDavid Daney	int
29087820b84bSDavid Daney	depends on SMP
29097820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
29107820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
29117820b84bSDavid Daney
29121723b4a3SAtsushi Nemoto#
29131723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
29141723b4a3SAtsushi Nemoto#
29151723b4a3SAtsushi Nemoto
29161723b4a3SAtsushi Nemotochoice
29171723b4a3SAtsushi Nemoto	prompt "Timer frequency"
29181723b4a3SAtsushi Nemoto	default HZ_250
29191723b4a3SAtsushi Nemoto	help
29201723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
29211723b4a3SAtsushi Nemoto
292267596573SPaul Burton	config HZ_24
292367596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
292467596573SPaul Burton
29251723b4a3SAtsushi Nemoto	config HZ_48
29260f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
29271723b4a3SAtsushi Nemoto
29281723b4a3SAtsushi Nemoto	config HZ_100
29291723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
29301723b4a3SAtsushi Nemoto
29311723b4a3SAtsushi Nemoto	config HZ_128
29321723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
29331723b4a3SAtsushi Nemoto
29341723b4a3SAtsushi Nemoto	config HZ_250
29351723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
29361723b4a3SAtsushi Nemoto
29371723b4a3SAtsushi Nemoto	config HZ_256
29381723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
29391723b4a3SAtsushi Nemoto
29401723b4a3SAtsushi Nemoto	config HZ_1000
29411723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
29421723b4a3SAtsushi Nemoto
29431723b4a3SAtsushi Nemoto	config HZ_1024
29441723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
29451723b4a3SAtsushi Nemoto
29461723b4a3SAtsushi Nemotoendchoice
29471723b4a3SAtsushi Nemoto
294867596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
294967596573SPaul Burton	bool
295067596573SPaul Burton
29511723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
29521723b4a3SAtsushi Nemoto	bool
29531723b4a3SAtsushi Nemoto
29541723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
29551723b4a3SAtsushi Nemoto	bool
29561723b4a3SAtsushi Nemoto
29571723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
29581723b4a3SAtsushi Nemoto	bool
29591723b4a3SAtsushi Nemoto
29601723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
29611723b4a3SAtsushi Nemoto	bool
29621723b4a3SAtsushi Nemoto
29631723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
29641723b4a3SAtsushi Nemoto	bool
29651723b4a3SAtsushi Nemoto
29661723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
29671723b4a3SAtsushi Nemoto	bool
29681723b4a3SAtsushi Nemoto
29691723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
29701723b4a3SAtsushi Nemoto	bool
29711723b4a3SAtsushi Nemoto
29721723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
29731723b4a3SAtsushi Nemoto	bool
297467596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
297567596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
297667596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
297767596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
297867596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
297967596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
298067596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
29811723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
29821723b4a3SAtsushi Nemoto
29831723b4a3SAtsushi Nemotoconfig HZ
29841723b4a3SAtsushi Nemoto	int
298567596573SPaul Burton	default 24 if HZ_24
29861723b4a3SAtsushi Nemoto	default 48 if HZ_48
29871723b4a3SAtsushi Nemoto	default 100 if HZ_100
29881723b4a3SAtsushi Nemoto	default 128 if HZ_128
29891723b4a3SAtsushi Nemoto	default 250 if HZ_250
29901723b4a3SAtsushi Nemoto	default 256 if HZ_256
29911723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
29921723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
29931723b4a3SAtsushi Nemoto
299496685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
299596685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
299696685b17SDeng-Cheng Zhu
2997ea6e942bSAtsushi Nemotoconfig KEXEC
29987d60717eSKees Cook	bool "Kexec system call"
29992965faa5SDave Young	select KEXEC_CORE
3000ea6e942bSAtsushi Nemoto	help
3001ea6e942bSAtsushi Nemoto	  kexec is a system call that implements the ability to shutdown your
3002ea6e942bSAtsushi Nemoto	  current kernel, and to start another kernel.  It is like a reboot
30033dde6ad8SDavid Sterba	  but it is independent of the system firmware.   And like a reboot
3004ea6e942bSAtsushi Nemoto	  you can start any kernel with it, not just Linux.
3005ea6e942bSAtsushi Nemoto
300601dd2fbfSMatt LaPlante	  The name comes from the similarity to the exec system call.
3007ea6e942bSAtsushi Nemoto
3008ea6e942bSAtsushi Nemoto	  It is an ongoing process to be certain the hardware in a machine
3009ea6e942bSAtsushi Nemoto	  is properly shutdown, so do not be surprised if this code does not
3010bf220695SGeert Uytterhoeven	  initially work for you.  As of this writing the exact hardware
3011bf220695SGeert Uytterhoeven	  interface is strongly in flux, so no good recommendation can be
3012bf220695SGeert Uytterhoeven	  made.
3013ea6e942bSAtsushi Nemoto
30147aa1c8f4SRalf Baechleconfig CRASH_DUMP
30157aa1c8f4SRalf Baechle	bool "Kernel crash dumps"
30167aa1c8f4SRalf Baechle	help
30177aa1c8f4SRalf Baechle	  Generate crash dump after being started by kexec.
30187aa1c8f4SRalf Baechle	  This should be normally only set in special crash dump kernels
30197aa1c8f4SRalf Baechle	  which are loaded in the main kernel with kexec-tools into
30207aa1c8f4SRalf Baechle	  a specially reserved region and then later executed after
30217aa1c8f4SRalf Baechle	  a crash by kdump/kexec. The crash dump kernel must be compiled
30227aa1c8f4SRalf Baechle	  to a memory address not used by the main kernel or firmware using
30237aa1c8f4SRalf Baechle	  PHYSICAL_START.
30247aa1c8f4SRalf Baechle
30257aa1c8f4SRalf Baechleconfig PHYSICAL_START
30267aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
30278bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
30287aa1c8f4SRalf Baechle	depends on CRASH_DUMP
30297aa1c8f4SRalf Baechle	help
30307aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
30317aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
30327aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
30337aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
30347aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
30357aa1c8f4SRalf Baechle
3036ea6e942bSAtsushi Nemotoconfig SECCOMP
3037ea6e942bSAtsushi Nemoto	bool "Enable seccomp to safely compute untrusted bytecode"
3038293c5bd1SRalf Baechle	depends on PROC_FS
3039ea6e942bSAtsushi Nemoto	default y
3040ea6e942bSAtsushi Nemoto	help
3041ea6e942bSAtsushi Nemoto	  This kernel feature is useful for number crunching applications
3042ea6e942bSAtsushi Nemoto	  that may need to compute untrusted bytecode during their
3043ea6e942bSAtsushi Nemoto	  execution. By using pipes or other transports made available to
3044ea6e942bSAtsushi Nemoto	  the process as file descriptors supporting the read/write
3045ea6e942bSAtsushi Nemoto	  syscalls, it's possible to isolate those applications in
3046ea6e942bSAtsushi Nemoto	  their own address space using seccomp. Once seccomp is
3047ea6e942bSAtsushi Nemoto	  enabled via /proc/<pid>/seccomp, it cannot be disabled
3048ea6e942bSAtsushi Nemoto	  and the task is only allowed to execute a few safe syscalls
3049ea6e942bSAtsushi Nemoto	  defined by each seccomp mode.
3050ea6e942bSAtsushi Nemoto
3051ea6e942bSAtsushi Nemoto	  If unsure, say Y. Only embedded should say N here.
3052ea6e942bSAtsushi Nemoto
3053597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
3054b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
3055597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
3056597ce172SPaul Burton	help
3057597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
3058597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
3059597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
3060597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
3061597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
3062597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
3063597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
3064597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
3065597ce172SPaul Burton	  saying N here.
3066597ce172SPaul Burton
306706e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
306806e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
306906e2e882SPaul Burton	  worked on. In order to avoid userland becoming dependant upon current
307006e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
307106e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
307206e2e882SPaul Burton	  said details.
307306e2e882SPaul Burton
307406e2e882SPaul Burton	  If unsure, say N.
3075597ce172SPaul Burton
3076f2ffa5abSDezhong Diaoconfig USE_OF
30770b3e06fdSJonas Gorski	bool
3078f2ffa5abSDezhong Diao	select OF
3079e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
3080abd2363fSGrant Likely	select IRQ_DOMAIN
3081f2ffa5abSDezhong Diao
30822fe8ea39SDengcheng Zhuconfig UHI_BOOT
30832fe8ea39SDengcheng Zhu	bool
30842fe8ea39SDengcheng Zhu
30857fafb068SAndrew Brestickerconfig BUILTIN_DTB
30867fafb068SAndrew Bresticker	bool
30877fafb068SAndrew Bresticker
30881da8f179SJonas Gorskichoice
30895b24d52cSJonas Gorski	prompt "Kernel appended dtb support" if USE_OF
30901da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
30911da8f179SJonas Gorski
30921da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
30931da8f179SJonas Gorski		bool "None"
30941da8f179SJonas Gorski		help
30951da8f179SJonas Gorski		  Do not enable appended dtb support.
30961da8f179SJonas Gorski
309787db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
309887db537dSAaro Koskinen		bool "vmlinux"
309987db537dSAaro Koskinen		help
310087db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
310187db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
310287db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
310387db537dSAaro Koskinen		  objcopy:
310487db537dSAaro Koskinen
310587db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
310687db537dSAaro Koskinen
310787db537dSAaro Koskinen		  This is meant as a backward compatiblity convenience for those
310887db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
310987db537dSAaro Koskinen		  the documented boot protocol using a device tree.
311087db537dSAaro Koskinen
31111da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
3112b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
31131da8f179SJonas Gorski		help
31141da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
3115b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
31161da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
31171da8f179SJonas Gorski
31181da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
31191da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
31201da8f179SJonas Gorski		  the documented boot protocol using a device tree.
31211da8f179SJonas Gorski
31221da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
31231da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
31241da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
31251da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
31261da8f179SJonas Gorski		  if you don't intend to always append a DTB.
31271da8f179SJonas Gorskiendchoice
31281da8f179SJonas Gorski
31292024972eSJonas Gorskichoice
31302024972eSJonas Gorski	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
31312bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
313287fcfa7bSJiaxun Yang					 !MACH_LOONGSON64 && !MIPS_MALTA && \
31332bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
31342024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
31352024972eSJonas Gorski
31362024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
31372024972eSJonas Gorski		depends on USE_OF
31382024972eSJonas Gorski		bool "Dtb kernel arguments if available"
31392024972eSJonas Gorski
31402024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
31412024972eSJonas Gorski		depends on USE_OF
31422024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
31432024972eSJonas Gorski
31442024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
31452024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
3146ed47e153SRabin Vincent
3147ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
3148ed47e153SRabin Vincent		depends on CMDLINE_BOOL
3149ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
31502024972eSJonas Gorskiendchoice
31512024972eSJonas Gorski
31525e83d430SRalf Baechleendmenu
31535e83d430SRalf Baechle
31541df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
31551df0f0ffSAtsushi Nemoto	bool
31561df0f0ffSAtsushi Nemoto	default y
31571df0f0ffSAtsushi Nemoto
31581df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
31591df0f0ffSAtsushi Nemoto	bool
31601df0f0ffSAtsushi Nemoto	default y
31611df0f0ffSAtsushi Nemoto
3162a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3163a728ab52SKirill A. Shutemov	int
31643377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
3165a728ab52SKirill A. Shutemov	default 3 if 64BIT && !PAGE_SIZE_64KB
3166a728ab52SKirill A. Shutemov	default 2
3167a728ab52SKirill A. Shutemov
31686c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
31696c359eb1SPaul Burton	bool
31706c359eb1SPaul Burton
31711da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
31721da177e4SLinus Torvalds
3173c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
31742eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3175c5611df9SPaul Burton	bool
3176c5611df9SPaul Burton
3177c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3178c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3179c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
31802eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
31811da177e4SLinus Torvalds
31821da177e4SLinus Torvalds#
31831da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
31841da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
31851da177e4SLinus Torvalds# users to choose the right thing ...
31861da177e4SLinus Torvalds#
31871da177e4SLinus Torvaldsconfig ISA
31881da177e4SLinus Torvalds	bool
31891da177e4SLinus Torvalds
31901da177e4SLinus Torvaldsconfig TC
31911da177e4SLinus Torvalds	bool "TURBOchannel support"
31921da177e4SLinus Torvalds	depends on MACH_DECSTATION
31931da177e4SLinus Torvalds	help
319450a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
319550a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
319650a23e6eSJustin P. Mattock	  at:
319750a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
319850a23e6eSJustin P. Mattock	  and:
319950a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
320050a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
320150a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
32021da177e4SLinus Torvalds
32031da177e4SLinus Torvaldsconfig MMU
32041da177e4SLinus Torvalds	bool
32051da177e4SLinus Torvalds	default y
32061da177e4SLinus Torvalds
3207109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3208109c32ffSMatt Redfearn	default 12 if 64BIT
3209109c32ffSMatt Redfearn	default 8
3210109c32ffSMatt Redfearn
3211109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3212109c32ffSMatt Redfearn	default 18 if 64BIT
3213109c32ffSMatt Redfearn	default 15
3214109c32ffSMatt Redfearn
3215109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3216109c32ffSMatt Redfearn	default 8
3217109c32ffSMatt Redfearn
3218109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3219109c32ffSMatt Redfearn	default 15
3220109c32ffSMatt Redfearn
3221d865bea4SRalf Baechleconfig I8253
3222d865bea4SRalf Baechle	bool
3223798778b8SRussell King	select CLKSRC_I8253
32242d02612fSThomas Gleixner	select CLKEVT_I8253
32259726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
3226d865bea4SRalf Baechle
3227e05eb3f8SRalf Baechleconfig ZONE_DMA
3228e05eb3f8SRalf Baechle	bool
3229e05eb3f8SRalf Baechle
3230cce335aeSRalf Baechleconfig ZONE_DMA32
3231cce335aeSRalf Baechle	bool
3232cce335aeSRalf Baechle
32331da177e4SLinus Torvaldsendmenu
32341da177e4SLinus Torvalds
32351da177e4SLinus Torvaldsconfig TRAD_SIGNALS
32361da177e4SLinus Torvalds	bool
32371da177e4SLinus Torvalds
32381da177e4SLinus Torvaldsconfig MIPS32_COMPAT
323978aaf956SRalf Baechle	bool
32401da177e4SLinus Torvalds
32411da177e4SLinus Torvaldsconfig COMPAT
32421da177e4SLinus Torvalds	bool
32431da177e4SLinus Torvalds
324405e43966SAtsushi Nemotoconfig SYSVIPC_COMPAT
324505e43966SAtsushi Nemoto	bool
324605e43966SAtsushi Nemoto
32471da177e4SLinus Torvaldsconfig MIPS32_O32
32481da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
324978aaf956SRalf Baechle	depends on 64BIT
325078aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
325178aaf956SRalf Baechle	select COMPAT
325278aaf956SRalf Baechle	select MIPS32_COMPAT
325378aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
32541da177e4SLinus Torvalds	help
32551da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
32561da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
32571da177e4SLinus Torvalds	  existing binaries are in this format.
32581da177e4SLinus Torvalds
32591da177e4SLinus Torvalds	  If unsure, say Y.
32601da177e4SLinus Torvalds
32611da177e4SLinus Torvaldsconfig MIPS32_N32
32621da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3263c22eacfeSRalf Baechle	depends on 64BIT
32645a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
326578aaf956SRalf Baechle	select COMPAT
326678aaf956SRalf Baechle	select MIPS32_COMPAT
326778aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
32681da177e4SLinus Torvalds	help
32691da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
32701da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
32711da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
32721da177e4SLinus Torvalds	  cases.
32731da177e4SLinus Torvalds
32741da177e4SLinus Torvalds	  If unsure, say N.
32751da177e4SLinus Torvalds
32761da177e4SLinus Torvaldsconfig BINFMT_ELF32
32771da177e4SLinus Torvalds	bool
32781da177e4SLinus Torvalds	default y if MIPS32_O32 || MIPS32_N32
3279f43edca7SRalf Baechle	select ELFCORE
32801da177e4SLinus Torvalds
32812116245eSRalf Baechlemenu "Power management options"
3282952fa954SRodolfo Giometti
3283363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3284363c55caSWu Zhangjin	def_bool y
32853f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3286363c55caSWu Zhangjin
3287f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3288f4cb5700SJohannes Berg	def_bool y
32893f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3290f4cb5700SJohannes Berg
32912116245eSRalf Baechlesource "kernel/power/Kconfig"
3292952fa954SRodolfo Giometti
32931da177e4SLinus Torvaldsendmenu
32941da177e4SLinus Torvalds
32957a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
32967a998935SViresh Kumar	bool
32977a998935SViresh Kumar
32987a998935SViresh Kumarmenu "CPU Power Management"
3299c095ebafSPaul Burton
3300c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
33017a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
33027a998935SViresh Kumarendif
33039726b43aSWu Zhangjin
3304c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3305c095ebafSPaul Burton
3306c095ebafSPaul Burtonendmenu
3307c095ebafSPaul Burton
330898cdee0eSRalf Baechlesource "drivers/firmware/Kconfig"
330998cdee0eSRalf Baechle
33102235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3311e91946d6SNathan Chancellor
3312e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3313