xref: /linux/arch/mips/Kconfig (revision 6a74422b9710e987c7d6b85a1ade7330b1e61626)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig MIPS
31da177e4SLinus Torvalds	bool
41da177e4SLinus Torvalds	default y
5942fa985SYury Norov	select ARCH_32BIT_OFF_T if !64BIT
6ea6a3737SPaul Burton	select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
78690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
87f066a22SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
9e633c2e7SNathan Chancellor	select ARCH_HAS_CURRENT_STACK_POINTER
10dfad83cbSFlorian Fainelli	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
11de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS if MACH_JAZZ
1234c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
1334c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1466633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1534c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
16e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
17e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1812597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
19918327e9SKees Cook	select ARCH_HAS_UBSAN
208b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
21c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
221ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2312597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
24dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2525da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
260b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
27855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
289035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2912597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
30d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
3110916706SShile Zhang	select BUILDTIME_TABLE_SORT
3204e4ec98SMasahiro Yamada	select BUILTIN_DTB_ALL if BUILTIN_DTB
3312597988SMatt Redfearn	select CLONE_BACKWARDS
3457eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
352226d454SJiaxun Yang	select CPU_PM if CPU_IDLE || SUSPEND
3612597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3704e4ec98SMasahiro Yamada	select GENERIC_BUILTIN_DTB if BUILTIN_DTB
3812597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
3912597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
4024640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
4112597988SMatt Redfearn	select GENERIC_IRQ_PROBE
4212597988SMatt Redfearn	select GENERIC_IRQ_SHOW
436630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
44740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
45740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
46740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
47740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
48740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
49976bf3aeSArnd Bergmann	select GENERIC_PCI_IOMAP
5012597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
5112597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
52975fd3c2SJiaxun Yang	select GENERIC_IDLE_POLL_SETUP
5312597988SMatt Redfearn	select GENERIC_TIME_VSYSCALL
546ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
55fcbfe812SNiklas Schnelle	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
56906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
5712597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
5842b20995SArnd Bergmann	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
59109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
60109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
61490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
62c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
6345e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
642ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
6524a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
66490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6764575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6812597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
6912597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
7012597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
7112597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
727364d60cSJiaxun Yang	select HAVE_EBPF_JIT if !CPU_MICROMIPS
7312597988SMatt Redfearn	select HAVE_EXIT_THREAD
7425176ad0SDavid Hildenbrand	select HAVE_GUP_FAST
7529c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7612597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7734c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
7834c01e41SAlexander Lobakin	select HAVE_GENERIC_VDSO
79b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
8012597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
8112597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
82c1bf207dSDavid Daney	select HAVE_KPROBES
83c1bf207dSDavid Daney	select HAVE_KRETPROBES
84c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
85786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8642a0bb3fSPetr Mladek	select HAVE_NMI
87ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB if !CPU_LOONGSON2EF && !CPU_LOONGSON64
88ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB if !CPU_R3000
89ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_64KB if !CPU_R3000
9012597988SMatt Redfearn	select HAVE_PERF_EVENTS
911ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
921ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
9308bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
949ea141adSPaul Burton	select HAVE_RSEQ
9516c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
96d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9712597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
98a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
9912597988SMatt Redfearn	select IRQ_FORCED_THREADING
1006630a8e5SChristoph Hellwig	select ISA if EISA
1014bce37a6SBen Hutchings	select LOCK_MM_AND_FIND_VMA
10212597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
10334c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
10412597988SMatt Redfearn	select PERF_USE_VMALLOC
105981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
10605a0a344SArnd Bergmann	select RTC_LIB
10712597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1084aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
1090bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
110e0a8b93eSNemanja Rakovic	select HAVE_ARCH_KCSAN if 64BIT
1111da177e4SLinus Torvalds
112d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
113d3991572SChristoph Hellwig	bool
114d3991572SChristoph Hellwig
115c434b9f8SPaul Cercueilconfig MIPS_GENERIC
116c434b9f8SPaul Cercueil	bool
117c434b9f8SPaul Cercueil
11880f2e4cdSGregory CLEMENTconfig MACH_GENERIC_CORE
11980f2e4cdSGregory CLEMENT	bool
12080f2e4cdSGregory CLEMENT
121f0f4a753SPaul Cercueilconfig MACH_INGENIC
122f0f4a753SPaul Cercueil	bool
123f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
124f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
125f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
126f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
127f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
128f0f4a753SPaul Cercueil	select PINCTRL
129f0f4a753SPaul Cercueil	select GPIOLIB
130f0f4a753SPaul Cercueil	select COMMON_CLK
131f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
132f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
133f0f4a753SPaul Cercueil	select USE_OF
134f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
135f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
136f0f4a753SPaul Cercueil
1371da177e4SLinus Torvaldsmenu "Machine selection"
1381da177e4SLinus Torvalds
1395e83d430SRalf Baechlechoice
1405e83d430SRalf Baechle	prompt "System type"
141c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1421da177e4SLinus Torvalds
143c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
144eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
145c434b9f8SPaul Cercueil	select MIPS_GENERIC
146eed0eabdSPaul Burton	select BOOT_RAW
147eed0eabdSPaul Burton	select BUILTIN_DTB
148eed0eabdSPaul Burton	select CEVT_R4K
149eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
150eed0eabdSPaul Burton	select COMMON_CLK
151eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
15234c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
153eed0eabdSPaul Burton	select CSRC_R4K
1544e066441SChristoph Hellwig	select DMA_NONCOHERENT
155eb01d42aSChristoph Hellwig	select HAVE_PCI
156eed0eabdSPaul Burton	select IRQ_MIPS_CPU
15780f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
1580211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
159eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
160eed0eabdSPaul Burton	select MIPS_GIC
161eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
162eed0eabdSPaul Burton	select NO_EXCEPT_FILL
163eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
164eed0eabdSPaul Burton	select SMP_UP if SMP
165a3078e59SMatt Redfearn	select SWAP_IO_SPACE
166eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
167eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
168fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R5
169eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
170eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
171eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
172fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R5
173eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
174eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
175eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
176eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
177eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
178eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
179eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
180eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
18134c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
182eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
183eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
184eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
185c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
18634c01e41SAlexander Lobakin	select UHI_BOOT
1872e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1882e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1892e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1902e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1912e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1922e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
193eed0eabdSPaul Burton	select USE_OF
194eed0eabdSPaul Burton	help
195eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
196eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
197eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
198eed0eabdSPaul Burton	  Interface) specification.
199eed0eabdSPaul Burton
20042a4f17dSManuel Laussconfig MIPS_ALCHEMY
201c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
202d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
203f772cdb2SRalf Baechle	select CEVT_R4K
204d7ea335cSSteven J. Hill	select CSRC_R4K
20567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
206a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
207d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
20842a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
20942a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
21042a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
211d30a2b47SLinus Walleij	select GPIOLIB
2121b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
21347440229SManuel Lauss	select COMMON_CLK
2141da177e4SLinus Torvalds
21543cc739fSSergey Ryazanovconfig ATH25
21643cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
21743cc739fSSergey Ryazanov	select CEVT_R4K
21843cc739fSSergey Ryazanov	select CSRC_R4K
21943cc739fSSergey Ryazanov	select DMA_NONCOHERENT
22067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2211753e74eSSergey Ryazanov	select IRQ_DOMAIN
22243cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
22343cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
22443cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2258aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
22643cc739fSSergey Ryazanov	help
22743cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
22843cc739fSSergey Ryazanov
229d4a67d9dSGabor Juhosconfig ATH79
230d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
231ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
232d4a67d9dSGabor Juhos	select BOOT_RAW
233d4a67d9dSGabor Juhos	select CEVT_R4K
234d4a67d9dSGabor Juhos	select CSRC_R4K
235d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
236d30a2b47SLinus Walleij	select GPIOLIB
237a08227a2SJohn Crispin	select PINCTRL
238411520afSAlban Bedel	select COMMON_CLK
23967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
240d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
241d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
242d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
243d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
244377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
245b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
24603c8c407SAlban Bedel	select USE_OF
24753d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
248d4a67d9dSGabor Juhos	help
249d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
250d4a67d9dSGabor Juhos
2515f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2525f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
25329906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
254d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
255d666cd02SKevin Cernekee	select BOOT_RAW
256d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
257d666cd02SKevin Cernekee	select USE_OF
258d666cd02SKevin Cernekee	select CEVT_R4K
259d666cd02SKevin Cernekee	select CSRC_R4K
260d666cd02SKevin Cernekee	select SYNC_R4K
261d666cd02SKevin Cernekee	select COMMON_CLK
262c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
26360b858f2SKevin Cernekee	select BCM7038_L1_IRQ
26460b858f2SKevin Cernekee	select BCM7120_L2_IRQ
26560b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
26667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
26760b858f2SKevin Cernekee	select DMA_NONCOHERENT
268d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
26960b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
270d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
271d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
27260b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
27360b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
27460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
275d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
276d666cd02SKevin Cernekee	select SWAP_IO_SPACE
27760b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
27860b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
27960b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28060b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2814dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
2821d987052SFlorian Fainelli	select HAVE_PCI
2831d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
284466ab2eaSFlorian Fainelli	select FW_CFE
285d666cd02SKevin Cernekee	help
2865f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2875f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2885f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2895f2d4459SKevin Cernekee	  must be set appropriately for your board.
290d666cd02SKevin Cernekee
2911c0c13ebSAurelien Jarnoconfig BCM47XX
292c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
293fe08f8c2SHauke Mehrtens	select BOOT_RAW
29442f77542SRalf Baechle	select CEVT_R4K
295940f6b48SRalf Baechle	select CSRC_R4K
2961c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
297eb01d42aSChristoph Hellwig	select HAVE_PCI
29867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
299314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
300dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
3011c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3021c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
303377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3046507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
30525e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
306e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
307c949c0bcSRafał Miłecki	select GPIOLIB
308c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
309f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3102ab71a02SRafał Miłecki	select BCM47XX_SPROM
311dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3121c0c13ebSAurelien Jarno	help
3131c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3141c0c13ebSAurelien Jarno
315e7300d04SMaxime Bizonconfig BCM63XX
316e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
317ae8de61cSFlorian Fainelli	select BOOT_RAW
318e7300d04SMaxime Bizon	select CEVT_R4K
319e7300d04SMaxime Bizon	select CSRC_R4K
320fc264022SJonas Gorski	select SYNC_R4K
321e7300d04SMaxime Bizon	select DMA_NONCOHERENT
32267e38cf2SRalf Baechle	select IRQ_MIPS_CPU
323e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
324e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
325e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3265eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3275eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3285eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
329e7300d04SMaxime Bizon	select SWAP_IO_SPACE
330d30a2b47SLinus Walleij	select GPIOLIB
331af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
332bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
333e7300d04SMaxime Bizon	help
334e7300d04SMaxime Bizon	  Support for BCM63XX based boards
335e7300d04SMaxime Bizon
3361da177e4SLinus Torvaldsconfig MIPS_COBALT
3373fa986faSMartin Michlmayr	bool "Cobalt Server"
33842f77542SRalf Baechle	select CEVT_R4K
339940f6b48SRalf Baechle	select CSRC_R4K
3401097c6acSYoichi Yuasa	select CEVT_GT641XX
3411da177e4SLinus Torvalds	select DMA_NONCOHERENT
342eb01d42aSChristoph Hellwig	select FORCE_PCI
343d865bea4SRalf Baechle	select I8253
3441da177e4SLinus Torvalds	select I8259
34567e38cf2SRalf Baechle	select IRQ_MIPS_CPU
346d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
347252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3487cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3490a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
350ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3510e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3525e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
353e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3541da177e4SLinus Torvalds
3551da177e4SLinus Torvaldsconfig MACH_DECSTATION
3563fa986faSMartin Michlmayr	bool "DECstations"
3571da177e4SLinus Torvalds	select BOOT_ELF32
3586457d9fcSYoichi Yuasa	select CEVT_DS1287
35981d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3604247417dSYoichi Yuasa	select CSRC_IOASIC
36181d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
36220d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
36320d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
36420d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3651da177e4SLinus Torvalds	select DMA_NONCOHERENT
366ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
36767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3687cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3697cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
370ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3717d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3725e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3731723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3741723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3751723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
376930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3775e83d430SRalf Baechle	help
3781da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3791da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3801da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3811da177e4SLinus Torvalds
3821da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3831da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3841da177e4SLinus Torvalds
3851da177e4SLinus Torvalds		DECstation 5000/50
3861da177e4SLinus Torvalds		DECstation 5000/150
3871da177e4SLinus Torvalds		DECstation 5000/260
3881da177e4SLinus Torvalds		DECsystem 5900/260
3891da177e4SLinus Torvalds
3901da177e4SLinus Torvalds	  otherwise choose R3000.
3911da177e4SLinus Torvalds
39235fb26f9SCaleb James DeLisleconfig ECONET
39335fb26f9SCaleb James DeLisle	bool "EcoNet MIPS family"
39435fb26f9SCaleb James DeLisle	select BOOT_RAW
39535fb26f9SCaleb James DeLisle	select CPU_BIG_ENDIAN
39679ee1d20SCaleb James DeLisle	select DEBUG_ZBOOT if DEBUG_KERNEL
39735fb26f9SCaleb James DeLisle	select EARLY_PRINTK_8250
39835fb26f9SCaleb James DeLisle	select ECONET_EN751221_TIMER
39979ee1d20SCaleb James DeLisle	select SERIAL_8250
40035fb26f9SCaleb James DeLisle	select SERIAL_OF_PLATFORM
40135fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_BIG_ENDIAN
40235fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R1
40335fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R2
40435fb26f9SCaleb James DeLisle	select SYS_HAS_EARLY_PRINTK
40535fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_32BIT_KERNEL
40635fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_MIPS16
40735fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_ZBOOT_UART16550
40835fb26f9SCaleb James DeLisle	select USE_GENERIC_EARLY_PRINTK_8250
40935fb26f9SCaleb James DeLisle	select USE_OF
41035fb26f9SCaleb James DeLisle	help
41135fb26f9SCaleb James DeLisle	  EcoNet EN75xx MIPS devices are big endian MIPS machines used
41235fb26f9SCaleb James DeLisle	  in XPON (fiber) and DSL applications. They have SPI, PCI, USB,
41335fb26f9SCaleb James DeLisle	  GPIO, and Ethernet, with optional XPON, DSL, and VoIP DSP cores.
41435fb26f9SCaleb James DeLisle	  Don't confuse these with the Airoha ARM devices sometimes referred
41535fb26f9SCaleb James DeLisle	  to as "EcoNet", this family is for MIPS based devices only.
41635fb26f9SCaleb James DeLisle
4175e83d430SRalf Baechleconfig MACH_JAZZ
4183fa986faSMartin Michlmayr	bool "Jazz family of machines"
41939b2d756SThomas Bogendoerfer	select ARC_MEMORY
42039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
421a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
4227a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4230e2794b0SRalf Baechle	select FW_ARC
4240e2794b0SRalf Baechle	select FW_ARC32
4255e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
42642f77542SRalf Baechle	select CEVT_R4K
427940f6b48SRalf Baechle	select CSRC_R4K
428e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4295e83d430SRalf Baechle	select GENERIC_ISA_DMA
4308a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
43167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
432d865bea4SRalf Baechle	select I8253
4335e83d430SRalf Baechle	select I8259
4345e83d430SRalf Baechle	select ISA
4357cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4365e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4377d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4381723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
439aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4401da177e4SLinus Torvalds	help
4415e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4425e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
443692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4445e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4455e83d430SRalf Baechle
446f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
447de361e8bSPaul Burton	bool "Ingenic SoC based machines"
448f0f4a753SPaul Cercueil	select MIPS_GENERIC
449f0f4a753SPaul Cercueil	select MACH_INGENIC
45080f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
451f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
452eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
453eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4545ebabe59SLars-Peter Clausen
455171bb2f1SJohn Crispinconfig LANTIQ
456171bb2f1SJohn Crispin	bool "Lantiq based platforms"
457171bb2f1SJohn Crispin	select DMA_NONCOHERENT
45867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
459171bb2f1SJohn Crispin	select CEVT_R4K
460171bb2f1SJohn Crispin	select CSRC_R4K
461b74cc639SSander Vanheule	select NO_EXCEPT_FILL
462171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
463171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
464171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
465171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
466377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
467171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
468f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
469171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
470d30a2b47SLinus Walleij	select GPIOLIB
471171bb2f1SJohn Crispin	select SWAP_IO_SPACE
472171bb2f1SJohn Crispin	select BOOT_RAW
473bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
474a0392222SJohn Crispin	select USE_OF
4753f8c50c9SJohn Crispin	select PINCTRL
4763f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
477c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
478c530781cSJohn Crispin	select RESET_CONTROLLER
479171bb2f1SJohn Crispin
48030ad29bbSHuacai Chenconfig MACH_LOONGSON32
481caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
482*85c43540SKeguang Zhang	select MACH_GENERIC_CORE
483*85c43540SKeguang Zhang	select USE_OF
484*85c43540SKeguang Zhang	select BUILTIN_DTB
485*85c43540SKeguang Zhang	select BOOT_ELF32
486*85c43540SKeguang Zhang	select CEVT_R4K
487*85c43540SKeguang Zhang	select CSRC_R4K
488*85c43540SKeguang Zhang	select COMMON_CLK
489*85c43540SKeguang Zhang	select DMA_NONCOHERENT
490*85c43540SKeguang Zhang	select GENERIC_IRQ_SHOW_LEVEL
491*85c43540SKeguang Zhang	select IRQ_MIPS_CPU
492*85c43540SKeguang Zhang	select LS1X_IRQ
493*85c43540SKeguang Zhang	select SYS_HAS_CPU_LOONGSON32
494*85c43540SKeguang Zhang	select SYS_HAS_EARLY_PRINTK
495*85c43540SKeguang Zhang	select USE_GENERIC_EARLY_PRINTK_8250
496*85c43540SKeguang Zhang	select SYS_SUPPORTS_32BIT_KERNEL
497*85c43540SKeguang Zhang	select SYS_SUPPORTS_LITTLE_ENDIAN
498*85c43540SKeguang Zhang	select SYS_SUPPORTS_HIGHMEM
499c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
500ade299d8SYoichi Yuasa	help
50130ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
50285749d24SWu Zhangjin
50330ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
50430ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
50530ad29bbSHuacai Chen	  Sciences (CAS).
506ade299d8SYoichi Yuasa
50771e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
50871e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
509ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
510ca585cf9SKelvin Cheung	help
51171e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
512ca585cf9SKelvin Cheung
51371e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
514caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
515edc0378eSJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT
5166fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
5176fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
5186fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
5196fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
5206fbde6b4SJiaxun Yang	select BOOT_ELF32
5216fbde6b4SJiaxun Yang	select BOARD_SCACHE
5226fbde6b4SJiaxun Yang	select CSRC_R4K
5236fbde6b4SJiaxun Yang	select CEVT_R4K
524fa165f91SJiaxun Yang	select SYNC_R4K
5256fbde6b4SJiaxun Yang	select FORCE_PCI
5266fbde6b4SJiaxun Yang	select ISA
5276fbde6b4SJiaxun Yang	select I8259
5286fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
5297d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
5305125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
5316fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
5326423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
5336fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
5346fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
5356fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
5366fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
5376fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
5386fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
5396fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
5406fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
54171e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
542a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
5436fbde6b4SJiaxun Yang	select ZONE_DMA32
54487fcfa7bSJiaxun Yang	select COMMON_CLK
54587fcfa7bSJiaxun Yang	select USE_OF
54687fcfa7bSJiaxun Yang	select BUILTIN_DTB
54739c1485cSHuacai Chen	select PCI_HOST_GENERIC
54871e2f4ddSJiaxun Yang	help
549caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
550caed1d1bSHuacai Chen
551caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
552caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
553caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
554caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
555ca585cf9SKelvin Cheung
5561da177e4SLinus Torvaldsconfig MIPS_MALTA
5573fa986faSMartin Michlmayr	bool "MIPS Malta board"
55861ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
559a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5607a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5611da177e4SLinus Torvalds	select BOOT_ELF32
562fa71c960SRalf Baechle	select BOOT_RAW
563e8823d26SPaul Burton	select BUILTIN_DTB
56442f77542SRalf Baechle	select CEVT_R4K
565fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
56642b002abSGuenter Roeck	select COMMON_CLK
56747bf2b03SMaksym Kokhan	select CSRC_R4K
568a86497d6SChristoph Hellwig	select DMA_NONCOHERENT
5691da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5708a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
571eb01d42aSChristoph Hellwig	select HAVE_PCI
572d865bea4SRalf Baechle	select I8253
5731da177e4SLinus Torvalds	select I8259
57447bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5755e83d430SRalf Baechle	select MIPS_BONITO64
5769318c51aSChris Dearman	select MIPS_CPU_SCACHE
57747bf2b03SMaksym Kokhan	select MIPS_GIC
578a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5795e83d430SRalf Baechle	select MIPS_MSC
58047bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
58101557e34SMateusz Jończyk	select RTC_MC146818_LIB
582ecafe3e9SPaul Burton	select SMP_UP if SMP
5831da177e4SLinus Torvalds	select SWAP_IO_SPACE
5847cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5857cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
586bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
587c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
588575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5897cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5905d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
591575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5927cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5937cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
594ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
595ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5965e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
597c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5985e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
599424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
60047bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
601e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
602f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
60347bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
6049693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
605f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
6061b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
607e8823d26SPaul Burton	select USE_OF
608886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
609abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
6101da177e4SLinus Torvalds	help
611f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
6121da177e4SLinus Torvalds	  board.
6131da177e4SLinus Torvalds
6142572f00dSJoshua Hendersonconfig MACH_PIC32
6152572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
6162572f00dSJoshua Henderson	help
6172572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
6182572f00dSJoshua Henderson
6192572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
6202572f00dSJoshua Henderson	  microcontrollers.
6212572f00dSJoshua Henderson
622fbe0fae6SGregory CLEMENTconfig EYEQ
623fbe0fae6SGregory CLEMENT	bool "Mobileye EyeQ SoC"
624101bd58fSGregory CLEMENT	select MACH_GENERIC_CORE
625101bd58fSGregory CLEMENT	select ARM_AMBA
626101bd58fSGregory CLEMENT	select PHYSICAL_START_BOOL
627101bd58fSGregory CLEMENT	select ARCH_SPARSEMEM_DEFAULT if 64BIT
628101bd58fSGregory CLEMENT	select BOOT_RAW
629101bd58fSGregory CLEMENT	select BUILTIN_DTB
630101bd58fSGregory CLEMENT	select CEVT_R4K
631101bd58fSGregory CLEMENT	select CLKSRC_MIPS_GIC
632101bd58fSGregory CLEMENT	select COMMON_CLK
633101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_EI
634101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_VI
635101bd58fSGregory CLEMENT	select CSRC_R4K
636101bd58fSGregory CLEMENT	select DMA_NONCOHERENT
637101bd58fSGregory CLEMENT	select HAVE_PCI
638101bd58fSGregory CLEMENT	select IRQ_MIPS_CPU
639101bd58fSGregory CLEMENT	select MIPS_AUTO_PFN_OFFSET
640101bd58fSGregory CLEMENT	select MIPS_CPU_SCACHE
641101bd58fSGregory CLEMENT	select MIPS_GIC
642101bd58fSGregory CLEMENT	select MIPS_L1_CACHE_SHIFT_7
643101bd58fSGregory CLEMENT	select PCI_DRIVERS_GENERIC
644101bd58fSGregory CLEMENT	select SMP_UP if SMP
645101bd58fSGregory CLEMENT	select SWAP_IO_SPACE
646101bd58fSGregory CLEMENT	select SYS_HAS_CPU_MIPS64_R6
647101bd58fSGregory CLEMENT	select SYS_SUPPORTS_64BIT_KERNEL
648101bd58fSGregory CLEMENT	select SYS_SUPPORTS_HIGHMEM
649101bd58fSGregory CLEMENT	select SYS_SUPPORTS_LITTLE_ENDIAN
650101bd58fSGregory CLEMENT	select SYS_SUPPORTS_MIPS_CPS
651101bd58fSGregory CLEMENT	select SYS_SUPPORTS_RELOCATABLE
652101bd58fSGregory CLEMENT	select SYS_SUPPORTS_ZBOOT
653101bd58fSGregory CLEMENT	select UHI_BOOT
654101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
655101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
656101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
657101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
658101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
659101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
660101bd58fSGregory CLEMENT	select USE_OF
66176c43eb5SGregory CLEMENT	select HOTPLUG_PARALLEL if SMP
662101bd58fSGregory CLEMENT	help
663fbe0fae6SGregory CLEMENT	  Select this to build a kernel supporting EyeQ SoC from Mobileye.
664101bd58fSGregory CLEMENT
665101bd58fSGregory CLEMENT	bool
666101bd58fSGregory CLEMENT
667baec970aSLauri Kasanenconfig MACH_NINTENDO64
668baec970aSLauri Kasanen	bool "Nintendo 64 console"
669baec970aSLauri Kasanen	select CEVT_R4K
670baec970aSLauri Kasanen	select CSRC_R4K
671baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
672baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
673baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
674baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
675baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
676baec970aSLauri Kasanen	select DMA_NONCOHERENT
677baec970aSLauri Kasanen	select IRQ_MIPS_CPU
678baec970aSLauri Kasanen
679ae2b5bb6SJohn Crispinconfig RALINK
680ae2b5bb6SJohn Crispin	bool "Ralink based machines"
681ae2b5bb6SJohn Crispin	select CEVT_R4K
68235f752beSArnd Bergmann	select COMMON_CLK
683ae2b5bb6SJohn Crispin	select CSRC_R4K
684ae2b5bb6SJohn Crispin	select BOOT_RAW
685ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
68667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
687ae2b5bb6SJohn Crispin	select USE_OF
688ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
689ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
690ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
691377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6921f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
693ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6942a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6952a153f1cSJohn Crispin	select RESET_CONTROLLER
696ae2b5bb6SJohn Crispin
6974042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6984042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6994042147aSBert Vermeulen	select MIPS_GENERIC
70080f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
7014042147aSBert Vermeulen	select DMA_NONCOHERENT
7024042147aSBert Vermeulen	select IRQ_MIPS_CPU
7034042147aSBert Vermeulen	select CSRC_R4K
7044042147aSBert Vermeulen	select CEVT_R4K
7054042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
7064042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
7074042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
7084042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
7094042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
7104042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
7114042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
7124042147aSBert Vermeulen	select BOOT_RAW
7134042147aSBert Vermeulen	select PINCTRL
7144042147aSBert Vermeulen	select USE_OF
71562b8db3aSChris Packham	select REALTEK_OTTO_TIMER
7164042147aSBert Vermeulen
7171da177e4SLinus Torvaldsconfig SGI_IP22
7183fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
719c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
72039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7210e2794b0SRalf Baechle	select FW_ARC
7220e2794b0SRalf Baechle	select FW_ARC32
7237a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
7241da177e4SLinus Torvalds	select BOOT_ELF32
72542f77542SRalf Baechle	select CEVT_R4K
726940f6b48SRalf Baechle	select CSRC_R4K
727e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
7281da177e4SLinus Torvalds	select DMA_NONCOHERENT
7296630a8e5SChristoph Hellwig	select HAVE_EISA
730d865bea4SRalf Baechle	select I8253
73168de4803SThomas Bogendoerfer	select I8259
7321da177e4SLinus Torvalds	select IP22_CPU_SCACHE
73367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
734aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
735e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
736e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
73736e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
738e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
739e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
740e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
7411da177e4SLinus Torvalds	select SWAP_IO_SPACE
7427cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
7437cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
744c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
745ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
746ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7475e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
748802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
7495e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
75044def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
751930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7521da177e4SLinus Torvalds	help
7531da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
7541da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
7551da177e4SLinus Torvalds	  that runs on these, say Y here.
7561da177e4SLinus Torvalds
7571da177e4SLinus Torvaldsconfig SGI_IP27
7583fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
75954aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
760397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
7610e2794b0SRalf Baechle	select FW_ARC
7620e2794b0SRalf Baechle	select FW_ARC64
763e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
7645e83d430SRalf Baechle	select BOOT_ELF64
765e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
76604100459SChristoph Hellwig	select FORCE_PCI
76736a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
768eb01d42aSChristoph Hellwig	select HAVE_PCI
76969a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
770e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
771130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
772a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
773a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7747cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
775ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7765e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
777d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
7781a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
779256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
780930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7816c86a302SMike Rapoport	select NUMA
7821da177e4SLinus Torvalds	help
7831da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7841da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7851da177e4SLinus Torvalds	  here.
7861da177e4SLinus Torvalds
787e2defae5SThomas Bogendoerferconfig SGI_IP28
7887d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
789c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
79039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7910e2794b0SRalf Baechle	select FW_ARC
7920e2794b0SRalf Baechle	select FW_ARC64
7937a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
794e2defae5SThomas Bogendoerfer	select BOOT_ELF64
795e2defae5SThomas Bogendoerfer	select CEVT_R4K
796e2defae5SThomas Bogendoerfer	select CSRC_R4K
797e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
798e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
799e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
80067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8016630a8e5SChristoph Hellwig	select HAVE_EISA
802e2defae5SThomas Bogendoerfer	select I8253
803e2defae5SThomas Bogendoerfer	select I8259
804e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
805e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
8065b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
807e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
808e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
809e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
810e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
811e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
812c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
813e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
814e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
815256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
816dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
817e2defae5SThomas Bogendoerfer	help
818e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
819e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
820e2defae5SThomas Bogendoerfer
8217505576dSThomas Bogendoerferconfig SGI_IP30
8227505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
8237505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
8247505576dSThomas Bogendoerfer	select FW_ARC
8257505576dSThomas Bogendoerfer	select FW_ARC64
8267505576dSThomas Bogendoerfer	select BOOT_ELF64
8277505576dSThomas Bogendoerfer	select CEVT_R4K
8287505576dSThomas Bogendoerfer	select CSRC_R4K
82904100459SChristoph Hellwig	select FORCE_PCI
8307505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
8317505576dSThomas Bogendoerfer	select ZONE_DMA32
8327505576dSThomas Bogendoerfer	select HAVE_PCI
8337505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
8347505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
8357505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
8367505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
8377505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
8387505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8397505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
8407505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8417505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
842256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
8437505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
8447505576dSThomas Bogendoerfer	select ARC_MEMORY
8457505576dSThomas Bogendoerfer	help
8467505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
8477505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
8487505576dSThomas Bogendoerfer
8491da177e4SLinus Torvaldsconfig SGI_IP32
850cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
85139b2d756SThomas Bogendoerfer	select ARC_MEMORY
85239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
85303df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
8540e2794b0SRalf Baechle	select FW_ARC
8550e2794b0SRalf Baechle	select FW_ARC32
8561da177e4SLinus Torvalds	select BOOT_ELF32
85742f77542SRalf Baechle	select CEVT_R4K
858940f6b48SRalf Baechle	select CSRC_R4K
8591da177e4SLinus Torvalds	select DMA_NONCOHERENT
860eb01d42aSChristoph Hellwig	select HAVE_PCI
86167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8621da177e4SLinus Torvalds	select R5000_CPU_SCACHE
8631da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
8647cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
8657cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
8667cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
867dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
868ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
8695e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
870886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
8711da177e4SLinus Torvalds	help
8721da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8731da177e4SLinus Torvalds
8745e83d430SRalf Baechleconfig SIBYTE_CRHONE
8753fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
8765e83d430SRalf Baechle	select BOOT_ELF32
8775e83d430SRalf Baechle	select SIBYTE_BCM1125
8785e83d430SRalf Baechle	select SWAP_IO_SPACE
8797cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8805e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8815e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8825e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8835e83d430SRalf Baechle
884ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
885ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
886ade299d8SYoichi Yuasa	select BOOT_ELF32
88703452347SThomas Bogendoerfer	select SIBYTE_SB1250
888ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
889ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
890ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
891ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
892ade299d8SYoichi Yuasa
893ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
894ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
895ade299d8SYoichi Yuasa	select BOOT_ELF32
896fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
897ade299d8SYoichi Yuasa	select SIBYTE_SB1250
898ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
899ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
900ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
901ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
902ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
903cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
904e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
905ade299d8SYoichi Yuasa
906ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
907ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
908ade299d8SYoichi Yuasa	select BOOT_ELF32
909fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
910ade299d8SYoichi Yuasa	select SIBYTE_SB1250
911ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
912ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
913ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
914ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
915ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
916756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
917ade299d8SYoichi Yuasa
918ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
919ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
920ade299d8SYoichi Yuasa	select BOOT_ELF32
921ade299d8SYoichi Yuasa	select SIBYTE_SB1250
922ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
923ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
924ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
925ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
926e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
927ade299d8SYoichi Yuasa
928ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
929ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
930ade299d8SYoichi Yuasa	select BOOT_ELF32
931ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
932ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
933ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
934ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
935ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
936651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
937ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
938cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
939e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
940ade299d8SYoichi Yuasa
94114b36af4SThomas Bogendoerferconfig SNI_RM
94214b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
94339b2d756SThomas Bogendoerfer	select ARC_MEMORY
94439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
9450e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
9460e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
947aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
9485e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
949a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9507a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
9515e83d430SRalf Baechle	select BOOT_ELF32
95242f77542SRalf Baechle	select CEVT_R4K
953940f6b48SRalf Baechle	select CSRC_R4K
954e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9555e83d430SRalf Baechle	select DMA_NONCOHERENT
9565e83d430SRalf Baechle	select GENERIC_ISA_DMA
9576630a8e5SChristoph Hellwig	select HAVE_EISA
9588a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
959eb01d42aSChristoph Hellwig	select HAVE_PCI
96067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
961d865bea4SRalf Baechle	select I8253
9625e83d430SRalf Baechle	select I8259
9635e83d430SRalf Baechle	select ISA
964564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9654a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9667cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
9674a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
968c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
9694a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
97036a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
971ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
9727d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
9734a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
9745e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
9755e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
97644def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
9771da177e4SLinus Torvalds	help
97814b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
97914b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9805e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9815e83d430SRalf Baechle	  support this machine type.
9821da177e4SLinus Torvalds
983edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
984edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
98524a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
98623fbee9dSRalf Baechle
98773b4390fSRalf Baechleconfig MIKROTIK_RB532
98873b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
98973b4390fSRalf Baechle	select CEVT_R4K
99073b4390fSRalf Baechle	select CSRC_R4K
99173b4390fSRalf Baechle	select DMA_NONCOHERENT
992eb01d42aSChristoph Hellwig	select HAVE_PCI
99367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
99473b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
99573b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
99673b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
99773b4390fSRalf Baechle	select SWAP_IO_SPACE
99873b4390fSRalf Baechle	select BOOT_RAW
999d30a2b47SLinus Walleij	select GPIOLIB
1000930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
100173b4390fSRalf Baechle	help
100273b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
100373b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
100473b4390fSRalf Baechle
10059ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
10069ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
1007a86c7f72SDavid Daney	select CEVT_R4K
1008ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
10091753d50cSChristoph Hellwig	select HAVE_RAPIDIO
1010d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1011a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
1012a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
1013f65aad41SRalf Baechle	select EDAC_SUPPORT
1014b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
101573569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
101673569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
1017a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
10185e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
1019eb01d42aSChristoph Hellwig	select HAVE_PCI
102078bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
102178bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
102278bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
1023f00e001eSDavid Daney	select ZONE_DMA32
1024d30a2b47SLinus Walleij	select GPIOLIB
10256e511163SDavid Daney	select USE_OF
10266e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
10276e511163SDavid Daney	select SYS_SUPPORTS_SMP
10287820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
10297820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
1030e326479fSAndrew Bresticker	select BUILTIN_DTB
1031f766b28aSJulian Braha	select MTD
10328c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
103309230cbcSChristoph Hellwig	select SWIOTLB
10343ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
1035a86c7f72SDavid Daney	help
1036a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
1037a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
1038a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
1039a86c7f72SDavid Daney	  Some of the supported boards are:
1040a86c7f72SDavid Daney		EBT3000
1041a86c7f72SDavid Daney		EBH3000
1042a86c7f72SDavid Daney		EBH3100
1043a86c7f72SDavid Daney		Thunder
1044a86c7f72SDavid Daney		Kodama
1045a86c7f72SDavid Daney		Hikari
1046a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
1047a86c7f72SDavid Daney
10481da177e4SLinus Torvaldsendchoice
10491da177e4SLinus Torvalds
10509a88b338SMasahiro Yamadaconfig FIT_IMAGE_FDT_EPM5
10519a88b338SMasahiro Yamada	bool "Include FDT for Mobileye EyeQ5 development platforms"
10529a88b338SMasahiro Yamada	depends on MACH_EYEQ5
10539a88b338SMasahiro Yamada	default n
10549a88b338SMasahiro Yamada	help
10559a88b338SMasahiro Yamada	  Enable this to include the FDT for the EyeQ5 development platforms
10569a88b338SMasahiro Yamada	  from Mobileye in the FIT kernel image.
10579a88b338SMasahiro Yamada	  This requires u-boot on the platform.
10589a88b338SMasahiro Yamada
1059e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10603b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1061d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1062a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1063e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10648945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
106535fb26f9SCaleb James DeLislesource "arch/mips/econet/Kconfig"
1066eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
1067a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
10685e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10698ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
1070fbe0fae6SGregory CLEMENTsource "arch/mips/mobileye/Kconfig"
10712572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1072ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
107329c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
107438b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
107522b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
1076a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
107771e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
107830ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
107930ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
108038b18f72SRalf Baechle
10815e83d430SRalf Baechleendmenu
10825e83d430SRalf Baechle
10833c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10843c9ee7efSAkinobu Mita	bool
10853c9ee7efSAkinobu Mita	default y
10863c9ee7efSAkinobu Mita
10871da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10881da177e4SLinus Torvalds	bool
10891da177e4SLinus Torvalds	default y
10901da177e4SLinus Torvalds
1091ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10921cc89038SAtsushi Nemoto	bool
10931cc89038SAtsushi Nemoto	default y
10941cc89038SAtsushi Nemoto
10951da177e4SLinus Torvalds#
10961da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10971da177e4SLinus Torvalds#
10980e2794b0SRalf Baechleconfig FW_ARC
10991da177e4SLinus Torvalds	bool
11001da177e4SLinus Torvalds
110161ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
110261ed242dSRalf Baechle	bool
110361ed242dSRalf Baechle
11049267a30dSMarc St-Jeanconfig BOOT_RAW
11059267a30dSMarc St-Jean	bool
11069267a30dSMarc St-Jean
1107217dd11eSRalf Baechleconfig CEVT_BCM1480
1108217dd11eSRalf Baechle	bool
1109217dd11eSRalf Baechle
11106457d9fcSYoichi Yuasaconfig CEVT_DS1287
11116457d9fcSYoichi Yuasa	bool
11126457d9fcSYoichi Yuasa
11131097c6acSYoichi Yuasaconfig CEVT_GT641XX
11141097c6acSYoichi Yuasa	bool
11151097c6acSYoichi Yuasa
111642f77542SRalf Baechleconfig CEVT_R4K
111742f77542SRalf Baechle	bool
111842f77542SRalf Baechle
1119217dd11eSRalf Baechleconfig CEVT_SB1250
1120217dd11eSRalf Baechle	bool
1121217dd11eSRalf Baechle
1122229f773eSAtsushi Nemotoconfig CEVT_TXX9
1123229f773eSAtsushi Nemoto	bool
1124229f773eSAtsushi Nemoto
1125217dd11eSRalf Baechleconfig CSRC_BCM1480
1126217dd11eSRalf Baechle	bool
1127217dd11eSRalf Baechle
11284247417dSYoichi Yuasaconfig CSRC_IOASIC
11294247417dSYoichi Yuasa	bool
11304247417dSYoichi Yuasa
1131940f6b48SRalf Baechleconfig CSRC_R4K
113238586428SSerge Semin	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1133940f6b48SRalf Baechle	bool
1134940f6b48SRalf Baechle
1135217dd11eSRalf Baechleconfig CSRC_SB1250
1136217dd11eSRalf Baechle	bool
1137217dd11eSRalf Baechle
1138a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1139a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1140a7f4df4eSAlex Smith
1141a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1142d30a2b47SLinus Walleij	select GPIOLIB
1143a9aec7feSAtsushi Nemoto	bool
1144a9aec7feSAtsushi Nemoto
11450e2794b0SRalf Baechleconfig FW_CFE
1146df78b5c8SAurelien Jarno	bool
1147df78b5c8SAurelien Jarno
114840e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
1149f5748b8cSTiezhu Yang	def_bool y
115040e084a5SRalf Baechle
11511da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11521da177e4SLinus Torvalds	bool
1153db91427bSChristoph Hellwig	#
1154db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1155db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1156db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1157db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1158db91427bSChristoph Hellwig	# significant advantages.
1159db91427bSChristoph Hellwig	#
11606be87d61SJiaxun Yang	select ARCH_HAS_SETUP_DMA_OPS
1161419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1162fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1163e0b7fd12SJiaxun Yang	select ARCH_HAS_SYNC_DMA_FOR_CPU
1164f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1165fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
116634dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
116734dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11684ce588cdSRalf Baechle
116936a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11701da177e4SLinus Torvalds	bool
11711da177e4SLinus Torvalds
11721b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1173dbb74540SRalf Baechle	bool
1174dbb74540SRalf Baechle
11751da177e4SLinus Torvaldsconfig MIPS_BONITO64
11761da177e4SLinus Torvalds	bool
11771da177e4SLinus Torvalds
11781da177e4SLinus Torvaldsconfig MIPS_MSC
11791da177e4SLinus Torvalds	bool
11801da177e4SLinus Torvalds
118139b8d525SRalf Baechleconfig SYNC_R4K
118239b8d525SRalf Baechle	bool
118339b8d525SRalf Baechle
1184ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1185d388d685SMaciej W. Rozycki	def_bool n
1186d388d685SMaciej W. Rozycki
11874e0748f5SMarkos Chandrasconfig GENERIC_CSUM
118818d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11894e0748f5SMarkos Chandras
11908313da30SRalf Baechleconfig GENERIC_ISA_DMA
11918313da30SRalf Baechle	bool
11928313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1193a35bee8aSNamhyung Kim	select ISA_DMA_API
11948313da30SRalf Baechle
1195aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1196aa414dffSRalf Baechle	bool
11978313da30SRalf Baechle	select GENERIC_ISA_DMA
1198aa414dffSRalf Baechle
119978bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
120078bdbbacSMasahiro Yamada	bool
120178bdbbacSMasahiro Yamada
120278bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
120378bdbbacSMasahiro Yamada	bool
120478bdbbacSMasahiro Yamada
120578bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
120678bdbbacSMasahiro Yamada	bool
120778bdbbacSMasahiro Yamada
1208a35bee8aSNamhyung Kimconfig ISA_DMA_API
1209a35bee8aSNamhyung Kim	bool
1210a35bee8aSNamhyung Kim
12118c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
12128c530ea3SMatt Redfearn	bool
12138c530ea3SMatt Redfearn	help
12148c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
12158c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
12168c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
12178c530ea3SMatt Redfearn
12185e83d430SRalf Baechle#
12196b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
12205e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
12215e83d430SRalf Baechle# choice statement should be more obvious to the user.
12225e83d430SRalf Baechle#
12235e83d430SRalf Baechlechoice
12246b2aac42SMasanari Iida	prompt "Endianness selection"
12251da177e4SLinus Torvalds	help
12261da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
12275e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
12283cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
12295e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
12303dde6ad8SDavid Sterba	  one or the other endianness.
12315e83d430SRalf Baechle
12325e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
12335e83d430SRalf Baechle	bool "Big endian"
12345e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
12355e83d430SRalf Baechle
12365e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
12375e83d430SRalf Baechle	bool "Little endian"
12385e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
12395e83d430SRalf Baechle
12405e83d430SRalf Baechleendchoice
12415e83d430SRalf Baechle
124222b0763aSDavid Daneyconfig EXPORT_UASM
124322b0763aSDavid Daney	bool
124422b0763aSDavid Daney
12452116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12462116245eSRalf Baechle	bool
12472116245eSRalf Baechle
12485e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12495e83d430SRalf Baechle	bool
12505e83d430SRalf Baechle
12515e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12525e83d430SRalf Baechle	bool
12531da177e4SLinus Torvalds
1254aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1255aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1256aa1762f4SDavid Daney
12578420fd00SAtsushi Nemotoconfig IRQ_TXX9
12588420fd00SAtsushi Nemoto	bool
12598420fd00SAtsushi Nemoto
1260d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1261d5ab1a69SYoichi Yuasa	bool
1262d5ab1a69SYoichi Yuasa
1263252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12641da177e4SLinus Torvalds	bool
12651da177e4SLinus Torvalds
1266a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1267a57140e9SThomas Bogendoerfer	bool
1268a57140e9SThomas Bogendoerfer
12699267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12709267a30dSMarc St-Jean	bool
12719267a30dSMarc St-Jean
1272a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1273a7e07b1aSMarkos Chandras	bool
1274a7e07b1aSMarkos Chandras
12751da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12761da177e4SLinus Torvalds	bool
12771da177e4SLinus Torvalds
1278e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1279e2defae5SThomas Bogendoerfer	bool
1280e2defae5SThomas Bogendoerfer
12815b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12825b438c44SThomas Bogendoerfer	bool
12835b438c44SThomas Bogendoerfer
1284e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1285e2defae5SThomas Bogendoerfer	bool
1286e2defae5SThomas Bogendoerfer
1287e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1288e2defae5SThomas Bogendoerfer	bool
1289e2defae5SThomas Bogendoerfer
1290e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1291e2defae5SThomas Bogendoerfer	bool
1292e2defae5SThomas Bogendoerfer
1293e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1294e2defae5SThomas Bogendoerfer	bool
1295e2defae5SThomas Bogendoerfer
1296e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1297e2defae5SThomas Bogendoerfer	bool
1298e2defae5SThomas Bogendoerfer
12990e2794b0SRalf Baechleconfig FW_ARC32
13005e83d430SRalf Baechle	bool
13015e83d430SRalf Baechle
1302aaa9fad3SPaul Bolleconfig FW_SNIPROM
1303231a35d3SThomas Bogendoerfer	bool
1304231a35d3SThomas Bogendoerfer
13051da177e4SLinus Torvaldsconfig BOOT_ELF32
13061da177e4SLinus Torvalds	bool
13071da177e4SLinus Torvalds
1308930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1309930beb5aSFlorian Fainelli	bool
1310930beb5aSFlorian Fainelli
1311930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1312930beb5aSFlorian Fainelli	bool
1313930beb5aSFlorian Fainelli
1314930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1315930beb5aSFlorian Fainelli	bool
1316930beb5aSFlorian Fainelli
1317930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1318930beb5aSFlorian Fainelli	bool
1319930beb5aSFlorian Fainelli
13201da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
13211da177e4SLinus Torvalds	int
1322a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
13235432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
13245432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
13255432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
13261da177e4SLinus Torvalds	default "5"
13271da177e4SLinus Torvalds
1328e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1329e9422427SThomas Bogendoerfer	bool
1330e9422427SThomas Bogendoerfer
13311da177e4SLinus Torvaldsconfig ARC_CONSOLE
13321da177e4SLinus Torvalds	bool "ARC console support"
1333e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
13341da177e4SLinus Torvalds
13351da177e4SLinus Torvaldsconfig ARC_MEMORY
13361da177e4SLinus Torvalds	bool
13371da177e4SLinus Torvalds
13381da177e4SLinus Torvaldsconfig ARC_PROMLIB
13391da177e4SLinus Torvalds	bool
13401da177e4SLinus Torvalds
13410e2794b0SRalf Baechleconfig FW_ARC64
13421da177e4SLinus Torvalds	bool
13431da177e4SLinus Torvalds
13441da177e4SLinus Torvaldsconfig BOOT_ELF64
13451da177e4SLinus Torvalds	bool
13461da177e4SLinus Torvalds
13471da177e4SLinus Torvaldsmenu "CPU selection"
13481da177e4SLinus Torvalds
13491da177e4SLinus Torvaldschoice
13501da177e4SLinus Torvalds	prompt "CPU type"
13511da177e4SLinus Torvalds	default CPU_R4X00
13521da177e4SLinus Torvalds
1353268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1354caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1355268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1356d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
135751522217SJiaxun Yang	select CPU_MIPSR2
135851522217SJiaxun Yang	select CPU_HAS_PREFETCH
13590e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13600e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13610e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13627507445bSHuacai Chen	select CPU_SUPPORTS_MSA
1363a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
136451522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
136551522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
1366edc0378eSJiaxun Yang	select DMA_NONCOHERENT
13670e476d91SHuacai Chen	select WEAK_ORDERING
13680e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13697507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1370b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
137117c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
13727f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1373d30a2b47SLinus Walleij	select GPIOLIB
137409230cbcSChristoph Hellwig	select SWIOTLB
13750e476d91SHuacai Chen	help
1376caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1377caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1378caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1379caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1380caed1d1bSHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
13810e476d91SHuacai Chen
13823702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13833702bba5SWu Zhangjin	bool "Loongson 2E"
13843702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1385268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13862a21c730SFuxin Zhang	help
13872a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13882a21c730SFuxin Zhang	  with many extensions.
13892a21c730SFuxin Zhang
139025985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13916f7a251aSWu Zhangjin	  bonito64.
13926f7a251aSWu Zhangjin
13936f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13946f7a251aSWu Zhangjin	bool "Loongson 2F"
13956f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1396268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13976f7a251aSWu Zhangjin	help
13986f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13996f7a251aSWu Zhangjin	  with many extensions.
14006f7a251aSWu Zhangjin
14016f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
14026f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
14036f7a251aSWu Zhangjin	  Loongson2E.
14046f7a251aSWu Zhangjin
1405*85c43540SKeguang Zhangconfig CPU_LOONGSON32
1406*85c43540SKeguang Zhang	bool "Loongson 32-bit CPU"
1407*85c43540SKeguang Zhang	depends on SYS_HAS_CPU_LOONGSON32
1408*85c43540SKeguang Zhang	select CPU_MIPS32
1409*85c43540SKeguang Zhang	select CPU_MIPSR2
1410*85c43540SKeguang Zhang	select CPU_HAS_PREFETCH
1411*85c43540SKeguang Zhang	select CPU_HAS_LOAD_STORE_LR
1412*85c43540SKeguang Zhang	select CPU_SUPPORTS_32BIT_KERNEL
1413*85c43540SKeguang Zhang	select CPU_SUPPORTS_HIGHMEM
1414*85c43540SKeguang Zhang	select CPU_SUPPORTS_CPUFREQ
14159ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1416ca585cf9SKelvin Cheung	help
1417*85c43540SKeguang Zhang	  The Loongson GS232 microarchitecture implements the MIPS32 Release 1
1418*85c43540SKeguang Zhang	  instruction set and part of the MIPS32 Release 2 instruction set.
141912e3280bSYang Ling
14206e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14216e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14227cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14236e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1424797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1425ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14266e760c8dSRalf Baechle	help
14275e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14281e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14291e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14301e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14311e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14321e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14331e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14341e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14351e5f1caaSRalf Baechle	  performance.
14361e5f1caaSRalf Baechle
14371e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14381e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14397cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14401e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1441797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1442ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1443a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14441e5f1caaSRalf Baechle	help
14455e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14466e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14476e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14486e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14496e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14501da177e4SLinus Torvalds
1451ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1452ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1453ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1454ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1455ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1456ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1457ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1458a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1459ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1460ab7c01fdSSerge Semin	help
1461ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1462ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1463ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1464ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1465ab7c01fdSSerge Semin
14667fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1467674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14687fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14697fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
147018d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14717fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14727fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14737fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
1474a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
14757fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14767fd08ca5SLeonid Yegoshin	help
14777fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14787fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14797fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14807fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14817fd08ca5SLeonid Yegoshin
14826e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14836e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14847cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1485797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1486ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1487ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1488ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14899cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
14906e760c8dSRalf Baechle	help
14916e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14926e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14936e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14946e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14956e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14961e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14971e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14981e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14991e5f1caaSRalf Baechle	  performance.
15001e5f1caaSRalf Baechle
15011e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
15021e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
15037cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1504797798c1SRalf Baechle	select CPU_HAS_PREFETCH
15051e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
15061e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1507ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15089cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1509a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
15101e5f1caaSRalf Baechle	help
15111e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
15121e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15131e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15141e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15151e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15161da177e4SLinus Torvalds
1517ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1518ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1519ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1520ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1521ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1522ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1523ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1524ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1525ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1526ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1527a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1528ab7c01fdSSerge Semin	help
1529ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1530ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1531ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1532ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1533ab7c01fdSSerge Semin
15347fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1535674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15367fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15377fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
153818d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15397fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15407fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15417fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1542afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15437fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15442e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1545a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
15467fd08ca5SLeonid Yegoshin	help
15477fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15487fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15497fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15507fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15517fd08ca5SLeonid Yegoshin
1552281e3aeaSSerge Seminconfig CPU_P5600
1553281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1554281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1555281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1556281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1557281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1558281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1559281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1560a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1561281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1562281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1563281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1564281e3aeaSSerge Semin	help
1565281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1566281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1567281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1568281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1569281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1570281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1571281e3aeaSSerge Semin	  eJTAG and PDtrace.
1572281e3aeaSSerge Semin
15731da177e4SLinus Torvaldsconfig CPU_R3000
15741da177e4SLinus Torvalds	bool "R3000"
15757cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1576f7062ddbSRalf Baechle	select CPU_HAS_WB
157754746829SPaul Burton	select CPU_R3K_TLB
1578ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1579797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15801da177e4SLinus Torvalds	help
15811da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15821da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15831da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15841da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15851da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15861da177e4SLinus Torvalds	  try to recompile with R3000.
15871da177e4SLinus Torvalds
158865ce6197SLauri Kasanenconfig CPU_R4300
158965ce6197SLauri Kasanen	bool "R4300"
159065ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
159165ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
159265ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
159365ce6197SLauri Kasanen	help
159465ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
159565ce6197SLauri Kasanen
15961da177e4SLinus Torvaldsconfig CPU_R4X00
15971da177e4SLinus Torvalds	bool "R4x00"
15987cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1599ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1600ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1601970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16021da177e4SLinus Torvalds	help
16031da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
16041da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
16051da177e4SLinus Torvalds
16061da177e4SLinus Torvaldsconfig CPU_TX49XX
16071da177e4SLinus Torvalds	bool "R49XX"
16087cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1609de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1610ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1611ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1612970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16131da177e4SLinus Torvalds
16141da177e4SLinus Torvaldsconfig CPU_R5000
16151da177e4SLinus Torvalds	bool "R5000"
16167cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1617ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1618ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1619970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16201da177e4SLinus Torvalds	help
16211da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16221da177e4SLinus Torvalds
1623542c1020SShinya Kuribayashiconfig CPU_R5500
1624542c1020SShinya Kuribayashi	bool "R5500"
1625542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1626542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1627542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16289cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1629542c1020SShinya Kuribayashi	help
1630542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1631542c1020SShinya Kuribayashi	  instruction set.
1632542c1020SShinya Kuribayashi
16331da177e4SLinus Torvaldsconfig CPU_NEVADA
16341da177e4SLinus Torvalds	bool "RM52xx"
16357cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1636ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1637ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1638970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16391da177e4SLinus Torvalds	help
16401da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16411da177e4SLinus Torvalds
16421da177e4SLinus Torvaldsconfig CPU_R10000
16431da177e4SLinus Torvalds	bool "R10000"
16447cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16455e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1646ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1647ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1648797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1649970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16501da177e4SLinus Torvalds	help
16511da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16521da177e4SLinus Torvalds
16531da177e4SLinus Torvaldsconfig CPU_RM7000
16541da177e4SLinus Torvalds	bool "RM7000"
16557cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
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
16621da177e4SLinus Torvaldsconfig CPU_SB1
16631da177e4SLinus Torvalds	bool "SB1"
16647cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1665ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1666ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1667797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1668970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16690004a9dfSRalf Baechle	select WEAK_ORDERING
16701da177e4SLinus Torvalds
1671a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1672a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16735e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1674a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1675a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1676ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_8KB if !MIPS_VA_BITS_48
1677ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_32KB if !MIPS_VA_BITS_48
1678a86c7f72SDavid Daney	select WEAK_ORDERING
1679a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16809cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1681df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1682df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1683930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
1684a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1685a86c7f72SDavid Daney	help
1686a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1687a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1688a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1689a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1690a86c7f72SDavid Daney
1691cd746249SJonas Gorskiconfig CPU_BMIPS
1692cd746249SJonas Gorski	bool "Broadcom BMIPS"
1693cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1694cd746249SJonas Gorski	select CPU_MIPS32
1695fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1696cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1697cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1698cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1699cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1700cd746249SJonas Gorski	select DMA_NONCOHERENT
170167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1702cd746249SJonas Gorski	select SWAP_IO_SPACE
1703cd746249SJonas Gorski	select WEAK_ORDERING
1704c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
170569aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1706a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1707a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1708bf8bde41SFlorian Fainelli	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1709c1c0c461SKevin Cernekee	help
1710fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1711c1c0c461SKevin Cernekee
17121da177e4SLinus Torvaldsendchoice
17131da177e4SLinus Torvalds
17145033ad56SMasahiro Yamadaconfig LOONGSON3_ENHANCEMENT
17155033ad56SMasahiro Yamada	bool "New Loongson-3 CPU Enhancements"
17165033ad56SMasahiro Yamada	default n
17175033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17185033ad56SMasahiro Yamada	help
17195033ad56SMasahiro Yamada	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
17205033ad56SMasahiro Yamada	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
17215033ad56SMasahiro Yamada	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
17225033ad56SMasahiro Yamada	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
17235033ad56SMasahiro Yamada	  Fast TLB refill support, etc.
17245033ad56SMasahiro Yamada
17255033ad56SMasahiro Yamada	  This option enable those enhancements which are not probed at run
17265033ad56SMasahiro Yamada	  time. If you want a generic kernel to run on all Loongson 3 machines,
17275033ad56SMasahiro Yamada	  please say 'N' here. If you want a high-performance kernel to run on
17285033ad56SMasahiro Yamada	  new Loongson-3 machines only, please say 'Y' here.
17295033ad56SMasahiro Yamada
17305033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_WORKAROUNDS
17315033ad56SMasahiro Yamada	bool "Loongson-3 LLSC Workarounds"
17325033ad56SMasahiro Yamada	default y if SMP
17335033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17345033ad56SMasahiro Yamada	help
17355033ad56SMasahiro Yamada	  Loongson-3 processors have the llsc issues which require workarounds.
17365033ad56SMasahiro Yamada	  Without workarounds the system may hang unexpectedly.
17375033ad56SMasahiro Yamada
17385033ad56SMasahiro Yamada	  Say Y, unless you know what you are doing.
17395033ad56SMasahiro Yamada
17405033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_CPUCFG_EMULATION
17415033ad56SMasahiro Yamada	bool "Emulate the CPUCFG instruction on older Loongson cores"
17425033ad56SMasahiro Yamada	default y
17435033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17445033ad56SMasahiro Yamada	help
17455033ad56SMasahiro Yamada	  Loongson-3A R4 and newer have the CPUCFG instruction available for
17465033ad56SMasahiro Yamada	  userland to query CPU capabilities, much like CPUID on x86. This
17475033ad56SMasahiro Yamada	  option provides emulation of the instruction on older Loongson
17485033ad56SMasahiro Yamada	  cores, back to Loongson-3A1000.
17495033ad56SMasahiro Yamada
17505033ad56SMasahiro Yamada	  If unsure, please say Y.
17515033ad56SMasahiro Yamada
1752a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1753a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1754a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1755281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1756281e3aeaSSerge Semin		   CPU_P5600
1757a6e18781SLeonid Yegoshin	help
1758a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1759a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1760a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1761a6e18781SLeonid Yegoshin
1762a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1763a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1764a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1765a6e18781SLeonid Yegoshin	select EVA
1766a6e18781SLeonid Yegoshin	default y
1767a6e18781SLeonid Yegoshin	help
1768a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1769a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1770a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1771a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1772a6e18781SLeonid Yegoshin
1773c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1774c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1775c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1776281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1777c5b36783SSteven J. Hill	help
1778c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1779c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1780c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1781c5b36783SSteven J. Hill
1782c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1783c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1784c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1785c5b36783SSteven J. Hill	depends on !EVA
1786c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1787c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1788c5b36783SSteven J. Hill	select XPA
1789c5b36783SSteven J. Hill	select HIGHMEM
1790d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1791c5b36783SSteven J. Hill	default n
1792c5b36783SSteven J. Hill	help
1793c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1794c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1795c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1796c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1797c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1798c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1799c5b36783SSteven J. Hill
1800622844bfSWu Zhangjinif CPU_LOONGSON2F
1801622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1802622844bfSWu Zhangjin	bool
1803622844bfSWu Zhangjin
1804622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1805622844bfSWu Zhangjin	bool
1806622844bfSWu Zhangjin
1807622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1808622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1809622844bfSWu Zhangjin	default y
1810622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1811622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1812622844bfSWu Zhangjin	help
1813622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1814622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1815622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1816622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1817622844bfSWu Zhangjin
1818622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1819622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1820622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1821622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1822622844bfSWu Zhangjin	  systems.
1823622844bfSWu Zhangjin
1824622844bfSWu Zhangjin	  If unsure, please say Y.
1825622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1826622844bfSWu Zhangjin
18271b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
18281b93b3c3SWu Zhangjin	bool
18291b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
18301b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
183131c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
18321b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1833fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
18344e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1835a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
18361b93b3c3SWu Zhangjin
18371b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18381b93b3c3SWu Zhangjin	bool
18391b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
18401b93b3c3SWu Zhangjin
1841dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1842dbb98314SAlban Bedel	bool
1843dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1844dbb98314SAlban Bedel
1845268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
18463702bba5SWu Zhangjin	bool
18473702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18483702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18493702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1850970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
185101557e34SMateusz Jończyk	select RTC_MC146818_LIB
18523702bba5SWu Zhangjin
1853fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
185404fa8bf7SJonas Gorski	select SMP_UP if SMP
18551bbb6c1bSKevin Cernekee	bool
1856cd746249SJonas Gorski
1857cd746249SJonas Gorskiconfig CPU_BMIPS4350
1858cd746249SJonas Gorski	bool
1859cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1860cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1861cd746249SJonas Gorski
1862cd746249SJonas Gorskiconfig CPU_BMIPS4380
1863cd746249SJonas Gorski	bool
1864bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1865cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1866cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1867b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1868cd746249SJonas Gorski
1869cd746249SJonas Gorskiconfig CPU_BMIPS5000
1870cd746249SJonas Gorski	bool
1871cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1872bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1873cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1874cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1875b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18761bbb6c1bSKevin Cernekee
1877268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
18780e476d91SHuacai Chen	bool
18790e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1880b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18810e476d91SHuacai Chen
18823702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18832a21c730SFuxin Zhang	bool
18842a21c730SFuxin Zhang
18856f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18866f7a251aSWu Zhangjin	bool
188755045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
188855045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18896f7a251aSWu Zhangjin
1890*85c43540SKeguang Zhangconfig SYS_HAS_CPU_LOONGSON32
189112e3280bSYang Ling	bool
189212e3280bSYang Ling
18937cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18947cf8053bSRalf Baechle	bool
18957cf8053bSRalf Baechle
18967cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18977cf8053bSRalf Baechle	bool
18987cf8053bSRalf Baechle
1899a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1900a6e18781SLeonid Yegoshin	bool
1901a6e18781SLeonid Yegoshin
1902c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1903c5b36783SSteven J. Hill	bool
1904c5b36783SSteven J. Hill
19057fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
19067fd08ca5SLeonid Yegoshin	bool
19077fd08ca5SLeonid Yegoshin
19087cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
19097cf8053bSRalf Baechle	bool
19107cf8053bSRalf Baechle
19117cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
19127cf8053bSRalf Baechle	bool
19137cf8053bSRalf Baechle
1914fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1915fd4eb90bSLukas Bulwahn	bool
1916fd4eb90bSLukas Bulwahn
19177fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19187fd08ca5SLeonid Yegoshin	bool
19197fd08ca5SLeonid Yegoshin
1920281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1921281e3aeaSSerge Semin	bool
1922281e3aeaSSerge Semin
19237cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19247cf8053bSRalf Baechle	bool
19257cf8053bSRalf Baechle
192665ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
192765ce6197SLauri Kasanen	bool
192865ce6197SLauri Kasanen
19297cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19307cf8053bSRalf Baechle	bool
19317cf8053bSRalf Baechle
19327cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19337cf8053bSRalf Baechle	bool
19347cf8053bSRalf Baechle
19357cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19367cf8053bSRalf Baechle	bool
19377cf8053bSRalf Baechle
1938542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1939542c1020SShinya Kuribayashi	bool
1940542c1020SShinya Kuribayashi
19417cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19427cf8053bSRalf Baechle	bool
19437cf8053bSRalf Baechle
19447cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19457cf8053bSRalf Baechle	bool
19467cf8053bSRalf Baechle
19477cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19487cf8053bSRalf Baechle	bool
19497cf8053bSRalf Baechle
19507cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19517cf8053bSRalf Baechle	bool
19527cf8053bSRalf Baechle
19535e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19545e683389SDavid Daney	bool
19555e683389SDavid Daney
1956cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1957c1c0c461SKevin Cernekee	bool
1958c1c0c461SKevin Cernekee
1959fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1960c1c0c461SKevin Cernekee	bool
1961cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1962c1c0c461SKevin Cernekee
1963c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1964c1c0c461SKevin Cernekee	bool
1965cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1966c1c0c461SKevin Cernekee
1967c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1968c1c0c461SKevin Cernekee	bool
1969cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1970c1c0c461SKevin Cernekee
1971c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1972c1c0c461SKevin Cernekee	bool
1973cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1974c1c0c461SKevin Cernekee
197517099b11SRalf Baechle#
197617099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
197717099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
197817099b11SRalf Baechle#
19790004a9dfSRalf Baechleconfig WEAK_ORDERING
19800004a9dfSRalf Baechle	bool
198117099b11SRalf Baechle
198217099b11SRalf Baechle#
198317099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
198417099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
198517099b11SRalf Baechle#
198617099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
198717099b11SRalf Baechle	bool
19885e83d430SRalf Baechleendmenu
19895e83d430SRalf Baechle
19905e83d430SRalf Baechle#
19915e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19925e83d430SRalf Baechle#
19935e83d430SRalf Baechleconfig CPU_MIPS32
19945e83d430SRalf Baechle	bool
1995ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1996281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
19975e83d430SRalf Baechle
19985e83d430SRalf Baechleconfig CPU_MIPS64
19995e83d430SRalf Baechle	bool
2000ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
20015a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
20025e83d430SRalf Baechle
20035e83d430SRalf Baechle#
200457eeacedSPaul Burton# These indicate the revision of the architecture
20055e83d430SRalf Baechle#
20065e83d430SRalf Baechleconfig CPU_MIPSR1
20075e83d430SRalf Baechle	bool
20085e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
20095e83d430SRalf Baechle
20105e83d430SRalf Baechleconfig CPU_MIPSR2
20115e83d430SRalf Baechle	bool
2012a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20138256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2014ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2015a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20165e83d430SRalf Baechle
2017ab7c01fdSSerge Seminconfig CPU_MIPSR5
2018ab7c01fdSSerge Semin	bool
2019281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2020ab7c01fdSSerge Semin	select CPU_HAS_RIXI
2021ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2022ab7c01fdSSerge Semin	select MIPS_SPRAM
2023ab7c01fdSSerge Semin
20247fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20257fd08ca5SLeonid Yegoshin	bool
20267fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20278256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2028ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
202987321fddSPaul Burton	select HAVE_ARCH_BITREVERSE
20302db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
2031a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20325e83d430SRalf Baechle
203357eeacedSPaul Burtonconfig TARGET_ISA_REV
203457eeacedSPaul Burton	int
203557eeacedSPaul Burton	default 1 if CPU_MIPSR1
203657eeacedSPaul Burton	default 2 if CPU_MIPSR2
2037ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
203857eeacedSPaul Burton	default 6 if CPU_MIPSR6
203957eeacedSPaul Burton	default 0
204057eeacedSPaul Burton	help
204157eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
204257eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
204357eeacedSPaul Burton
2044a6e18781SLeonid Yegoshinconfig EVA
2045a6e18781SLeonid Yegoshin	bool
2046a6e18781SLeonid Yegoshin
2047c5b36783SSteven J. Hillconfig XPA
2048c5b36783SSteven J. Hill	bool
2049c5b36783SSteven J. Hill
20505e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20515e83d430SRalf Baechle	bool
20525e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20535e83d430SRalf Baechle	bool
20545e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20555e83d430SRalf Baechle	bool
20565e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20575e83d430SRalf Baechle	bool
205855045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
205955045ff5SWu Zhangjin	bool
206055045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
206155045ff5SWu Zhangjin	bool
20629cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20639cffd154SDavid Daney	bool
2064a670c82dSLukas Bulwahn	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
2065a6d54338SPaolo Bonziniconfig CPU_SUPPORTS_VZ
2066a6d54338SPaolo Bonzini	bool
206782622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
206882622284SDavid Daney	bool
2069c6972fb9SHuang Pei	depends on 64BIT
207095b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20715e83d430SRalf Baechle
20728192c9eaSDavid Daney#
20738192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20748192c9eaSDavid Daney#
20758192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20768192c9eaSDavid Daney	bool
2077679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20788192c9eaSDavid Daney
20795e83d430SRalf Baechlemenu "Kernel type"
20805e83d430SRalf Baechle
20815e83d430SRalf Baechlechoice
20825e83d430SRalf Baechle	prompt "Kernel code model"
20835e83d430SRalf Baechle	help
20845e83d430SRalf Baechle	  You should only select this option if you have a workload that
20855e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20865e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20875e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20885e83d430SRalf Baechle
20895e83d430SRalf Baechleconfig 32BIT
20905e83d430SRalf Baechle	bool "32-bit kernel"
20915e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20925e83d430SRalf Baechle	select TRAD_SIGNALS
20935e83d430SRalf Baechle	help
20945e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2095f17c4ca3SRalf Baechle
20965e83d430SRalf Baechleconfig 64BIT
20975e83d430SRalf Baechle	bool "64-bit kernel"
20985e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
20995e83d430SRalf Baechle	help
21005e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
21015e83d430SRalf Baechle
21025e83d430SRalf Baechleendchoice
21035e83d430SRalf Baechle
21041e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
21051e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
21061e321fa9SLeonid Yegoshin	depends on 64BIT
21071e321fa9SLeonid Yegoshin	help
21083377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
21093377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
21103377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
21113377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
21123377e227SAlex Belits	  level of page tables is added which imposes both a memory
21133377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21143377e227SAlex Belits
21151e321fa9SLeonid Yegoshin	  If unsure, say N.
21161e321fa9SLeonid Yegoshin
211779876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
211879876cc1SYunQiang Su	hex "Compressed kernel load address"
211979876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
212079876cc1SYunQiang Su	default 0x0
212179876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
212279876cc1SYunQiang Su	help
212379876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
212479876cc1SYunQiang Su
212579876cc1SYunQiang Su	  This is only used if non-zero.
212679876cc1SYunQiang Su
21270192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2128c9bace7cSDavid Daney	int "Maximum zone order"
212923baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
213023baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
213123baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
213223baf831SKirill A. Shutemov	default "10"
2133c9bace7cSDavid Daney	help
2134c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2135c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2136c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2137c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2138c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2139c9bace7cSDavid Daney	  increase this value.
2140c9bace7cSDavid Daney
2141c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2142c9bace7cSDavid Daney	  when choosing a value for this option.
2143c9bace7cSDavid Daney
21441da177e4SLinus Torvaldsconfig BOARD_SCACHE
21451da177e4SLinus Torvalds	bool
21461da177e4SLinus Torvalds
21471da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21481da177e4SLinus Torvalds	bool
21491da177e4SLinus Torvalds	select BOARD_SCACHE
21501da177e4SLinus Torvalds
21519318c51aSChris Dearman#
21529318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21539318c51aSChris Dearman#
21549318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21559318c51aSChris Dearman	bool
21569318c51aSChris Dearman	select BOARD_SCACHE
21579318c51aSChris Dearman
21581da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21591da177e4SLinus Torvalds	bool
21601da177e4SLinus Torvalds	select BOARD_SCACHE
21611da177e4SLinus Torvalds
21621da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21631da177e4SLinus Torvalds	bool
21641da177e4SLinus Torvalds	select BOARD_SCACHE
21651da177e4SLinus Torvalds
21661da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21671da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21681da177e4SLinus Torvalds	depends on CPU_SB1
21691da177e4SLinus Torvalds	help
21701da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21711da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21721da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21731da177e4SLinus Torvalds
21741da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2175c8094b53SRalf Baechle	bool
21761da177e4SLinus Torvalds
21773165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
21783165c846SFlorian Fainelli	bool
2179455481fcSThomas Bogendoerfer	default y if !CPU_R3000
21803165c846SFlorian Fainelli
2181c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2182183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2183183b40f9SPaul Burton	default y
2184183b40f9SPaul Burton	help
2185183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2186183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2187183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2188183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2189183b40f9SPaul Burton	  receive a SIGILL.
2190183b40f9SPaul Burton
2191183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2192183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2193183b40f9SPaul Burton
2194183b40f9SPaul Burton	  If unsure, say y.
2195c92e47e5SPaul Burton
219697f7dcbfSPaul Burtonconfig CPU_R2300_FPU
219797f7dcbfSPaul Burton	bool
2198c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2199455481fcSThomas Bogendoerfer	default y if CPU_R3000
220097f7dcbfSPaul Burton
220154746829SPaul Burtonconfig CPU_R3K_TLB
220254746829SPaul Burton	bool
220354746829SPaul Burton
220491405eb6SFlorian Fainelliconfig CPU_R4K_FPU
220591405eb6SFlorian Fainelli	bool
2206c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
220797f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
220891405eb6SFlorian Fainelli
220962cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
221062cedc4fSFlorian Fainelli	bool
221154746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
221262cedc4fSFlorian Fainelli
221359d6ab86SRalf Baechleconfig MIPS_MT_SMP
2214a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
22155cbf9688SPaul Burton	default y
221674efddadSJiaxun Yang	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
221774efddadSJiaxun Yang	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
221859d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2219d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2220c080faa5SSteven J. Hill	select SYNC_R4K
222159d6ab86SRalf Baechle	select MIPS_MT
222259d6ab86SRalf Baechle	select SMP
222387353d8aSRalf Baechle	select SMP_UP
2224c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
22257bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT
2226399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
222759d6ab86SRalf Baechle	help
2228c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2229c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2230c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2231c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2232c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
223359d6ab86SRalf Baechle
2234f41ae0b2SRalf Baechleconfig MIPS_MT
2235f41ae0b2SRalf Baechle	bool
2236f41ae0b2SRalf Baechle
2237f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2238f41ae0b2SRalf Baechle	bool
2239f41ae0b2SRalf Baechle
2240f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2241f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2242f088fc84SRalf Baechle	default y
2243b633648cSRalf Baechle	depends on MIPS_MT_SMP
224407cc0c9eSRalf Baechle
2245b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2246b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
22479eaa9a82SPaul Burton	depends on CPU_MIPSR6
2248c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2249b0a668fbSLeonid Yegoshin	default y
2250b0a668fbSLeonid Yegoshin	help
2251b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2252b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
225307edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2254b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2255b0a668fbSLeonid Yegoshin	  final kernel image.
2256b0a668fbSLeonid Yegoshin
2257f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2258f35764e7SJames Hogan	bool
2259f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2260f35764e7SJames Hogan	help
2261f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2262f35764e7SJames Hogan	  physical_memsize.
2263f35764e7SJames Hogan
226407cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
226507cc0c9eSRalf Baechle	bool "VPE loader support."
2266f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
226707cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
226807cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
226907cc0c9eSRalf Baechle	select MIPS_MT
227007cc0c9eSRalf Baechle	help
227107cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
227207cc0c9eSRalf Baechle	  onto another VPE and running it.
2273f088fc84SRalf Baechle
22741a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22751a2a6d7eSDeng-Cheng Zhu	bool
22761a2a6d7eSDeng-Cheng Zhu	default "y"
22777fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_LOADER
22781a2a6d7eSDeng-Cheng Zhu
2279e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2280e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2281e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2282e01402b1SRalf Baechle	default y
2283e01402b1SRalf Baechle	help
2284e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2285e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2286e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2287e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2288e01402b1SRalf Baechle
2289e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2290e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2291e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2292e01402b1SRalf Baechle
22932c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
22942c973ef0SDeng-Cheng Zhu	bool
22952c973ef0SDeng-Cheng Zhu	default "y"
22967fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_APSP_API
22975cac93b3SPaul Burton
22980ee958e1SPaul Burtonconfig MIPS_CPS
22990ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
23005a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
23010ee958e1SPaul Burton	select MIPS_CM
23021d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
23030ee958e1SPaul Burton	select SMP
230476c43eb5SGregory CLEMENT	select HOTPLUG_SMT if HOTPLUG_PARALLEL
2305c8d2bcc4SThomas Gleixner	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
23060ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
23071d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
23087bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT if CPU_MIPSR6
23090ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
23100ee958e1SPaul Burton	select WEAK_ORDERING
2311d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
23120ee958e1SPaul Burton	help
23130ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
23140ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23150ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23160ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23170ee958e1SPaul Burton	  support is unavailable.
23180ee958e1SPaul Burton
23193179d37eSPaul Burtonconfig MIPS_CPS_PM
232039a59593SMarkos Chandras	depends on MIPS_CPS
23213179d37eSPaul Burton	bool
23223179d37eSPaul Burton
23239f98f3ddSPaul Burtonconfig MIPS_CM
23249f98f3ddSPaul Burton	bool
23253c9b4166SPaul Burton	select MIPS_CPC
23269f98f3ddSPaul Burton
23279c38cf44SPaul Burtonconfig MIPS_CPC
23289c38cf44SPaul Burton	bool
23294a16ff4cSRalf Baechle
23301da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23311da177e4SLinus Torvalds	bool
23321da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23331da177e4SLinus Torvalds	default y
23341da177e4SLinus Torvalds
23351da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23361da177e4SLinus Torvalds	bool
23371da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23381da177e4SLinus Torvalds	default y
23391da177e4SLinus Torvalds
23409e2b5372SMarkos Chandraschoice
23419e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23429e2b5372SMarkos Chandras
23439e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23449e2b5372SMarkos Chandras	bool "None"
23459e2b5372SMarkos Chandras	help
23469e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23479e2b5372SMarkos Chandras
23489693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23499693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
23509e2b5372SMarkos Chandras	bool "SmartMIPS"
23519693a853SFranck Bui-Huu	help
23529693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23539693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23549693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23559693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23569693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23579693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23589693a853SFranck Bui-Huu	  here.
23599693a853SFranck Bui-Huu
2360bce86083SSteven J. Hillconfig CPU_MICROMIPS
23617fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
23629e2b5372SMarkos Chandras	bool "microMIPS"
2363bce86083SSteven J. Hill	help
2364bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2365bce86083SSteven J. Hill	  microMIPS ISA
2366bce86083SSteven J. Hill
23679e2b5372SMarkos Chandrasendchoice
23689e2b5372SMarkos Chandras
2369a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
23700ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2371a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2372c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
23732a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2374a5e9a69eSPaul Burton	help
2375a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2376a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23771db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23781db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23791db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23801db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
23811db1af84SPaul Burton	  the size & complexity of your kernel.
2382a5e9a69eSPaul Burton
2383a5e9a69eSPaul Burton	  If unsure, say Y.
2384a5e9a69eSPaul Burton
23851da177e4SLinus Torvaldsconfig CPU_HAS_WB
2386f7062ddbSRalf Baechle	bool
2387e01402b1SRalf Baechle
2388df0ac8a4SKevin Cernekeeconfig XKS01
2389df0ac8a4SKevin Cernekee	bool
2390df0ac8a4SKevin Cernekee
2391ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2392ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2393ba9196d2SJiaxun Yang	bool
2394ba9196d2SJiaxun Yang
2395ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2396ba9196d2SJiaxun Yang	bool
2397ba9196d2SJiaxun Yang
23988256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
23998256b17eSFlorian Fainelli	bool
24008256b17eSFlorian Fainelli
240118d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2402932afdeeSYasha Cherikovsky	bool
2403932afdeeSYasha Cherikovsky	help
240418d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2405932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
240618d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
240718d84e2eSAlexander Lobakin	  systems).
2408932afdeeSYasha Cherikovsky
2409f41ae0b2SRalf Baechle#
2410f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2411f41ae0b2SRalf Baechle#
2412e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2413f41ae0b2SRalf Baechle	bool
2414e01402b1SRalf Baechle
2415f41ae0b2SRalf Baechle#
2416f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2417f41ae0b2SRalf Baechle#
2418e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2419f41ae0b2SRalf Baechle	bool
2420e01402b1SRalf Baechle
24211da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24221da177e4SLinus Torvalds	bool
24231da177e4SLinus Torvalds	depends on !CPU_R3000
24241da177e4SLinus Torvalds	default y
24251da177e4SLinus Torvalds
24261da177e4SLinus Torvalds#
242720d60d99SMaciej W. Rozycki# CPU non-features
242820d60d99SMaciej W. Rozycki#
2429b56d1cafSThomas Bogendoerfer
2430b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2431b56d1cafSThomas Bogendoerfer#
2432b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2433b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2434b56d1cafSThomas Bogendoerfer#   erratum #23
2435b56d1cafSThomas Bogendoerfer#
2436b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2437b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2438b56d1cafSThomas Bogendoerfer#   erratum #41
2439b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2440b56d1cafSThomas Bogendoerfer#   #15
2441b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2442b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
244320d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
244420d60d99SMaciej W. Rozycki	bool
244520d60d99SMaciej W. Rozycki
2446b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2447b56d1cafSThomas Bogendoerfer#
2448b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2449b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2450b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2451b56d1cafSThomas Bogendoerfer#   erratum #28
2452b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2453b56d1cafSThomas Bogendoerfer#   #19
2454b56d1cafSThomas Bogendoerfer#
2455b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2456b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2457b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2458b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2459b56d1cafSThomas Bogendoerfer#
2460b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2461b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2462b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2463b56d1cafSThomas Bogendoerfer#   erratum #52
246420d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
246520d60d99SMaciej W. Rozycki	bool
246620d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
246720d60d99SMaciej W. Rozycki
2468b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2469b56d1cafSThomas Bogendoerfer#
2470b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2471b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2472b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2473b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
247420d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
247520d60d99SMaciej W. Rozycki	bool
247620d60d99SMaciej W. Rozycki
2477071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2478071d2f0bSPaul Burton	bool
2479071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2480071d2f0bSPaul Burton
24814edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
24824edf00a4SPaul Burton	int
2483455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24844edf00a4SPaul Burton	default 0
24854edf00a4SPaul Burton
24864edf00a4SPaul Burtonconfig MIPS_ASID_BITS
24874edf00a4SPaul Burton	int
24882db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
2489455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24904edf00a4SPaul Burton	default 8
24914edf00a4SPaul Burton
24922db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
24932db003a5SPaul Burton	bool
24942db003a5SPaul Burton
2495802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2496802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2497802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2498802b8362SThomas Bogendoerfer# with the issue.
2499802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2500802b8362SThomas Bogendoerfer	bool
2501802b8362SThomas Bogendoerfer
25025e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
25035e5b6527SThomas Bogendoerfer#
25045e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
25055e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
25065e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
250718ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
25085e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
25095e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
25105e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
25115e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
25125e5b6527SThomas Bogendoerfer#      instruction.
25135e5b6527SThomas Bogendoerfer#
25145e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25155e5b6527SThomas Bogendoerfer#                              nop
25165e5b6527SThomas Bogendoerfer#                              nop
25175e5b6527SThomas Bogendoerfer#                              nop
25185e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25195e5b6527SThomas Bogendoerfer#
25205e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25215e5b6527SThomas Bogendoerfer#                              nop
25225e5b6527SThomas Bogendoerfer#                              nop
25235e5b6527SThomas Bogendoerfer#                              nop
25245e5b6527SThomas Bogendoerfer#                              nop
25255e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25265e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25275e5b6527SThomas Bogendoerfer	bool
25285e5b6527SThomas Bogendoerfer
252944def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
253044def342SThomas Bogendoerfer#
253144def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
253244def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
253344def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
253444def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
253544def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
253644def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
253744def342SThomas Bogendoerfer# in .pdf format.)
253844def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
253944def342SThomas Bogendoerfer	bool
254044def342SThomas Bogendoerfer
254124a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
254224a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
254324a1c023SThomas Bogendoerfer# operation is not guaranteed."
254424a1c023SThomas Bogendoerfer#
254524a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
254624a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
254724a1c023SThomas Bogendoerfer	bool
254824a1c023SThomas Bogendoerfer
2549886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2550886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2551886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2552886ee136SThomas Bogendoerfer# exceptions.
2553886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2554886ee136SThomas Bogendoerfer	bool
2555886ee136SThomas Bogendoerfer
2556256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2557256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2558256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2559256ec489SThomas Bogendoerfer	bool
2560256ec489SThomas Bogendoerfer
2561a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2562a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2563a7fbed98SThomas Bogendoerfer	bool
2564a7fbed98SThomas Bogendoerfer
256520d60d99SMaciej W. Rozycki#
25661da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25671da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25681da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25691da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25701da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25711da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25721da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25731da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2574797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2575797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2576797798c1SRalf Baechle#   support.
25771da177e4SLinus Torvalds#
25781da177e4SLinus Torvaldsconfig HIGHMEM
25791da177e4SLinus Torvalds	bool "High Memory Support"
2580a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2581a4c33e83SThomas Gleixner	select KMAP_LOCAL
2582797798c1SRalf Baechle
2583797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2584797798c1SRalf Baechle	bool
2585797798c1SRalf Baechle
2586797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2587797798c1SRalf Baechle	bool
25881da177e4SLinus Torvalds
25899693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25909693a853SFranck Bui-Huu	bool
25919693a853SFranck Bui-Huu
2592a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2593a6a4834cSSteven J. Hill	bool
2594a6a4834cSSteven J. Hill
2595377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2596377cb1b6SRalf Baechle	bool
2597377cb1b6SRalf Baechle	help
2598377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2599377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2600377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2601377cb1b6SRalf Baechle
2602a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2603a5e9a69eSPaul Burton	bool
2604a5e9a69eSPaul Burton
2605b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2606b4819b59SYoichi Yuasa	def_bool y
2607268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2608b4819b59SYoichi Yuasa
2609b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2610b1c6cd42SAtsushi Nemoto	bool
261131473747SAtsushi Nemoto
2612d8cb4e11SRalf Baechleconfig NUMA
2613d8cb4e11SRalf Baechle	bool "NUMA Support"
2614d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2615cf8194e4STiezhu Yang	select SMP
26167ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
26177ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2618d8cb4e11SRalf Baechle	help
2619d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2620d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2621d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2622172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2623d8cb4e11SRalf Baechle	  disabled.
2624d8cb4e11SRalf Baechle
2625d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2626d8cb4e11SRalf Baechle	bool
2627d8cb4e11SRalf Baechle
26288c530ea3SMatt Redfearnconfig RELOCATABLE
26298c530ea3SMatt Redfearn	bool "Relocatable kernel"
2630ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2631ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2632ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2633ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2634a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2635a307a4ceSJinyang He		   CPU_LOONGSON64
26369b400d17SArd Biesheuvel	select ARCH_VMLINUX_NEEDS_RELOCS
26378c530ea3SMatt Redfearn	help
26388c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26398c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26408c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26418c530ea3SMatt Redfearn	  but are discarded at runtime
26428c530ea3SMatt Redfearn
2643069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2644069fd766SMatt Redfearn	hex "Relocation table size"
2645069fd766SMatt Redfearn	depends on RELOCATABLE
2646069fd766SMatt Redfearn	range 0x0 0x01000000
2647a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2648069fd766SMatt Redfearn	default "0x00100000"
2649a7f7f624SMasahiro Yamada	help
2650069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2651069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2652069fd766SMatt Redfearn
2653069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2654069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2655069fd766SMatt Redfearn
2656069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2657069fd766SMatt Redfearn
2658069fd766SMatt Redfearn	  If unsure, leave at the default value.
2659069fd766SMatt Redfearn
2660405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2661405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2662405bc8fdSMatt Redfearn	depends on RELOCATABLE
2663a7f7f624SMasahiro Yamada	help
2664405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2665405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2666405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2667405bc8fdSMatt Redfearn	  of kernel internals.
2668405bc8fdSMatt Redfearn
2669405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2670405bc8fdSMatt Redfearn
2671405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2672405bc8fdSMatt Redfearn
2673405bc8fdSMatt Redfearn	  If unsure, say N.
2674405bc8fdSMatt Redfearn
2675405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2676405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2677405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2678405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2679405bc8fdSMatt Redfearn	range 0x0 0x08000000
2680405bc8fdSMatt Redfearn	default "0x01000000"
2681a7f7f624SMasahiro Yamada	help
2682405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2683405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2684405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2685405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2686405bc8fdSMatt Redfearn
2687405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2688405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2689405bc8fdSMatt Redfearn
2690c80d79d7SYasunori Gotoconfig NODES_SHIFT
2691c80d79d7SYasunori Goto	int
2692c80d79d7SYasunori Goto	default "6"
2693a9ee6cf5SMike Rapoport	depends on NUMA
2694c80d79d7SYasunori Goto
269514f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
269614f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
269795b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
269814f70012SDeng-Cheng Zhu	default y
269914f70012SDeng-Cheng Zhu	help
270014f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
270114f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
270214f70012SDeng-Cheng Zhu
2703be8fa1cbSTiezhu Yangconfig DMI
2704be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2705be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2706be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2707be8fa1cbSTiezhu Yang	default y
2708be8fa1cbSTiezhu Yang	help
2709be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2710be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2711be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2712be8fa1cbSTiezhu Yang	  BIOS code.
2713be8fa1cbSTiezhu Yang
27141da177e4SLinus Torvaldsconfig SMP
27151da177e4SLinus Torvalds	bool "Multi-Processing support"
2716e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2717e73ea273SRalf Baechle	help
27181da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27194a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27204a474157SRobert Graffham	  than one CPU, say Y.
27211da177e4SLinus Torvalds
27224a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27231da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27241da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27254a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27261da177e4SLinus Torvalds	  will run faster if you say N here.
27271da177e4SLinus Torvalds
27281da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27291da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27301da177e4SLinus Torvalds
273103502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2732ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27331da177e4SLinus Torvalds
27341da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27351da177e4SLinus Torvalds
27367840d618SMatt Redfearnconfig HOTPLUG_CPU
27377840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27387840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27397840d618SMatt Redfearn	help
27407840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27417840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27427840d618SMatt Redfearn	  (Note: power management support will enable this option
27437840d618SMatt Redfearn	    automatically on SMP systems. )
27447840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
27457840d618SMatt Redfearn
274687353d8aSRalf Baechleconfig SMP_UP
274787353d8aSRalf Baechle	bool
274887353d8aSRalf Baechle
27490ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27500ee958e1SPaul Burton	bool
27510ee958e1SPaul Burton
2752e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2753e73ea273SRalf Baechle	bool
2754e73ea273SRalf Baechle
2755130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2756130e2fb7SRalf Baechle	bool
2757130e2fb7SRalf Baechle
2758130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2759130e2fb7SRalf Baechle	bool
2760130e2fb7SRalf Baechle
2761130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2762130e2fb7SRalf Baechle	bool
2763130e2fb7SRalf Baechle
2764130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2765130e2fb7SRalf Baechle	bool
2766130e2fb7SRalf Baechle
2767130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2768130e2fb7SRalf Baechle	bool
2769130e2fb7SRalf Baechle
27701da177e4SLinus Torvaldsconfig NR_CPUS
2771a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2772a91796a9SJayachandran C	range 2 256
27731da177e4SLinus Torvalds	depends on SMP
2774130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2775130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2776130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2777130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2778130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27791da177e4SLinus Torvalds	help
27801da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27811da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27821da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
278372ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
278472ede9b1SAtsushi Nemoto	  and 2 for all others.
27851da177e4SLinus Torvalds
27861da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
278772ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
278872ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
278972ede9b1SAtsushi Nemoto	  power of two.
27901da177e4SLinus Torvalds
2791399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2792399aaa25SAl Cooper	bool
2793399aaa25SAl Cooper
27947820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27957820b84bSDavid Daney	bool
27967820b84bSDavid Daney
27977820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27987820b84bSDavid Daney	int
27997820b84bSDavid Daney	depends on SMP
28007820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
28017820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
28027820b84bSDavid Daney
28031723b4a3SAtsushi Nemoto#
28041723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
28051723b4a3SAtsushi Nemoto#
28061723b4a3SAtsushi Nemoto
28071723b4a3SAtsushi Nemotochoice
28081723b4a3SAtsushi Nemoto	prompt "Timer frequency"
28091723b4a3SAtsushi Nemoto	default HZ_250
28101723b4a3SAtsushi Nemoto	help
28111723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
28121723b4a3SAtsushi Nemoto
281367596573SPaul Burton	config HZ_24
281467596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
281567596573SPaul Burton
28161723b4a3SAtsushi Nemoto	config HZ_48
28170f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28181723b4a3SAtsushi Nemoto
28191723b4a3SAtsushi Nemoto	config HZ_100
28201723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28211723b4a3SAtsushi Nemoto
28221723b4a3SAtsushi Nemoto	config HZ_128
28231723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28241723b4a3SAtsushi Nemoto
28251723b4a3SAtsushi Nemoto	config HZ_250
28261723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28271723b4a3SAtsushi Nemoto
28281723b4a3SAtsushi Nemoto	config HZ_256
28291723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28301723b4a3SAtsushi Nemoto
28311723b4a3SAtsushi Nemoto	config HZ_1000
28321723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28331723b4a3SAtsushi Nemoto
28341723b4a3SAtsushi Nemoto	config HZ_1024
28351723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28361723b4a3SAtsushi Nemoto
28371723b4a3SAtsushi Nemotoendchoice
28381723b4a3SAtsushi Nemoto
283967596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
284067596573SPaul Burton	bool
284167596573SPaul Burton
28421723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28431723b4a3SAtsushi Nemoto	bool
28441723b4a3SAtsushi Nemoto
28451723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28461723b4a3SAtsushi Nemoto	bool
28471723b4a3SAtsushi Nemoto
28481723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28491723b4a3SAtsushi Nemoto	bool
28501723b4a3SAtsushi Nemoto
28511723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28521723b4a3SAtsushi Nemoto	bool
28531723b4a3SAtsushi Nemoto
28541723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28551723b4a3SAtsushi Nemoto	bool
28561723b4a3SAtsushi Nemoto
28571723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28581723b4a3SAtsushi Nemoto	bool
28591723b4a3SAtsushi Nemoto
28601723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28611723b4a3SAtsushi Nemoto	bool
28621723b4a3SAtsushi Nemoto
28631723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28641723b4a3SAtsushi Nemoto	bool
286567596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
286667596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
286767596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
286867596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
286967596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
287067596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
287167596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28721723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28731723b4a3SAtsushi Nemoto
28741723b4a3SAtsushi Nemotoconfig HZ
28751723b4a3SAtsushi Nemoto	int
287667596573SPaul Burton	default 24 if HZ_24
28771723b4a3SAtsushi Nemoto	default 48 if HZ_48
28781723b4a3SAtsushi Nemoto	default 100 if HZ_100
28791723b4a3SAtsushi Nemoto	default 128 if HZ_128
28801723b4a3SAtsushi Nemoto	default 250 if HZ_250
28811723b4a3SAtsushi Nemoto	default 256 if HZ_256
28821723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28831723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28841723b4a3SAtsushi Nemoto
288596685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
288696685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
288796685b17SDeng-Cheng Zhu
2888571feed5SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
2889571feed5SEric DeVolder	def_bool y
2890ea6e942bSAtsushi Nemoto
2891571feed5SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
2892571feed5SEric DeVolder	def_bool y
28937aa1c8f4SRalf Baechle
289431daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
289531daa343SDave Vasilevsky	def_bool y
289631daa343SDave Vasilevsky
28977aa1c8f4SRalf Baechleconfig PHYSICAL_START
28987aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
28998bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
29007aa1c8f4SRalf Baechle	depends on CRASH_DUMP
29017aa1c8f4SRalf Baechle	help
29027aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
29037aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
29047aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
29057aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
29067aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
29077aa1c8f4SRalf Baechle
2908597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2909b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2910597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2911597ce172SPaul Burton	help
2912597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2913597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2914597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2915597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2916597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2917597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2918597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2919597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2920597ce172SPaul Burton	  saying N here.
2921597ce172SPaul Burton
292206e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
292306e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
292418ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
292506e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
292606e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
292706e2e882SPaul Burton	  said details.
292806e2e882SPaul Burton
292906e2e882SPaul Burton	  If unsure, say N.
2930597ce172SPaul Burton
2931f2ffa5abSDezhong Diaoconfig USE_OF
29320b3e06fdSJonas Gorski	bool
2933f2ffa5abSDezhong Diao	select OF
2934e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2935abd2363fSGrant Likely	select IRQ_DOMAIN
2936f2ffa5abSDezhong Diao
29372fe8ea39SDengcheng Zhuconfig UHI_BOOT
29382fe8ea39SDengcheng Zhu	bool
29392fe8ea39SDengcheng Zhu
29407fafb068SAndrew Brestickerconfig BUILTIN_DTB
29417fafb068SAndrew Bresticker	bool
29427fafb068SAndrew Bresticker
29431da8f179SJonas Gorskichoice
2944b9d73218SMasahiro Yamada	prompt "Kernel appended dtb support"
2945b9d73218SMasahiro Yamada	depends on USE_OF
29461da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29471da8f179SJonas Gorski
29481da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29491da8f179SJonas Gorski		bool "None"
29501da8f179SJonas Gorski		help
29511da8f179SJonas Gorski		  Do not enable appended dtb support.
29521da8f179SJonas Gorski
295387db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
295487db537dSAaro Koskinen		bool "vmlinux"
295587db537dSAaro Koskinen		help
295687db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
295787db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
295887db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
295987db537dSAaro Koskinen		  objcopy:
296087db537dSAaro Koskinen
296187db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
296287db537dSAaro Koskinen
296318ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
296487db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
296587db537dSAaro Koskinen		  the documented boot protocol using a device tree.
296687db537dSAaro Koskinen
29671da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2968b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29691da8f179SJonas Gorski		help
29701da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2971b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29721da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29731da8f179SJonas Gorski
29741da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29751da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29761da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29771da8f179SJonas Gorski
29781da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29791da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29801da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29811da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29821da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29831da8f179SJonas Gorskiendchoice
29841da8f179SJonas Gorski
29852024972eSJonas Gorskichoice
2986b9d73218SMasahiro Yamada	prompt "Kernel command line type"
2987b9d73218SMasahiro Yamada	depends on !CMDLINE_OVERRIDE
29882bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
2989*85c43540SKeguang Zhang					 !MACH_LOONGSON64 && !MACH_LOONGSON32 && \
2990*85c43540SKeguang Zhang					 !MIPS_MALTA && !CAVIUM_OCTEON_SOC
29912024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29922024972eSJonas Gorski
29932024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
29942024972eSJonas Gorski		depends on USE_OF
29952024972eSJonas Gorski		bool "Dtb kernel arguments if available"
29962024972eSJonas Gorski
29972024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
29982024972eSJonas Gorski		depends on USE_OF
29992024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
30002024972eSJonas Gorski
30012024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
30022024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
3003ed47e153SRabin Vincent
3004ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
3005ed47e153SRabin Vincent		depends on CMDLINE_BOOL
3006ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
30072024972eSJonas Gorskiendchoice
30082024972eSJonas Gorski
30095e83d430SRalf Baechleendmenu
30105e83d430SRalf Baechle
30111df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
30121df0f0ffSAtsushi Nemoto	bool
30131df0f0ffSAtsushi Nemoto	default y
30141df0f0ffSAtsushi Nemoto
30151df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
30161df0f0ffSAtsushi Nemoto	bool
30171df0f0ffSAtsushi Nemoto	default y
30181df0f0ffSAtsushi Nemoto
3019a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3020a728ab52SKirill A. Shutemov	int
30213377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
302241ce097fSHuang Pei	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3023a728ab52SKirill A. Shutemov	default 2
3024a728ab52SKirill A. Shutemov
30256c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30266c359eb1SPaul Burton	bool
30276c359eb1SPaul Burton
30281da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30291da177e4SLinus Torvalds
3030c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
30312eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3032c5611df9SPaul Burton	bool
3033c5611df9SPaul Burton
3034c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3035c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3036c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
30372eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
30381da177e4SLinus Torvalds
30391da177e4SLinus Torvalds#
30401da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30411da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30421da177e4SLinus Torvalds# users to choose the right thing ...
30431da177e4SLinus Torvalds#
30441da177e4SLinus Torvaldsconfig ISA
30451da177e4SLinus Torvalds	bool
30461da177e4SLinus Torvalds
30471da177e4SLinus Torvaldsconfig TC
30481da177e4SLinus Torvalds	bool "TURBOchannel support"
30491da177e4SLinus Torvalds	depends on MACH_DECSTATION
30501da177e4SLinus Torvalds	help
305150a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
305250a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
305350a23e6eSJustin P. Mattock	  at:
305450a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
305550a23e6eSJustin P. Mattock	  and:
305650a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
305750a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
305850a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30591da177e4SLinus Torvalds
30601da177e4SLinus Torvaldsconfig MMU
30611da177e4SLinus Torvalds	bool
30621da177e4SLinus Torvalds	default y
30631da177e4SLinus Torvalds
3064109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3065109c32ffSMatt Redfearn	default 12 if 64BIT
3066109c32ffSMatt Redfearn	default 8
3067109c32ffSMatt Redfearn
3068109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3069109c32ffSMatt Redfearn	default 18 if 64BIT
3070109c32ffSMatt Redfearn	default 15
3071109c32ffSMatt Redfearn
3072109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3073109c32ffSMatt Redfearn	default 8
3074109c32ffSMatt Redfearn
3075109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3076109c32ffSMatt Redfearn	default 15
3077109c32ffSMatt Redfearn
3078d865bea4SRalf Baechleconfig I8253
3079d865bea4SRalf Baechle	bool
3080798778b8SRussell King	select CLKSRC_I8253
30812d02612fSThomas Gleixner	select CLKEVT_I8253
30829726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
30831da177e4SLinus Torvaldsendmenu
30841da177e4SLinus Torvalds
30851da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30861da177e4SLinus Torvalds	bool
30871da177e4SLinus Torvalds
30881da177e4SLinus Torvaldsconfig MIPS32_COMPAT
308978aaf956SRalf Baechle	bool
30901da177e4SLinus Torvalds
30911da177e4SLinus Torvaldsconfig COMPAT
30921da177e4SLinus Torvalds	bool
30931da177e4SLinus Torvalds
30941da177e4SLinus Torvaldsconfig MIPS32_O32
30951da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
309678aaf956SRalf Baechle	depends on 64BIT
309778aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
309878aaf956SRalf Baechle	select COMPAT
309978aaf956SRalf Baechle	select MIPS32_COMPAT
31001da177e4SLinus Torvalds	help
31011da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
31021da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
31031da177e4SLinus Torvalds	  existing binaries are in this format.
31041da177e4SLinus Torvalds
31051da177e4SLinus Torvalds	  If unsure, say Y.
31061da177e4SLinus Torvalds
31071da177e4SLinus Torvaldsconfig MIPS32_N32
31081da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3109c22eacfeSRalf Baechle	depends on 64BIT
31105a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
311178aaf956SRalf Baechle	select COMPAT
311278aaf956SRalf Baechle	select MIPS32_COMPAT
31131da177e4SLinus Torvalds	help
31141da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31151da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31161da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31171da177e4SLinus Torvalds	  cases.
31181da177e4SLinus Torvalds
31191da177e4SLinus Torvalds	  If unsure, say N.
31201da177e4SLinus Torvalds
3121d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3122d49fc692SNathan Chancellor	def_bool y
3123d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
3124d49fc692SNathan Chancellor
31251a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31261a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31271a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31281a2c73f4SJiaxun Yang
31292116245eSRalf Baechlemenu "Power management options"
3130952fa954SRodolfo Giometti
3131363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3132363c55caSWu Zhangjin	def_bool y
31333f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3134363c55caSWu Zhangjin
3135f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3136f4cb5700SJohannes Berg	def_bool y
31373f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3138f4cb5700SJohannes Berg
31392116245eSRalf Baechlesource "kernel/power/Kconfig"
3140952fa954SRodolfo Giometti
31411da177e4SLinus Torvaldsendmenu
31421da177e4SLinus Torvalds
31437a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31447a998935SViresh Kumar	bool
31457a998935SViresh Kumar
31467a998935SViresh Kumarmenu "CPU Power Management"
3147c095ebafSPaul Burton
3148c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31497a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
315031f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31519726b43aSWu Zhangjin
3152c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3153c095ebafSPaul Burton
3154c095ebafSPaul Burtonendmenu
3155c095ebafSPaul Burton
31562235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3157e91946d6SNathan Chancellor
3158e91946d6SNathan Chancellorsource "arch/mips/vdso/Kconfig"
3159