xref: /linux/arch/mips/Kconfig (revision 54aed4dd35269ef15eb1569517f34fb3961d4d34)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig MIPS
31da177e4SLinus Torvalds	bool
41da177e4SLinus Torvalds	default y
512597988SMatt Redfearn	select ARCH_BINFMT_ELF_STATE
612597988SMatt Redfearn	select ARCH_CLOCKSOURCE_DATA
712597988SMatt Redfearn	select ARCH_DISCARD_MEMBLOCK
812597988SMatt Redfearn	select ARCH_HAS_ELF_RANDOMIZE
912597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1012597988SMatt Redfearn	select ARCH_SUPPORTS_UPROBES
111ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
1212597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
1325da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
140b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
1512597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
1612597988SMatt Redfearn	select BUILDTIME_EXTABLE_SORT
1712597988SMatt Redfearn	select CLONE_BACKWARDS
1812597988SMatt Redfearn	select CPU_PM if CPU_IDLE
19dffbfde7SChristoph Hellwig	select DMA_DIRECT_OPS
2012597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
2112597988SMatt Redfearn	select GENERIC_CLOCKEVENTS
2212597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
2312597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
2412597988SMatt Redfearn	select GENERIC_IRQ_PROBE
2512597988SMatt Redfearn	select GENERIC_IRQ_SHOW
26740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
27740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
28740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
29740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
30740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
3112597988SMatt Redfearn	select GENERIC_PCI_IOMAP
3212597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
3312597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
3412597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
3512597988SMatt Redfearn	select HANDLE_DOMAIN_IRQ
3612597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
3788547001SJason Wessel	select HAVE_ARCH_KGDB
38109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
39109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
40490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
41c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
4212597988SMatt Redfearn	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT
43f381bf6dSDavid Daney	select HAVE_CBPF_JIT if (!64BIT && !CPU_MICROMIPS)
44f381bf6dSDavid Daney	select HAVE_EBPF_JIT if (64BIT && !CPU_MICROMIPS)
4512597988SMatt Redfearn	select HAVE_CONTEXT_TRACKING
4612597988SMatt Redfearn	select HAVE_COPY_THREAD_TLS
4764575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
4812597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
4912597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
5012597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
5112597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
5212597988SMatt Redfearn	select HAVE_EXIT_THREAD
5312597988SMatt Redfearn	select HAVE_FTRACE_MCOUNT_RECORD
5429c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
5512597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
5612597988SMatt Redfearn	select HAVE_GENERIC_DMA_COHERENT
5712597988SMatt Redfearn	select HAVE_IDE
5812597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
5912597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
60c1bf207dSDavid Daney	select HAVE_KPROBES
61c1bf207dSDavid Daney	select HAVE_KRETPROBES
629d15ffc8STejun Heo	select HAVE_MEMBLOCK
639d15ffc8STejun Heo	select HAVE_MEMBLOCK_NODE_MAP
64786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
6542a0bb3fSPetr Mladek	select HAVE_NMI
6612597988SMatt Redfearn	select HAVE_OPROFILE
6712597988SMatt Redfearn	select HAVE_PERF_EVENTS
6808bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
699ea141adSPaul Burton	select HAVE_RSEQ
70d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
7112597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
72a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
7312597988SMatt Redfearn	select IRQ_FORCED_THREADING
7412597988SMatt Redfearn	select MODULES_USE_ELF_RELA if MODULES && 64BIT
7512597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
7612597988SMatt Redfearn	select PERF_USE_VMALLOC
7712597988SMatt Redfearn	select RTC_LIB if !MACH_LOONGSON64
7812597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
7912597988SMatt Redfearn	select VIRT_TO_BUS
801da177e4SLinus Torvalds
813369ddb6SChristoph Hellwigconfig MIPS_DMA_DEFAULT
823369ddb6SChristoph Hellwig	bool
833369ddb6SChristoph Hellwig
841da177e4SLinus Torvaldsmenu "Machine selection"
851da177e4SLinus Torvalds
865e83d430SRalf Baechlechoice
875e83d430SRalf Baechle	prompt "System type"
88d41e6858SMatt Redfearn	default MIPS_GENERIC
891da177e4SLinus Torvalds
90eed0eabdSPaul Burtonconfig MIPS_GENERIC
91eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
92eed0eabdSPaul Burton	select BOOT_RAW
93eed0eabdSPaul Burton	select BUILTIN_DTB
94eed0eabdSPaul Burton	select CEVT_R4K
95eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
96eed0eabdSPaul Burton	select COMMON_CLK
97eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_VI
98eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
99eed0eabdSPaul Burton	select CSRC_R4K
100eed0eabdSPaul Burton	select DMA_PERDEV_COHERENT
101eed0eabdSPaul Burton	select HW_HAS_PCI
102eed0eabdSPaul Burton	select IRQ_MIPS_CPU
103eed0eabdSPaul Burton	select LIBFDT
104eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
1053369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
106eed0eabdSPaul Burton	select MIPS_GIC
107eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
108eed0eabdSPaul Burton	select NO_EXCEPT_FILL
109eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
110eed0eabdSPaul Burton	select PINCTRL
111eed0eabdSPaul Burton	select SMP_UP if SMP
112a3078e59SMatt Redfearn	select SWAP_IO_SPACE
113eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
114eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
115eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
116eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
117eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
118eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
119eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
120eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
121eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
122eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
123eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
124eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
125eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS_CPS
126eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
127eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
128eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
129eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
1302e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1312e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1322e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1332e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1342e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1352e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
136eed0eabdSPaul Burton	select USE_OF
137eed0eabdSPaul Burton	help
138eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
139eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
140eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
141eed0eabdSPaul Burton	  Interface) specification.
142eed0eabdSPaul Burton
14342a4f17dSManuel Laussconfig MIPS_ALCHEMY
144c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
145d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
146f772cdb2SRalf Baechle	select CEVT_R4K
147d7ea335cSSteven J. Hill	select CSRC_R4K
14867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1493369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
15088e9a93cSManuel Lauss	select DMA_MAYBE_COHERENT	# Au1000,1500,1100 aren't, rest is
15142a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
15242a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
15342a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
154d30a2b47SLinus Walleij	select GPIOLIB
1551b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
15647440229SManuel Lauss	select COMMON_CLK
1571da177e4SLinus Torvalds
1587ca5dc14SFlorian Fainelliconfig AR7
1597ca5dc14SFlorian Fainelli	bool "Texas Instruments AR7"
1607ca5dc14SFlorian Fainelli	select BOOT_ELF32
1617ca5dc14SFlorian Fainelli	select DMA_NONCOHERENT
1627ca5dc14SFlorian Fainelli	select CEVT_R4K
1637ca5dc14SFlorian Fainelli	select CSRC_R4K
16467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1653369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
1667ca5dc14SFlorian Fainelli	select NO_EXCEPT_FILL
1677ca5dc14SFlorian Fainelli	select SWAP_IO_SPACE
1687ca5dc14SFlorian Fainelli	select SYS_HAS_CPU_MIPS32_R1
1697ca5dc14SFlorian Fainelli	select SYS_HAS_EARLY_PRINTK
1707ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_32BIT_KERNEL
1717ca5dc14SFlorian Fainelli	select SYS_SUPPORTS_LITTLE_ENDIAN
172377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
1731b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT_UART16550
174d30a2b47SLinus Walleij	select GPIOLIB
1757ca5dc14SFlorian Fainelli	select VLYNQ
1768551fb64SYoichi Yuasa	select HAVE_CLK
1777ca5dc14SFlorian Fainelli	help
1787ca5dc14SFlorian Fainelli	  Support for the Texas Instruments AR7 System-on-a-Chip
1797ca5dc14SFlorian Fainelli	  family: TNETD7100, 7200 and 7300.
1807ca5dc14SFlorian Fainelli
18143cc739fSSergey Ryazanovconfig ATH25
18243cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
18343cc739fSSergey Ryazanov	select CEVT_R4K
18443cc739fSSergey Ryazanov	select CSRC_R4K
18543cc739fSSergey Ryazanov	select DMA_NONCOHERENT
18667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1871753e74eSSergey Ryazanov	select IRQ_DOMAIN
1883369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
18943cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
19043cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
19143cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
1928aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
19343cc739fSSergey Ryazanov	help
19443cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
19543cc739fSSergey Ryazanov
196d4a67d9dSGabor Juhosconfig ATH79
197d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
198ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
199d4a67d9dSGabor Juhos	select BOOT_RAW
200d4a67d9dSGabor Juhos	select CEVT_R4K
201d4a67d9dSGabor Juhos	select CSRC_R4K
202d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
203d30a2b47SLinus Walleij	select GPIOLIB
20494638067SGabor Juhos	select HAVE_CLK
205411520afSAlban Bedel	select COMMON_CLK
2062c4f1ac5SGabor Juhos	select CLKDEV_LOOKUP
20767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2083369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
2090aabf1a4SGabor Juhos	select MIPS_MACHINE
210d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
211d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
212d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
213d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
214377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
215b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
21603c8c407SAlban Bedel	select USE_OF
21753d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
218d4a67d9dSGabor Juhos	help
219d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
220d4a67d9dSGabor Juhos
2215f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2225f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
223d666cd02SKevin Cernekee	select BOOT_RAW
224d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
225d666cd02SKevin Cernekee	select USE_OF
226d666cd02SKevin Cernekee	select CEVT_R4K
227d666cd02SKevin Cernekee	select CSRC_R4K
228d666cd02SKevin Cernekee	select SYNC_R4K
229d666cd02SKevin Cernekee	select COMMON_CLK
230c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
23160b858f2SKevin Cernekee	select BCM7038_L1_IRQ
23260b858f2SKevin Cernekee	select BCM7120_L2_IRQ
23360b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
23467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2353369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
23660b858f2SKevin Cernekee	select DMA_NONCOHERENT
237d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
23860b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
239d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
240d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
24160b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
24260b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
24360b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
244d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
245d666cd02SKevin Cernekee	select SWAP_IO_SPACE
24660b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
24760b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
24860b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
24960b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2504dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
251d666cd02SKevin Cernekee	help
2525f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2535f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2545f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2555f2d4459SKevin Cernekee	  must be set appropriately for your board.
256d666cd02SKevin Cernekee
2571c0c13ebSAurelien Jarnoconfig BCM47XX
258c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
259fe08f8c2SHauke Mehrtens	select BOOT_RAW
26042f77542SRalf Baechle	select CEVT_R4K
261940f6b48SRalf Baechle	select CSRC_R4K
2621c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
2631c0c13ebSAurelien Jarno	select HW_HAS_PCI
26467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
265314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
2663369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
267dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
2681c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
2691c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
270377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
2716507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
27225e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
273e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
274c949c0bcSRafał Miłecki	select GPIOLIB
275c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
276f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
2772ab71a02SRafał Miłecki	select BCM47XX_SPROM
278dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
2791c0c13ebSAurelien Jarno	help
2801c0c13ebSAurelien Jarno	 Support for BCM47XX based boards
2811c0c13ebSAurelien Jarno
282e7300d04SMaxime Bizonconfig BCM63XX
283e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
284ae8de61cSFlorian Fainelli	select BOOT_RAW
285e7300d04SMaxime Bizon	select CEVT_R4K
286e7300d04SMaxime Bizon	select CSRC_R4K
287fc264022SJonas Gorski	select SYNC_R4K
288e7300d04SMaxime Bizon	select DMA_NONCOHERENT
28967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2903369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
291e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
292e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
293e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
294e7300d04SMaxime Bizon	select SWAP_IO_SPACE
295d30a2b47SLinus Walleij	select GPIOLIB
2963e82eeebSYoichi Yuasa	select HAVE_CLK
297af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
298c5af3c2dSJonas Gorski	select CLKDEV_LOOKUP
299e7300d04SMaxime Bizon	help
300e7300d04SMaxime Bizon	 Support for BCM63XX based boards
301e7300d04SMaxime Bizon
3021da177e4SLinus Torvaldsconfig MIPS_COBALT
3033fa986faSMartin Michlmayr	bool "Cobalt Server"
30442f77542SRalf Baechle	select CEVT_R4K
305940f6b48SRalf Baechle	select CSRC_R4K
3061097c6acSYoichi Yuasa	select CEVT_GT641XX
3071da177e4SLinus Torvalds	select DMA_NONCOHERENT
3081da177e4SLinus Torvalds	select HW_HAS_PCI
309d865bea4SRalf Baechle	select I8253
3101da177e4SLinus Torvalds	select I8259
31167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
312d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
3133369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
314252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
315e25bfc92SYoichi Yuasa	select PCI
3167cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3170a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
318ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3190e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3205e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
321e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3221da177e4SLinus Torvalds
3231da177e4SLinus Torvaldsconfig MACH_DECSTATION
3243fa986faSMartin Michlmayr	bool "DECstations"
3251da177e4SLinus Torvalds	select BOOT_ELF32
3266457d9fcSYoichi Yuasa	select CEVT_DS1287
32781d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3284247417dSYoichi Yuasa	select CSRC_IOASIC
32981d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
33020d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
33120d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
33220d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3331da177e4SLinus Torvalds	select DMA_NONCOHERENT
3343369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
335ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
33667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3377cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3387cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
339ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3407d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3415e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3421723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3431723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3441723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
345930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3465e83d430SRalf Baechle	help
3471da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3481da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3491da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3501da177e4SLinus Torvalds
3511da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3521da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3531da177e4SLinus Torvalds
3541da177e4SLinus Torvalds		DECstation 5000/50
3551da177e4SLinus Torvalds		DECstation 5000/150
3561da177e4SLinus Torvalds		DECstation 5000/260
3571da177e4SLinus Torvalds		DECsystem 5900/260
3581da177e4SLinus Torvalds
3591da177e4SLinus Torvalds	  otherwise choose R3000.
3601da177e4SLinus Torvalds
3615e83d430SRalf Baechleconfig MACH_JAZZ
3623fa986faSMartin Michlmayr	bool "Jazz family of machines"
363a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
3647a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
3650e2794b0SRalf Baechle	select FW_ARC
3660e2794b0SRalf Baechle	select FW_ARC32
3675e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
36842f77542SRalf Baechle	select CEVT_R4K
369940f6b48SRalf Baechle	select CSRC_R4K
370e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
3715e83d430SRalf Baechle	select GENERIC_ISA_DMA
3728a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
37367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
374d865bea4SRalf Baechle	select I8253
3755e83d430SRalf Baechle	select I8259
3765e83d430SRalf Baechle	select ISA
3777cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
3785e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
3797d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3801723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
3811da177e4SLinus Torvalds	help
3825e83d430SRalf Baechle	 This a family of machines based on the MIPS R4030 chipset which was
3835e83d430SRalf Baechle	 used by several vendors to build RISC/os and Windows NT workstations.
384692105b8SMatt LaPlante	 Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
3855e83d430SRalf Baechle	 Olivetti M700-10 workstations.
3865e83d430SRalf Baechle
387de361e8bSPaul Burtonconfig MACH_INGENIC
388de361e8bSPaul Burton	bool "Ingenic SoC based machines"
3895ebabe59SLars-Peter Clausen	select SYS_SUPPORTS_32BIT_KERNEL
3905ebabe59SLars-Peter Clausen	select SYS_SUPPORTS_LITTLE_ENDIAN
391f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
3925ebabe59SLars-Peter Clausen	select DMA_NONCOHERENT
39367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3943369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
39537b4c3caSPaul Cercueil	select PINCTRL
396d30a2b47SLinus Walleij	select GPIOLIB
397ff1930c6SPaul Burton	select COMMON_CLK
39883bc7692SLars-Peter Clausen	select GENERIC_IRQ_CHIP
399ffb1843dSPaul Burton	select BUILTIN_DTB
400ffb1843dSPaul Burton	select USE_OF
4016ec127fbSPaul Burton	select LIBFDT
4025ebabe59SLars-Peter Clausen
403171bb2f1SJohn Crispinconfig LANTIQ
404171bb2f1SJohn Crispin	bool "Lantiq based platforms"
405171bb2f1SJohn Crispin	select DMA_NONCOHERENT
40667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
407171bb2f1SJohn Crispin	select CEVT_R4K
408171bb2f1SJohn Crispin	select CSRC_R4K
4093369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
410171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
411171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
412171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
413171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
414377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
415171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
416f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
417171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
418d30a2b47SLinus Walleij	select GPIOLIB
419171bb2f1SJohn Crispin	select SWAP_IO_SPACE
420171bb2f1SJohn Crispin	select BOOT_RAW
421287e3f3fSJohn Crispin	select CLKDEV_LOOKUP
422a0392222SJohn Crispin	select USE_OF
4233f8c50c9SJohn Crispin	select PINCTRL
4243f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
425c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
426c530781cSJohn Crispin	select RESET_CONTROLLER
427171bb2f1SJohn Crispin
4281f21d2bdSBrian Murphyconfig LASAT
4291f21d2bdSBrian Murphy	bool "LASAT Networks platforms"
43042f77542SRalf Baechle	select CEVT_R4K
43116f0bbbcSRalf Baechle	select CRC32
432940f6b48SRalf Baechle	select CSRC_R4K
4331f21d2bdSBrian Murphy	select DMA_NONCOHERENT
4341f21d2bdSBrian Murphy	select SYS_HAS_EARLY_PRINTK
4351f21d2bdSBrian Murphy	select HW_HAS_PCI
43667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
4373369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
4381f21d2bdSBrian Murphy	select PCI_GT64XXX_PCI0
4391f21d2bdSBrian Murphy	select MIPS_NILE4
4401f21d2bdSBrian Murphy	select R5000_CPU_SCACHE
4411f21d2bdSBrian Murphy	select SYS_HAS_CPU_R5000
4421f21d2bdSBrian Murphy	select SYS_SUPPORTS_32BIT_KERNEL
4431f21d2bdSBrian Murphy	select SYS_SUPPORTS_64BIT_KERNEL if BROKEN
4441f21d2bdSBrian Murphy	select SYS_SUPPORTS_LITTLE_ENDIAN
4451f21d2bdSBrian Murphy
44630ad29bbSHuacai Chenconfig MACH_LOONGSON32
44730ad29bbSHuacai Chen	bool "Loongson-1 family of machines"
448c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
449ade299d8SYoichi Yuasa	help
45030ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
45185749d24SWu Zhangjin
45230ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
45330ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
45430ad29bbSHuacai Chen	  Sciences (CAS).
455ade299d8SYoichi Yuasa
45630ad29bbSHuacai Chenconfig MACH_LOONGSON64
45730ad29bbSHuacai Chen	bool "Loongson-2/3 family of machines"
458ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
459ca585cf9SKelvin Cheung	help
46030ad29bbSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
461ca585cf9SKelvin Cheung
46230ad29bbSHuacai Chen	  Loongson-2 is a family of single-core CPUs and Loongson-3 is a
46330ad29bbSHuacai Chen	  family of multi-core CPUs. They are both 64-bit general-purpose
46430ad29bbSHuacai Chen	  MIPS-compatible CPUs. Loongson-2/3 are developed by the Institute
46530ad29bbSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS)
46630ad29bbSHuacai Chen	  in the People's Republic of China. The chief architect is Professor
46730ad29bbSHuacai Chen	  Weiwu Hu.
468ca585cf9SKelvin Cheung
4696a438309SAndrew Brestickerconfig MACH_PISTACHIO
4706a438309SAndrew Bresticker	bool "IMG Pistachio SoC based boards"
4716a438309SAndrew Bresticker	select BOOT_ELF32
4726a438309SAndrew Bresticker	select BOOT_RAW
4736a438309SAndrew Bresticker	select CEVT_R4K
4746a438309SAndrew Bresticker	select CLKSRC_MIPS_GIC
4756a438309SAndrew Bresticker	select COMMON_CLK
4766a438309SAndrew Bresticker	select CSRC_R4K
477645c7827SZubair Lutfullah Kakakhel	select DMA_NONCOHERENT
478d30a2b47SLinus Walleij	select GPIOLIB
47967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
4806a438309SAndrew Bresticker	select LIBFDT
4816a438309SAndrew Bresticker	select MFD_SYSCON
4826a438309SAndrew Bresticker	select MIPS_CPU_SCACHE
4833369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
4846a438309SAndrew Bresticker	select MIPS_GIC
4856a438309SAndrew Bresticker	select PINCTRL
4866a438309SAndrew Bresticker	select REGULATOR
4876a438309SAndrew Bresticker	select SYS_HAS_CPU_MIPS32_R2
4886a438309SAndrew Bresticker	select SYS_SUPPORTS_32BIT_KERNEL
4896a438309SAndrew Bresticker	select SYS_SUPPORTS_LITTLE_ENDIAN
4906a438309SAndrew Bresticker	select SYS_SUPPORTS_MIPS_CPS
4916a438309SAndrew Bresticker	select SYS_SUPPORTS_MULTITHREADING
49241cc07beSMatt Redfearn	select SYS_SUPPORTS_RELOCATABLE
4936a438309SAndrew Bresticker	select SYS_SUPPORTS_ZBOOT
494018f62eeSEzequiel Garcia	select SYS_HAS_EARLY_PRINTK
495018f62eeSEzequiel Garcia	select USE_GENERIC_EARLY_PRINTK_8250
4966a438309SAndrew Bresticker	select USE_OF
4976a438309SAndrew Bresticker	help
4986a438309SAndrew Bresticker	  This enables support for the IMG Pistachio SoC platform.
4996a438309SAndrew Bresticker
5001da177e4SLinus Torvaldsconfig MIPS_MALTA
5013fa986faSMartin Michlmayr	bool "MIPS Malta board"
50261ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
503a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5047a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5051da177e4SLinus Torvalds	select BOOT_ELF32
506fa71c960SRalf Baechle	select BOOT_RAW
507e8823d26SPaul Burton	select BUILTIN_DTB
50842f77542SRalf Baechle	select CEVT_R4K
509940f6b48SRalf Baechle	select CSRC_R4K
510fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
51142b002abSGuenter Roeck	select COMMON_CLK
512885014bcSFelix Fietkau	select DMA_MAYBE_COHERENT
5131da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5148a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
51567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
5163369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
5178a19b8f1SAndrew Bresticker	select MIPS_GIC
5181da177e4SLinus Torvalds	select HW_HAS_PCI
519d865bea4SRalf Baechle	select I8253
5201da177e4SLinus Torvalds	select I8259
5215e83d430SRalf Baechle	select MIPS_BONITO64
5229318c51aSChris Dearman	select MIPS_CPU_SCACHE
523a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
524252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
5255e83d430SRalf Baechle	select MIPS_MSC
526ecafe3e9SPaul Burton	select SMP_UP if SMP
5271da177e4SLinus Torvalds	select SWAP_IO_SPACE
5287cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5297cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
530bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
531c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
532575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5337cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5345d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
535575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5367cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5377cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
538ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
539ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5405e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
541c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5425e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
543424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
5440365070fSTim Anderson	select SYS_SUPPORTS_MIPS_CMP
545e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
546377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
547f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
5489693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
549f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
5501b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
5518c530ea3SMatt Redfearn	select SYS_SUPPORTS_RELOCATABLE
552e8823d26SPaul Burton	select USE_OF
55338ec82feSPaul Burton	select LIBFDT
554abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
555e81a8c7dSPaul Burton	select BUILTIN_DTB
556e81a8c7dSPaul Burton	select LIBFDT
5571da177e4SLinus Torvalds	help
558f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
5591da177e4SLinus Torvalds	  board.
5601da177e4SLinus Torvalds
5612572f00dSJoshua Hendersonconfig MACH_PIC32
5622572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5632572f00dSJoshua Henderson	help
5642572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5652572f00dSJoshua Henderson
5662572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5672572f00dSJoshua Henderson	  microcontrollers.
5682572f00dSJoshua Henderson
569a83860c2SRalf Baechleconfig NEC_MARKEINS
570a83860c2SRalf Baechle	bool "NEC EMMA2RH Mark-eins board"
571a83860c2SRalf Baechle	select SOC_EMMA2RH
572a83860c2SRalf Baechle	select HW_HAS_PCI
573a83860c2SRalf Baechle	help
574a83860c2SRalf Baechle	  This enables support for the NEC Electronics Mark-eins boards.
575ade299d8SYoichi Yuasa
5765e83d430SRalf Baechleconfig MACH_VR41XX
57774142d65SYoichi Yuasa	bool "NEC VR4100 series based machines"
57842f77542SRalf Baechle	select CEVT_R4K
579940f6b48SRalf Baechle	select CSRC_R4K
5807cf8053bSRalf Baechle	select SYS_HAS_CPU_VR41XX
581377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
582d30a2b47SLinus Walleij	select GPIOLIB
5835e83d430SRalf Baechle
584edb6310aSDaniel Lairdconfig NXP_STB220
585edb6310aSDaniel Laird	bool "NXP STB220 board"
586edb6310aSDaniel Laird	select SOC_PNX833X
587edb6310aSDaniel Laird	help
588edb6310aSDaniel Laird	 Support for NXP Semiconductors STB220 Development Board.
589edb6310aSDaniel Laird
590edb6310aSDaniel Lairdconfig NXP_STB225
591edb6310aSDaniel Laird	bool "NXP 225 board"
592edb6310aSDaniel Laird	select SOC_PNX833X
593edb6310aSDaniel Laird	select SOC_PNX8335
594edb6310aSDaniel Laird	help
595edb6310aSDaniel Laird	 Support for NXP Semiconductors STB225 Development Board.
596edb6310aSDaniel Laird
5979267a30dSMarc St-Jeanconfig PMC_MSP
5989267a30dSMarc St-Jean	bool "PMC-Sierra MSP chipsets"
59939d30c13SAnoop P A	select CEVT_R4K
60039d30c13SAnoop P A	select CSRC_R4K
6019267a30dSMarc St-Jean	select DMA_NONCOHERENT
6029267a30dSMarc St-Jean	select SWAP_IO_SPACE
6039267a30dSMarc St-Jean	select NO_EXCEPT_FILL
6049267a30dSMarc St-Jean	select BOOT_RAW
6059267a30dSMarc St-Jean	select SYS_HAS_CPU_MIPS32_R1
6069267a30dSMarc St-Jean	select SYS_HAS_CPU_MIPS32_R2
6079267a30dSMarc St-Jean	select SYS_SUPPORTS_32BIT_KERNEL
6089267a30dSMarc St-Jean	select SYS_SUPPORTS_BIG_ENDIAN
609377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
61067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
6113369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
6129267a30dSMarc St-Jean	select SERIAL_8250
6139267a30dSMarc St-Jean	select SERIAL_8250_CONSOLE
6149296d94dSFlorian Fainelli	select USB_EHCI_BIG_ENDIAN_MMIO
6159296d94dSFlorian Fainelli	select USB_EHCI_BIG_ENDIAN_DESC
6169267a30dSMarc St-Jean	help
6179267a30dSMarc St-Jean	  This adds support for the PMC-Sierra family of Multi-Service
6189267a30dSMarc St-Jean	  Processor System-On-A-Chips.  These parts include a number
6199267a30dSMarc St-Jean	  of integrated peripherals, interfaces and DSPs in addition to
6209267a30dSMarc St-Jean	  a variety of MIPS cores.
6219267a30dSMarc St-Jean
622ae2b5bb6SJohn Crispinconfig RALINK
623ae2b5bb6SJohn Crispin	bool "Ralink based machines"
624ae2b5bb6SJohn Crispin	select CEVT_R4K
625ae2b5bb6SJohn Crispin	select CSRC_R4K
626ae2b5bb6SJohn Crispin	select BOOT_RAW
627ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
62867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
6293369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
630ae2b5bb6SJohn Crispin	select USE_OF
631ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
632ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
633ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
634ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
635377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
636ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
637ae2b5bb6SJohn Crispin	select CLKDEV_LOOKUP
6382a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6392a153f1cSJohn Crispin	select RESET_CONTROLLER
640ae2b5bb6SJohn Crispin
6411da177e4SLinus Torvaldsconfig SGI_IP22
6423fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
6430e2794b0SRalf Baechle	select FW_ARC
6440e2794b0SRalf Baechle	select FW_ARC32
6457a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
6461da177e4SLinus Torvalds	select BOOT_ELF32
64742f77542SRalf Baechle	select CEVT_R4K
648940f6b48SRalf Baechle	select CSRC_R4K
649e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
6501da177e4SLinus Torvalds	select DMA_NONCOHERENT
6515e83d430SRalf Baechle	select HW_HAS_EISA
652d865bea4SRalf Baechle	select I8253
65368de4803SThomas Bogendoerfer	select I8259
6541da177e4SLinus Torvalds	select IP22_CPU_SCACHE
65567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
6563369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
657aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
658e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
659e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
66036e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
661e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
662e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
663e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
6641da177e4SLinus Torvalds	select SWAP_IO_SPACE
6657cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
6667cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
6672b5e63f6SMartin Michlmayr	#
6682b5e63f6SMartin Michlmayr	# Disable EARLY_PRINTK for now since it leads to overwritten prom
6692b5e63f6SMartin Michlmayr	# memory during early boot on some machines.
6702b5e63f6SMartin Michlmayr	#
6712b5e63f6SMartin Michlmayr	# See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
6722b5e63f6SMartin Michlmayr	# for a more details discussion
6732b5e63f6SMartin Michlmayr	#
6742b5e63f6SMartin Michlmayr	# select SYS_HAS_EARLY_PRINTK
675ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
676ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6775e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
678930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
6791da177e4SLinus Torvalds	help
6801da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
6811da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
6821da177e4SLinus Torvalds	  that runs on these, say Y here.
6831da177e4SLinus Torvalds
6841da177e4SLinus Torvaldsconfig SGI_IP27
6853fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
686*54aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
6870e2794b0SRalf Baechle	select FW_ARC
6880e2794b0SRalf Baechle	select FW_ARC64
6895e83d430SRalf Baechle	select BOOT_ELF64
690e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
69136a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
6921da177e4SLinus Torvalds	select HW_HAS_PCI
693130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
6947cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
695ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
6965e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
697d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
6981a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
699930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7001da177e4SLinus Torvalds	help
7011da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7021da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7031da177e4SLinus Torvalds	  here.
7041da177e4SLinus Torvalds
705e2defae5SThomas Bogendoerferconfig SGI_IP28
7067d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
7070e2794b0SRalf Baechle	select FW_ARC
7080e2794b0SRalf Baechle	select FW_ARC64
7097a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
710e2defae5SThomas Bogendoerfer	select BOOT_ELF64
711e2defae5SThomas Bogendoerfer	select CEVT_R4K
712e2defae5SThomas Bogendoerfer	select CSRC_R4K
713e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
714e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
715e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
71667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7173369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
718e2defae5SThomas Bogendoerfer	select HW_HAS_EISA
719e2defae5SThomas Bogendoerfer	select I8253
720e2defae5SThomas Bogendoerfer	select I8259
721e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
722e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
7235b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
724e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
725e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
726e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
727e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
728e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7292b5e63f6SMartin Michlmayr	#
7302b5e63f6SMartin Michlmayr	# Disable EARLY_PRINTK for now since it leads to overwritten prom
7312b5e63f6SMartin Michlmayr	# memory during early boot on some machines.
7322b5e63f6SMartin Michlmayr	#
7332b5e63f6SMartin Michlmayr	# See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
7342b5e63f6SMartin Michlmayr	# for a more details discussion
7352b5e63f6SMartin Michlmayr	#
7362b5e63f6SMartin Michlmayr	# select SYS_HAS_EARLY_PRINTK
737e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
738e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
739dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
740e2defae5SThomas Bogendoerfer      help
741e2defae5SThomas Bogendoerfer        This is the SGI Indigo2 with R10000 processor.  To compile a Linux
742e2defae5SThomas Bogendoerfer        kernel that runs on these, say Y here.
743e2defae5SThomas Bogendoerfer
7441da177e4SLinus Torvaldsconfig SGI_IP32
745cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
7460e2794b0SRalf Baechle	select FW_ARC
7470e2794b0SRalf Baechle	select FW_ARC32
7481da177e4SLinus Torvalds	select BOOT_ELF32
74942f77542SRalf Baechle	select CEVT_R4K
750940f6b48SRalf Baechle	select CSRC_R4K
7511da177e4SLinus Torvalds	select DMA_NONCOHERENT
7521da177e4SLinus Torvalds	select HW_HAS_PCI
75367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
7543369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
7551da177e4SLinus Torvalds	select R5000_CPU_SCACHE
7561da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
7577cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
7587cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
7597cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
760dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
761ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7625e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7631da177e4SLinus Torvalds	help
7641da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
7651da177e4SLinus Torvalds
766ade299d8SYoichi Yuasaconfig SIBYTE_CRHINE
767ade299d8SYoichi Yuasa	bool "Sibyte BCM91120C-CRhine"
7685e83d430SRalf Baechle	select BOOT_ELF32
7695e83d430SRalf Baechle	select SIBYTE_BCM1120
7705e83d430SRalf Baechle	select SWAP_IO_SPACE
7717cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7725e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7735e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7745e83d430SRalf Baechle
775ade299d8SYoichi Yuasaconfig SIBYTE_CARMEL
776ade299d8SYoichi Yuasa	bool "Sibyte BCM91120x-Carmel"
7775e83d430SRalf Baechle	select BOOT_ELF32
7785e83d430SRalf Baechle	select SIBYTE_BCM1120
7795e83d430SRalf Baechle	select SWAP_IO_SPACE
7807cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7815e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7825e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7835e83d430SRalf Baechle
7845e83d430SRalf Baechleconfig SIBYTE_CRHONE
7853fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
7865e83d430SRalf Baechle	select BOOT_ELF32
7875e83d430SRalf Baechle	select SIBYTE_BCM1125
7885e83d430SRalf Baechle	select SWAP_IO_SPACE
7897cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
7905e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7915e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
7925e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
7935e83d430SRalf Baechle
794ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
795ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
796ade299d8SYoichi Yuasa	select BOOT_ELF32
797ade299d8SYoichi Yuasa	select SIBYTE_BCM1125H
798ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
799ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
800ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
801ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
802ade299d8SYoichi Yuasa
803ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
804ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
805ade299d8SYoichi Yuasa	select BOOT_ELF32
806fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
807ade299d8SYoichi Yuasa	select SIBYTE_SB1250
808ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
809ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
810ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
811ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
812ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
813cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
814ade299d8SYoichi Yuasa
815ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
816ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
817ade299d8SYoichi Yuasa	select BOOT_ELF32
818fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
819ade299d8SYoichi Yuasa	select SIBYTE_SB1250
820ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
821ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
822ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
823ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
824ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
825ade299d8SYoichi Yuasa
826ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
827ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
828ade299d8SYoichi Yuasa	select BOOT_ELF32
829ade299d8SYoichi Yuasa	select SIBYTE_SB1250
830ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
831ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
832ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
833ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
834ade299d8SYoichi Yuasa
835ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
836ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
837ade299d8SYoichi Yuasa	select BOOT_ELF32
838ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
839ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
840ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
841ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
842ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
843651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
844ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
845cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
846ade299d8SYoichi Yuasa
84714b36af4SThomas Bogendoerferconfig SNI_RM
84814b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
8490e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
8500e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
851aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
8525e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
853a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
8547a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
8555e83d430SRalf Baechle	select BOOT_ELF32
85642f77542SRalf Baechle	select CEVT_R4K
857940f6b48SRalf Baechle	select CSRC_R4K
858e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
8595e83d430SRalf Baechle	select DMA_NONCOHERENT
8605e83d430SRalf Baechle	select GENERIC_ISA_DMA
8618a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
8625e83d430SRalf Baechle	select HW_HAS_EISA
8635e83d430SRalf Baechle	select HW_HAS_PCI
86467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
865d865bea4SRalf Baechle	select I8253
8665e83d430SRalf Baechle	select I8259
8675e83d430SRalf Baechle	select ISA
8683369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
8694a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
8707cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
8714a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
872c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8734a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
87436a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
875ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
8767d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
8774a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8785e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8795e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8801da177e4SLinus Torvalds	help
88114b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
88214b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
8835e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
8845e83d430SRalf Baechle	  support this machine type.
8851da177e4SLinus Torvalds
886edcaf1a6SAtsushi Nemotoconfig MACH_TX39XX
887edcaf1a6SAtsushi Nemoto	bool "Toshiba TX39 series based machines"
8885e83d430SRalf Baechle
889edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
890edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
89123fbee9dSRalf Baechle
89273b4390fSRalf Baechleconfig MIKROTIK_RB532
89373b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
89473b4390fSRalf Baechle	select CEVT_R4K
89573b4390fSRalf Baechle	select CSRC_R4K
89673b4390fSRalf Baechle	select DMA_NONCOHERENT
89773b4390fSRalf Baechle	select HW_HAS_PCI
89867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8993369ddb6SChristoph Hellwig	select MIPS_DMA_DEFAULT
90073b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
90173b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
90273b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
90373b4390fSRalf Baechle	select SWAP_IO_SPACE
90473b4390fSRalf Baechle	select BOOT_RAW
905d30a2b47SLinus Walleij	select GPIOLIB
906930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
90773b4390fSRalf Baechle	help
90873b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
90973b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
91073b4390fSRalf Baechle
9119ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
9129ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
913a86c7f72SDavid Daney	select CEVT_R4K
914ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
915d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
916a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
917a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
918f65aad41SRalf Baechle	select EDAC_SUPPORT
919b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
92073569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
92173569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
922a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
9235e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
924e8635b48SDavid Daney	select HW_HAS_PCI
925f00e001eSDavid Daney	select ZONE_DMA32
926465aaed0SDavid Daney	select HOLES_IN_ZONE
927d30a2b47SLinus Walleij	select GPIOLIB
9286e511163SDavid Daney	select LIBFDT
9296e511163SDavid Daney	select USE_OF
9306e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9316e511163SDavid Daney	select SYS_SUPPORTS_SMP
9327820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
9337820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
934e326479fSAndrew Bresticker	select BUILTIN_DTB
9358c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
93609230cbcSChristoph Hellwig	select SWIOTLB
9373ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
938a86c7f72SDavid Daney	help
939a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
940a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
941a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
942a86c7f72SDavid Daney	  Some of the supported boards are:
943a86c7f72SDavid Daney		EBT3000
944a86c7f72SDavid Daney		EBH3000
945a86c7f72SDavid Daney		EBH3100
946a86c7f72SDavid Daney		Thunder
947a86c7f72SDavid Daney		Kodama
948a86c7f72SDavid Daney		Hikari
949a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
950a86c7f72SDavid Daney
9517f058e85SJayachandran Cconfig NLM_XLR_BOARD
9527f058e85SJayachandran C	bool "Netlogic XLR/XLS based systems"
9537f058e85SJayachandran C	select BOOT_ELF32
9547f058e85SJayachandran C	select NLM_COMMON
9557f058e85SJayachandran C	select SYS_HAS_CPU_XLR
9567f058e85SJayachandran C	select SYS_SUPPORTS_SMP
9577f058e85SJayachandran C	select HW_HAS_PCI
9587f058e85SJayachandran C	select SWAP_IO_SPACE
9597f058e85SJayachandran C	select SYS_SUPPORTS_32BIT_KERNEL
9607f058e85SJayachandran C	select SYS_SUPPORTS_64BIT_KERNEL
961d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
9627f058e85SJayachandran C	select SYS_SUPPORTS_BIG_ENDIAN
9637f058e85SJayachandran C	select SYS_SUPPORTS_HIGHMEM
9647f058e85SJayachandran C	select NR_CPUS_DEFAULT_32
9657f058e85SJayachandran C	select CEVT_R4K
9667f058e85SJayachandran C	select CSRC_R4K
96767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
968b97215fdSJayachandran C	select ZONE_DMA32 if 64BIT
9697f058e85SJayachandran C	select SYNC_R4K
9707f058e85SJayachandran C	select SYS_HAS_EARLY_PRINTK
9718f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT
9728f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT_UART16550
9737f058e85SJayachandran C	help
9747f058e85SJayachandran C	  Support for systems based on Netlogic XLR and XLS processors.
9757f058e85SJayachandran C	  Say Y here if you have a XLR or XLS based board.
9767f058e85SJayachandran C
9771c773ea4SJayachandran Cconfig NLM_XLP_BOARD
9781c773ea4SJayachandran C	bool "Netlogic XLP based systems"
9791c773ea4SJayachandran C	select BOOT_ELF32
9801c773ea4SJayachandran C	select NLM_COMMON
9811c773ea4SJayachandran C	select SYS_HAS_CPU_XLP
9821c773ea4SJayachandran C	select SYS_SUPPORTS_SMP
9831c773ea4SJayachandran C	select HW_HAS_PCI
9841c773ea4SJayachandran C	select SYS_SUPPORTS_32BIT_KERNEL
9851c773ea4SJayachandran C	select SYS_SUPPORTS_64BIT_KERNEL
986d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
987d30a2b47SLinus Walleij	select GPIOLIB
9881c773ea4SJayachandran C	select SYS_SUPPORTS_BIG_ENDIAN
9891c773ea4SJayachandran C	select SYS_SUPPORTS_LITTLE_ENDIAN
9901c773ea4SJayachandran C	select SYS_SUPPORTS_HIGHMEM
9911c773ea4SJayachandran C	select NR_CPUS_DEFAULT_32
9921c773ea4SJayachandran C	select CEVT_R4K
9931c773ea4SJayachandran C	select CSRC_R4K
99467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
995b97215fdSJayachandran C	select ZONE_DMA32 if 64BIT
9961c773ea4SJayachandran C	select SYNC_R4K
9971c773ea4SJayachandran C	select SYS_HAS_EARLY_PRINTK
9982f6528e1SJayachandran C	select USE_OF
9998f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT
10008f0b0430SJayachandran C	select SYS_SUPPORTS_ZBOOT_UART16550
10011c773ea4SJayachandran C	help
10021c773ea4SJayachandran C	  This board is based on Netlogic XLP Processor.
10031c773ea4SJayachandran C	  Say Y here if you have a XLP based board.
10041c773ea4SJayachandran C
10059bc463beSDavid Daneyconfig MIPS_PARAVIRT
10069bc463beSDavid Daney	bool "Para-Virtualized guest system"
10079bc463beSDavid Daney	select CEVT_R4K
10089bc463beSDavid Daney	select CSRC_R4K
10099bc463beSDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
10109bc463beSDavid Daney	select SYS_SUPPORTS_32BIT_KERNEL
10119bc463beSDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
10129bc463beSDavid Daney	select SYS_SUPPORTS_SMP
10139bc463beSDavid Daney	select NR_CPUS_DEFAULT_4
10149bc463beSDavid Daney	select SYS_HAS_EARLY_PRINTK
10159bc463beSDavid Daney	select SYS_HAS_CPU_MIPS32_R2
10169bc463beSDavid Daney	select SYS_HAS_CPU_MIPS64_R2
10179bc463beSDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
10189bc463beSDavid Daney	select HW_HAS_PCI
10199bc463beSDavid Daney	select SWAP_IO_SPACE
10209bc463beSDavid Daney	help
10219bc463beSDavid Daney	  This option supports guest running under ????
10229bc463beSDavid Daney
10231da177e4SLinus Torvaldsendchoice
10241da177e4SLinus Torvalds
1025e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10263b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1027d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1028a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1029e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10308945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
1031eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
10325e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10335ebabe59SLars-Peter Clausensource "arch/mips/jz4740/Kconfig"
10348ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
10351f21d2bdSBrian Murphysource "arch/mips/lasat/Kconfig"
10362572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1037af0cfb2cSEzequiel Garciasource "arch/mips/pistachio/Kconfig"
10380f3a05cbSRalf Baechlesource "arch/mips/pmcs-msp71xx/Kconfig"
1039ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
104029c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
104138b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
104222b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
10435e83d430SRalf Baechlesource "arch/mips/vr41xx/Kconfig"
1044a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
104530ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
104630ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
10477f058e85SJayachandran Csource "arch/mips/netlogic/Kconfig"
1048ae6e7e63SDavid Daneysource "arch/mips/paravirt/Kconfig"
104938b18f72SRalf Baechle
10505e83d430SRalf Baechleendmenu
10515e83d430SRalf Baechle
10521da177e4SLinus Torvaldsconfig RWSEM_GENERIC_SPINLOCK
10531da177e4SLinus Torvalds	bool
10541da177e4SLinus Torvalds	default y
10551da177e4SLinus Torvalds
10561da177e4SLinus Torvaldsconfig RWSEM_XCHGADD_ALGORITHM
10571da177e4SLinus Torvalds	bool
10581da177e4SLinus Torvalds
10593c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10603c9ee7efSAkinobu Mita	bool
10613c9ee7efSAkinobu Mita	default y
10623c9ee7efSAkinobu Mita
10631da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10641da177e4SLinus Torvalds	bool
10651da177e4SLinus Torvalds	default y
10661da177e4SLinus Torvalds
1067ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10681cc89038SAtsushi Nemoto	bool
10691cc89038SAtsushi Nemoto	default y
10701cc89038SAtsushi Nemoto
10711da177e4SLinus Torvalds#
10721da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10731da177e4SLinus Torvalds#
10740e2794b0SRalf Baechleconfig FW_ARC
10751da177e4SLinus Torvalds	bool
10761da177e4SLinus Torvalds
107761ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
107861ed242dSRalf Baechle	bool
107961ed242dSRalf Baechle
10809267a30dSMarc St-Jeanconfig BOOT_RAW
10819267a30dSMarc St-Jean	bool
10829267a30dSMarc St-Jean
1083217dd11eSRalf Baechleconfig CEVT_BCM1480
1084217dd11eSRalf Baechle	bool
1085217dd11eSRalf Baechle
10866457d9fcSYoichi Yuasaconfig CEVT_DS1287
10876457d9fcSYoichi Yuasa	bool
10886457d9fcSYoichi Yuasa
10891097c6acSYoichi Yuasaconfig CEVT_GT641XX
10901097c6acSYoichi Yuasa	bool
10911097c6acSYoichi Yuasa
109242f77542SRalf Baechleconfig CEVT_R4K
109342f77542SRalf Baechle	bool
109442f77542SRalf Baechle
1095217dd11eSRalf Baechleconfig CEVT_SB1250
1096217dd11eSRalf Baechle	bool
1097217dd11eSRalf Baechle
1098229f773eSAtsushi Nemotoconfig CEVT_TXX9
1099229f773eSAtsushi Nemoto	bool
1100229f773eSAtsushi Nemoto
1101217dd11eSRalf Baechleconfig CSRC_BCM1480
1102217dd11eSRalf Baechle	bool
1103217dd11eSRalf Baechle
11044247417dSYoichi Yuasaconfig CSRC_IOASIC
11054247417dSYoichi Yuasa	bool
11064247417dSYoichi Yuasa
1107940f6b48SRalf Baechleconfig CSRC_R4K
1108940f6b48SRalf Baechle	bool
1109940f6b48SRalf Baechle
1110217dd11eSRalf Baechleconfig CSRC_SB1250
1111217dd11eSRalf Baechle	bool
1112217dd11eSRalf Baechle
1113a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1114a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1115a7f4df4eSAlex Smith
1116a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1117d30a2b47SLinus Walleij	select GPIOLIB
1118a9aec7feSAtsushi Nemoto	bool
1119a9aec7feSAtsushi Nemoto
11200e2794b0SRalf Baechleconfig FW_CFE
1121df78b5c8SAurelien Jarno	bool
1122df78b5c8SAurelien Jarno
112340e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
112440e084a5SRalf Baechle	bool
112540e084a5SRalf Baechle
1126885014bcSFelix Fietkauconfig DMA_MAYBE_COHERENT
1127885014bcSFelix Fietkau	select DMA_NONCOHERENT
1128885014bcSFelix Fietkau	bool
1129885014bcSFelix Fietkau
113020d33064SPaul Burtonconfig DMA_PERDEV_COHERENT
113120d33064SPaul Burton	bool
113220d33064SPaul Burton	select DMA_MAYBE_COHERENT
113320d33064SPaul Burton
11341da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11351da177e4SLinus Torvalds	bool
1136e1e02b32SFUJITA Tomonori	select NEED_DMA_MAP_STATE
11374ce588cdSRalf Baechle
113836a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11391da177e4SLinus Torvalds	bool
11401da177e4SLinus Torvalds
11411b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1142dbb74540SRalf Baechle	bool
1143dbb74540SRalf Baechle
11441da177e4SLinus Torvaldsconfig MIPS_BONITO64
11451da177e4SLinus Torvalds	bool
11461da177e4SLinus Torvalds
11471da177e4SLinus Torvaldsconfig MIPS_MSC
11481da177e4SLinus Torvalds	bool
11491da177e4SLinus Torvalds
11501f21d2bdSBrian Murphyconfig MIPS_NILE4
11511f21d2bdSBrian Murphy	bool
11521f21d2bdSBrian Murphy
115339b8d525SRalf Baechleconfig SYNC_R4K
115439b8d525SRalf Baechle	bool
115539b8d525SRalf Baechle
1156487d70d0SGabor Juhosconfig MIPS_MACHINE
1157487d70d0SGabor Juhos	def_bool n
1158487d70d0SGabor Juhos
1159ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1160d388d685SMaciej W. Rozycki	def_bool n
1161d388d685SMaciej W. Rozycki
11624e0748f5SMarkos Chandrasconfig GENERIC_CSUM
11634e0748f5SMarkos Chandras	bool
11644e0748f5SMarkos Chandras
11658313da30SRalf Baechleconfig GENERIC_ISA_DMA
11668313da30SRalf Baechle	bool
11678313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1168a35bee8aSNamhyung Kim	select ISA_DMA_API
11698313da30SRalf Baechle
1170aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1171aa414dffSRalf Baechle	bool
11728313da30SRalf Baechle	select GENERIC_ISA_DMA
1173aa414dffSRalf Baechle
1174a35bee8aSNamhyung Kimconfig ISA_DMA_API
1175a35bee8aSNamhyung Kim	bool
1176a35bee8aSNamhyung Kim
1177465aaed0SDavid Daneyconfig HOLES_IN_ZONE
1178465aaed0SDavid Daney	bool
1179465aaed0SDavid Daney
11808c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11818c530ea3SMatt Redfearn	bool
11828c530ea3SMatt Redfearn	help
11838c530ea3SMatt Redfearn	 Selected if the platform supports relocating the kernel.
11848c530ea3SMatt Redfearn	 The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11858c530ea3SMatt Redfearn	 to allow access to command line and entropy sources.
11868c530ea3SMatt Redfearn
1187f381bf6dSDavid Daneyconfig MIPS_CBPF_JIT
1188f381bf6dSDavid Daney	def_bool y
1189f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_CBPF_JIT
1190f381bf6dSDavid Daney
1191f381bf6dSDavid Daneyconfig MIPS_EBPF_JIT
1192f381bf6dSDavid Daney	def_bool y
1193f381bf6dSDavid Daney	depends on BPF_JIT && HAVE_EBPF_JIT
1194f381bf6dSDavid Daney
1195f381bf6dSDavid Daney
11965e83d430SRalf Baechle#
11976b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
11985e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11995e83d430SRalf Baechle# choice statement should be more obvious to the user.
12005e83d430SRalf Baechle#
12015e83d430SRalf Baechlechoice
12026b2aac42SMasanari Iida	prompt "Endianness selection"
12031da177e4SLinus Torvalds	help
12041da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
12055e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
12063cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
12075e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
12083dde6ad8SDavid Sterba	  one or the other endianness.
12095e83d430SRalf Baechle
12105e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
12115e83d430SRalf Baechle	bool "Big endian"
12125e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
12135e83d430SRalf Baechle
12145e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
12155e83d430SRalf Baechle	bool "Little endian"
12165e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
12175e83d430SRalf Baechle
12185e83d430SRalf Baechleendchoice
12195e83d430SRalf Baechle
122022b0763aSDavid Daneyconfig EXPORT_UASM
122122b0763aSDavid Daney	bool
122222b0763aSDavid Daney
12232116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12242116245eSRalf Baechle	bool
12252116245eSRalf Baechle
12265e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12275e83d430SRalf Baechle	bool
12285e83d430SRalf Baechle
12295e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12305e83d430SRalf Baechle	bool
12311da177e4SLinus Torvalds
12329cffd154SDavid Daneyconfig SYS_SUPPORTS_HUGETLBFS
12339cffd154SDavid Daney	bool
12349cffd154SDavid Daney	depends on CPU_SUPPORTS_HUGEPAGES && 64BIT
12359cffd154SDavid Daney	default y
12369cffd154SDavid Daney
1237aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1238aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1239aa1762f4SDavid Daney
12401da177e4SLinus Torvaldsconfig IRQ_CPU_RM7K
12411da177e4SLinus Torvalds	bool
12421da177e4SLinus Torvalds
12439267a30dSMarc St-Jeanconfig IRQ_MSP_SLP
12449267a30dSMarc St-Jean	bool
12459267a30dSMarc St-Jean
12469267a30dSMarc St-Jeanconfig IRQ_MSP_CIC
12479267a30dSMarc St-Jean	bool
12489267a30dSMarc St-Jean
12498420fd00SAtsushi Nemotoconfig IRQ_TXX9
12508420fd00SAtsushi Nemoto	bool
12518420fd00SAtsushi Nemoto
1252d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1253d5ab1a69SYoichi Yuasa	bool
1254d5ab1a69SYoichi Yuasa
1255252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12561da177e4SLinus Torvalds	bool
12571da177e4SLinus Torvalds
12589267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12599267a30dSMarc St-Jean	bool
12609267a30dSMarc St-Jean
1261a83860c2SRalf Baechleconfig SOC_EMMA2RH
1262a83860c2SRalf Baechle	bool
1263a83860c2SRalf Baechle	select CEVT_R4K
1264a83860c2SRalf Baechle	select CSRC_R4K
1265a83860c2SRalf Baechle	select DMA_NONCOHERENT
126667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1267a83860c2SRalf Baechle	select SWAP_IO_SPACE
1268a83860c2SRalf Baechle	select SYS_HAS_CPU_R5500
1269a83860c2SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
1270a83860c2SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
1271a83860c2SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
1272a83860c2SRalf Baechle
1273edb6310aSDaniel Lairdconfig SOC_PNX833X
1274edb6310aSDaniel Laird	bool
1275edb6310aSDaniel Laird	select CEVT_R4K
1276edb6310aSDaniel Laird	select CSRC_R4K
127767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1278edb6310aSDaniel Laird	select DMA_NONCOHERENT
1279edb6310aSDaniel Laird	select SYS_HAS_CPU_MIPS32_R2
1280edb6310aSDaniel Laird	select SYS_SUPPORTS_32BIT_KERNEL
1281edb6310aSDaniel Laird	select SYS_SUPPORTS_LITTLE_ENDIAN
1282edb6310aSDaniel Laird	select SYS_SUPPORTS_BIG_ENDIAN
1283377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
1284edb6310aSDaniel Laird	select CPU_MIPSR2_IRQ_VI
1285edb6310aSDaniel Laird
1286edb6310aSDaniel Lairdconfig SOC_PNX8335
1287edb6310aSDaniel Laird	bool
1288edb6310aSDaniel Laird	select SOC_PNX833X
1289edb6310aSDaniel Laird
1290a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1291a7e07b1aSMarkos Chandras	bool
1292a7e07b1aSMarkos Chandras
12931da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12941da177e4SLinus Torvalds	bool
12951da177e4SLinus Torvalds
1296e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1297e2defae5SThomas Bogendoerfer	bool
1298e2defae5SThomas Bogendoerfer
12995b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
13005b438c44SThomas Bogendoerfer	bool
13015b438c44SThomas Bogendoerfer
1302e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1303e2defae5SThomas Bogendoerfer	bool
1304e2defae5SThomas Bogendoerfer
1305e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1306e2defae5SThomas Bogendoerfer	bool
1307e2defae5SThomas Bogendoerfer
1308e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1309e2defae5SThomas Bogendoerfer	bool
1310e2defae5SThomas Bogendoerfer
1311e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1312e2defae5SThomas Bogendoerfer	bool
1313e2defae5SThomas Bogendoerfer
1314e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1315e2defae5SThomas Bogendoerfer	bool
1316e2defae5SThomas Bogendoerfer
13170e2794b0SRalf Baechleconfig FW_ARC32
13185e83d430SRalf Baechle	bool
13195e83d430SRalf Baechle
1320aaa9fad3SPaul Bolleconfig FW_SNIPROM
1321231a35d3SThomas Bogendoerfer	bool
1322231a35d3SThomas Bogendoerfer
13231da177e4SLinus Torvaldsconfig BOOT_ELF32
13241da177e4SLinus Torvalds	bool
13251da177e4SLinus Torvalds
1326930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1327930beb5aSFlorian Fainelli	bool
1328930beb5aSFlorian Fainelli
1329930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1330930beb5aSFlorian Fainelli	bool
1331930beb5aSFlorian Fainelli
1332930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1333930beb5aSFlorian Fainelli	bool
1334930beb5aSFlorian Fainelli
1335930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1336930beb5aSFlorian Fainelli	bool
1337930beb5aSFlorian Fainelli
13381da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
13391da177e4SLinus Torvalds	int
1340a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
13415432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
13425432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
13435432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
13441da177e4SLinus Torvalds	default "5"
13451da177e4SLinus Torvalds
13461da177e4SLinus Torvaldsconfig HAVE_STD_PC_SERIAL_PORT
13471da177e4SLinus Torvalds	bool
13481da177e4SLinus Torvalds
13491da177e4SLinus Torvaldsconfig ARC_CONSOLE
13501da177e4SLinus Torvalds	bool "ARC console support"
1351e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
13521da177e4SLinus Torvalds
13531da177e4SLinus Torvaldsconfig ARC_MEMORY
13541da177e4SLinus Torvalds	bool
135514b36af4SThomas Bogendoerfer	depends on MACH_JAZZ || SNI_RM || SGI_IP32
13561da177e4SLinus Torvalds	default y
13571da177e4SLinus Torvalds
13581da177e4SLinus Torvaldsconfig ARC_PROMLIB
13591da177e4SLinus Torvalds	bool
1360e2defae5SThomas Bogendoerfer	depends on MACH_JAZZ || SNI_RM || SGI_IP22 || SGI_IP28 || SGI_IP32
13611da177e4SLinus Torvalds	default y
13621da177e4SLinus Torvalds
13630e2794b0SRalf Baechleconfig FW_ARC64
13641da177e4SLinus Torvalds	bool
13651da177e4SLinus Torvalds
13661da177e4SLinus Torvaldsconfig BOOT_ELF64
13671da177e4SLinus Torvalds	bool
13681da177e4SLinus Torvalds
13691da177e4SLinus Torvaldsmenu "CPU selection"
13701da177e4SLinus Torvalds
13711da177e4SLinus Torvaldschoice
13721da177e4SLinus Torvalds	prompt "CPU type"
13731da177e4SLinus Torvalds	default CPU_R4X00
13741da177e4SLinus Torvalds
13750e476d91SHuacai Chenconfig CPU_LOONGSON3
13760e476d91SHuacai Chen	bool "Loongson 3 CPU"
13770e476d91SHuacai Chen	depends on SYS_HAS_CPU_LOONGSON3
1378d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
13790e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13800e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13810e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13820e476d91SHuacai Chen	select WEAK_ORDERING
13830e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
1384b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
138517c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
1386d30a2b47SLinus Walleij	select GPIOLIB
138709230cbcSChristoph Hellwig	select SWIOTLB
13880e476d91SHuacai Chen	help
13890e476d91SHuacai Chen		The Loongson 3 processor implements the MIPS64R2 instruction
13900e476d91SHuacai Chen		set with many extensions.
13910e476d91SHuacai Chen
13921e820da3SHuacai Chenconfig LOONGSON3_ENHANCEMENT
13931e820da3SHuacai Chen	bool "New Loongson 3 CPU Enhancements"
13941e820da3SHuacai Chen	default n
13951e820da3SHuacai Chen	select CPU_MIPSR2
13961e820da3SHuacai Chen	select CPU_HAS_PREFETCH
13971e820da3SHuacai Chen	depends on CPU_LOONGSON3
13981e820da3SHuacai Chen	help
13991e820da3SHuacai Chen	  New Loongson 3 CPU (since Loongson-3A R2, as opposed to Loongson-3A
14001e820da3SHuacai Chen	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
14011e820da3SHuacai Chen	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPv2 ASE, User
14021e820da3SHuacai Chen	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
14031e820da3SHuacai Chen	  Fast TLB refill support, etc.
14041e820da3SHuacai Chen
14051e820da3SHuacai Chen	  This option enable those enhancements which are not probed at run
14061e820da3SHuacai Chen	  time. If you want a generic kernel to run on all Loongson 3 machines,
14071e820da3SHuacai Chen	  please say 'N' here. If you want a high-performance kernel to run on
14081e820da3SHuacai Chen	  new Loongson 3 machines only, please say 'Y' here.
14091e820da3SHuacai Chen
14103702bba5SWu Zhangjinconfig CPU_LOONGSON2E
14113702bba5SWu Zhangjin	bool "Loongson 2E"
14123702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
14133702bba5SWu Zhangjin	select CPU_LOONGSON2
14142a21c730SFuxin Zhang	help
14152a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
14162a21c730SFuxin Zhang	  with many extensions.
14172a21c730SFuxin Zhang
141825985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
14196f7a251aSWu Zhangjin	  bonito64.
14206f7a251aSWu Zhangjin
14216f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
14226f7a251aSWu Zhangjin	bool "Loongson 2F"
14236f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
14246f7a251aSWu Zhangjin	select CPU_LOONGSON2
1425d30a2b47SLinus Walleij	select GPIOLIB
14266f7a251aSWu Zhangjin	help
14276f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
14286f7a251aSWu Zhangjin	  with many extensions.
14296f7a251aSWu Zhangjin
14306f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
14316f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
14326f7a251aSWu Zhangjin	  Loongson2E.
14336f7a251aSWu Zhangjin
1434ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1435ca585cf9SKelvin Cheung	bool "Loongson 1B"
1436ca585cf9SKelvin Cheung	depends on SYS_HAS_CPU_LOONGSON1B
1437ca585cf9SKelvin Cheung	select CPU_LOONGSON1
14389ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1439ca585cf9SKelvin Cheung	help
1440ca585cf9SKelvin Cheung	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1441ca585cf9SKelvin Cheung	  release 2 instruction set.
1442ca585cf9SKelvin Cheung
144312e3280bSYang Lingconfig CPU_LOONGSON1C
144412e3280bSYang Ling	bool "Loongson 1C"
144512e3280bSYang Ling	depends on SYS_HAS_CPU_LOONGSON1C
144612e3280bSYang Ling	select CPU_LOONGSON1
144712e3280bSYang Ling	select LEDS_GPIO_REGISTER
144812e3280bSYang Ling	help
144912e3280bSYang Ling	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
145012e3280bSYang Ling	  release 2 instruction set.
145112e3280bSYang Ling
14526e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14536e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14547cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14556e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1456797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1457ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14586e760c8dSRalf Baechle	help
14595e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14601e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14611e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14621e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14631e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14641e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14651e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14661e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14671e5f1caaSRalf Baechle	  performance.
14681e5f1caaSRalf Baechle
14691e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14701e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14717cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14721e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1473797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1474ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1475a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14762235a54dSSanjay Lal	select HAVE_KVM
14771e5f1caaSRalf Baechle	help
14785e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14796e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14806e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14816e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14826e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14831da177e4SLinus Torvalds
14847fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1485674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14867fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14877fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
14887fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14897fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14907fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
14914e0748f5SMarkos Chandras	select GENERIC_CSUM
14927fd08ca5SLeonid Yegoshin	select HAVE_KVM
14937fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14947fd08ca5SLeonid Yegoshin	help
14957fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14967fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14977fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14987fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14997fd08ca5SLeonid Yegoshin
15006e760c8dSRalf Baechleconfig CPU_MIPS64_R1
15016e760c8dSRalf Baechle	bool "MIPS64 Release 1"
15027cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1503797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1504ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1505ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1506ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15079cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
15086e760c8dSRalf Baechle	help
15096e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
15106e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15116e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15126e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
15136e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15141e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
15151e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
15161e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
15171e5f1caaSRalf Baechle	  performance.
15181e5f1caaSRalf Baechle
15191e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
15201e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
15217cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1522797798c1SRalf Baechle	select CPU_HAS_PREFETCH
15231e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
15241e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1525ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15269cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1527a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
152840a2df49SJames Hogan	select HAVE_KVM
15291e5f1caaSRalf Baechle	help
15301e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
15311e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15321e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15331e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15341e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15351da177e4SLinus Torvalds
15367fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1537674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15387fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15397fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
15407fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15417fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15427fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
15437fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15444e0748f5SMarkos Chandras	select GENERIC_CSUM
15452e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
154640a2df49SJames Hogan	select HAVE_KVM
15477fd08ca5SLeonid Yegoshin	help
15487fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15497fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15507fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15517fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15527fd08ca5SLeonid Yegoshin
15531da177e4SLinus Torvaldsconfig CPU_R3000
15541da177e4SLinus Torvalds	bool "R3000"
15557cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1556f7062ddbSRalf Baechle	select CPU_HAS_WB
1557ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1558797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15591da177e4SLinus Torvalds	help
15601da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15611da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15621da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15631da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15641da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15651da177e4SLinus Torvalds	  try to recompile with R3000.
15661da177e4SLinus Torvalds
15671da177e4SLinus Torvaldsconfig CPU_TX39XX
15681da177e4SLinus Torvalds	bool "R39XX"
15697cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX39XX
1570ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
15711da177e4SLinus Torvalds
15721da177e4SLinus Torvaldsconfig CPU_VR41XX
15731da177e4SLinus Torvalds	bool "R41xx"
15747cf8053bSRalf Baechle	depends on SYS_HAS_CPU_VR41XX
1575ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1576ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
15771da177e4SLinus Torvalds	help
15785e83d430SRalf Baechle	  The options selects support for the NEC VR4100 series of processors.
15791da177e4SLinus Torvalds	  Only choose this option if you have one of these processors as a
15801da177e4SLinus Torvalds	  kernel built with this option will not run on any other type of
15811da177e4SLinus Torvalds	  processor or vice versa.
15821da177e4SLinus Torvalds
15831da177e4SLinus Torvaldsconfig CPU_R4300
15841da177e4SLinus Torvalds	bool "R4300"
15857cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4300
1586ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1587ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
15881da177e4SLinus Torvalds	help
15891da177e4SLinus Torvalds	  MIPS Technologies R4300-series processors.
15901da177e4SLinus Torvalds
15911da177e4SLinus Torvaldsconfig CPU_R4X00
15921da177e4SLinus Torvalds	bool "R4x00"
15937cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1594ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1595ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1596970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15971da177e4SLinus Torvalds	help
15981da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15991da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
16001da177e4SLinus Torvalds
16011da177e4SLinus Torvaldsconfig CPU_TX49XX
16021da177e4SLinus Torvalds	bool "R49XX"
16037cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1604de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1605ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1606ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1607970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16081da177e4SLinus Torvalds
16091da177e4SLinus Torvaldsconfig CPU_R5000
16101da177e4SLinus Torvalds	bool "R5000"
16117cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1612ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1613ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1614970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16151da177e4SLinus Torvalds	help
16161da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16171da177e4SLinus Torvalds
16181da177e4SLinus Torvaldsconfig CPU_R5432
16191da177e4SLinus Torvalds	bool "R5432"
16207cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5432
16215e83d430SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
16225e83d430SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1623970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16241da177e4SLinus Torvalds
1625542c1020SShinya Kuribayashiconfig CPU_R5500
1626542c1020SShinya Kuribayashi	bool "R5500"
1627542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1628542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1629542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16309cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1631542c1020SShinya Kuribayashi	help
1632542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1633542c1020SShinya Kuribayashi	  instruction set.
1634542c1020SShinya Kuribayashi
16351da177e4SLinus Torvaldsconfig CPU_NEVADA
16361da177e4SLinus Torvalds	bool "RM52xx"
16377cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1638ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1639ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1640970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16411da177e4SLinus Torvalds	help
16421da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16431da177e4SLinus Torvalds
16441da177e4SLinus Torvaldsconfig CPU_R8000
16451da177e4SLinus Torvalds	bool "R8000"
16467cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R8000
16475e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1648ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
16491da177e4SLinus Torvalds	help
16501da177e4SLinus Torvalds	  MIPS Technologies R8000 processors.  Note these processors are
16511da177e4SLinus Torvalds	  uncommon and the support for them is incomplete.
16521da177e4SLinus Torvalds
16531da177e4SLinus Torvaldsconfig CPU_R10000
16541da177e4SLinus Torvalds	bool "R10000"
16557cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16565e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1657ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1658ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1659797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1660970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16611da177e4SLinus Torvalds	help
16621da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16631da177e4SLinus Torvalds
16641da177e4SLinus Torvaldsconfig CPU_RM7000
16651da177e4SLinus Torvalds	bool "RM7000"
16667cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16675e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1668ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1669ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1670797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1671970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16721da177e4SLinus Torvalds
16731da177e4SLinus Torvaldsconfig CPU_SB1
16741da177e4SLinus Torvalds	bool "SB1"
16757cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1676ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1677ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1678797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1679970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16800004a9dfSRalf Baechle	select WEAK_ORDERING
16811da177e4SLinus Torvalds
1682a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1683a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16845e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1685a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1686a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1687a86c7f72SDavid Daney	select WEAK_ORDERING
1688a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16899cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1690df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1691df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1692930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
16930ae3abcdSJames Hogan	select HAVE_KVM
1694a86c7f72SDavid Daney	help
1695a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1696a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1697a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1698a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1699a86c7f72SDavid Daney
1700cd746249SJonas Gorskiconfig CPU_BMIPS
1701cd746249SJonas Gorski	bool "Broadcom BMIPS"
1702cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1703cd746249SJonas Gorski	select CPU_MIPS32
1704fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1705cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1706cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1707cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1708cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1709cd746249SJonas Gorski	select DMA_NONCOHERENT
171067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1711cd746249SJonas Gorski	select SWAP_IO_SPACE
1712cd746249SJonas Gorski	select WEAK_ORDERING
1713c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
171469aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1715a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1716a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1717c1c0c461SKevin Cernekee	help
1718fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1719c1c0c461SKevin Cernekee
17207f058e85SJayachandran Cconfig CPU_XLR
17217f058e85SJayachandran C	bool "Netlogic XLR SoC"
17227f058e85SJayachandran C	depends on SYS_HAS_CPU_XLR
17237f058e85SJayachandran C	select CPU_SUPPORTS_32BIT_KERNEL
17247f058e85SJayachandran C	select CPU_SUPPORTS_64BIT_KERNEL
17257f058e85SJayachandran C	select CPU_SUPPORTS_HIGHMEM
1726970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
17277f058e85SJayachandran C	select WEAK_ORDERING
17287f058e85SJayachandran C	select WEAK_REORDERING_BEYOND_LLSC
17297f058e85SJayachandran C	help
17307f058e85SJayachandran C	  Netlogic Microsystems XLR/XLS processors.
17311c773ea4SJayachandran C
17321c773ea4SJayachandran Cconfig CPU_XLP
17331c773ea4SJayachandran C	bool "Netlogic XLP SoC"
17341c773ea4SJayachandran C	depends on SYS_HAS_CPU_XLP
17351c773ea4SJayachandran C	select CPU_SUPPORTS_32BIT_KERNEL
17361c773ea4SJayachandran C	select CPU_SUPPORTS_64BIT_KERNEL
17371c773ea4SJayachandran C	select CPU_SUPPORTS_HIGHMEM
17381c773ea4SJayachandran C	select WEAK_ORDERING
17391c773ea4SJayachandran C	select WEAK_REORDERING_BEYOND_LLSC
17401c773ea4SJayachandran C	select CPU_HAS_PREFETCH
1741d6504846SJayachandran C	select CPU_MIPSR2
1742ddba6833SPrem Mallappa	select CPU_SUPPORTS_HUGEPAGES
17432db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
17441c773ea4SJayachandran C	help
17451c773ea4SJayachandran C	  Netlogic Microsystems XLP processors.
17461da177e4SLinus Torvaldsendchoice
17471da177e4SLinus Torvalds
1748a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1749a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1750a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
17517fd08ca5SLeonid Yegoshin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R6
1752a6e18781SLeonid Yegoshin	help
1753a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1754a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1755a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1756a6e18781SLeonid Yegoshin
1757a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1758a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1759a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1760a6e18781SLeonid Yegoshin	select EVA
1761a6e18781SLeonid Yegoshin	default y
1762a6e18781SLeonid Yegoshin	help
1763a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1764a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1765a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1766a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1767a6e18781SLeonid Yegoshin
1768c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1769c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1770c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1771c5b36783SSteven J. Hill	depends on CPU_MIPS32_R2
1772c5b36783SSteven J. Hill	help
1773c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1774c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1775c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1776c5b36783SSteven J. Hill
1777c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1778c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1779c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1780c5b36783SSteven J. Hill	depends on !EVA
1781c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1782c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1783c5b36783SSteven J. Hill	select XPA
1784c5b36783SSteven J. Hill	select HIGHMEM
1785d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1786c5b36783SSteven J. Hill	default n
1787c5b36783SSteven J. Hill	help
1788c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1789c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1790c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1791c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1792c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1793c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1794c5b36783SSteven J. Hill
1795622844bfSWu Zhangjinif CPU_LOONGSON2F
1796622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1797622844bfSWu Zhangjin	bool
1798622844bfSWu Zhangjin
1799622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1800622844bfSWu Zhangjin	bool
1801622844bfSWu Zhangjin
1802622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1803622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1804622844bfSWu Zhangjin	default y
1805622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1806622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1807622844bfSWu Zhangjin	help
1808622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1809622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1810622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1811622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1812622844bfSWu Zhangjin
1813622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1814622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1815622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1816622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1817622844bfSWu Zhangjin	  systems.
1818622844bfSWu Zhangjin
1819622844bfSWu Zhangjin	  If unsure, please say Y.
1820622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1821622844bfSWu Zhangjin
18221b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
18231b93b3c3SWu Zhangjin	bool
18241b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
18251b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
182631c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
18271b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1828fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
18294e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
18301b93b3c3SWu Zhangjin
18311b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18321b93b3c3SWu Zhangjin	bool
18331b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
18341b93b3c3SWu Zhangjin
1835dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1836dbb98314SAlban Bedel	bool
1837dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1838dbb98314SAlban Bedel
18393702bba5SWu Zhangjinconfig CPU_LOONGSON2
18403702bba5SWu Zhangjin	bool
18413702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18423702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18433702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1844970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
18453702bba5SWu Zhangjin
1846ca585cf9SKelvin Cheungconfig CPU_LOONGSON1
1847ca585cf9SKelvin Cheung	bool
1848ca585cf9SKelvin Cheung	select CPU_MIPS32
1849ca585cf9SKelvin Cheung	select CPU_MIPSR2
1850ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1851ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1852ca585cf9SKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1853f29ad10dSKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1854ca585cf9SKelvin Cheung
1855fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
185604fa8bf7SJonas Gorski	select SMP_UP if SMP
18571bbb6c1bSKevin Cernekee	bool
1858cd746249SJonas Gorski
1859cd746249SJonas Gorskiconfig CPU_BMIPS4350
1860cd746249SJonas Gorski	bool
1861cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1862cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1863cd746249SJonas Gorski
1864cd746249SJonas Gorskiconfig CPU_BMIPS4380
1865cd746249SJonas Gorski	bool
1866bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1867cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1868cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1869b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1870cd746249SJonas Gorski
1871cd746249SJonas Gorskiconfig CPU_BMIPS5000
1872cd746249SJonas Gorski	bool
1873cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1874bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1875cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1876cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1877b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18781bbb6c1bSKevin Cernekee
18790e476d91SHuacai Chenconfig SYS_HAS_CPU_LOONGSON3
18800e476d91SHuacai Chen	bool
18810e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1882b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18830e476d91SHuacai Chen
18843702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18852a21c730SFuxin Zhang	bool
18862a21c730SFuxin Zhang
18876f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18886f7a251aSWu Zhangjin	bool
188955045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
189055045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
189122f1fdfdSWu Zhangjin	select CPU_SUPPORTS_UNCACHED_ACCELERATED
18926f7a251aSWu Zhangjin
1893ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1894ca585cf9SKelvin Cheung	bool
1895ca585cf9SKelvin Cheung
189612e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
189712e3280bSYang Ling	bool
189812e3280bSYang Ling
18997cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
19007cf8053bSRalf Baechle	bool
19017cf8053bSRalf Baechle
19027cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
19037cf8053bSRalf Baechle	bool
19047cf8053bSRalf Baechle
1905a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1906a6e18781SLeonid Yegoshin	bool
1907a6e18781SLeonid Yegoshin
1908c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1909c5b36783SSteven J. Hill	bool
1910c5b36783SSteven J. Hill
19117fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
19127fd08ca5SLeonid Yegoshin	bool
19137fd08ca5SLeonid Yegoshin
19147cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
19157cf8053bSRalf Baechle	bool
19167cf8053bSRalf Baechle
19177cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
19187cf8053bSRalf Baechle	bool
19197cf8053bSRalf Baechle
19207fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19217fd08ca5SLeonid Yegoshin	bool
19227fd08ca5SLeonid Yegoshin
19237cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19247cf8053bSRalf Baechle	bool
19257cf8053bSRalf Baechle
19267cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX39XX
19277cf8053bSRalf Baechle	bool
19287cf8053bSRalf Baechle
19297cf8053bSRalf Baechleconfig SYS_HAS_CPU_VR41XX
19307cf8053bSRalf Baechle	bool
19317cf8053bSRalf Baechle
19327cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4300
19337cf8053bSRalf Baechle	bool
19347cf8053bSRalf Baechle
19357cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19367cf8053bSRalf Baechle	bool
19377cf8053bSRalf Baechle
19387cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19397cf8053bSRalf Baechle	bool
19407cf8053bSRalf Baechle
19417cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19427cf8053bSRalf Baechle	bool
19437cf8053bSRalf Baechle
19447cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5432
19457cf8053bSRalf Baechle	bool
19467cf8053bSRalf Baechle
1947542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1948542c1020SShinya Kuribayashi	bool
1949542c1020SShinya Kuribayashi
19507cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19517cf8053bSRalf Baechle	bool
19527cf8053bSRalf Baechle
19537cf8053bSRalf Baechleconfig SYS_HAS_CPU_R8000
19547cf8053bSRalf Baechle	bool
19557cf8053bSRalf Baechle
19567cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19577cf8053bSRalf Baechle	bool
19587cf8053bSRalf Baechle
19597cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19607cf8053bSRalf Baechle	bool
19617cf8053bSRalf Baechle
19627cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19637cf8053bSRalf Baechle	bool
19647cf8053bSRalf Baechle
19655e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19665e683389SDavid Daney	bool
19675e683389SDavid Daney
1968cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1969c1c0c461SKevin Cernekee	bool
1970c1c0c461SKevin Cernekee
1971fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1972c1c0c461SKevin Cernekee	bool
1973cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1974c1c0c461SKevin Cernekee
1975c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1976c1c0c461SKevin Cernekee	bool
1977cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1978c1c0c461SKevin Cernekee
1979c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1980c1c0c461SKevin Cernekee	bool
1981cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1982c1c0c461SKevin Cernekee
1983c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1984c1c0c461SKevin Cernekee	bool
1985cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1986c1c0c461SKevin Cernekee
19877f058e85SJayachandran Cconfig SYS_HAS_CPU_XLR
19887f058e85SJayachandran C	bool
19897f058e85SJayachandran C
19901c773ea4SJayachandran Cconfig SYS_HAS_CPU_XLP
19911c773ea4SJayachandran C	bool
19921c773ea4SJayachandran C
1993b6911bbaSPaul Burtonconfig MIPS_MALTA_PM
1994b6911bbaSPaul Burton	depends on MIPS_MALTA
1995b6911bbaSPaul Burton	depends on PCI
1996b6911bbaSPaul Burton	bool
1997b6911bbaSPaul Burton	default y
1998b6911bbaSPaul Burton
199917099b11SRalf Baechle#
200017099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
200117099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
200217099b11SRalf Baechle#
20030004a9dfSRalf Baechleconfig WEAK_ORDERING
20040004a9dfSRalf Baechle	bool
200517099b11SRalf Baechle
200617099b11SRalf Baechle#
200717099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
200817099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
200917099b11SRalf Baechle#
201017099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
201117099b11SRalf Baechle	bool
20125e83d430SRalf Baechleendmenu
20135e83d430SRalf Baechle
20145e83d430SRalf Baechle#
20155e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
20165e83d430SRalf Baechle#
20175e83d430SRalf Baechleconfig CPU_MIPS32
20185e83d430SRalf Baechle	bool
20197fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6
20205e83d430SRalf Baechle
20215e83d430SRalf Baechleconfig CPU_MIPS64
20225e83d430SRalf Baechle	bool
20237fd08ca5SLeonid Yegoshin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6
20245e83d430SRalf Baechle
20255e83d430SRalf Baechle#
2026c09b47d8SChris Dearman# These two indicate the revision of the architecture, either Release 1 or Release 2
20275e83d430SRalf Baechle#
20285e83d430SRalf Baechleconfig CPU_MIPSR1
20295e83d430SRalf Baechle	bool
20305e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
20315e83d430SRalf Baechle
20325e83d430SRalf Baechleconfig CPU_MIPSR2
20335e83d430SRalf Baechle	bool
2034a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20358256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2036a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20375e83d430SRalf Baechle
20387fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20397fd08ca5SLeonid Yegoshin	bool
20407fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20418256b17eSFlorian Fainelli	select CPU_HAS_RIXI
204287321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20432db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
20444a5dc51eSMarcin Nowakowski	select MIPS_CRC_SUPPORT
2045a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20465e83d430SRalf Baechle
2047a6e18781SLeonid Yegoshinconfig EVA
2048a6e18781SLeonid Yegoshin	bool
2049a6e18781SLeonid Yegoshin
2050c5b36783SSteven J. Hillconfig XPA
2051c5b36783SSteven J. Hill	bool
2052c5b36783SSteven J. Hill
20535e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20545e83d430SRalf Baechle	bool
20555e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20565e83d430SRalf Baechle	bool
20575e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20585e83d430SRalf Baechle	bool
20595e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20605e83d430SRalf Baechle	bool
206155045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
206255045ff5SWu Zhangjin	bool
206355045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
206455045ff5SWu Zhangjin	bool
20659cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20669cffd154SDavid Daney	bool
206722f1fdfdSWu Zhangjinconfig CPU_SUPPORTS_UNCACHED_ACCELERATED
206822f1fdfdSWu Zhangjin	bool
206982622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
207082622284SDavid Daney	bool
2071cebf8c0fSPaul Burton	default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
20725e83d430SRalf Baechle
20738192c9eaSDavid Daney#
20748192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20758192c9eaSDavid Daney#
20768192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20778192c9eaSDavid Daney       bool
2078679eb637SJames Hogan       default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20798192c9eaSDavid Daney
20805e83d430SRalf Baechlemenu "Kernel type"
20815e83d430SRalf Baechle
20825e83d430SRalf Baechlechoice
20835e83d430SRalf Baechle	prompt "Kernel code model"
20845e83d430SRalf Baechle	help
20855e83d430SRalf Baechle	  You should only select this option if you have a workload that
20865e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20875e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20885e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20895e83d430SRalf Baechle
20905e83d430SRalf Baechleconfig 32BIT
20915e83d430SRalf Baechle	bool "32-bit kernel"
20925e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20935e83d430SRalf Baechle	select TRAD_SIGNALS
20945e83d430SRalf Baechle	help
20955e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2096f17c4ca3SRalf Baechle
20975e83d430SRalf Baechleconfig 64BIT
20985e83d430SRalf Baechle	bool "64-bit kernel"
20995e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
21005e83d430SRalf Baechle	help
21015e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
21025e83d430SRalf Baechle
21035e83d430SRalf Baechleendchoice
21045e83d430SRalf Baechle
21052235a54dSSanjay Lalconfig KVM_GUEST
21062235a54dSSanjay Lal	bool "KVM Guest Kernel"
2107f2a5b1d7SJames Hogan	depends on BROKEN_ON_SMP
21082235a54dSSanjay Lal	help
2109caa1faa7SJames Hogan	  Select this option if building a guest kernel for KVM (Trap & Emulate)
2110caa1faa7SJames Hogan	  mode.
21112235a54dSSanjay Lal
2112eda3d33cSJames Hoganconfig KVM_GUEST_TIMER_FREQ
2113eda3d33cSJames Hogan	int "Count/Compare Timer Frequency (MHz)"
21142235a54dSSanjay Lal	depends on KVM_GUEST
2115eda3d33cSJames Hogan	default 100
21162235a54dSSanjay Lal	help
2117eda3d33cSJames Hogan	  Set this to non-zero if building a guest kernel for KVM to skip RTC
2118eda3d33cSJames Hogan	  emulation when determining guest CPU Frequency. Instead, the guest's
2119eda3d33cSJames Hogan	  timer frequency is specified directly.
21202235a54dSSanjay Lal
21211e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
21221e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
21231e321fa9SLeonid Yegoshin	depends on 64BIT
21241e321fa9SLeonid Yegoshin	help
21253377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
21263377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
21273377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
21283377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
21293377e227SAlex Belits	  level of page tables is added which imposes both a memory
21303377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21313377e227SAlex Belits
21321e321fa9SLeonid Yegoshin	  If unsure, say N.
21331e321fa9SLeonid Yegoshin
21341da177e4SLinus Torvaldschoice
21351da177e4SLinus Torvalds	prompt "Kernel page size"
21361da177e4SLinus Torvalds	default PAGE_SIZE_4KB
21371da177e4SLinus Torvalds
21381da177e4SLinus Torvaldsconfig PAGE_SIZE_4KB
21391da177e4SLinus Torvalds	bool "4kB"
21400e476d91SHuacai Chen	depends on !CPU_LOONGSON2 && !CPU_LOONGSON3
21411da177e4SLinus Torvalds	help
21421da177e4SLinus Torvalds	 This option select the standard 4kB Linux page size.  On some
21431da177e4SLinus Torvalds	 R3000-family processors this is the only available page size.  Using
21441da177e4SLinus Torvalds	 4kB page size will minimize memory consumption and is therefore
21451da177e4SLinus Torvalds	 recommended for low memory systems.
21461da177e4SLinus Torvalds
21471da177e4SLinus Torvaldsconfig PAGE_SIZE_8KB
21481da177e4SLinus Torvalds	bool "8kB"
21497d60717eSKees Cook	depends on CPU_R8000 || CPU_CAVIUM_OCTEON
21501e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
21511da177e4SLinus Torvalds	help
21521da177e4SLinus Torvalds	  Using 8kB page size will result in higher performance kernel at
21531da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available
2154c52399beSRalf Baechle	  only on R8000 and cnMIPS processors.  Note that you will need a
2155c52399beSRalf Baechle	  suitable Linux distribution to support this.
21561da177e4SLinus Torvalds
21571da177e4SLinus Torvaldsconfig PAGE_SIZE_16KB
21581da177e4SLinus Torvalds	bool "16kB"
2159714bfad6SRalf Baechle	depends on !CPU_R3000 && !CPU_TX39XX
21601da177e4SLinus Torvalds	help
21611da177e4SLinus Torvalds	  Using 16kB page size will result in higher performance kernel at
21621da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
2163714bfad6SRalf Baechle	  all non-R3000 family processors.  Note that you will need a suitable
2164714bfad6SRalf Baechle	  Linux distribution to support this.
21651da177e4SLinus Torvalds
2166c52399beSRalf Baechleconfig PAGE_SIZE_32KB
2167c52399beSRalf Baechle	bool "32kB"
2168c52399beSRalf Baechle	depends on CPU_CAVIUM_OCTEON
21691e321fa9SLeonid Yegoshin	depends on !MIPS_VA_BITS_48
2170c52399beSRalf Baechle	help
2171c52399beSRalf Baechle	  Using 32kB page size will result in higher performance kernel at
2172c52399beSRalf Baechle	  the price of higher memory consumption.  This option is available
2173c52399beSRalf Baechle	  only on cnMIPS cores.  Note that you will need a suitable Linux
2174c52399beSRalf Baechle	  distribution to support this.
2175c52399beSRalf Baechle
21761da177e4SLinus Torvaldsconfig PAGE_SIZE_64KB
21771da177e4SLinus Torvalds	bool "64kB"
21783b2db173SPaul Burton	depends on !CPU_R3000 && !CPU_TX39XX
21791da177e4SLinus Torvalds	help
21801da177e4SLinus Torvalds	  Using 64kB page size will result in higher performance kernel at
21811da177e4SLinus Torvalds	  the price of higher memory consumption.  This option is available on
21821da177e4SLinus Torvalds	  all non-R3000 family processor.  Not that at the time of this
2183714bfad6SRalf Baechle	  writing this option is still high experimental.
21841da177e4SLinus Torvalds
21851da177e4SLinus Torvaldsendchoice
21861da177e4SLinus Torvalds
2187c9bace7cSDavid Daneyconfig FORCE_MAX_ZONEORDER
2188c9bace7cSDavid Daney	int "Maximum zone order"
2189e4362d1eSAlex Smith	range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2190e4362d1eSAlex Smith	default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2191e4362d1eSAlex Smith	range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2192e4362d1eSAlex Smith	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2193e4362d1eSAlex Smith	range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2194e4362d1eSAlex Smith	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2195c9bace7cSDavid Daney	range 11 64
2196c9bace7cSDavid Daney	default "11"
2197c9bace7cSDavid Daney	help
2198c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2199c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2200c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2201c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2202c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2203c9bace7cSDavid Daney	  increase this value.
2204c9bace7cSDavid Daney
2205c9bace7cSDavid Daney	  This config option is actually maximum order plus one. For example,
2206c9bace7cSDavid Daney	  a value of 11 means that the largest free memory block is 2^10 pages.
2207c9bace7cSDavid Daney
2208c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2209c9bace7cSDavid Daney	  when choosing a value for this option.
2210c9bace7cSDavid Daney
22111da177e4SLinus Torvaldsconfig BOARD_SCACHE
22121da177e4SLinus Torvalds	bool
22131da177e4SLinus Torvalds
22141da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
22151da177e4SLinus Torvalds	bool
22161da177e4SLinus Torvalds	select BOARD_SCACHE
22171da177e4SLinus Torvalds
22189318c51aSChris Dearman#
22199318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
22209318c51aSChris Dearman#
22219318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
22229318c51aSChris Dearman	bool
22239318c51aSChris Dearman	select BOARD_SCACHE
22249318c51aSChris Dearman
22251da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
22261da177e4SLinus Torvalds	bool
22271da177e4SLinus Torvalds	select BOARD_SCACHE
22281da177e4SLinus Torvalds
22291da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
22301da177e4SLinus Torvalds	bool
22311da177e4SLinus Torvalds	select BOARD_SCACHE
22321da177e4SLinus Torvalds
22331da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
22341da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
22351da177e4SLinus Torvalds	depends on CPU_SB1
22361da177e4SLinus Torvalds	help
22371da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
22381da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
22391da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
22401da177e4SLinus Torvalds
22411da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2242c8094b53SRalf Baechle	bool
22431da177e4SLinus Torvalds
22443165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
22453165c846SFlorian Fainelli	bool
22463b2db173SPaul Burton	default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX)
22473165c846SFlorian Fainelli
224891405eb6SFlorian Fainelliconfig CPU_R4K_FPU
224991405eb6SFlorian Fainelli	bool
2250a2aea699SPaul Burton	default y if !(CPU_R3000 || CPU_TX39XX)
225191405eb6SFlorian Fainelli
225262cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
225362cedc4fSFlorian Fainelli	bool
225462cedc4fSFlorian Fainelli	default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
225562cedc4fSFlorian Fainelli
225659d6ab86SRalf Baechleconfig MIPS_MT_SMP
2257a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
22585cbf9688SPaul Burton	default y
2259527f1028SPaul Burton	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
226059d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2261d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2262c080faa5SSteven J. Hill	select SYNC_R4K
226359d6ab86SRalf Baechle	select MIPS_MT
226459d6ab86SRalf Baechle	select SMP
226587353d8aSRalf Baechle	select SMP_UP
2266c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2267c080faa5SSteven J. Hill	select SYS_SUPPORTS_SCHED_SMT
2268399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
226959d6ab86SRalf Baechle	help
2270c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2271c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2272c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2273c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2274c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
227559d6ab86SRalf Baechle
2276f41ae0b2SRalf Baechleconfig MIPS_MT
2277f41ae0b2SRalf Baechle	bool
2278f41ae0b2SRalf Baechle
22790ab7aefcSRalf Baechleconfig SCHED_SMT
22800ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22810ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22820ab7aefcSRalf Baechle	default n
22830ab7aefcSRalf Baechle	help
22840ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
22850ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
22860ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
22870ab7aefcSRalf Baechle
22880ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
22890ab7aefcSRalf Baechle	bool
22900ab7aefcSRalf Baechle
2291f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2292f41ae0b2SRalf Baechle	bool
2293f41ae0b2SRalf Baechle
2294f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2295f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2296f088fc84SRalf Baechle	default y
2297b633648cSRalf Baechle	depends on MIPS_MT_SMP
229807cc0c9eSRalf Baechle
2299b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2300b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
23019eaa9a82SPaul Burton	depends on CPU_MIPSR6
2302b0a668fbSLeonid Yegoshin	default y
2303b0a668fbSLeonid Yegoshin	help
2304b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2305b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
230607edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2307b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2308b0a668fbSLeonid Yegoshin	  final kernel image.
2309b0a668fbSLeonid Yegoshin
2310f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2311f35764e7SJames Hogan	bool
2312f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2313f35764e7SJames Hogan	help
2314f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2315f35764e7SJames Hogan	  physical_memsize.
2316f35764e7SJames Hogan
231707cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
231807cc0c9eSRalf Baechle	bool "VPE loader support."
2319f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
232007cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
232107cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
232207cc0c9eSRalf Baechle	select MIPS_MT
232307cc0c9eSRalf Baechle	help
232407cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
232507cc0c9eSRalf Baechle	  onto another VPE and running it.
2326f088fc84SRalf Baechle
232717a1d523SDeng-Cheng Zhuconfig MIPS_VPE_LOADER_CMP
232817a1d523SDeng-Cheng Zhu	bool
232917a1d523SDeng-Cheng Zhu	default "y"
233017a1d523SDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && MIPS_CMP
233117a1d523SDeng-Cheng Zhu
23321a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
23331a2a6d7eSDeng-Cheng Zhu	bool
23341a2a6d7eSDeng-Cheng Zhu	default "y"
23351a2a6d7eSDeng-Cheng Zhu	depends on MIPS_VPE_LOADER && !MIPS_CMP
23361a2a6d7eSDeng-Cheng Zhu
2337e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2338e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2339e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2340e01402b1SRalf Baechle	default y
2341e01402b1SRalf Baechle	help
2342e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2343e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2344e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2345e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2346e01402b1SRalf Baechle
2347e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2348e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2349e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2350e01402b1SRalf Baechle
2351da615cf6SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_CMP
2352da615cf6SDeng-Cheng Zhu	bool
2353da615cf6SDeng-Cheng Zhu	default "y"
2354da615cf6SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && MIPS_CMP
2355da615cf6SDeng-Cheng Zhu
23562c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
23572c973ef0SDeng-Cheng Zhu	bool
23582c973ef0SDeng-Cheng Zhu	default "y"
23592c973ef0SDeng-Cheng Zhu	depends on MIPS_VPE_APSP_API && !MIPS_CMP
23602c973ef0SDeng-Cheng Zhu
23614a16ff4cSRalf Baechleconfig MIPS_CMP
23625cac93b3SPaul Burton	bool "MIPS CMP framework support (DEPRECATED)"
23635676319cSMarkos Chandras	depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2364b10b43baSMarkos Chandras	select SMP
2365eb9b5141STim Anderson	select SYNC_R4K
2366b10b43baSMarkos Chandras	select SYS_SUPPORTS_SMP
23674a16ff4cSRalf Baechle	select WEAK_ORDERING
23684a16ff4cSRalf Baechle	default n
23694a16ff4cSRalf Baechle	help
2370044505c7SPaul Burton	  Select this if you are using a bootloader which implements the "CMP
2371044505c7SPaul Burton	  framework" protocol (ie. YAMON) and want your kernel to make use of
2372044505c7SPaul Burton	  its ability to start secondary CPUs.
23734a16ff4cSRalf Baechle
23745cac93b3SPaul Burton	  Unless you have a specific need, you should use CONFIG_MIPS_CPS
23755cac93b3SPaul Burton	  instead of this.
23765cac93b3SPaul Burton
23770ee958e1SPaul Burtonconfig MIPS_CPS
23780ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
23795a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
23800ee958e1SPaul Burton	select MIPS_CM
23811d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
23820ee958e1SPaul Burton	select SMP
23830ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
23841d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
2385c8b7712cSPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
23860ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
23870ee958e1SPaul Burton	select WEAK_ORDERING
23880ee958e1SPaul Burton	help
23890ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
23900ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23910ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23920ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23930ee958e1SPaul Burton	  support is unavailable.
23940ee958e1SPaul Burton
23953179d37eSPaul Burtonconfig MIPS_CPS_PM
239639a59593SMarkos Chandras	depends on MIPS_CPS
23973179d37eSPaul Burton	bool
23983179d37eSPaul Burton
23999f98f3ddSPaul Burtonconfig MIPS_CM
24009f98f3ddSPaul Burton	bool
24013c9b4166SPaul Burton	select MIPS_CPC
24029f98f3ddSPaul Burton
24039c38cf44SPaul Burtonconfig MIPS_CPC
24049c38cf44SPaul Burton	bool
24052600990eSRalf Baechle
24061da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
24071da177e4SLinus Torvalds	bool
24081da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
24091da177e4SLinus Torvalds	default y
24101da177e4SLinus Torvalds
24111da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
24121da177e4SLinus Torvalds	bool
24131da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
24141da177e4SLinus Torvalds	default y
24151da177e4SLinus Torvalds
24162235a54dSSanjay Lal
24179e2b5372SMarkos Chandraschoice
24189e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
24199e2b5372SMarkos Chandras
24209e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
24219e2b5372SMarkos Chandras	bool "None"
24229e2b5372SMarkos Chandras	help
24239e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
24249e2b5372SMarkos Chandras
24259693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
24269693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
24279e2b5372SMarkos Chandras	bool "SmartMIPS"
24289693a853SFranck Bui-Huu	help
24299693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
24309693a853SFranck Bui-Huu	  increased security at both hardware and software level for
24319693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
24329693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
24339693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
24349693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
24359693a853SFranck Bui-Huu	  here.
24369693a853SFranck Bui-Huu
2437bce86083SSteven J. Hillconfig CPU_MICROMIPS
24387fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
24399e2b5372SMarkos Chandras	bool "microMIPS"
2440bce86083SSteven J. Hill	help
2441bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2442bce86083SSteven J. Hill	  microMIPS ISA
2443bce86083SSteven J. Hill
24449e2b5372SMarkos Chandrasendchoice
24459e2b5372SMarkos Chandras
2446a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
24470ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2448a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
24492a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2450a5e9a69eSPaul Burton	help
2451a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2452a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
24531db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
24541db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
24551db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
24561db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
24571db1af84SPaul Burton	  the size & complexity of your kernel.
2458a5e9a69eSPaul Burton
2459a5e9a69eSPaul Burton	  If unsure, say Y.
2460a5e9a69eSPaul Burton
24611da177e4SLinus Torvaldsconfig CPU_HAS_WB
2462f7062ddbSRalf Baechle	bool
2463e01402b1SRalf Baechle
2464df0ac8a4SKevin Cernekeeconfig XKS01
2465df0ac8a4SKevin Cernekee	bool
2466df0ac8a4SKevin Cernekee
24678256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
24688256b17eSFlorian Fainelli	bool
24698256b17eSFlorian Fainelli
2470f41ae0b2SRalf Baechle#
2471f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2472f41ae0b2SRalf Baechle#
2473e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2474f41ae0b2SRalf Baechle	bool
2475e01402b1SRalf Baechle
2476f41ae0b2SRalf Baechle#
2477f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2478f41ae0b2SRalf Baechle#
2479e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2480f41ae0b2SRalf Baechle	bool
2481e01402b1SRalf Baechle
24821da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24831da177e4SLinus Torvalds	bool
24841da177e4SLinus Torvalds	depends on !CPU_R3000
24851da177e4SLinus Torvalds	default y
24861da177e4SLinus Torvalds
24871da177e4SLinus Torvalds#
248820d60d99SMaciej W. Rozycki# CPU non-features
248920d60d99SMaciej W. Rozycki#
249020d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
249120d60d99SMaciej W. Rozycki	bool
249220d60d99SMaciej W. Rozycki
249320d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
249420d60d99SMaciej W. Rozycki	bool
249520d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
249620d60d99SMaciej W. Rozycki
249720d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
249820d60d99SMaciej W. Rozycki	bool
249920d60d99SMaciej W. Rozycki
25004edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
25014edf00a4SPaul Burton	int
25024edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
25034edf00a4SPaul Burton	default 4 if CPU_R8000
25044edf00a4SPaul Burton	default 0
25054edf00a4SPaul Burton
25064edf00a4SPaul Burtonconfig MIPS_ASID_BITS
25074edf00a4SPaul Burton	int
25082db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
25094edf00a4SPaul Burton	default 6 if CPU_R3000 || CPU_TX39XX
25104edf00a4SPaul Burton	default 8
25114edf00a4SPaul Burton
25122db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
25132db003a5SPaul Burton	bool
25142db003a5SPaul Burton
25154a5dc51eSMarcin Nowakowskiconfig MIPS_CRC_SUPPORT
25164a5dc51eSMarcin Nowakowski	bool
25174a5dc51eSMarcin Nowakowski
251820d60d99SMaciej W. Rozycki#
25191da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25201da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25211da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25221da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25231da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25241da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25251da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25261da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2527797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2528797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2529797798c1SRalf Baechle#   support.
25301da177e4SLinus Torvalds#
25311da177e4SLinus Torvaldsconfig HIGHMEM
25321da177e4SLinus Torvalds	bool "High Memory Support"
2533a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2534797798c1SRalf Baechle
2535797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2536797798c1SRalf Baechle	bool
2537797798c1SRalf Baechle
2538797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2539797798c1SRalf Baechle	bool
25401da177e4SLinus Torvalds
25419693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25429693a853SFranck Bui-Huu	bool
25439693a853SFranck Bui-Huu
2544a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2545a6a4834cSSteven J. Hill	bool
2546a6a4834cSSteven J. Hill
2547377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2548377cb1b6SRalf Baechle	bool
2549377cb1b6SRalf Baechle	help
2550377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2551377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2552377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2553377cb1b6SRalf Baechle
2554a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2555a5e9a69eSPaul Burton	bool
2556a5e9a69eSPaul Burton
2557b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2558b4819b59SYoichi Yuasa	def_bool y
2559f133f22dSWu Zhangjin	depends on !NUMA && !CPU_LOONGSON2
2560b4819b59SYoichi Yuasa
2561d8cb4e11SRalf Baechleconfig ARCH_DISCONTIGMEM_ENABLE
2562d8cb4e11SRalf Baechle	bool
2563d8cb4e11SRalf Baechle	default y if SGI_IP27
2564d8cb4e11SRalf Baechle	help
25653dde6ad8SDavid Sterba	  Say Y to support efficient handling of discontiguous physical memory,
2566d8cb4e11SRalf Baechle	  for architectures which are either NUMA (Non-Uniform Memory Access)
2567d8cb4e11SRalf Baechle	  or have huge holes in the physical address space for other reasons.
2568ad56b738SMike Rapoport	  See <file:Documentation/vm/numa.rst> for more.
2569d8cb4e11SRalf Baechle
2570b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2571b1c6cd42SAtsushi Nemoto	bool
25727de58fabSAtsushi Nemoto	select SPARSEMEM_STATIC
257331473747SAtsushi Nemoto
2574d8cb4e11SRalf Baechleconfig NUMA
2575d8cb4e11SRalf Baechle	bool "NUMA Support"
2576d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2577d8cb4e11SRalf Baechle	help
2578d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2579d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2580d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2581d8cb4e11SRalf Baechle	  leave it disabled; on single node systems disable this option
2582d8cb4e11SRalf Baechle	  disabled.
2583d8cb4e11SRalf Baechle
2584d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2585d8cb4e11SRalf Baechle	bool
2586d8cb4e11SRalf Baechle
25878c530ea3SMatt Redfearnconfig RELOCATABLE
25888c530ea3SMatt Redfearn	bool "Relocatable kernel"
25893ff72be4SSteven J. Hill	depends on SYS_SUPPORTS_RELOCATABLE && (CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_MIPS32_R6 || CPU_MIPS64_R6 || CAVIUM_OCTEON_SOC)
25908c530ea3SMatt Redfearn	help
25918c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
25928c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
25938c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
25948c530ea3SMatt Redfearn	  but are discarded at runtime
25958c530ea3SMatt Redfearn
2596069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2597069fd766SMatt Redfearn	hex "Relocation table size"
2598069fd766SMatt Redfearn	depends on RELOCATABLE
2599069fd766SMatt Redfearn	range 0x0 0x01000000
2600069fd766SMatt Redfearn	default "0x00100000"
2601069fd766SMatt Redfearn	---help---
2602069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2603069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2604069fd766SMatt Redfearn
2605069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2606069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2607069fd766SMatt Redfearn
2608069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2609069fd766SMatt Redfearn
2610069fd766SMatt Redfearn	  If unsure, leave at the default value.
2611069fd766SMatt Redfearn
2612405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2613405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2614405bc8fdSMatt Redfearn	depends on RELOCATABLE
2615405bc8fdSMatt Redfearn	---help---
2616405bc8fdSMatt Redfearn	   Randomizes the physical and virtual address at which the
2617405bc8fdSMatt Redfearn	   kernel image is loaded, as a security feature that
2618405bc8fdSMatt Redfearn	   deters exploit attempts relying on knowledge of the location
2619405bc8fdSMatt Redfearn	   of kernel internals.
2620405bc8fdSMatt Redfearn
2621405bc8fdSMatt Redfearn	   Entropy is generated using any coprocessor 0 registers available.
2622405bc8fdSMatt Redfearn
2623405bc8fdSMatt Redfearn	   The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2624405bc8fdSMatt Redfearn
2625405bc8fdSMatt Redfearn	   If unsure, say N.
2626405bc8fdSMatt Redfearn
2627405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2628405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2629405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2630405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2631405bc8fdSMatt Redfearn	range 0x0 0x08000000
2632405bc8fdSMatt Redfearn	default "0x01000000"
2633405bc8fdSMatt Redfearn	---help---
2634405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2635405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2636405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2637405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2638405bc8fdSMatt Redfearn
2639405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2640405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2641405bc8fdSMatt Redfearn
2642c80d79d7SYasunori Gotoconfig NODES_SHIFT
2643c80d79d7SYasunori Goto	int
2644c80d79d7SYasunori Goto	default "6"
2645c80d79d7SYasunori Goto	depends on NEED_MULTIPLE_NODES
2646c80d79d7SYasunori Goto
264714f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
264814f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
264923021b2bSYang Shi	depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON3)
265014f70012SDeng-Cheng Zhu	default y
265114f70012SDeng-Cheng Zhu	help
265214f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
265314f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
265414f70012SDeng-Cheng Zhu
2655b4819b59SYoichi Yuasasource "mm/Kconfig"
2656b4819b59SYoichi Yuasa
26571da177e4SLinus Torvaldsconfig SMP
26581da177e4SLinus Torvalds	bool "Multi-Processing support"
2659e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2660e73ea273SRalf Baechle	help
26611da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
26624a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
26634a474157SRobert Graffham	  than one CPU, say Y.
26641da177e4SLinus Torvalds
26654a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
26661da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
26671da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
26684a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
26691da177e4SLinus Torvalds	  will run faster if you say N here.
26701da177e4SLinus Torvalds
26711da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
26721da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
26731da177e4SLinus Torvalds
267403502faaSAdrian Bunk	  See also the SMP-HOWTO available at
267503502faaSAdrian Bunk	  <http://www.tldp.org/docs.html#howto>.
26761da177e4SLinus Torvalds
26771da177e4SLinus Torvalds	  If you don't know what to do here, say N.
26781da177e4SLinus Torvalds
26797840d618SMatt Redfearnconfig HOTPLUG_CPU
26807840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
26817840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
26827840d618SMatt Redfearn	help
26837840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
26847840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
26857840d618SMatt Redfearn	  (Note: power management support will enable this option
26867840d618SMatt Redfearn	    automatically on SMP systems. )
26877840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
26887840d618SMatt Redfearn
268987353d8aSRalf Baechleconfig SMP_UP
269087353d8aSRalf Baechle	bool
269187353d8aSRalf Baechle
26924a16ff4cSRalf Baechleconfig SYS_SUPPORTS_MIPS_CMP
26934a16ff4cSRalf Baechle	bool
26944a16ff4cSRalf Baechle
26950ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
26960ee958e1SPaul Burton	bool
26970ee958e1SPaul Burton
2698e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2699e73ea273SRalf Baechle	bool
2700e73ea273SRalf Baechle
2701130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2702130e2fb7SRalf Baechle	bool
2703130e2fb7SRalf Baechle
2704130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2705130e2fb7SRalf Baechle	bool
2706130e2fb7SRalf Baechle
2707130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2708130e2fb7SRalf Baechle	bool
2709130e2fb7SRalf Baechle
2710130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2711130e2fb7SRalf Baechle	bool
2712130e2fb7SRalf Baechle
2713130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2714130e2fb7SRalf Baechle	bool
2715130e2fb7SRalf Baechle
27161da177e4SLinus Torvaldsconfig NR_CPUS
2717a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2718a91796a9SJayachandran C	range 2 256
27191da177e4SLinus Torvalds	depends on SMP
2720130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2721130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2722130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2723130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2724130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27251da177e4SLinus Torvalds	help
27261da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27271da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27281da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
272972ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
273072ede9b1SAtsushi Nemoto	  and 2 for all others.
27311da177e4SLinus Torvalds
27321da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
273372ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
273472ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
273572ede9b1SAtsushi Nemoto	  power of two.
27361da177e4SLinus Torvalds
2737399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2738399aaa25SAl Cooper	bool
2739399aaa25SAl Cooper
27407820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27417820b84bSDavid Daney	bool
27427820b84bSDavid Daney
27437820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27447820b84bSDavid Daney	int
27457820b84bSDavid Daney	depends on SMP
27467820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
27477820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
27487820b84bSDavid Daney
27491723b4a3SAtsushi Nemoto#
27501723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
27511723b4a3SAtsushi Nemoto#
27521723b4a3SAtsushi Nemoto
27531723b4a3SAtsushi Nemotochoice
27541723b4a3SAtsushi Nemoto	prompt "Timer frequency"
27551723b4a3SAtsushi Nemoto	default HZ_250
27561723b4a3SAtsushi Nemoto	help
27571723b4a3SAtsushi Nemoto	 Allows the configuration of the timer frequency.
27581723b4a3SAtsushi Nemoto
275967596573SPaul Burton	config HZ_24
276067596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
276167596573SPaul Burton
27621723b4a3SAtsushi Nemoto	config HZ_48
27630f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
27641723b4a3SAtsushi Nemoto
27651723b4a3SAtsushi Nemoto	config HZ_100
27661723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
27671723b4a3SAtsushi Nemoto
27681723b4a3SAtsushi Nemoto	config HZ_128
27691723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
27701723b4a3SAtsushi Nemoto
27711723b4a3SAtsushi Nemoto	config HZ_250
27721723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
27731723b4a3SAtsushi Nemoto
27741723b4a3SAtsushi Nemoto	config HZ_256
27751723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
27761723b4a3SAtsushi Nemoto
27771723b4a3SAtsushi Nemoto	config HZ_1000
27781723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
27791723b4a3SAtsushi Nemoto
27801723b4a3SAtsushi Nemoto	config HZ_1024
27811723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
27821723b4a3SAtsushi Nemoto
27831723b4a3SAtsushi Nemotoendchoice
27841723b4a3SAtsushi Nemoto
278567596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
278667596573SPaul Burton	bool
278767596573SPaul Burton
27881723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
27891723b4a3SAtsushi Nemoto	bool
27901723b4a3SAtsushi Nemoto
27911723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
27921723b4a3SAtsushi Nemoto	bool
27931723b4a3SAtsushi Nemoto
27941723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
27951723b4a3SAtsushi Nemoto	bool
27961723b4a3SAtsushi Nemoto
27971723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
27981723b4a3SAtsushi Nemoto	bool
27991723b4a3SAtsushi Nemoto
28001723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28011723b4a3SAtsushi Nemoto	bool
28021723b4a3SAtsushi Nemoto
28031723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28041723b4a3SAtsushi Nemoto	bool
28051723b4a3SAtsushi Nemoto
28061723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28071723b4a3SAtsushi Nemoto	bool
28081723b4a3SAtsushi Nemoto
28091723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28101723b4a3SAtsushi Nemoto	bool
281167596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
281267596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
281367596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
281467596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
281567596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
281667596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
281767596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28181723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28191723b4a3SAtsushi Nemoto
28201723b4a3SAtsushi Nemotoconfig HZ
28211723b4a3SAtsushi Nemoto	int
282267596573SPaul Burton	default 24 if HZ_24
28231723b4a3SAtsushi Nemoto	default 48 if HZ_48
28241723b4a3SAtsushi Nemoto	default 100 if HZ_100
28251723b4a3SAtsushi Nemoto	default 128 if HZ_128
28261723b4a3SAtsushi Nemoto	default 250 if HZ_250
28271723b4a3SAtsushi Nemoto	default 256 if HZ_256
28281723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28291723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28301723b4a3SAtsushi Nemoto
283196685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
283296685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
283396685b17SDeng-Cheng Zhu
2834e80de850SRalf Baechlesource "kernel/Kconfig.preempt"
28351da177e4SLinus Torvalds
2836ea6e942bSAtsushi Nemotoconfig KEXEC
28377d60717eSKees Cook	bool "Kexec system call"
28382965faa5SDave Young	select KEXEC_CORE
2839ea6e942bSAtsushi Nemoto	help
2840ea6e942bSAtsushi Nemoto	  kexec is a system call that implements the ability to shutdown your
2841ea6e942bSAtsushi Nemoto	  current kernel, and to start another kernel.  It is like a reboot
28423dde6ad8SDavid Sterba	  but it is independent of the system firmware.   And like a reboot
2843ea6e942bSAtsushi Nemoto	  you can start any kernel with it, not just Linux.
2844ea6e942bSAtsushi Nemoto
284501dd2fbfSMatt LaPlante	  The name comes from the similarity to the exec system call.
2846ea6e942bSAtsushi Nemoto
2847ea6e942bSAtsushi Nemoto	  It is an ongoing process to be certain the hardware in a machine
2848ea6e942bSAtsushi Nemoto	  is properly shutdown, so do not be surprised if this code does not
2849bf220695SGeert Uytterhoeven	  initially work for you.  As of this writing the exact hardware
2850bf220695SGeert Uytterhoeven	  interface is strongly in flux, so no good recommendation can be
2851bf220695SGeert Uytterhoeven	  made.
2852ea6e942bSAtsushi Nemoto
28537aa1c8f4SRalf Baechleconfig CRASH_DUMP
28547aa1c8f4SRalf Baechle	bool "Kernel crash dumps"
28557aa1c8f4SRalf Baechle	help
28567aa1c8f4SRalf Baechle	  Generate crash dump after being started by kexec.
28577aa1c8f4SRalf Baechle	  This should be normally only set in special crash dump kernels
28587aa1c8f4SRalf Baechle	  which are loaded in the main kernel with kexec-tools into
28597aa1c8f4SRalf Baechle	  a specially reserved region and then later executed after
28607aa1c8f4SRalf Baechle	  a crash by kdump/kexec. The crash dump kernel must be compiled
28617aa1c8f4SRalf Baechle	  to a memory address not used by the main kernel or firmware using
28627aa1c8f4SRalf Baechle	  PHYSICAL_START.
28637aa1c8f4SRalf Baechle
28647aa1c8f4SRalf Baechleconfig PHYSICAL_START
28657aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
28668bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
28677aa1c8f4SRalf Baechle	depends on CRASH_DUMP
28687aa1c8f4SRalf Baechle	help
28697aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
28707aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
28717aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
28727aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
28737aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
28747aa1c8f4SRalf Baechle
2875ea6e942bSAtsushi Nemotoconfig SECCOMP
2876ea6e942bSAtsushi Nemoto	bool "Enable seccomp to safely compute untrusted bytecode"
2877293c5bd1SRalf Baechle	depends on PROC_FS
2878ea6e942bSAtsushi Nemoto	default y
2879ea6e942bSAtsushi Nemoto	help
2880ea6e942bSAtsushi Nemoto	  This kernel feature is useful for number crunching applications
2881ea6e942bSAtsushi Nemoto	  that may need to compute untrusted bytecode during their
2882ea6e942bSAtsushi Nemoto	  execution. By using pipes or other transports made available to
2883ea6e942bSAtsushi Nemoto	  the process as file descriptors supporting the read/write
2884ea6e942bSAtsushi Nemoto	  syscalls, it's possible to isolate those applications in
2885ea6e942bSAtsushi Nemoto	  their own address space using seccomp. Once seccomp is
2886ea6e942bSAtsushi Nemoto	  enabled via /proc/<pid>/seccomp, it cannot be disabled
2887ea6e942bSAtsushi Nemoto	  and the task is only allowed to execute a few safe syscalls
2888ea6e942bSAtsushi Nemoto	  defined by each seccomp mode.
2889ea6e942bSAtsushi Nemoto
2890ea6e942bSAtsushi Nemoto	  If unsure, say Y. Only embedded should say N here.
2891ea6e942bSAtsushi Nemoto
2892597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
28930ce3417eSPaul Burton	bool "Support for O32 binaries using 64-bit FP"
2894597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2895597ce172SPaul Burton	help
2896597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2897597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2898597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2899597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2900597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2901597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2902597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2903597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2904597ce172SPaul Burton	  saying N here.
2905597ce172SPaul Burton
290606e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
290706e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
290806e2e882SPaul Burton	  worked on. In order to avoid userland becoming dependant upon current
290906e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
291006e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
291106e2e882SPaul Burton	  said details.
291206e2e882SPaul Burton
291306e2e882SPaul Burton	  If unsure, say N.
2914597ce172SPaul Burton
2915f2ffa5abSDezhong Diaoconfig USE_OF
29160b3e06fdSJonas Gorski	bool
2917f2ffa5abSDezhong Diao	select OF
2918e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2919abd2363fSGrant Likely	select IRQ_DOMAIN
2920f2ffa5abSDezhong Diao
29217fafb068SAndrew Brestickerconfig BUILTIN_DTB
29227fafb068SAndrew Bresticker	bool
29237fafb068SAndrew Bresticker
29241da8f179SJonas Gorskichoice
29255b24d52cSJonas Gorski	prompt "Kernel appended dtb support" if USE_OF
29261da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29271da8f179SJonas Gorski
29281da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29291da8f179SJonas Gorski		bool "None"
29301da8f179SJonas Gorski		help
29311da8f179SJonas Gorski		  Do not enable appended dtb support.
29321da8f179SJonas Gorski
293387db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
293487db537dSAaro Koskinen		bool "vmlinux"
293587db537dSAaro Koskinen		help
293687db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
293787db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
293887db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
293987db537dSAaro Koskinen		  objcopy:
294087db537dSAaro Koskinen
294187db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
294287db537dSAaro Koskinen
294387db537dSAaro Koskinen		  This is meant as a backward compatiblity convenience for those
294487db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
294587db537dSAaro Koskinen		  the documented boot protocol using a device tree.
294687db537dSAaro Koskinen
29471da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2948b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29491da8f179SJonas Gorski		help
29501da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2951b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29521da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29531da8f179SJonas Gorski
29541da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29551da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29561da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29571da8f179SJonas Gorski
29581da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29591da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29601da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29611da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29621da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29631da8f179SJonas Gorskiendchoice
29641da8f179SJonas Gorski
29652024972eSJonas Gorskichoice
29662024972eSJonas Gorski	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
29672bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
29683f5f0a44SPaul Burton					 !MIPS_MALTA && \
29692bcef9b4SJonas Gorski					 !CAVIUM_OCTEON_SOC
29702024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29712024972eSJonas Gorski
29722024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
29732024972eSJonas Gorski		depends on USE_OF
29742024972eSJonas Gorski		bool "Dtb kernel arguments if available"
29752024972eSJonas Gorski
29762024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
29772024972eSJonas Gorski		depends on USE_OF
29782024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
29792024972eSJonas Gorski
29802024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
29812024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
2982ed47e153SRabin Vincent
2983ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
2984ed47e153SRabin Vincent		depends on CMDLINE_BOOL
2985ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
29862024972eSJonas Gorskiendchoice
29872024972eSJonas Gorski
29885e83d430SRalf Baechleendmenu
29895e83d430SRalf Baechle
29901df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
29911df0f0ffSAtsushi Nemoto	bool
29921df0f0ffSAtsushi Nemoto	default y
29931df0f0ffSAtsushi Nemoto
29941df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
29951df0f0ffSAtsushi Nemoto	bool
29961df0f0ffSAtsushi Nemoto	default y
29971df0f0ffSAtsushi Nemoto
2998e1e16115SAaro Koskinenconfig HAVE_LATENCYTOP_SUPPORT
2999e1e16115SAaro Koskinen	bool
3000e1e16115SAaro Koskinen	default y
3001e1e16115SAaro Koskinen
3002a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3003a728ab52SKirill A. Shutemov	int
30043377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
3005a728ab52SKirill A. Shutemov	default 3 if 64BIT && !PAGE_SIZE_64KB
3006a728ab52SKirill A. Shutemov	default 2
3007a728ab52SKirill A. Shutemov
3008b6c3539bSRalf Baechlesource "init/Kconfig"
3009b6c3539bSRalf Baechle
3010dc52ddc0SMatt Helsleysource "kernel/Kconfig.freezer"
3011dc52ddc0SMatt Helsley
30121da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30131da177e4SLinus Torvalds
30145e83d430SRalf Baechleconfig HW_HAS_EISA
30155e83d430SRalf Baechle	bool
30161da177e4SLinus Torvaldsconfig HW_HAS_PCI
30171da177e4SLinus Torvalds	bool
30181da177e4SLinus Torvalds
30191da177e4SLinus Torvaldsconfig PCI
30201da177e4SLinus Torvalds	bool "Support for PCI controller"
30211da177e4SLinus Torvalds	depends on HW_HAS_PCI
3022abb4ae46SRalf Baechle	select PCI_DOMAINS
30231da177e4SLinus Torvalds	help
30241da177e4SLinus Torvalds	  Find out whether you have a PCI motherboard. PCI is the name of a
30251da177e4SLinus Torvalds	  bus system, i.e. the way the CPU talks to the other stuff inside
30261da177e4SLinus Torvalds	  your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
30271da177e4SLinus Torvalds	  say Y, otherwise N.
30281da177e4SLinus Torvalds
30290e476d91SHuacai Chenconfig HT_PCI
30300e476d91SHuacai Chen	bool "Support for HT-linked PCI"
30310e476d91SHuacai Chen	default y
30320e476d91SHuacai Chen	depends on CPU_LOONGSON3
30330e476d91SHuacai Chen	select PCI
30340e476d91SHuacai Chen	select PCI_DOMAINS
30350e476d91SHuacai Chen	help
30360e476d91SHuacai Chen	  Loongson family machines use Hyper-Transport bus for inter-core
30370e476d91SHuacai Chen	  connection and device connection. The PCI bus is a subordinate
30380e476d91SHuacai Chen	  linked at HT. Choose Y for Loongson-3 based machines.
30390e476d91SHuacai Chen
30401da177e4SLinus Torvaldsconfig PCI_DOMAINS
30411da177e4SLinus Torvalds	bool
30421da177e4SLinus Torvalds
304388555b48SPaul Burtonconfig PCI_DOMAINS_GENERIC
304488555b48SPaul Burton	bool
304588555b48SPaul Burton
3046c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
304787dd9a4dSPaul Burton	select PCI_DOMAINS_GENERIC if PCI_DOMAINS
3048c5611df9SPaul Burton	bool
3049c5611df9SPaul Burton
3050c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3051c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3052c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
3053c5611df9SPaul Burton
30541da177e4SLinus Torvaldssource "drivers/pci/Kconfig"
30551da177e4SLinus Torvalds
30561da177e4SLinus Torvalds#
30571da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30581da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30591da177e4SLinus Torvalds# users to choose the right thing ...
30601da177e4SLinus Torvalds#
30611da177e4SLinus Torvaldsconfig ISA
30621da177e4SLinus Torvalds	bool
30631da177e4SLinus Torvalds
30641da177e4SLinus Torvaldsconfig EISA
30651da177e4SLinus Torvalds	bool "EISA support"
30665e83d430SRalf Baechle	depends on HW_HAS_EISA
30671da177e4SLinus Torvalds	select ISA
3068aa414dffSRalf Baechle	select GENERIC_ISA_DMA
30691da177e4SLinus Torvalds	---help---
30701da177e4SLinus Torvalds	  The Extended Industry Standard Architecture (EISA) bus was
30711da177e4SLinus Torvalds	  developed as an open alternative to the IBM MicroChannel bus.
30721da177e4SLinus Torvalds
30731da177e4SLinus Torvalds	  The EISA bus provided some of the features of the IBM MicroChannel
30741da177e4SLinus Torvalds	  bus while maintaining backward compatibility with cards made for
30751da177e4SLinus Torvalds	  the older ISA bus.  The EISA bus saw limited use between 1988 and
30761da177e4SLinus Torvalds	  1995 when it was made obsolete by the PCI bus.
30771da177e4SLinus Torvalds
30781da177e4SLinus Torvalds	  Say Y here if you are building a kernel for an EISA-based machine.
30791da177e4SLinus Torvalds
30801da177e4SLinus Torvalds	  Otherwise, say N.
30811da177e4SLinus Torvalds
30821da177e4SLinus Torvaldssource "drivers/eisa/Kconfig"
30831da177e4SLinus Torvalds
30841da177e4SLinus Torvaldsconfig TC
30851da177e4SLinus Torvalds	bool "TURBOchannel support"
30861da177e4SLinus Torvalds	depends on MACH_DECSTATION
30871da177e4SLinus Torvalds	help
308850a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
308950a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
309050a23e6eSJustin P. Mattock	  at:
309150a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
309250a23e6eSJustin P. Mattock	  and:
309350a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
309450a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
309550a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30961da177e4SLinus Torvalds
30971da177e4SLinus Torvaldsconfig MMU
30981da177e4SLinus Torvalds	bool
30991da177e4SLinus Torvalds	default y
31001da177e4SLinus Torvalds
3101109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3102109c32ffSMatt Redfearn	default 12 if 64BIT
3103109c32ffSMatt Redfearn	default 8
3104109c32ffSMatt Redfearn
3105109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3106109c32ffSMatt Redfearn	default 18 if 64BIT
3107109c32ffSMatt Redfearn	default 15
3108109c32ffSMatt Redfearn
3109109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3110109c32ffSMatt Redfearn       default 8
3111109c32ffSMatt Redfearn
3112109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3113109c32ffSMatt Redfearn       default 15
3114109c32ffSMatt Redfearn
3115d865bea4SRalf Baechleconfig I8253
3116d865bea4SRalf Baechle	bool
3117798778b8SRussell King	select CLKSRC_I8253
31182d02612fSThomas Gleixner	select CLKEVT_I8253
31199726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
3120d865bea4SRalf Baechle
3121e05eb3f8SRalf Baechleconfig ZONE_DMA
3122e05eb3f8SRalf Baechle	bool
3123e05eb3f8SRalf Baechle
3124cce335aeSRalf Baechleconfig ZONE_DMA32
3125cce335aeSRalf Baechle	bool
3126cce335aeSRalf Baechle
31271da177e4SLinus Torvaldssource "drivers/pcmcia/Kconfig"
31281da177e4SLinus Torvalds
3129388b78adSAlexandre Bounineconfig RAPIDIO
313056abde72SAlexandre Bounine	tristate "RapidIO support"
3131388b78adSAlexandre Bounine	depends on PCI
3132388b78adSAlexandre Bounine	default n
3133388b78adSAlexandre Bounine	help
3134388b78adSAlexandre Bounine	  If you say Y here, the kernel will include drivers and
3135388b78adSAlexandre Bounine	  infrastructure code to support RapidIO interconnect devices.
3136388b78adSAlexandre Bounine
3137388b78adSAlexandre Bouninesource "drivers/rapidio/Kconfig"
3138388b78adSAlexandre Bounine
31391da177e4SLinus Torvaldsendmenu
31401da177e4SLinus Torvalds
31411da177e4SLinus Torvaldsmenu "Executable file formats"
31421da177e4SLinus Torvalds
31431da177e4SLinus Torvaldssource "fs/Kconfig.binfmt"
31441da177e4SLinus Torvalds
31451da177e4SLinus Torvaldsconfig TRAD_SIGNALS
31461da177e4SLinus Torvalds	bool
31471da177e4SLinus Torvalds
31481da177e4SLinus Torvaldsconfig MIPS32_COMPAT
314978aaf956SRalf Baechle	bool
31501da177e4SLinus Torvalds
31511da177e4SLinus Torvaldsconfig COMPAT
31521da177e4SLinus Torvalds	bool
31531da177e4SLinus Torvalds
315405e43966SAtsushi Nemotoconfig SYSVIPC_COMPAT
315505e43966SAtsushi Nemoto	bool
315605e43966SAtsushi Nemoto
31571da177e4SLinus Torvaldsconfig MIPS32_O32
31581da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
315978aaf956SRalf Baechle	depends on 64BIT
316078aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
316178aaf956SRalf Baechle	select COMPAT
316278aaf956SRalf Baechle	select MIPS32_COMPAT
316378aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
31641da177e4SLinus Torvalds	help
31651da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
31661da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
31671da177e4SLinus Torvalds	  existing binaries are in this format.
31681da177e4SLinus Torvalds
31691da177e4SLinus Torvalds	  If unsure, say Y.
31701da177e4SLinus Torvalds
31711da177e4SLinus Torvaldsconfig MIPS32_N32
31721da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3173c22eacfeSRalf Baechle	depends on 64BIT
317478aaf956SRalf Baechle	select COMPAT
317578aaf956SRalf Baechle	select MIPS32_COMPAT
317678aaf956SRalf Baechle	select SYSVIPC_COMPAT if SYSVIPC
31771da177e4SLinus Torvalds	help
31781da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31791da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31801da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31811da177e4SLinus Torvalds	  cases.
31821da177e4SLinus Torvalds
31831da177e4SLinus Torvalds	  If unsure, say N.
31841da177e4SLinus Torvalds
31851da177e4SLinus Torvaldsconfig BINFMT_ELF32
31861da177e4SLinus Torvalds	bool
31871da177e4SLinus Torvalds	default y if MIPS32_O32 || MIPS32_N32
3188f43edca7SRalf Baechle	select ELFCORE
31891da177e4SLinus Torvalds
31902116245eSRalf Baechleendmenu
31911da177e4SLinus Torvalds
31922116245eSRalf Baechlemenu "Power management options"
3193952fa954SRodolfo Giometti
3194363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3195363c55caSWu Zhangjin	def_bool y
31963f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3197363c55caSWu Zhangjin
3198f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3199f4cb5700SJohannes Berg	def_bool y
32003f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3201f4cb5700SJohannes Berg
32022116245eSRalf Baechlesource "kernel/power/Kconfig"
3203952fa954SRodolfo Giometti
32041da177e4SLinus Torvaldsendmenu
32051da177e4SLinus Torvalds
32067a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
32077a998935SViresh Kumar	bool
32087a998935SViresh Kumar
32097a998935SViresh Kumarmenu "CPU Power Management"
3210c095ebafSPaul Burton
3211c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
32127a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
32137a998935SViresh Kumarendif
32149726b43aSWu Zhangjin
3215c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3216c095ebafSPaul Burton
3217c095ebafSPaul Burtonendmenu
3218c095ebafSPaul Burton
3219d5950b43SSam Ravnborgsource "net/Kconfig"
3220d5950b43SSam Ravnborg
32211da177e4SLinus Torvaldssource "drivers/Kconfig"
32221da177e4SLinus Torvalds
322398cdee0eSRalf Baechlesource "drivers/firmware/Kconfig"
322498cdee0eSRalf Baechle
32251da177e4SLinus Torvaldssource "fs/Kconfig"
32261da177e4SLinus Torvalds
32271da177e4SLinus Torvaldssource "arch/mips/Kconfig.debug"
32281da177e4SLinus Torvalds
32291da177e4SLinus Torvaldssource "security/Kconfig"
32301da177e4SLinus Torvalds
32311da177e4SLinus Torvaldssource "crypto/Kconfig"
32321da177e4SLinus Torvalds
32331da177e4SLinus Torvaldssource "lib/Kconfig"
32342235a54dSSanjay Lal
32352235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3236