xref: /linux-6.15/arch/mips/Kconfig (revision 9b400d17)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvaldsconfig MIPS
31da177e4SLinus Torvalds	bool
41da177e4SLinus Torvalds	default y
5942fa985SYury Norov	select ARCH_32BIT_OFF_T if !64BIT
6ea6a3737SPaul Burton	select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
78690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
87f066a22SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
9b847bd64SKees Cook	select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
10dfad83cbSFlorian Fainelli	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
11de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS if MACH_JAZZ
1234c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
1334c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1466633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1534c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
16e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
17e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1812597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
19918327e9SKees Cook	select ARCH_HAS_UBSAN
208b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
21c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
221ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2312597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
24dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2525da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
260b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
27855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
289035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
2912597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
30d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
3110916706SShile Zhang	select BUILDTIME_TABLE_SORT
3204e4ec98SMasahiro Yamada	select BUILTIN_DTB_ALL if BUILTIN_DTB
3312597988SMatt Redfearn	select CLONE_BACKWARDS
3457eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
352226d454SJiaxun Yang	select CPU_PM if CPU_IDLE || SUSPEND
3612597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3704e4ec98SMasahiro Yamada	select GENERIC_BUILTIN_DTB if BUILTIN_DTB
3812597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
3912597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
4024640f23SVincenzo Frascino	select GENERIC_GETTIMEOFDAY
41b962aeb0SPaul Burton	select GENERIC_IRQ_PROBE
4212597988SMatt Redfearn	select GENERIC_IRQ_SHOW
4312597988SMatt Redfearn	select GENERIC_ISA_DMA if EISA
446630a8e5SChristoph Hellwig	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
49740129b3SAntony Pavlov	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 GENERIC_VDSO_DATA_STORE
55fcbfe812SNiklas Schnelle	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
56906d441fSPaul Burton	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
5712597988SMatt Redfearn	select HAVE_ARCH_COMPILER_H
5842b20995SArnd Bergmann	select HAVE_ARCH_JUMP_LABEL
59109c32ffSMatt Redfearn	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
60109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
61490b004fSMarkos Chandras	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
62c0ff3c53SRalf Baechle	select HAVE_ARCH_SECCOMP_FILTER
6345e03e62SDaniel Silsby	select HAVE_ARCH_TRACEHOOK
642ff2b7ecSMasahiro Yamada	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
6524a9c541SFrederic Weisbecker	select HAVE_ASM_MODVERSIONS
66490f561bSFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
6764575f91SWu Zhangjin	select HAVE_TIF_NOHZ
6812597988SMatt Redfearn	select HAVE_C_RECORDMCOUNT
6912597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
7012597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
7112597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
727364d60cSJiaxun Yang	select HAVE_DYNAMIC_FTRACE
7312597988SMatt Redfearn	select HAVE_EBPF_JIT if !CPU_MICROMIPS
7425176ad0SDavid Hildenbrand	select HAVE_EXIT_THREAD
7512597988SMatt Redfearn	select HAVE_GUP_FAST
7629c5d346SWu Zhangjin	select HAVE_FTRACE_MCOUNT_RECORD
7712597988SMatt Redfearn	select HAVE_FUNCTION_GRAPH_TRACER
7834c01e41SAlexander Lobakin	select HAVE_FUNCTION_TRACER
7934c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
80b3a428b4SHassan Naveed	select HAVE_GENERIC_VDSO
8112597988SMatt Redfearn	select HAVE_IOREMAP_PROT
8212597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
83c1bf207dSDavid Daney	select HAVE_IRQ_TIME_ACCOUNTING
84c1bf207dSDavid Daney	select HAVE_KPROBES
85c0436b50SPaul Burton	select HAVE_KRETPROBES
86786d35d4SDavid Howells	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
8742a0bb3fSPetr Mladek	select HAVE_MOD_ARCH_SPECIFIC
88ba89f9c8SArnd Bergmann	select HAVE_NMI
89ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB if !CPU_LOONGSON2EF && !CPU_LOONGSON64
90ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB if !CPU_R3000
9112597988SMatt Redfearn	select HAVE_PAGE_SIZE_64KB if !CPU_R3000
921ddc96bdSTiezhu Yang	select HAVE_PERF_EVENTS
931ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
9408bccf43SMarcin Nowakowski	select HAVE_PERF_USER_STACK_DUMP
959ea141adSPaul Burton	select HAVE_REGS_AND_STACK_ACCESS_API
9616c0f03fSHassan Naveed	select HAVE_RSEQ
97d148eac0SMasahiro Yamada	select HAVE_SPARSE_SYSCALL_NR
9812597988SMatt Redfearn	select HAVE_STACKPROTECTOR
99a3f14310SBen Hutchings	select HAVE_SYSCALL_TRACEPOINTS
10012597988SMatt Redfearn	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
1016630a8e5SChristoph Hellwig	select IRQ_FORCED_THREADING
1024bce37a6SBen Hutchings	select ISA if EISA
10312597988SMatt Redfearn	select LOCK_MM_AND_FIND_VMA
10434c01e41SAlexander Lobakin	select MODULES_USE_ELF_REL if MODULES
10512597988SMatt Redfearn	select MODULES_USE_ELF_RELA if MODULES && 64BIT
106981aa1d3SThomas Gleixner	select PERF_USE_VMALLOC
10705a0a344SArnd Bergmann	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
10812597988SMatt Redfearn	select RTC_LIB
1094aae683fSMasahiro Yamada	select SYSCTL_EXCEPTION_TRACE
1100bb87f05SAl Viro	select TRACE_IRQFLAGS_SUPPORT
111e0a8b93eSNemanja Rakovic	select ARCH_HAS_ELFCORE_COMPAT
1121da177e4SLinus Torvalds	select HAVE_ARCH_KCSAN if 64BIT
113d3991572SChristoph Hellwig
114d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
115d3991572SChristoph Hellwig	bool
116c434b9f8SPaul Cercueil
117c434b9f8SPaul Cercueilconfig MIPS_GENERIC
118c434b9f8SPaul Cercueil	bool
11980f2e4cdSGregory CLEMENT
12080f2e4cdSGregory CLEMENTconfig MACH_GENERIC_CORE
12180f2e4cdSGregory CLEMENT	bool
122f0f4a753SPaul Cercueil
123f0f4a753SPaul Cercueilconfig MACH_INGENIC
124f0f4a753SPaul Cercueil	bool
125f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
126f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
127f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
128f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
129f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
130f0f4a753SPaul Cercueil	select PINCTRL
131f0f4a753SPaul Cercueil	select GPIOLIB
132f0f4a753SPaul Cercueil	select COMMON_CLK
133f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
134f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
135f0f4a753SPaul Cercueil	select USE_OF
136f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
137f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvaldsmenu "Machine selection"
1405e83d430SRalf Baechle
1415e83d430SRalf Baechlechoice
142c434b9f8SPaul Cercueil	prompt "System type"
1431da177e4SLinus Torvalds	default MIPS_GENERIC_KERNEL
144c434b9f8SPaul Cercueil
145eed0eabdSPaul Burtonconfig MIPS_GENERIC_KERNEL
146c434b9f8SPaul Cercueil	bool "Generic board-agnostic MIPS kernel"
147eed0eabdSPaul Burton	select MIPS_GENERIC
148eed0eabdSPaul Burton	select BOOT_RAW
149eed0eabdSPaul Burton	select BUILTIN_DTB
150eed0eabdSPaul Burton	select CEVT_R4K
151eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
152eed0eabdSPaul Burton	select COMMON_CLK
15334c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_EI
154eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_VI
1554e066441SChristoph Hellwig	select CSRC_R4K
156eb01d42aSChristoph Hellwig	select DMA_NONCOHERENT
157eed0eabdSPaul Burton	select HAVE_PCI
15880f2e4cdSGregory CLEMENT	select IRQ_MIPS_CPU
1590211d49eSPaul Burton	select MACH_GENERIC_CORE
160eed0eabdSPaul Burton	select MIPS_AUTO_PFN_OFFSET
161eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
162eed0eabdSPaul Burton	select MIPS_GIC
163eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
164eed0eabdSPaul Burton	select NO_EXCEPT_FILL
165eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
166a3078e59SMatt Redfearn	select SMP_UP if SMP
167eed0eabdSPaul Burton	select SWAP_IO_SPACE
168eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
169fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R2
170eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R5
171eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
172eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
173fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R2
174eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R5
175eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
176eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
177eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
178eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
179eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
180eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
181eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
18234c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS16
183eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS_CPS
184eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
185eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
186c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_SMARTMIPS
18734c01e41SAlexander Lobakin	select SYS_SUPPORTS_ZBOOT
1882e6522c5SCorentin Labbe	select UHI_BOOT
1892e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1902e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1912e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1922e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1932e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
194eed0eabdSPaul Burton	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
195eed0eabdSPaul Burton	select USE_OF
196eed0eabdSPaul Burton	help
197eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
198eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
199eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
200eed0eabdSPaul Burton	  Interface) specification.
20142a4f17dSManuel Lauss
202c3543e25SYoichi Yuasaconfig MIPS_ALCHEMY
203d4a451d5SChristoph Hellwig	bool "Alchemy processor based machines"
204f772cdb2SRalf Baechle	select PHYS_ADDR_T_64BIT
205d7ea335cSSteven J. Hill	select CEVT_R4K
20667e38cf2SRalf Baechle	select CSRC_R4K
207a86497d6SChristoph Hellwig	select IRQ_MIPS_CPU
208d3991572SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
20942a4f17dSManuel Lauss	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
21042a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
21142a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
212d30a2b47SLinus Walleij	select SYS_SUPPORTS_APM_EMULATION
2131b93b3c3SWu Zhangjin	select GPIOLIB
21447440229SManuel Lauss	select SYS_SUPPORTS_ZBOOT
2151da177e4SLinus Torvalds	select COMMON_CLK
21643cc739fSSergey Ryazanov
21743cc739fSSergey Ryazanovconfig ATH25
21843cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
21943cc739fSSergey Ryazanov	select CEVT_R4K
22043cc739fSSergey Ryazanov	select CSRC_R4K
22167e38cf2SRalf Baechle	select DMA_NONCOHERENT
2221753e74eSSergey Ryazanov	select IRQ_MIPS_CPU
22343cc739fSSergey Ryazanov	select IRQ_DOMAIN
22443cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
22543cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
2268aaa7278SSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
22743cc739fSSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
22843cc739fSSergey Ryazanov	help
22943cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
230d4a67d9dSGabor Juhos
231d4a67d9dSGabor Juhosconfig ATH79
232ff591a91SAlban Bedel	bool "Atheros AR71XX/AR724X/AR913X based boards"
233d4a67d9dSGabor Juhos	select ARCH_HAS_RESET_CONTROLLER
234d4a67d9dSGabor Juhos	select BOOT_RAW
235d4a67d9dSGabor Juhos	select CEVT_R4K
236d4a67d9dSGabor Juhos	select CSRC_R4K
237d30a2b47SLinus Walleij	select DMA_NONCOHERENT
238a08227a2SJohn Crispin	select GPIOLIB
239411520afSAlban Bedel	select PINCTRL
24067e38cf2SRalf Baechle	select COMMON_CLK
241d4a67d9dSGabor Juhos	select IRQ_MIPS_CPU
242d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
243d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
244d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
245377cb1b6SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
246b3f0a250SAlban Bedel	select SYS_SUPPORTS_MIPS16
24703c8c407SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
24853d473fcSAlban Bedel	select USE_OF
249d4a67d9dSGabor Juhos	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
250d4a67d9dSGabor Juhos	help
251d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
2525f2d4459SKevin Cernekee
2535f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
25429906e1aSÁlvaro Fernández Rojas	bool "Broadcom Generic BMIPS kernel"
255d59098a0SChristoph Hellwig	select ARCH_HAS_RESET_CONTROLLER
256d666cd02SKevin Cernekee	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
257d666cd02SKevin Cernekee	select BOOT_RAW
258d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
259d666cd02SKevin Cernekee	select USE_OF
260d666cd02SKevin Cernekee	select CEVT_R4K
261d666cd02SKevin Cernekee	select CSRC_R4K
262d666cd02SKevin Cernekee	select SYNC_R4K
263c7c42ec2SSimon Arlott	select COMMON_CLK
26460b858f2SKevin Cernekee	select BCM6345_L1_IRQ
26560b858f2SKevin Cernekee	select BCM7038_L1_IRQ
26660b858f2SKevin Cernekee	select BCM7120_L2_IRQ
26767e38cf2SRalf Baechle	select BRCMSTB_L2_IRQ
26860b858f2SKevin Cernekee	select IRQ_MIPS_CPU
269d666cd02SKevin Cernekee	select DMA_NONCOHERENT
27060b858f2SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
271d666cd02SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
272d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
27360b858f2SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
27460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
27560b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
276d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
277d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
27860b858f2SKevin Cernekee	select SWAP_IO_SPACE
27960b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28060b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
28160b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
2824dc4704cSJustin Chen	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2831d987052SFlorian Fainelli	select HARDIRQS_SW_RESEND
2841d987052SFlorian Fainelli	select HAVE_PCI
285466ab2eaSFlorian Fainelli	select PCI_DRIVERS_GENERIC
286d666cd02SKevin Cernekee	select FW_CFE
2875f2d4459SKevin Cernekee	help
2885f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2895f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2905f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
291d666cd02SKevin Cernekee	  must be set appropriately for your board.
2921c0c13ebSAurelien Jarno
293c619366eSFlorian Fainelliconfig BCM47XX
294fe08f8c2SHauke Mehrtens	bool "Broadcom BCM47XX based boards"
29542f77542SRalf Baechle	select BOOT_RAW
296940f6b48SRalf Baechle	select CEVT_R4K
2971c0c13ebSAurelien Jarno	select CSRC_R4K
298eb01d42aSChristoph Hellwig	select DMA_NONCOHERENT
29967e38cf2SRalf Baechle	select HAVE_PCI
300314878d2SMarkos Chandras	select IRQ_MIPS_CPU
301dd54deddSHauke Mehrtens	select SYS_HAS_CPU_MIPS32_R1
3021c0c13ebSAurelien Jarno	select NO_EXCEPT_FILL
3031c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
304377cb1b6SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3056507831fSAaro Koskinen	select SYS_SUPPORTS_MIPS16
30625e5fb97SAurelien Jarno	select SYS_SUPPORTS_ZBOOT
307e6086557SRalf Baechle	select SYS_HAS_EARLY_PRINTK
308c949c0bcSRafał Miłecki	select USE_GENERIC_EARLY_PRINTK_8250
309c949c0bcSRafał Miłecki	select GPIOLIB
310f6e734a8SRafał Miłecki	select LEDS_GPIO_REGISTER
3112ab71a02SRafał Miłecki	select BCM47XX_NVRAM
312dfe00495SMatt Redfearn	select BCM47XX_SPROM
3131c0c13ebSAurelien Jarno	select BCM47XX_SSB if !BCM47XX_BCMA
3141c0c13ebSAurelien Jarno	help
3151c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
316e7300d04SMaxime Bizon
317e7300d04SMaxime Bizonconfig BCM63XX
318ae8de61cSFlorian Fainelli	bool "Broadcom BCM63XX based boards"
319e7300d04SMaxime Bizon	select BOOT_RAW
320e7300d04SMaxime Bizon	select CEVT_R4K
321fc264022SJonas Gorski	select CSRC_R4K
322e7300d04SMaxime Bizon	select SYNC_R4K
32367e38cf2SRalf Baechle	select DMA_NONCOHERENT
324e7300d04SMaxime Bizon	select IRQ_MIPS_CPU
325e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
326e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
3275eeaafc8SRandy Dunlap	select SYS_HAS_EARLY_PRINTK
3285eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3295eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
330e7300d04SMaxime Bizon	select SYS_HAS_CPU_BMIPS4380
331d30a2b47SLinus Walleij	select SWAP_IO_SPACE
332af2418beSFlorian Fainelli	select GPIOLIB
333bbd7ffdbSStephen Boyd	select MIPS_L1_CACHE_SHIFT_4
334e7300d04SMaxime Bizon	select HAVE_LEGACY_CLK
335e7300d04SMaxime Bizon	help
336e7300d04SMaxime Bizon	  Support for BCM63XX based boards
3371da177e4SLinus Torvalds
3383fa986faSMartin Michlmayrconfig MIPS_COBALT
33942f77542SRalf Baechle	bool "Cobalt Server"
340940f6b48SRalf Baechle	select CEVT_R4K
3411097c6acSYoichi Yuasa	select CSRC_R4K
3421da177e4SLinus Torvalds	select CEVT_GT641XX
343eb01d42aSChristoph Hellwig	select DMA_NONCOHERENT
344d865bea4SRalf Baechle	select FORCE_PCI
3451da177e4SLinus Torvalds	select I8253
34667e38cf2SRalf Baechle	select I8259
347d5ab1a69SYoichi Yuasa	select IRQ_MIPS_CPU
348252161ecSYoichi Yuasa	select IRQ_GT641XX
3497cf8053bSRalf Baechle	select PCI_GT64XXX_PCI0
3500a22e0d4SYoichi Yuasa	select SYS_HAS_CPU_NEVADA
351ed5ba2fbSYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
3520e8774b6SFlorian Fainelli	select SYS_SUPPORTS_32BIT_KERNEL
3535e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
354e6086557SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3551da177e4SLinus Torvalds	select USE_GENERIC_EARLY_PRINTK_8250
3561da177e4SLinus Torvalds
3573fa986faSMartin Michlmayrconfig MACH_DECSTATION
3581da177e4SLinus Torvalds	bool "DECstations"
3596457d9fcSYoichi Yuasa	select BOOT_ELF32
36081d10badSMaciej W. Rozycki	select CEVT_DS1287
3614247417dSYoichi Yuasa	select CEVT_R4K if CPU_R4X00
36281d10badSMaciej W. Rozycki	select CSRC_IOASIC
36320d60d99SMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
36420d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
36520d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
3661da177e4SLinus Torvalds	select CPU_R4400_WORKAROUNDS if 64BIT
367ce816fa8SUwe Kleine-König	select DMA_NONCOHERENT
36867e38cf2SRalf Baechle	select NO_IOPORT_MAP
3697cf8053bSRalf Baechle	select IRQ_MIPS_CPU
3707cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
371ed5ba2fbSYoichi Yuasa	select SYS_HAS_CPU_R4X00
3727d60717eSKees Cook	select SYS_SUPPORTS_32BIT_KERNEL
3735e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
3741723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_LITTLE_ENDIAN
3751723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3761723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
377930beb5aSFlorian Fainelli	select SYS_SUPPORTS_1024HZ
3785e83d430SRalf Baechle	select MIPS_L1_CACHE_SHIFT_4
3791da177e4SLinus Torvalds	help
3801da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3811da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3821da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3831da177e4SLinus Torvalds
3841da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3851da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3861da177e4SLinus Torvalds
3871da177e4SLinus Torvalds		DECstation 5000/50
3881da177e4SLinus Torvalds		DECstation 5000/150
3891da177e4SLinus Torvalds		DECstation 5000/260
3901da177e4SLinus Torvalds		DECsystem 5900/260
3911da177e4SLinus Torvalds
3921da177e4SLinus Torvalds	  otherwise choose R3000.
3935e83d430SRalf Baechle
3943fa986faSMartin Michlmayrconfig MACH_JAZZ
39539b2d756SThomas Bogendoerfer	bool "Jazz family of machines"
39639b2d756SThomas Bogendoerfer	select ARC_MEMORY
397a211a082SRalf Baechle	select ARC_PROMLIB
3987a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
3990e2794b0SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4000e2794b0SRalf Baechle	select FW_ARC
4015e83d430SRalf Baechle	select FW_ARC32
40242f77542SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
403940f6b48SRalf Baechle	select CEVT_R4K
404e2defae5SThomas Bogendoerfer	select CSRC_R4K
4055e83d430SRalf Baechle	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4068a118c38SRalf Baechle	select GENERIC_ISA_DMA
40767e38cf2SRalf Baechle	select HAVE_PCSPKR_PLATFORM
408d865bea4SRalf Baechle	select IRQ_MIPS_CPU
4095e83d430SRalf Baechle	select I8253
4105e83d430SRalf Baechle	select I8259
4117cf8053bSRalf Baechle	select ISA
4125e83d430SRalf Baechle	select SYS_HAS_CPU_R4X00
4137d60717eSKees Cook	select SYS_SUPPORTS_32BIT_KERNEL
4141723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_64BIT_KERNEL
415aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_100HZ
4161da177e4SLinus Torvalds	select SYS_SUPPORTS_LITTLE_ENDIAN
4175e83d430SRalf Baechle	help
4185e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
419692105b8SMatt LaPlante	  used by several vendors to build RISC/os and Windows NT workstations.
4205e83d430SRalf Baechle	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4215e83d430SRalf Baechle	  Olivetti M700-10 workstations.
422f0f4a753SPaul Cercueil
423de361e8bSPaul Burtonconfig MACH_INGENIC_SOC
424f0f4a753SPaul Cercueil	bool "Ingenic SoC based machines"
425f0f4a753SPaul Cercueil	select MIPS_GENERIC
42680f2e4cdSGregory CLEMENT	select MACH_INGENIC
427f9c9affcSLluís Batlle i Rossell	select MACH_GENERIC_CORE
428eb384937SPaul Cercueil	select SYS_SUPPORTS_ZBOOT_UART16550
429eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
4305ebabe59SLars-Peter Clausen	select MIPS_EXTERNAL_TIMER
431171bb2f1SJohn Crispin
432171bb2f1SJohn Crispinconfig LANTIQ
433171bb2f1SJohn Crispin	bool "Lantiq based platforms"
43467e38cf2SRalf Baechle	select DMA_NONCOHERENT
435171bb2f1SJohn Crispin	select IRQ_MIPS_CPU
436171bb2f1SJohn Crispin	select CEVT_R4K
437b74cc639SSander Vanheule	select CSRC_R4K
438171bb2f1SJohn Crispin	select NO_EXCEPT_FILL
439171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
440171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
441171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
442377cb1b6SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
443171bb2f1SJohn Crispin	select SYS_SUPPORTS_MIPS16
444f35764e7SJames Hogan	select SYS_SUPPORTS_MULTITHREADING
445171bb2f1SJohn Crispin	select SYS_SUPPORTS_VPE_LOADER
446d30a2b47SLinus Walleij	select SYS_HAS_EARLY_PRINTK
447171bb2f1SJohn Crispin	select GPIOLIB
448171bb2f1SJohn Crispin	select SWAP_IO_SPACE
449bbd7ffdbSStephen Boyd	select BOOT_RAW
450a0392222SJohn Crispin	select HAVE_LEGACY_CLK
4513f8c50c9SJohn Crispin	select USE_OF
4523f8c50c9SJohn Crispin	select PINCTRL
453c530781cSJohn Crispin	select PINCTRL_LANTIQ
454c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
455171bb2f1SJohn Crispin	select RESET_CONTROLLER
45630ad29bbSHuacai Chen
457caed1d1bSHuacai Chenconfig MACH_LOONGSON32
458c7e8c668SWu Zhangjin	bool "Loongson 32-bit family of machines"
459ade299d8SYoichi Yuasa	select SYS_SUPPORTS_ZBOOT
46030ad29bbSHuacai Chen	help
46185749d24SWu Zhangjin	  This enables support for the Loongson-1 family of machines.
46230ad29bbSHuacai Chen
46330ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
46430ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
465ade299d8SYoichi Yuasa	  Sciences (CAS).
46671e2f4ddSJiaxun Yang
46771e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
468ca585cf9SKelvin Cheung	bool "Loongson-2E/F family of machines"
469ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
47071e2f4ddSJiaxun Yang	help
471ca585cf9SKelvin Cheung	  This enables the support of early Loongson-2E/F family of machines.
47271e2f4ddSJiaxun Yang
473caed1d1bSHuacai Chenconfig MACH_LOONGSON64
474edc0378eSJiaxun Yang	bool "Loongson 64-bit family of machines"
4756fbde6b4SJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT
4766fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
4776fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
4786fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
4796fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
4806fbde6b4SJiaxun Yang	select BOOT_ELF32
4816fbde6b4SJiaxun Yang	select BOARD_SCACHE
4826fbde6b4SJiaxun Yang	select CSRC_R4K
483fa165f91SJiaxun Yang	select CEVT_R4K
4846fbde6b4SJiaxun Yang	select SYNC_R4K
4856fbde6b4SJiaxun Yang	select FORCE_PCI
4866fbde6b4SJiaxun Yang	select ISA
4876fbde6b4SJiaxun Yang	select I8259
4887d6d2837SJiaxun Yang	select IRQ_MIPS_CPU
4895125bfeeSTiezhu Yang	select NO_EXCEPT_FILL
4906fbde6b4SJiaxun Yang	select NR_CPUS_DEFAULT_64
4916423e59aSJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
4926fbde6b4SJiaxun Yang	select PCI_DRIVERS_GENERIC
4936fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
4946fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
4956fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
4966fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
4976fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
4986fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
4996fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
50071e2f4ddSJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
501a307a4ceSJinyang He	select SYS_SUPPORTS_ZBOOT
5026fbde6b4SJiaxun Yang	select SYS_SUPPORTS_RELOCATABLE
50387fcfa7bSJiaxun Yang	select ZONE_DMA32
50487fcfa7bSJiaxun Yang	select COMMON_CLK
50587fcfa7bSJiaxun Yang	select USE_OF
50639c1485cSHuacai Chen	select BUILTIN_DTB
50771e2f4ddSJiaxun Yang	select PCI_HOST_GENERIC
508caed1d1bSHuacai Chen	help
509caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
510caed1d1bSHuacai Chen
511caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
512caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
513caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
514ca585cf9SKelvin Cheung	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
5151da177e4SLinus Torvalds
5163fa986faSMartin Michlmayrconfig MIPS_MALTA
51761ed242dSRalf Baechle	bool "MIPS Malta board"
518a211a082SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
5197a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5201da177e4SLinus Torvalds	select ARCH_MIGHT_HAVE_PC_SERIO
521fa71c960SRalf Baechle	select BOOT_ELF32
522e8823d26SPaul Burton	select BOOT_RAW
52342f77542SRalf Baechle	select BUILTIN_DTB
524fa5635a2SAndrew Bresticker	select CEVT_R4K
52542b002abSGuenter Roeck	select CLKSRC_MIPS_GIC
52647bf2b03SMaksym Kokhan	select COMMON_CLK
527a86497d6SChristoph Hellwig	select CSRC_R4K
5281da177e4SLinus Torvalds	select DMA_NONCOHERENT
5298a118c38SRalf Baechle	select GENERIC_ISA_DMA
530eb01d42aSChristoph Hellwig	select HAVE_PCSPKR_PLATFORM
531d865bea4SRalf Baechle	select HAVE_PCI
5321da177e4SLinus Torvalds	select I8253
53347bf2b03SMaksym Kokhan	select I8259
5345e83d430SRalf Baechle	select IRQ_MIPS_CPU
5359318c51aSChris Dearman	select MIPS_BONITO64
53647bf2b03SMaksym Kokhan	select MIPS_CPU_SCACHE
537a7ef1eadSKevin Cernekee	select MIPS_GIC
5385e83d430SRalf Baechle	select MIPS_L1_CACHE_SHIFT_6
53947bf2b03SMaksym Kokhan	select MIPS_MSC
540ecafe3e9SPaul Burton	select PCI_GT64XXX_PCI0
5411da177e4SLinus Torvalds	select SMP_UP if SMP
5427cf8053bSRalf Baechle	select SWAP_IO_SPACE
5437cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
544bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R2
545c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R3_5
546575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R5
5477cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R6
5485d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R1
549575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R2
5507cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R6
5517cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
552ed5ba2fbSYoichi Yuasa	select SYS_HAS_CPU_RM7000
553ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
5545e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
555c5b36783SSteven J. Hill	select SYS_SUPPORTS_BIG_ENDIAN
5565e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
557424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_LITTLE_ENDIAN
55847bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MICROMIPS
559e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS16
560f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MIPS_CPS
56147bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MULTITHREADING
5629693a853SFranck Bui-Huu	select SYS_SUPPORTS_RELOCATABLE
563f35764e7SJames Hogan	select SYS_SUPPORTS_SMARTMIPS
5641b93b3c3SWu Zhangjin	select SYS_SUPPORTS_VPE_LOADER
565e8823d26SPaul Burton	select SYS_SUPPORTS_ZBOOT
566886ee136SThomas Bogendoerfer	select USE_OF
567abcc82b1SJames Hogan	select WAR_ICACHE_REFILLS
5681da177e4SLinus Torvalds	select ZONE_DMA32 if 64BIT
569f638d197SMaciej W. Rozycki	help
5701da177e4SLinus Torvalds	  This enables support for the MIPS Technologies Malta evaluation
5711da177e4SLinus Torvalds	  board.
5722572f00dSJoshua Henderson
5732572f00dSJoshua Hendersonconfig MACH_PIC32
5742572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
5752572f00dSJoshua Henderson	help
5762572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
5772572f00dSJoshua Henderson
5782572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
5792572f00dSJoshua Henderson	  microcontrollers.
580fbe0fae6SGregory CLEMENT
581fbe0fae6SGregory CLEMENTconfig EYEQ
582101bd58fSGregory CLEMENT	bool "Mobileye EyeQ SoC"
583101bd58fSGregory CLEMENT	select MACH_GENERIC_CORE
584101bd58fSGregory CLEMENT	select ARM_AMBA
585101bd58fSGregory CLEMENT	select PHYSICAL_START_BOOL
586101bd58fSGregory CLEMENT	select ARCH_SPARSEMEM_DEFAULT if 64BIT
587101bd58fSGregory CLEMENT	select BOOT_RAW
588101bd58fSGregory CLEMENT	select BUILTIN_DTB
589101bd58fSGregory CLEMENT	select CEVT_R4K
590101bd58fSGregory CLEMENT	select CLKSRC_MIPS_GIC
591101bd58fSGregory CLEMENT	select COMMON_CLK
592101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_EI
593101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_VI
594101bd58fSGregory CLEMENT	select CSRC_R4K
595101bd58fSGregory CLEMENT	select DMA_NONCOHERENT
596101bd58fSGregory CLEMENT	select HAVE_PCI
597101bd58fSGregory CLEMENT	select IRQ_MIPS_CPU
598101bd58fSGregory CLEMENT	select MIPS_AUTO_PFN_OFFSET
599101bd58fSGregory CLEMENT	select MIPS_CPU_SCACHE
600101bd58fSGregory CLEMENT	select MIPS_GIC
601101bd58fSGregory CLEMENT	select MIPS_L1_CACHE_SHIFT_7
602101bd58fSGregory CLEMENT	select PCI_DRIVERS_GENERIC
603101bd58fSGregory CLEMENT	select SMP_UP if SMP
604101bd58fSGregory CLEMENT	select SWAP_IO_SPACE
605101bd58fSGregory CLEMENT	select SYS_HAS_CPU_MIPS64_R6
606101bd58fSGregory CLEMENT	select SYS_SUPPORTS_64BIT_KERNEL
607101bd58fSGregory CLEMENT	select SYS_SUPPORTS_HIGHMEM
608101bd58fSGregory CLEMENT	select SYS_SUPPORTS_LITTLE_ENDIAN
609101bd58fSGregory CLEMENT	select SYS_SUPPORTS_MIPS_CPS
610101bd58fSGregory CLEMENT	select SYS_SUPPORTS_RELOCATABLE
611101bd58fSGregory CLEMENT	select SYS_SUPPORTS_ZBOOT
612101bd58fSGregory CLEMENT	select UHI_BOOT
613101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
614101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
615101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
616101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
617101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
618101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
619101bd58fSGregory CLEMENT	select USE_OF
620fbe0fae6SGregory CLEMENT	help
621101bd58fSGregory CLEMENT	  Select this to build a kernel supporting EyeQ SoC from Mobileye.
622101bd58fSGregory CLEMENT
623101bd58fSGregory CLEMENT	bool
624baec970aSLauri Kasanen
625baec970aSLauri Kasanenconfig MACH_NINTENDO64
626baec970aSLauri Kasanen	bool "Nintendo 64 console"
627baec970aSLauri Kasanen	select CEVT_R4K
628baec970aSLauri Kasanen	select CSRC_R4K
629baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
630baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
631baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
632baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
633baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
634baec970aSLauri Kasanen	select DMA_NONCOHERENT
635baec970aSLauri Kasanen	select IRQ_MIPS_CPU
636ae2b5bb6SJohn Crispin
637ae2b5bb6SJohn Crispinconfig RALINK
638ae2b5bb6SJohn Crispin	bool "Ralink based machines"
63935f752beSArnd Bergmann	select CEVT_R4K
640ae2b5bb6SJohn Crispin	select COMMON_CLK
641ae2b5bb6SJohn Crispin	select CSRC_R4K
642ae2b5bb6SJohn Crispin	select BOOT_RAW
64367e38cf2SRalf Baechle	select DMA_NONCOHERENT
644ae2b5bb6SJohn Crispin	select IRQ_MIPS_CPU
645ae2b5bb6SJohn Crispin	select USE_OF
646ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
647ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
648377cb1b6SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
6491f0400d0SChuanhong Guo	select SYS_SUPPORTS_MIPS16
650ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_ZBOOT
6512a153f1cSJohn Crispin	select SYS_HAS_EARLY_PRINTK
6522a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
653ae2b5bb6SJohn Crispin	select RESET_CONTROLLER
6544042147aSBert Vermeulen
6554042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6564042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
65780f2e4cdSGregory CLEMENT	select MIPS_GENERIC
6584042147aSBert Vermeulen	select MACH_GENERIC_CORE
6594042147aSBert Vermeulen	select DMA_NONCOHERENT
6604042147aSBert Vermeulen	select IRQ_MIPS_CPU
6614042147aSBert Vermeulen	select CSRC_R4K
6624042147aSBert Vermeulen	select CEVT_R4K
6634042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
6644042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
6654042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
6664042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
6674042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
6684042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
6694042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
6704042147aSBert Vermeulen	select BOOT_RAW
6714042147aSBert Vermeulen	select PINCTRL
67262b8db3aSChris Packham	select USE_OF
6734042147aSBert Vermeulen	select REALTEK_OTTO_TIMER
6741da177e4SLinus Torvalds
6753fa986faSMartin Michlmayrconfig SGI_IP22
676c0de00b2SThomas Bogendoerfer	bool "SGI IP22 (Indy/Indigo2)"
67739b2d756SThomas Bogendoerfer	select ARC_MEMORY
6780e2794b0SRalf Baechle	select ARC_PROMLIB
6790e2794b0SRalf Baechle	select FW_ARC
6807a407aa5SRalf Baechle	select FW_ARC32
6811da177e4SLinus Torvalds	select ARCH_MIGHT_HAVE_PC_SERIO
68242f77542SRalf Baechle	select BOOT_ELF32
683940f6b48SRalf Baechle	select CEVT_R4K
684e2defae5SThomas Bogendoerfer	select CSRC_R4K
6851da177e4SLinus Torvalds	select DEFAULT_SGI_PARTITION
6866630a8e5SChristoph Hellwig	select DMA_NONCOHERENT
687d865bea4SRalf Baechle	select HAVE_EISA
68868de4803SThomas Bogendoerfer	select I8253
6891da177e4SLinus Torvalds	select I8259
69067e38cf2SRalf Baechle	select IP22_CPU_SCACHE
691aa414dffSRalf Baechle	select IRQ_MIPS_CPU
692e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
693e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
69436e5c21dSThomas Bogendoerfer	select SGI_HAS_INDYDOG
695e2defae5SThomas Bogendoerfer	select SGI_HAS_HAL2
696e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
697e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
6981da177e4SLinus Torvalds	select SGI_HAS_ZILOG
6997cf8053bSRalf Baechle	select SWAP_IO_SPACE
7007cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
701c0de00b2SThomas Bogendoerfer	select SYS_HAS_CPU_R5000
702ed5ba2fbSYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
703ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
7045e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
705802b8362SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
7065e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
70744def342SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
708930beb5aSFlorian Fainelli	select WAR_R4600_V2_HIT_CACHEOP
7091da177e4SLinus Torvalds	select MIPS_L1_CACHE_SHIFT_7
7101da177e4SLinus Torvalds	help
7111da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
7121da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
7131da177e4SLinus Torvalds	  that runs on these, say Y here.
7141da177e4SLinus Torvalds
7153fa986faSMartin Michlmayrconfig SGI_IP27
71654aed4ddSChristoph Hellwig	bool "SGI IP27 (Origin200/2000)"
717397dc00eSMike Rapoport	select ARCH_HAS_PHYS_TO_DMA
7180e2794b0SRalf Baechle	select ARCH_SPARSEMEM_ENABLE
7190e2794b0SRalf Baechle	select FW_ARC
720e9422427SThomas Bogendoerfer	select FW_ARC64
7215e83d430SRalf Baechle	select ARC_CMDLINE_ONLY
722e2defae5SThomas Bogendoerfer	select BOOT_ELF64
72304100459SChristoph Hellwig	select DEFAULT_SGI_PARTITION
72436a88530SRalf Baechle	select FORCE_PCI
725eb01d42aSChristoph Hellwig	select SYS_HAS_EARLY_PRINTK
72669a07a41SThomas Bogendoerfer	select HAVE_PCI
727e6308b6dSThomas Bogendoerfer	select IRQ_MIPS_CPU
728130e2fb7SRalf Baechle	select IRQ_DOMAIN_HIERARCHY
729a57140e9SThomas Bogendoerfer	select NR_CPUS_DEFAULT_64
730a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7317cf8053bSRalf Baechle	select PCI_XTALK_BRIDGE
732ed5ba2fbSYoichi Yuasa	select SYS_HAS_CPU_R10000
7335e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
734d8cb4e11SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
7351a5c5de1SRalf Baechle	select SYS_SUPPORTS_NUMA
736256ec489SThomas Bogendoerfer	select SYS_SUPPORTS_SMP
737930beb5aSFlorian Fainelli	select WAR_R10000_LLSC
7386c86a302SMike Rapoport	select MIPS_L1_CACHE_SHIFT_7
7391da177e4SLinus Torvalds	select NUMA
7401da177e4SLinus Torvalds	help
7411da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7421da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7431da177e4SLinus Torvalds	  here.
744e2defae5SThomas Bogendoerfer
7457d60717eSKees Cookconfig SGI_IP28
746c0de00b2SThomas Bogendoerfer	bool "SGI IP28 (Indigo2 R10k)"
74739b2d756SThomas Bogendoerfer	select ARC_MEMORY
7480e2794b0SRalf Baechle	select ARC_PROMLIB
7490e2794b0SRalf Baechle	select FW_ARC
7507a407aa5SRalf Baechle	select FW_ARC64
751e2defae5SThomas Bogendoerfer	select ARCH_MIGHT_HAVE_PC_SERIO
752e2defae5SThomas Bogendoerfer	select BOOT_ELF64
753e2defae5SThomas Bogendoerfer	select CEVT_R4K
754e2defae5SThomas Bogendoerfer	select CSRC_R4K
755e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
756e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
75767e38cf2SRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
7586630a8e5SChristoph Hellwig	select IRQ_MIPS_CPU
759e2defae5SThomas Bogendoerfer	select HAVE_EISA
760e2defae5SThomas Bogendoerfer	select I8253
761e2defae5SThomas Bogendoerfer	select I8259
762e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
7635b438c44SThomas Bogendoerfer	select SGI_HAS_INDYDOG
764e2defae5SThomas Bogendoerfer	select SGI_HAS_HAL2
765e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
766e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
767e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
768e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
769c0de00b2SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
770e2defae5SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
771e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
772256ec489SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
773dc24d68dSThomas Bogendoerfer	select WAR_R10000_LLSC
774e2defae5SThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
775e2defae5SThomas Bogendoerfer	help
776e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
777e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
7787505576dSThomas Bogendoerfer
7797505576dSThomas Bogendoerferconfig SGI_IP30
7807505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
7817505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
7827505576dSThomas Bogendoerfer	select FW_ARC
7837505576dSThomas Bogendoerfer	select FW_ARC64
7847505576dSThomas Bogendoerfer	select BOOT_ELF64
7857505576dSThomas Bogendoerfer	select CEVT_R4K
78604100459SChristoph Hellwig	select CSRC_R4K
7877505576dSThomas Bogendoerfer	select FORCE_PCI
7887505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
7897505576dSThomas Bogendoerfer	select ZONE_DMA32
7907505576dSThomas Bogendoerfer	select HAVE_PCI
7917505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
7927505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
7937505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
7947505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7957505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
7967505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
7977505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
7987505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
799256ec489SThomas Bogendoerfer	select SYS_SUPPORTS_SMP
8007505576dSThomas Bogendoerfer	select WAR_R10000_LLSC
8017505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
8027505576dSThomas Bogendoerfer	select ARC_MEMORY
8037505576dSThomas Bogendoerfer	help
8047505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
8057505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
8061da177e4SLinus Torvalds
807cfd2afc0SRalf Baechleconfig SGI_IP32
80839b2d756SThomas Bogendoerfer	bool "SGI IP32 (O2)"
80939b2d756SThomas Bogendoerfer	select ARC_MEMORY
81003df8229SChristoph Hellwig	select ARC_PROMLIB
8110e2794b0SRalf Baechle	select ARCH_HAS_PHYS_TO_DMA
8120e2794b0SRalf Baechle	select FW_ARC
8131da177e4SLinus Torvalds	select FW_ARC32
81442f77542SRalf Baechle	select BOOT_ELF32
815940f6b48SRalf Baechle	select CEVT_R4K
8161da177e4SLinus Torvalds	select CSRC_R4K
817eb01d42aSChristoph Hellwig	select DMA_NONCOHERENT
81867e38cf2SRalf Baechle	select HAVE_PCI
8191da177e4SLinus Torvalds	select IRQ_MIPS_CPU
8201da177e4SLinus Torvalds	select R5000_CPU_SCACHE
8217cf8053bSRalf Baechle	select RM7000_CPU_SCACHE
8227cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
8237cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
824dd2f18feSRalf Baechle	select SYS_HAS_CPU_RM7000
825ed5ba2fbSYoichi Yuasa	select SYS_HAS_CPU_NEVADA
8265e83d430SRalf Baechle	select SYS_SUPPORTS_64BIT_KERNEL
827886ee136SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8281da177e4SLinus Torvalds	select WAR_ICACHE_REFILLS
8291da177e4SLinus Torvalds	help
8301da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8315e83d430SRalf Baechle
8323fa986faSMartin Michlmayrconfig SIBYTE_CRHONE
8335e83d430SRalf Baechle	bool "Sibyte BCM91125C-CRhone"
8345e83d430SRalf Baechle	select BOOT_ELF32
8355e83d430SRalf Baechle	select SIBYTE_BCM1125
8367cf8053bSRalf Baechle	select SWAP_IO_SPACE
8375e83d430SRalf Baechle	select SYS_HAS_CPU_SB1
8385e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8395e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8405e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
841ade299d8SYoichi Yuasa
842ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
843ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
84403452347SThomas Bogendoerfer	select BOOT_ELF32
845ade299d8SYoichi Yuasa	select SIBYTE_SB1250
846ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
847ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
848ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
849ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
850ade299d8SYoichi Yuasa
851ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
852ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
853fcf3ca4cSSebastian Andrzej Siewior	select BOOT_ELF32
854ade299d8SYoichi Yuasa	select HAVE_PATA_PLATFORM
855ade299d8SYoichi Yuasa	select SIBYTE_SB1250
856ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
857ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
858ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
859ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
860cce335aeSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
861e4849affSMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
862ade299d8SYoichi Yuasa	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
863ade299d8SYoichi Yuasa
864ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
865ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
866fcf3ca4cSSebastian Andrzej Siewior	select BOOT_ELF32
867ade299d8SYoichi Yuasa	select HAVE_PATA_PLATFORM
868ade299d8SYoichi Yuasa	select SIBYTE_SB1250
869ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
870ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
871ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
872ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
873756d6d83SMaciej W. Rozycki	select SYS_SUPPORTS_LITTLE_ENDIAN
874ade299d8SYoichi Yuasa	select ZONE_DMA32 if 64BIT
875ade299d8SYoichi Yuasa
876ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
877ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
878ade299d8SYoichi Yuasa	select BOOT_ELF32
879ade299d8SYoichi Yuasa	select SIBYTE_SB1250
880ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
881ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
882ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
883e4849affSMaciej W. Rozycki	select SYS_SUPPORTS_LITTLE_ENDIAN
884ade299d8SYoichi Yuasa	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
885ade299d8SYoichi Yuasa
886ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
887ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
888ade299d8SYoichi Yuasa	select BOOT_ELF32
889ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
890ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
891ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
892ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
893651194f8SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
894ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
895cce335aeSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
896e4849affSMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
897ade299d8SYoichi Yuasa	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
89814b36af4SThomas Bogendoerfer
89914b36af4SThomas Bogendoerferconfig SNI_RM
90039b2d756SThomas Bogendoerfer	bool "SNI RM200/300/400"
90139b2d756SThomas Bogendoerfer	select ARC_MEMORY
9020e2794b0SRalf Baechle	select ARC_PROMLIB
9030e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
904aaa9fad3SPaul Bolle	select FW_ARC32 if CPU_LITTLE_ENDIAN
9055e83d430SRalf Baechle	select FW_SNIPROM if CPU_BIG_ENDIAN
906a211a082SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
9077a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9085e83d430SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
90942f77542SRalf Baechle	select BOOT_ELF32
910940f6b48SRalf Baechle	select CEVT_R4K
911e2defae5SThomas Bogendoerfer	select CSRC_R4K
9125e83d430SRalf Baechle	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9135e83d430SRalf Baechle	select DMA_NONCOHERENT
9146630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA
9158a118c38SRalf Baechle	select HAVE_EISA
916eb01d42aSChristoph Hellwig	select HAVE_PCSPKR_PLATFORM
91767e38cf2SRalf Baechle	select HAVE_PCI
918d865bea4SRalf Baechle	select IRQ_MIPS_CPU
9195e83d430SRalf Baechle	select I8253
9205e83d430SRalf Baechle	select I8259
921564c836fSThomas Bogendoerfer	select ISA
9224a0312fcSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9237cf8053bSRalf Baechle	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9244a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R4X00
925c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
9264a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
92736a88530SRalf Baechle	select R5000_CPU_SCACHE
928ed5ba2fbSYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
9297d60717eSKees Cook	select SYS_SUPPORTS_32BIT_KERNEL
9304a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
9315e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
9325e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
93344def342SThomas Bogendoerfer	select SYS_SUPPORTS_LITTLE_ENDIAN
9341da177e4SLinus Torvalds	select WAR_R4600_V2_HIT_CACHEOP
93514b36af4SThomas Bogendoerfer	help
93614b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
9375e83d430SRalf Baechle	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9385e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9391da177e4SLinus Torvalds	  support this machine type.
940edcaf1a6SAtsushi Nemoto
941edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
94224a1c023SThomas Bogendoerfer	bool "Toshiba TX49 series based machines"
94323fbee9dSRalf Baechle	select WAR_TX49XX_ICACHE_INDEX_INV
94473b4390fSRalf Baechle
94573b4390fSRalf Baechleconfig MIKROTIK_RB532
94673b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
94773b4390fSRalf Baechle	select CEVT_R4K
94873b4390fSRalf Baechle	select CSRC_R4K
949eb01d42aSChristoph Hellwig	select DMA_NONCOHERENT
95067e38cf2SRalf Baechle	select HAVE_PCI
95173b4390fSRalf Baechle	select IRQ_MIPS_CPU
95273b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
95373b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
95473b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
95573b4390fSRalf Baechle	select SWAP_IO_SPACE
956d30a2b47SLinus Walleij	select BOOT_RAW
957930beb5aSFlorian Fainelli	select GPIOLIB
95873b4390fSRalf Baechle	select MIPS_L1_CACHE_SHIFT_4
95973b4390fSRalf Baechle	help
96073b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
96173b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
9629ddebc46SDavid Daney
9639ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
964a86c7f72SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
965ea8c64acSChristoph Hellwig	select CEVT_R4K
9661753d50cSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
967d4a451d5SChristoph Hellwig	select HAVE_RAPIDIO
968a86c7f72SDavid Daney	select PHYS_ADDR_T_64BIT
969a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
970f65aad41SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
971b01aec9bSBorislav Petkov	select EDAC_SUPPORT
97273569d87SDavid Daney	select EDAC_ATOMIC_SCRUB
97373569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
974a86c7f72SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
9755e683389SDavid Daney	select SYS_HAS_EARLY_PRINTK
976eb01d42aSChristoph Hellwig	select SYS_HAS_CPU_CAVIUM_OCTEON
97778bdbbacSMasahiro Yamada	select HAVE_PCI
97878bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
97978bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
980f00e001eSDavid Daney	select HAVE_PLAT_MEMCPY
981d30a2b47SLinus Walleij	select ZONE_DMA32
9826e511163SDavid Daney	select GPIOLIB
9836e511163SDavid Daney	select USE_OF
9846e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
9857820b84bSDavid Daney	select SYS_SUPPORTS_SMP
9867820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
987e326479fSAndrew Bresticker	select MIPS_NR_CPU_NR_MAP_1024
988f766b28aSJulian Braha	select BUILTIN_DTB
9898c1e6b14SDavid Daney	select MTD
99009230cbcSChristoph Hellwig	select MTD_COMPLEX_MAPPINGS
9913ff72be4SSteven J. Hill	select SWIOTLB
992a86c7f72SDavid Daney	select SYS_SUPPORTS_RELOCATABLE
993a86c7f72SDavid Daney	help
994a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
995a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
996a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
997a86c7f72SDavid Daney	  Some of the supported boards are:
998a86c7f72SDavid Daney		EBT3000
999a86c7f72SDavid Daney		EBH3000
1000a86c7f72SDavid Daney		EBH3100
1001a86c7f72SDavid Daney		Thunder
1002a86c7f72SDavid Daney		Kodama
1003a86c7f72SDavid Daney		Hikari
1004a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
10051da177e4SLinus Torvalds
10061da177e4SLinus Torvaldsendchoice
10079a88b338SMasahiro Yamada
10089a88b338SMasahiro Yamadaconfig FIT_IMAGE_FDT_EPM5
10099a88b338SMasahiro Yamada	bool "Include FDT for Mobileye EyeQ5 development platforms"
10109a88b338SMasahiro Yamada	depends on MACH_EYEQ5
10119a88b338SMasahiro Yamada	default n
10129a88b338SMasahiro Yamada	help
10139a88b338SMasahiro Yamada	  Enable this to include the FDT for the EyeQ5 development platforms
10149a88b338SMasahiro Yamada	  from Mobileye in the FIT kernel image.
10159a88b338SMasahiro Yamada	  This requires u-boot on the platform.
1016e8c7c482SRalf Baechle
10173b12308fSSergey Ryazanovsource "arch/mips/alchemy/Kconfig"
1018d4a67d9dSGabor Juhossource "arch/mips/ath25/Kconfig"
1019a656ffcbSHauke Mehrtenssource "arch/mips/ath79/Kconfig"
1020e7300d04SMaxime Bizonsource "arch/mips/bcm47xx/Kconfig"
10218945e37eSKevin Cernekeesource "arch/mips/bcm63xx/Kconfig"
1022eed0eabdSPaul Burtonsource "arch/mips/bmips/Kconfig"
1023a103e9b9SPaul Cercueilsource "arch/mips/generic/Kconfig"
10245e83d430SRalf Baechlesource "arch/mips/ingenic/Kconfig"
10258ec6d935SJohn Crispinsource "arch/mips/jazz/Kconfig"
1026fbe0fae6SGregory CLEMENTsource "arch/mips/lantiq/Kconfig"
10272572f00dSJoshua Hendersonsource "arch/mips/mobileye/Kconfig"
1028ae2b5bb6SJohn Crispinsource "arch/mips/pic32/Kconfig"
102929c48699SRalf Baechlesource "arch/mips/ralink/Kconfig"
103038b18f72SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
103122b1d707SAtsushi Nemotosource "arch/mips/sibyte/Kconfig"
1032a86c7f72SDavid Daneysource "arch/mips/txx9/Kconfig"
103371e2f4ddSJiaxun Yangsource "arch/mips/cavium-octeon/Kconfig"
103430ad29bbSHuacai Chensource "arch/mips/loongson2ef/Kconfig"
103530ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
103638b18f72SRalf Baechlesource "arch/mips/loongson64/Kconfig"
10375e83d430SRalf Baechle
10385e83d430SRalf Baechleendmenu
10393c9ee7efSAkinobu Mita
10403c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10413c9ee7efSAkinobu Mita	bool
10423c9ee7efSAkinobu Mita	default y
10431da177e4SLinus Torvalds
10441da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10451da177e4SLinus Torvalds	bool
10461da177e4SLinus Torvalds	default y
1047ae1e9130SIngo Molnar
10481cc89038SAtsushi Nemotoconfig SCHED_OMIT_FRAME_POINTER
10491cc89038SAtsushi Nemoto	bool
10501cc89038SAtsushi Nemoto	default y
10511da177e4SLinus Torvalds
10521da177e4SLinus Torvalds#
10531da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10540e2794b0SRalf Baechle#
10551da177e4SLinus Torvaldsconfig FW_ARC
10561da177e4SLinus Torvalds	bool
105761ed242dSRalf Baechle
105861ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
105961ed242dSRalf Baechle	bool
10609267a30dSMarc St-Jean
10619267a30dSMarc St-Jeanconfig BOOT_RAW
10629267a30dSMarc St-Jean	bool
1063217dd11eSRalf Baechle
1064217dd11eSRalf Baechleconfig CEVT_BCM1480
1065217dd11eSRalf Baechle	bool
10666457d9fcSYoichi Yuasa
10676457d9fcSYoichi Yuasaconfig CEVT_DS1287
10686457d9fcSYoichi Yuasa	bool
10691097c6acSYoichi Yuasa
10701097c6acSYoichi Yuasaconfig CEVT_GT641XX
10711097c6acSYoichi Yuasa	bool
107242f77542SRalf Baechle
107342f77542SRalf Baechleconfig CEVT_R4K
107442f77542SRalf Baechle	bool
1075217dd11eSRalf Baechle
1076217dd11eSRalf Baechleconfig CEVT_SB1250
1077217dd11eSRalf Baechle	bool
1078229f773eSAtsushi Nemoto
1079229f773eSAtsushi Nemotoconfig CEVT_TXX9
1080229f773eSAtsushi Nemoto	bool
1081217dd11eSRalf Baechle
1082217dd11eSRalf Baechleconfig CSRC_BCM1480
1083217dd11eSRalf Baechle	bool
10844247417dSYoichi Yuasa
10854247417dSYoichi Yuasaconfig CSRC_IOASIC
10864247417dSYoichi Yuasa	bool
1087940f6b48SRalf Baechle
108838586428SSerge Seminconfig CSRC_R4K
1089940f6b48SRalf Baechle	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1090940f6b48SRalf Baechle	bool
1091217dd11eSRalf Baechle
1092217dd11eSRalf Baechleconfig CSRC_SB1250
1093217dd11eSRalf Baechle	bool
1094a7f4df4eSAlex Smith
1095a7f4df4eSAlex Smithconfig MIPS_CLOCK_VSYSCALL
1096a7f4df4eSAlex Smith	def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1097a9aec7feSAtsushi Nemoto
1098d30a2b47SLinus Walleijconfig GPIO_TXX9
1099a9aec7feSAtsushi Nemoto	select GPIOLIB
1100a9aec7feSAtsushi Nemoto	bool
11010e2794b0SRalf Baechle
1102df78b5c8SAurelien Jarnoconfig FW_CFE
1103df78b5c8SAurelien Jarno	bool
110440e084a5SRalf Baechle
1105f5748b8cSTiezhu Yangconfig ARCH_SUPPORTS_UPROBES
110640e084a5SRalf Baechle	def_bool y
11071da177e4SLinus Torvalds
11081da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
1109db91427bSChristoph Hellwig	bool
1110db91427bSChristoph Hellwig	#
1111db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1112db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1113db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1114db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1115db91427bSChristoph Hellwig	# significant advantages.
11166be87d61SJiaxun Yang	#
1117419e2f18SChristoph Hellwig	select ARCH_HAS_SETUP_DMA_OPS
1118fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1119e0b7fd12SJiaxun Yang	select ARCH_HAS_DMA_PREP_COHERENT
1120f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU
1121fa7e2247SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
112234dc0ea6SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
112334dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
11244ce588cdSRalf Baechle	select NEED_DMA_MAP_STATE
112536a88530SRalf Baechle
11261da177e4SLinus Torvaldsconfig SYS_HAS_EARLY_PRINTK
11271da177e4SLinus Torvalds	bool
11281b2bc75cSRalf Baechle
1129dbb74540SRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1130dbb74540SRalf Baechle	bool
11311da177e4SLinus Torvalds
11321da177e4SLinus Torvaldsconfig MIPS_BONITO64
11331da177e4SLinus Torvalds	bool
11341da177e4SLinus Torvalds
11351da177e4SLinus Torvaldsconfig MIPS_MSC
11361da177e4SLinus Torvalds	bool
113739b8d525SRalf Baechle
113839b8d525SRalf Baechleconfig SYNC_R4K
113939b8d525SRalf Baechle	bool
1140ce816fa8SUwe Kleine-König
1141d388d685SMaciej W. Rozyckiconfig NO_IOPORT_MAP
1142d388d685SMaciej W. Rozycki	def_bool n
11434e0748f5SMarkos Chandras
114418d84e2eSAlexander Lobakinconfig GENERIC_CSUM
11454e0748f5SMarkos Chandras	def_bool CPU_NO_LOAD_STORE_LR
11468313da30SRalf Baechle
11478313da30SRalf Baechleconfig GENERIC_ISA_DMA
11488313da30SRalf Baechle	bool
1149a35bee8aSNamhyung Kim	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
11508313da30SRalf Baechle	select ISA_DMA_API
1151aa414dffSRalf Baechle
1152aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
11538313da30SRalf Baechle	bool
1154aa414dffSRalf Baechle	select GENERIC_ISA_DMA
115578bdbbacSMasahiro Yamada
115678bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
115778bdbbacSMasahiro Yamada	bool
115878bdbbacSMasahiro Yamada
115978bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
116078bdbbacSMasahiro Yamada	bool
116178bdbbacSMasahiro Yamada
116278bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
116378bdbbacSMasahiro Yamada	bool
1164a35bee8aSNamhyung Kim
1165a35bee8aSNamhyung Kimconfig ISA_DMA_API
1166a35bee8aSNamhyung Kim	bool
11678c530ea3SMatt Redfearn
11688c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
11698c530ea3SMatt Redfearn	bool
11708c530ea3SMatt Redfearn	help
11718c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
11728c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
11738c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
11745e83d430SRalf Baechle
11756b2aac42SMasanari Iida#
11765e83d430SRalf Baechle# Endianness selection.  Sufficiently obscure so many users don't know what to
11775e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
11785e83d430SRalf Baechle# choice statement should be more obvious to the user.
11795e83d430SRalf Baechle#
11806b2aac42SMasanari Iidachoice
11811da177e4SLinus Torvalds	prompt "Endianness selection"
11821da177e4SLinus Torvalds	help
11835e83d430SRalf Baechle	  Some MIPS machines can be configured for either little or big endian
11843cb2fcccSMatt LaPlante	  byte order. These modes require different kernels and a different
11855e83d430SRalf Baechle	  Linux distribution.  In general there is one preferred byteorder for a
11863dde6ad8SDavid Sterba	  particular system but some systems are just as commonly used in the
11875e83d430SRalf Baechle	  one or the other endianness.
11885e83d430SRalf Baechle
11895e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
11905e83d430SRalf Baechle	bool "Big endian"
11915e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
11925e83d430SRalf Baechle
11935e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
11945e83d430SRalf Baechle	bool "Little endian"
11955e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
11965e83d430SRalf Baechle
11975e83d430SRalf Baechleendchoice
119822b0763aSDavid Daney
119922b0763aSDavid Daneyconfig EXPORT_UASM
120022b0763aSDavid Daney	bool
12012116245eSRalf Baechle
12022116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12032116245eSRalf Baechle	bool
12045e83d430SRalf Baechle
12055e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12065e83d430SRalf Baechle	bool
12075e83d430SRalf Baechle
12085e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12091da177e4SLinus Torvalds	bool
1210aa1762f4SDavid Daney
1211aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1212aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
12138420fd00SAtsushi Nemoto
12148420fd00SAtsushi Nemotoconfig IRQ_TXX9
12158420fd00SAtsushi Nemoto	bool
1216d5ab1a69SYoichi Yuasa
1217d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1218d5ab1a69SYoichi Yuasa	bool
1219252161ecSYoichi Yuasa
12201da177e4SLinus Torvaldsconfig PCI_GT64XXX_PCI0
12211da177e4SLinus Torvalds	bool
1222a57140e9SThomas Bogendoerfer
1223a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1224a57140e9SThomas Bogendoerfer	bool
12259267a30dSMarc St-Jean
12269267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12279267a30dSMarc St-Jean	bool
1228a7e07b1aSMarkos Chandras
1229a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1230a7e07b1aSMarkos Chandras	bool
12311da177e4SLinus Torvalds
12321da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12331da177e4SLinus Torvalds	bool
1234e2defae5SThomas Bogendoerfer
1235e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1236e2defae5SThomas Bogendoerfer	bool
12375b438c44SThomas Bogendoerfer
12385b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12395b438c44SThomas Bogendoerfer	bool
1240e2defae5SThomas Bogendoerfer
1241e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1242e2defae5SThomas Bogendoerfer	bool
1243e2defae5SThomas Bogendoerfer
1244e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1245e2defae5SThomas Bogendoerfer	bool
1246e2defae5SThomas Bogendoerfer
1247e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1248e2defae5SThomas Bogendoerfer	bool
1249e2defae5SThomas Bogendoerfer
1250e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1251e2defae5SThomas Bogendoerfer	bool
1252e2defae5SThomas Bogendoerfer
1253e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1254e2defae5SThomas Bogendoerfer	bool
12550e2794b0SRalf Baechle
12565e83d430SRalf Baechleconfig FW_ARC32
12575e83d430SRalf Baechle	bool
1258aaa9fad3SPaul Bolle
1259231a35d3SThomas Bogendoerferconfig FW_SNIPROM
1260231a35d3SThomas Bogendoerfer	bool
12611da177e4SLinus Torvalds
12621da177e4SLinus Torvaldsconfig BOOT_ELF32
12631da177e4SLinus Torvalds	bool
1264930beb5aSFlorian Fainelli
1265930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1266930beb5aSFlorian Fainelli	bool
1267930beb5aSFlorian Fainelli
1268930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1269930beb5aSFlorian Fainelli	bool
1270930beb5aSFlorian Fainelli
1271930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1272930beb5aSFlorian Fainelli	bool
1273930beb5aSFlorian Fainelli
1274930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1275930beb5aSFlorian Fainelli	bool
12761da177e4SLinus Torvalds
12771da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
1278a4c0201eSFlorian Fainelli	int
12795432eeb6SKevin Cernekee	default "7" if MIPS_L1_CACHE_SHIFT_7
12805432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
12815432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
12821da177e4SLinus Torvalds	default "4" if MIPS_L1_CACHE_SHIFT_4
12831da177e4SLinus Torvalds	default "5"
1284e9422427SThomas Bogendoerfer
1285e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1286e9422427SThomas Bogendoerfer	bool
12871da177e4SLinus Torvalds
12881da177e4SLinus Torvaldsconfig ARC_CONSOLE
1289e2defae5SThomas Bogendoerfer	bool "ARC console support"
12901da177e4SLinus Torvalds	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
12911da177e4SLinus Torvalds
12921da177e4SLinus Torvaldsconfig ARC_MEMORY
12931da177e4SLinus Torvalds	bool
12941da177e4SLinus Torvalds
12951da177e4SLinus Torvaldsconfig ARC_PROMLIB
12961da177e4SLinus Torvalds	bool
12970e2794b0SRalf Baechle
12981da177e4SLinus Torvaldsconfig FW_ARC64
12991da177e4SLinus Torvalds	bool
13001da177e4SLinus Torvalds
13011da177e4SLinus Torvaldsconfig BOOT_ELF64
13021da177e4SLinus Torvalds	bool
13031da177e4SLinus Torvalds
13041da177e4SLinus Torvaldsmenu "CPU selection"
13051da177e4SLinus Torvalds
13061da177e4SLinus Torvaldschoice
13071da177e4SLinus Torvalds	prompt "CPU type"
13081da177e4SLinus Torvalds	default CPU_R4X00
1309268a2d60SJiaxun Yang
1310caed1d1bSHuacai Chenconfig CPU_LOONGSON64
1311268a2d60SJiaxun Yang	bool "Loongson 64-bit CPU"
1312d3bc81beSChristoph Hellwig	depends on SYS_HAS_CPU_LOONGSON64
131351522217SJiaxun Yang	select ARCH_HAS_PHYS_TO_DMA
131451522217SJiaxun Yang	select CPU_MIPSR2
13150e476d91SHuacai Chen	select CPU_HAS_PREFETCH
13160e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13170e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13187507445bSHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
1319a6d54338SPaolo Bonzini	select CPU_SUPPORTS_MSA
132051522217SJiaxun Yang	select CPU_SUPPORTS_VZ
132151522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
1322edc0378eSJiaxun Yang	select CPU_MIPSR2_IRQ_VI
13230e476d91SHuacai Chen	select DMA_NONCOHERENT
13240e476d91SHuacai Chen	select WEAK_ORDERING
13257507445bSHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
1326b2edcfc8SHuacai Chen	select MIPS_ASID_BITS_VARIABLE
132717c99d94SHuacai Chen	select MIPS_PGD_C0_CONTEXT
13287f3b3c2bSJackie Liu	select MIPS_L1_CACHE_SHIFT_6
1329d30a2b47SLinus Walleij	select MIPS_FP_SUPPORT
133009230cbcSChristoph Hellwig	select GPIOLIB
13310e476d91SHuacai Chen	select SWIOTLB
1332caed1d1bSHuacai Chen	help
1333caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1334caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1335caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1336caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
13370e476d91SHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
13383702bba5SWu Zhangjin
13393702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13403702bba5SWu Zhangjin	bool "Loongson 2E"
1341268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON2E
13422a21c730SFuxin Zhang	select CPU_LOONGSON2EF
13432a21c730SFuxin Zhang	help
13442a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13452a21c730SFuxin Zhang	  with many extensions.
134625985edcSLucas De Marchi
13476f7a251aSWu Zhangjin	  It has an internal FPGA northbridge, which is compatible to
13486f7a251aSWu Zhangjin	  bonito64.
13496f7a251aSWu Zhangjin
13506f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13516f7a251aSWu Zhangjin	bool "Loongson 2F"
1352268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON2F
13536f7a251aSWu Zhangjin	select CPU_LOONGSON2EF
13546f7a251aSWu Zhangjin	help
13556f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13566f7a251aSWu Zhangjin	  with many extensions.
13576f7a251aSWu Zhangjin
13586f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
13596f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
13606f7a251aSWu Zhangjin	  Loongson2E.
1361ca585cf9SKelvin Cheung
1362ca585cf9SKelvin Cheungconfig CPU_LOONGSON1B
1363ca585cf9SKelvin Cheung	bool "Loongson 1B"
1364b2afb64cSHuacai Chen	depends on SYS_HAS_CPU_LOONGSON1B
13659ec88b60SKelvin Cheung	select CPU_LOONGSON32
1366ca585cf9SKelvin Cheung	select LEDS_GPIO_REGISTER
1367ca585cf9SKelvin Cheung	help
1368968dc5a0S谢致邦 (XIE Zhibang)	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1369968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
1370ca585cf9SKelvin Cheung	  instruction set.
137112e3280bSYang Ling
137212e3280bSYang Lingconfig CPU_LOONGSON1C
137312e3280bSYang Ling	bool "Loongson 1C"
1374b2afb64cSHuacai Chen	depends on SYS_HAS_CPU_LOONGSON1C
137512e3280bSYang Ling	select CPU_LOONGSON32
137612e3280bSYang Ling	select LEDS_GPIO_REGISTER
137712e3280bSYang Ling	help
1378968dc5a0S谢致邦 (XIE Zhibang)	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1379968dc5a0S谢致邦 (XIE Zhibang)	  Release 1 instruction set and part of the MIPS32 Release 2
138012e3280bSYang Ling	  instruction set.
13816e760c8dSRalf Baechle
13826e760c8dSRalf Baechleconfig CPU_MIPS32_R1
13837cf8053bSRalf Baechle	bool "MIPS32 Release 1"
13846e760c8dSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
1385797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1386ec28f306SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
13876e760c8dSRalf Baechle	select CPU_SUPPORTS_HIGHMEM
13885e83d430SRalf Baechle	help
13891e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
13901e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
13911e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
13921e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
13931e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
13941e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
13951e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
13961e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
13971e5f1caaSRalf Baechle	  performance.
13981e5f1caaSRalf Baechle
13991e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14007cf8053bSRalf Baechle	bool "MIPS32 Release 2"
14011e5f1caaSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
1402797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1403ec28f306SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1404a5e9a69eSPaul Burton	select CPU_SUPPORTS_HIGHMEM
14051e5f1caaSRalf Baechle	select CPU_SUPPORTS_MSA
14065e83d430SRalf Baechle	help
14076e760c8dSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14086e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14096e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14106e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14111da177e4SLinus Torvalds	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
1412ab7c01fdSSerge Semin
1413ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1414ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1415ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1416ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1417ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1418ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1419a6d54338SPaolo Bonzini	select CPU_SUPPORTS_MSA
1420ab7c01fdSSerge Semin	select CPU_SUPPORTS_VZ
1421ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1422ab7c01fdSSerge Semin	help
1423ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1424ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1425ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1426ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14277fd08ca5SLeonid Yegoshin
1428674d10e2SMarkos Chandrasconfig CPU_MIPS32_R6
14297fd08ca5SLeonid Yegoshin	bool "MIPS32 Release 6"
14307fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
143118d84e2eSAlexander Lobakin	select CPU_HAS_PREFETCH
14327fd08ca5SLeonid Yegoshin	select CPU_NO_LOAD_STORE_LR
14337fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14347fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1435a6d54338SPaolo Bonzini	select CPU_SUPPORTS_MSA
14367fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_VZ
14377fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14387fd08ca5SLeonid Yegoshin	help
14397fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14407fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14417fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14427fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14436e760c8dSRalf Baechle
14446e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14457cf8053bSRalf Baechle	bool "MIPS64 Release 1"
1446797798c1SRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1447ed5ba2fbSYoichi Yuasa	select CPU_HAS_PREFETCH
1448ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1449ec28f306SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
14509cffd154SDavid Daney	select CPU_SUPPORTS_HIGHMEM
14516e760c8dSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
14526e760c8dSRalf Baechle	help
14536e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14546e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14556e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14566e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14571e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14581e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14591e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14601e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14611e5f1caaSRalf Baechle	  performance.
14621e5f1caaSRalf Baechle
14631e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
14647cf8053bSRalf Baechle	bool "MIPS64 Release 2"
1465797798c1SRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
14661e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
14671e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1468ec28f306SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
14699cffd154SDavid Daney	select CPU_SUPPORTS_HIGHMEM
1470a5e9a69eSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
14711e5f1caaSRalf Baechle	select CPU_SUPPORTS_MSA
14721e5f1caaSRalf Baechle	help
14731e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14741e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14751e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14761e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14771da177e4SLinus Torvalds	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
1478ab7c01fdSSerge Semin
1479ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1480ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1481ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1482ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1483ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1484ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1485ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1486ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1487ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1488a6d54338SPaolo Bonzini	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1489ab7c01fdSSerge Semin	select CPU_SUPPORTS_VZ
1490ab7c01fdSSerge Semin	help
1491ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1492ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1493ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1494ab7c01fdSSerge Semin	  any hardware known to be based on this release.
14957fd08ca5SLeonid Yegoshin
1496674d10e2SMarkos Chandrasconfig CPU_MIPS64_R6
14977fd08ca5SLeonid Yegoshin	bool "MIPS64 Release 6"
14987fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
149918d84e2eSAlexander Lobakin	select CPU_HAS_PREFETCH
15007fd08ca5SLeonid Yegoshin	select CPU_NO_LOAD_STORE_LR
15017fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15027fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
1503afd375dcSPaul Burton	select CPU_SUPPORTS_HIGHMEM
15047fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HUGEPAGES
15052e6c7747SJames Hogan	select CPU_SUPPORTS_MSA
1506a6d54338SPaolo Bonzini	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
15077fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_VZ
15087fd08ca5SLeonid Yegoshin	help
15097fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15107fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15117fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15127fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
1513281e3aeaSSerge Semin
1514281e3aeaSSerge Seminconfig CPU_P5600
1515281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1516281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1517281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1518281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1519281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1520281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1521a6d54338SPaolo Bonzini	select CPU_SUPPORTS_CPUFREQ
1522281e3aeaSSerge Semin	select CPU_SUPPORTS_VZ
1523281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1524281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1525281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1526281e3aeaSSerge Semin	help
1527281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1528281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1529281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1530281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1531281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1532281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1533281e3aeaSSerge Semin	  eJTAG and PDtrace.
15341da177e4SLinus Torvalds
15351da177e4SLinus Torvaldsconfig CPU_R3000
15367cf8053bSRalf Baechle	bool "R3000"
1537f7062ddbSRalf Baechle	depends on SYS_HAS_CPU_R3000
153854746829SPaul Burton	select CPU_HAS_WB
1539ed5ba2fbSYoichi Yuasa	select CPU_R3K_TLB
1540797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
15411da177e4SLinus Torvalds	select CPU_SUPPORTS_HIGHMEM
15421da177e4SLinus Torvalds	help
15431da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15441da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15451da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15461da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15471da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15481da177e4SLinus Torvalds	  try to recompile with R3000.
154965ce6197SLauri Kasanen
155065ce6197SLauri Kasanenconfig CPU_R4300
155165ce6197SLauri Kasanen	bool "R4300"
155265ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
155365ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
155465ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
155565ce6197SLauri Kasanen	help
155665ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
15571da177e4SLinus Torvalds
15581da177e4SLinus Torvaldsconfig CPU_R4X00
15597cf8053bSRalf Baechle	bool "R4x00"
1560ed5ba2fbSYoichi Yuasa	depends on SYS_HAS_CPU_R4X00
1561ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1562970d032fSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
15631da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
15641da177e4SLinus Torvalds	help
15651da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15661da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
15671da177e4SLinus Torvalds
15681da177e4SLinus Torvaldsconfig CPU_TX49XX
15697cf8053bSRalf Baechle	bool "R49XX"
1570de862b48SAtsushi Nemoto	depends on SYS_HAS_CPU_TX49XX
1571ed5ba2fbSYoichi Yuasa	select CPU_HAS_PREFETCH
1572ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1573970d032fSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
15741da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
15751da177e4SLinus Torvalds
15761da177e4SLinus Torvaldsconfig CPU_R5000
15777cf8053bSRalf Baechle	bool "R5000"
1578ed5ba2fbSYoichi Yuasa	depends on SYS_HAS_CPU_R5000
1579ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1580970d032fSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
15811da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
15821da177e4SLinus Torvalds	help
15831da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
1584542c1020SShinya Kuribayashi
1585542c1020SShinya Kuribayashiconfig CPU_R5500
1586542c1020SShinya Kuribayashi	bool "R5500"
1587542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1588542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
15899cffd154SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1590542c1020SShinya Kuribayashi	select CPU_SUPPORTS_HUGEPAGES
1591542c1020SShinya Kuribayashi	help
1592542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1593542c1020SShinya Kuribayashi	  instruction set.
15941da177e4SLinus Torvalds
15951da177e4SLinus Torvaldsconfig CPU_NEVADA
15967cf8053bSRalf Baechle	bool "RM52xx"
1597ed5ba2fbSYoichi Yuasa	depends on SYS_HAS_CPU_NEVADA
1598ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1599970d032fSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
16001da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
16011da177e4SLinus Torvalds	help
16021da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16031da177e4SLinus Torvalds
16041da177e4SLinus Torvaldsconfig CPU_R10000
16057cf8053bSRalf Baechle	bool "R10000"
16065e83d430SRalf Baechle	depends on SYS_HAS_CPU_R10000
1607ed5ba2fbSYoichi Yuasa	select CPU_HAS_PREFETCH
1608ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1609797798c1SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1610970d032fSRalf Baechle	select CPU_SUPPORTS_HIGHMEM
16111da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
16121da177e4SLinus Torvalds	help
16131da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16141da177e4SLinus Torvalds
16151da177e4SLinus Torvaldsconfig CPU_RM7000
16167cf8053bSRalf Baechle	bool "RM7000"
16175e83d430SRalf Baechle	depends on SYS_HAS_CPU_RM7000
1618ed5ba2fbSYoichi Yuasa	select CPU_HAS_PREFETCH
1619ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1620797798c1SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1621970d032fSRalf Baechle	select CPU_SUPPORTS_HIGHMEM
16221da177e4SLinus Torvalds	select CPU_SUPPORTS_HUGEPAGES
16231da177e4SLinus Torvalds
16241da177e4SLinus Torvaldsconfig CPU_SB1
16257cf8053bSRalf Baechle	bool "SB1"
1626ed5ba2fbSYoichi Yuasa	depends on SYS_HAS_CPU_SB1
1627ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1628797798c1SRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1629970d032fSRalf Baechle	select CPU_SUPPORTS_HIGHMEM
16300004a9dfSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16311da177e4SLinus Torvalds	select WEAK_ORDERING
1632a86c7f72SDavid Daney
1633a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
16345e683389SDavid Daney	bool "Cavium Octeon processor"
1635a86c7f72SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1636a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1637ba89f9c8SArnd Bergmann	select CPU_SUPPORTS_64BIT_KERNEL
1638ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_8KB if !MIPS_VA_BITS_48
1639a86c7f72SDavid Daney	select HAVE_PAGE_SIZE_32KB if !MIPS_VA_BITS_48
1640a86c7f72SDavid Daney	select WEAK_ORDERING
16419cffd154SDavid Daney	select CPU_SUPPORTS_HIGHMEM
1642df115f3eSBen Hutchings	select CPU_SUPPORTS_HUGEPAGES
1643df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1644930beb5aSFlorian Fainelli	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1645a6d54338SPaolo Bonzini	select MIPS_L1_CACHE_SHIFT_7
1646a86c7f72SDavid Daney	select CPU_SUPPORTS_VZ
1647a86c7f72SDavid Daney	help
1648a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1649a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1650a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1651a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1652cd746249SJonas Gorski
1653cd746249SJonas Gorskiconfig CPU_BMIPS
1654cd746249SJonas Gorski	bool "Broadcom BMIPS"
1655cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1656fe7f62c0SJonas Gorski	select CPU_MIPS32
1657cd746249SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1658cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1659cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1660cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1661cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
166267e38cf2SRalf Baechle	select DMA_NONCOHERENT
1663cd746249SJonas Gorski	select IRQ_MIPS_CPU
1664cd746249SJonas Gorski	select SWAP_IO_SPACE
1665c1c0c461SKevin Cernekee	select WEAK_ORDERING
166669aaf9c8SJonas Gorski	select CPU_SUPPORTS_HIGHMEM
1667a8d709b0SMarkus Mayer	select CPU_HAS_PREFETCH
1668a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1669bf8bde41SFlorian Fainelli	select MIPS_EXTERNAL_TIMER
1670c1c0c461SKevin Cernekee	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1671fe7f62c0SJonas Gorski	help
1672c1c0c461SKevin Cernekee	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
16731da177e4SLinus Torvalds
16741da177e4SLinus Torvaldsendchoice
16755033ad56SMasahiro Yamada
16765033ad56SMasahiro Yamadaconfig LOONGSON3_ENHANCEMENT
16775033ad56SMasahiro Yamada	bool "New Loongson-3 CPU Enhancements"
16785033ad56SMasahiro Yamada	default n
16795033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
16805033ad56SMasahiro Yamada	help
16815033ad56SMasahiro Yamada	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
16825033ad56SMasahiro Yamada	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
16835033ad56SMasahiro Yamada	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
16845033ad56SMasahiro Yamada	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
16855033ad56SMasahiro Yamada	  Fast TLB refill support, etc.
16865033ad56SMasahiro Yamada
16875033ad56SMasahiro Yamada	  This option enable those enhancements which are not probed at run
16885033ad56SMasahiro Yamada	  time. If you want a generic kernel to run on all Loongson 3 machines,
16895033ad56SMasahiro Yamada	  please say 'N' here. If you want a high-performance kernel to run on
16905033ad56SMasahiro Yamada	  new Loongson-3 machines only, please say 'Y' here.
16915033ad56SMasahiro Yamada
16925033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_WORKAROUNDS
16935033ad56SMasahiro Yamada	bool "Loongson-3 LLSC Workarounds"
16945033ad56SMasahiro Yamada	default y if SMP
16955033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
16965033ad56SMasahiro Yamada	help
16975033ad56SMasahiro Yamada	  Loongson-3 processors have the llsc issues which require workarounds.
16985033ad56SMasahiro Yamada	  Without workarounds the system may hang unexpectedly.
16995033ad56SMasahiro Yamada
17005033ad56SMasahiro Yamada	  Say Y, unless you know what you are doing.
17015033ad56SMasahiro Yamada
17025033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_CPUCFG_EMULATION
17035033ad56SMasahiro Yamada	bool "Emulate the CPUCFG instruction on older Loongson cores"
17045033ad56SMasahiro Yamada	default y
17055033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17065033ad56SMasahiro Yamada	help
17075033ad56SMasahiro Yamada	  Loongson-3A R4 and newer have the CPUCFG instruction available for
17085033ad56SMasahiro Yamada	  userland to query CPU capabilities, much like CPUID on x86. This
17095033ad56SMasahiro Yamada	  option provides emulation of the instruction on older Loongson
17105033ad56SMasahiro Yamada	  cores, back to Loongson-3A1000.
17115033ad56SMasahiro Yamada
17125033ad56SMasahiro Yamada	  If unsure, please say Y.
1713a6e18781SLeonid Yegoshin
1714a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1715a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1716281e3aeaSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R3_5
1717281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1718a6e18781SLeonid Yegoshin		   CPU_P5600
1719a6e18781SLeonid Yegoshin	help
1720a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1721a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1722a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1723a6e18781SLeonid Yegoshin
1724a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1725a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1726a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1727a6e18781SLeonid Yegoshin	select EVA
1728a6e18781SLeonid Yegoshin	default y
1729a6e18781SLeonid Yegoshin	help
1730a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1731a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1732a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1733a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1734c5b36783SSteven J. Hill
1735c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1736c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1737281e3aeaSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1738c5b36783SSteven J. Hill	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1739c5b36783SSteven J. Hill	help
1740c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1741c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1742c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1743c5b36783SSteven J. Hill
1744c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1745c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1746c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1747c5b36783SSteven J. Hill	depends on !EVA
1748c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1749c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1750c5b36783SSteven J. Hill	select XPA
1751d4a451d5SChristoph Hellwig	select HIGHMEM
1752c5b36783SSteven J. Hill	select PHYS_ADDR_T_64BIT
1753c5b36783SSteven J. Hill	default n
1754c5b36783SSteven J. Hill	help
1755c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1756c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1757c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1758c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1759c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1760c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1761622844bfSWu Zhangjin
1762622844bfSWu Zhangjinif CPU_LOONGSON2F
1763622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1764622844bfSWu Zhangjin	bool
1765622844bfSWu Zhangjin
1766622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1767622844bfSWu Zhangjin	bool
1768622844bfSWu Zhangjin
1769622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1770622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1771622844bfSWu Zhangjin	default y
1772622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1773622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1774622844bfSWu Zhangjin	help
1775622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1776622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1777622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1778622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1779622844bfSWu Zhangjin
1780622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1781622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1782622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1783622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1784622844bfSWu Zhangjin	  systems.
1785622844bfSWu Zhangjin
1786622844bfSWu Zhangjin	  If unsure, please say Y.
1787622844bfSWu Zhangjinendif # CPU_LOONGSON2F
17881b93b3c3SWu Zhangjin
17891b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
17901b93b3c3SWu Zhangjin	bool
17911b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
179231c4867dSFlorian Fainelli	select HAVE_KERNEL_BZIP2
17931b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZ4
1794fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZMA
17954e23eb63SFlorian Fainelli	select HAVE_KERNEL_LZO
1796a510b616SPaul Cercueil	select HAVE_KERNEL_XZ
17971b93b3c3SWu Zhangjin	select HAVE_KERNEL_ZSTD
17981b93b3c3SWu Zhangjin
17991b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18001b93b3c3SWu Zhangjin	bool
18011b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
1802dbb98314SAlban Bedel
1803dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1804dbb98314SAlban Bedel	bool
1805dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1806268a2d60SJiaxun Yang
18073702bba5SWu Zhangjinconfig CPU_LOONGSON2EF
18083702bba5SWu Zhangjin	bool
18093702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18103702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
1811970d032fSRalf Baechle	select CPU_SUPPORTS_HIGHMEM
18123702bba5SWu Zhangjin	select CPU_SUPPORTS_HUGEPAGES
1813b2afb64cSHuacai Chen
1814ca585cf9SKelvin Cheungconfig CPU_LOONGSON32
1815ca585cf9SKelvin Cheung	bool
18167e280f6bSJiaxun Yang	select CPU_MIPS32
1817ca585cf9SKelvin Cheung	select CPU_MIPSR2
1818ca585cf9SKelvin Cheung	select CPU_HAS_PREFETCH
1819ca585cf9SKelvin Cheung	select CPU_SUPPORTS_32BIT_KERNEL
1820f29ad10dSKelvin Cheung	select CPU_SUPPORTS_HIGHMEM
1821ca585cf9SKelvin Cheung	select CPU_SUPPORTS_CPUFREQ
1822fe7f62c0SJonas Gorski
182304fa8bf7SJonas Gorskiconfig CPU_BMIPS32_3300
18241bbb6c1bSKevin Cernekee	select SMP_UP if SMP
1825cd746249SJonas Gorski	bool
1826cd746249SJonas Gorski
1827cd746249SJonas Gorskiconfig CPU_BMIPS4350
1828cd746249SJonas Gorski	bool
1829cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1830cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1831cd746249SJonas Gorski
1832cd746249SJonas Gorskiconfig CPU_BMIPS4380
1833bbf2ba67SKevin Cernekee	bool
1834cd746249SJonas Gorski	select MIPS_L1_CACHE_SHIFT_6
1835cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1836b4720809SFlorian Fainelli	select SYS_SUPPORTS_HOTPLUG_CPU
1837cd746249SJonas Gorski	select CPU_HAS_RIXI
1838cd746249SJonas Gorski
1839cd746249SJonas Gorskiconfig CPU_BMIPS5000
1840cd746249SJonas Gorski	bool
1841bbf2ba67SKevin Cernekee	select MIPS_CPU_SCACHE
1842cd746249SJonas Gorski	select MIPS_L1_CACHE_SHIFT_7
1843cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1844b4720809SFlorian Fainelli	select SYS_SUPPORTS_HOTPLUG_CPU
18451bbb6c1bSKevin Cernekee	select CPU_HAS_RIXI
1846268a2d60SJiaxun Yang
18470e476d91SHuacai Chenconfig SYS_HAS_CPU_LOONGSON64
18480e476d91SHuacai Chen	bool
1849b2edcfc8SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
18500e476d91SHuacai Chen	select CPU_HAS_RIXI
18513702bba5SWu Zhangjin
18522a21c730SFuxin Zhangconfig SYS_HAS_CPU_LOONGSON2E
18532a21c730SFuxin Zhang	bool
18546f7a251aSWu Zhangjin
18556f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
185655045ff5SWu Zhangjin	bool
185755045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
18586f7a251aSWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
1859ca585cf9SKelvin Cheung
1860ca585cf9SKelvin Cheungconfig SYS_HAS_CPU_LOONGSON1B
1861ca585cf9SKelvin Cheung	bool
186212e3280bSYang Ling
186312e3280bSYang Lingconfig SYS_HAS_CPU_LOONGSON1C
186412e3280bSYang Ling	bool
18657cf8053bSRalf Baechle
18667cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18677cf8053bSRalf Baechle	bool
18687cf8053bSRalf Baechle
18697cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18707cf8053bSRalf Baechle	bool
1871a6e18781SLeonid Yegoshin
1872a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1873a6e18781SLeonid Yegoshin	bool
1874c5b36783SSteven J. Hill
1875c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1876c5b36783SSteven J. Hill	bool
18777fd08ca5SLeonid Yegoshin
18787fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
18797fd08ca5SLeonid Yegoshin	bool
18807cf8053bSRalf Baechle
18817cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
18827cf8053bSRalf Baechle	bool
18837cf8053bSRalf Baechle
18847cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
18857cf8053bSRalf Baechle	bool
1886fd4eb90bSLukas Bulwahn
1887fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1888fd4eb90bSLukas Bulwahn	bool
18897fd08ca5SLeonid Yegoshin
18907fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
18917fd08ca5SLeonid Yegoshin	bool
1892281e3aeaSSerge Semin
1893281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1894281e3aeaSSerge Semin	bool
18957cf8053bSRalf Baechle
18967cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
18977cf8053bSRalf Baechle	bool
189865ce6197SLauri Kasanen
189965ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
190065ce6197SLauri Kasanen	bool
19017cf8053bSRalf Baechle
19027cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19037cf8053bSRalf Baechle	bool
19047cf8053bSRalf Baechle
19057cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19067cf8053bSRalf Baechle	bool
19077cf8053bSRalf Baechle
19087cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19097cf8053bSRalf Baechle	bool
1910542c1020SShinya Kuribayashi
1911542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1912542c1020SShinya Kuribayashi	bool
19137cf8053bSRalf Baechle
19147cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19157cf8053bSRalf Baechle	bool
19167cf8053bSRalf Baechle
19177cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19187cf8053bSRalf Baechle	bool
19197cf8053bSRalf Baechle
19207cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19217cf8053bSRalf Baechle	bool
19227cf8053bSRalf Baechle
19237cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19247cf8053bSRalf Baechle	bool
19255e683389SDavid Daney
19265e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19275e683389SDavid Daney	bool
1928cd746249SJonas Gorski
1929c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS
1930c1c0c461SKevin Cernekee	bool
1931fe7f62c0SJonas Gorski
1932c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS32_3300
1933cd746249SJonas Gorski	bool
1934c1c0c461SKevin Cernekee	select SYS_HAS_CPU_BMIPS
1935c1c0c461SKevin Cernekee
1936c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1937cd746249SJonas Gorski	bool
1938c1c0c461SKevin Cernekee	select SYS_HAS_CPU_BMIPS
1939c1c0c461SKevin Cernekee
1940c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1941cd746249SJonas Gorski	bool
1942c1c0c461SKevin Cernekee	select SYS_HAS_CPU_BMIPS
1943c1c0c461SKevin Cernekee
1944c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1945cd746249SJonas Gorski	bool
1946c1c0c461SKevin Cernekee	select SYS_HAS_CPU_BMIPS
194717099b11SRalf Baechle
194817099b11SRalf Baechle#
194917099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
195017099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
19510004a9dfSRalf Baechle#
19520004a9dfSRalf Baechleconfig WEAK_ORDERING
195317099b11SRalf Baechle	bool
195417099b11SRalf Baechle
195517099b11SRalf Baechle#
195617099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
195717099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
195817099b11SRalf Baechle#
195917099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
19605e83d430SRalf Baechle	bool
19615e83d430SRalf Baechleendmenu
19625e83d430SRalf Baechle
19635e83d430SRalf Baechle#
19645e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19655e83d430SRalf Baechle#
19665e83d430SRalf Baechleconfig CPU_MIPS32
1967ab7c01fdSSerge Semin	bool
1968281e3aeaSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
19695e83d430SRalf Baechle		     CPU_MIPS32_R6 || CPU_P5600
19705e83d430SRalf Baechle
19715e83d430SRalf Baechleconfig CPU_MIPS64
1972ab7c01fdSSerge Semin	bool
19735a4fa44fSJason A. Donenfeld	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
19745e83d430SRalf Baechle		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
19755e83d430SRalf Baechle
197657eeacedSPaul Burton#
19775e83d430SRalf Baechle# These indicate the revision of the architecture
19785e83d430SRalf Baechle#
19795e83d430SRalf Baechleconfig CPU_MIPSR1
19805e83d430SRalf Baechle	bool
19815e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
19825e83d430SRalf Baechle
19835e83d430SRalf Baechleconfig CPU_MIPSR2
1984a86c7f72SDavid Daney	bool
19858256b17eSFlorian Fainelli	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
1986ba9196d2SJiaxun Yang	select CPU_HAS_RIXI
1987a7e07b1aSMarkos Chandras	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
19885e83d430SRalf Baechle	select MIPS_SPRAM
1989ab7c01fdSSerge Semin
1990ab7c01fdSSerge Seminconfig CPU_MIPSR5
1991281e3aeaSSerge Semin	bool
1992ab7c01fdSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
1993ab7c01fdSSerge Semin	select CPU_HAS_RIXI
1994ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1995ab7c01fdSSerge Semin	select MIPS_SPRAM
19967fd08ca5SLeonid Yegoshin
19977fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
19987fd08ca5SLeonid Yegoshin	bool
1999289c270eSEric Biggers	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20008256b17eSFlorian Fainelli	select ARCH_HAS_CRC32
2001ba9196d2SJiaxun Yang	select CPU_HAS_RIXI
200287321fddSPaul Burton	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
20032db003a5SPaul Burton	select HAVE_ARCH_BITREVERSE
2004a7e07b1aSMarkos Chandras	select MIPS_ASID_BITS_VARIABLE
20055e83d430SRalf Baechle	select MIPS_SPRAM
200657eeacedSPaul Burton
200757eeacedSPaul Burtonconfig TARGET_ISA_REV
200857eeacedSPaul Burton	int
200957eeacedSPaul Burton	default 1 if CPU_MIPSR1
2010ab7c01fdSSerge Semin	default 2 if CPU_MIPSR2
201157eeacedSPaul Burton	default 5 if CPU_MIPSR5
201257eeacedSPaul Burton	default 6 if CPU_MIPSR6
201357eeacedSPaul Burton	default 0
201457eeacedSPaul Burton	help
201557eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
201657eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
2017a6e18781SLeonid Yegoshin
2018a6e18781SLeonid Yegoshinconfig EVA
2019a6e18781SLeonid Yegoshin	bool
2020c5b36783SSteven J. Hill
2021c5b36783SSteven J. Hillconfig XPA
2022c5b36783SSteven J. Hill	bool
20235e83d430SRalf Baechle
20245e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20255e83d430SRalf Baechle	bool
20265e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20275e83d430SRalf Baechle	bool
20285e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20295e83d430SRalf Baechle	bool
20305e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
203155045ff5SWu Zhangjin	bool
203255045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
203355045ff5SWu Zhangjin	bool
203455045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
20359cffd154SDavid Daney	bool
20369cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
2037a670c82dSLukas Bulwahn	bool
2038a6d54338SPaolo Bonzini	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
2039a6d54338SPaolo Bonziniconfig CPU_SUPPORTS_VZ
204082622284SDavid Daney	bool
204182622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
2042c6972fb9SHuang Pei	bool
204395b8a5e0SThomas Bogendoerfer	depends on 64BIT
20445e83d430SRalf Baechle	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20458192c9eaSDavid Daney
20468192c9eaSDavid Daney#
20478192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20488192c9eaSDavid Daney#
20498192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
2050679eb637SJames Hogan	bool
20518192c9eaSDavid Daney	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20525e83d430SRalf Baechle
20535e83d430SRalf Baechlemenu "Kernel type"
20545e83d430SRalf Baechle
20555e83d430SRalf Baechlechoice
20565e83d430SRalf Baechle	prompt "Kernel code model"
20575e83d430SRalf Baechle	help
20585e83d430SRalf Baechle	  You should only select this option if you have a workload that
20595e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20605e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20615e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20625e83d430SRalf Baechle
20635e83d430SRalf Baechleconfig 32BIT
20645e83d430SRalf Baechle	bool "32-bit kernel"
20655e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20665e83d430SRalf Baechle	select TRAD_SIGNALS
20675e83d430SRalf Baechle	help
2068f17c4ca3SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
20695e83d430SRalf Baechle
20705e83d430SRalf Baechleconfig 64BIT
20715e83d430SRalf Baechle	bool "64-bit kernel"
20725e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
20735e83d430SRalf Baechle	help
20745e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
20755e83d430SRalf Baechle
20765e83d430SRalf Baechleendchoice
20771e321fa9SLeonid Yegoshin
20781e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
20791e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
20801e321fa9SLeonid Yegoshin	depends on 64BIT
20813377e227SAlex Belits	help
20823377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
20833377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
20843377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
20853377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
20863377e227SAlex Belits	  level of page tables is added which imposes both a memory
20873377e227SAlex Belits	  overhead as well as slower TLB fault handling.
20881e321fa9SLeonid Yegoshin
20891e321fa9SLeonid Yegoshin	  If unsure, say N.
209079876cc1SYunQiang Su
209179876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
209279876cc1SYunQiang Su	hex "Compressed kernel load address"
209379876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
209479876cc1SYunQiang Su	default 0x0
209579876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
209679876cc1SYunQiang Su	help
209779876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
209879876cc1SYunQiang Su
209979876cc1SYunQiang Su	  This is only used if non-zero.
21000192445cSZi Yan
2101c9bace7cSDavid Daneyconfig ARCH_FORCE_MAX_ORDER
210223baf831SKirill A. Shutemov	int "Maximum zone order"
210323baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
210423baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
210523baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2106c9bace7cSDavid Daney	default "10"
2107c9bace7cSDavid Daney	help
2108c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2109c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2110c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2111c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2112c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2113c9bace7cSDavid Daney	  increase this value.
2114c9bace7cSDavid Daney
2115c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2116c9bace7cSDavid Daney	  when choosing a value for this option.
21171da177e4SLinus Torvalds
21181da177e4SLinus Torvaldsconfig BOARD_SCACHE
21191da177e4SLinus Torvalds	bool
21201da177e4SLinus Torvalds
21211da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21221da177e4SLinus Torvalds	bool
21231da177e4SLinus Torvalds	select BOARD_SCACHE
21249318c51aSChris Dearman
21259318c51aSChris Dearman#
21269318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21279318c51aSChris Dearman#
21289318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21299318c51aSChris Dearman	bool
21309318c51aSChris Dearman	select BOARD_SCACHE
21311da177e4SLinus Torvalds
21321da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21331da177e4SLinus Torvalds	bool
21341da177e4SLinus Torvalds	select BOARD_SCACHE
21351da177e4SLinus Torvalds
21361da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21371da177e4SLinus Torvalds	bool
21381da177e4SLinus Torvalds	select BOARD_SCACHE
21391da177e4SLinus Torvalds
21401da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21411da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21421da177e4SLinus Torvalds	depends on CPU_SB1
21431da177e4SLinus Torvalds	help
21441da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21451da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21461da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21471da177e4SLinus Torvalds
2148c8094b53SRalf Baechleconfig CPU_HAS_PREFETCH
21491da177e4SLinus Torvalds	bool
21503165c846SFlorian Fainelli
21513165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
2152455481fcSThomas Bogendoerfer	bool
21533165c846SFlorian Fainelli	default y if !CPU_R3000
2154c92e47e5SPaul Burton
2155183b40f9SPaul Burtonconfig MIPS_FP_SUPPORT
2156183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2157183b40f9SPaul Burton	default y
2158183b40f9SPaul Burton	help
2159183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2160183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2161183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2162183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2163183b40f9SPaul Burton	  receive a SIGILL.
2164183b40f9SPaul Burton
2165183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2166183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2167183b40f9SPaul Burton
2168c92e47e5SPaul Burton	  If unsure, say y.
216997f7dcbfSPaul Burton
217097f7dcbfSPaul Burtonconfig CPU_R2300_FPU
2171c92e47e5SPaul Burton	bool
2172455481fcSThomas Bogendoerfer	depends on MIPS_FP_SUPPORT
217397f7dcbfSPaul Burton	default y if CPU_R3000
217454746829SPaul Burton
217554746829SPaul Burtonconfig CPU_R3K_TLB
217654746829SPaul Burton	bool
217791405eb6SFlorian Fainelli
217891405eb6SFlorian Fainelliconfig CPU_R4K_FPU
2179c92e47e5SPaul Burton	bool
218097f7dcbfSPaul Burton	depends on MIPS_FP_SUPPORT
218191405eb6SFlorian Fainelli	default y if !CPU_R2300_FPU
218262cedc4fSFlorian Fainelli
218362cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
218454746829SPaul Burton	bool
218562cedc4fSFlorian Fainelli	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
218659d6ab86SRalf Baechle
2187a92b7f87SMarkos Chandrasconfig MIPS_MT_SMP
21885cbf9688SPaul Burton	bool "MIPS MT SMP support (1 TC on each available VPE)"
218974efddadSJiaxun Yang	default y
219074efddadSJiaxun Yang	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
219159d6ab86SRalf Baechle	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
2192d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_VI
2193c080faa5SSteven J. Hill	select CPU_MIPSR2_IRQ_EI
219459d6ab86SRalf Baechle	select SYNC_R4K
219559d6ab86SRalf Baechle	select MIPS_MT
219687353d8aSRalf Baechle	select SMP
2197c080faa5SSteven J. Hill	select SMP_UP
2198c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
2199399aaa25SAl Cooper	select SYS_SUPPORTS_SCHED_SMT
220059d6ab86SRalf Baechle	select MIPS_PERF_SHARED_TC_COUNTERS
2201c080faa5SSteven J. Hill	help
2202c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2203c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2204c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2205c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
220659d6ab86SRalf Baechle	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
2207f41ae0b2SRalf Baechle
2208f41ae0b2SRalf Baechleconfig MIPS_MT
2209f41ae0b2SRalf Baechle	bool
22100ab7aefcSRalf Baechle
22110ab7aefcSRalf Baechleconfig SCHED_SMT
22120ab7aefcSRalf Baechle	bool "SMT (multithreading) scheduler support"
22130ab7aefcSRalf Baechle	depends on SYS_SUPPORTS_SCHED_SMT
22140ab7aefcSRalf Baechle	default n
22150ab7aefcSRalf Baechle	help
22160ab7aefcSRalf Baechle	  SMT scheduler support improves the CPU scheduler's decision making
22170ab7aefcSRalf Baechle	  when dealing with MIPS MT enabled cores at a cost of slightly
22180ab7aefcSRalf Baechle	  increased overhead in some places. If unsure say N here.
22190ab7aefcSRalf Baechle
22200ab7aefcSRalf Baechleconfig SYS_SUPPORTS_SCHED_SMT
22210ab7aefcSRalf Baechle	bool
2222f41ae0b2SRalf Baechle
2223f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2224f41ae0b2SRalf Baechle	bool
2225f088fc84SRalf Baechle
2226f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2227f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2228b633648cSRalf Baechle	default y
222907cc0c9eSRalf Baechle	depends on MIPS_MT_SMP
2230b0a668fbSLeonid Yegoshin
2231b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
22329eaa9a82SPaul Burton	bool "MIPS R2-to-R6 emulator"
2233c92e47e5SPaul Burton	depends on CPU_MIPSR6
2234b0a668fbSLeonid Yegoshin	depends on MIPS_FP_SUPPORT
2235b0a668fbSLeonid Yegoshin	default y
2236b0a668fbSLeonid Yegoshin	help
2237b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
223807edf0d4SMarkos Chandras	  Even if you say 'Y' here, the emulator will still be disabled by
2239b0a668fbSLeonid Yegoshin	  default. You can enable it using the 'mipsr2emu' kernel option.
2240b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2241b0a668fbSLeonid Yegoshin	  final kernel image.
2242f35764e7SJames Hogan
2243f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2244f35764e7SJames Hogan	bool
2245f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2246f35764e7SJames Hogan	help
2247f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2248f35764e7SJames Hogan	  physical_memsize.
224907cc0c9eSRalf Baechle
225007cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
2251f35764e7SJames Hogan	bool "VPE loader support."
225207cc0c9eSRalf Baechle	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
225307cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
225407cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
225507cc0c9eSRalf Baechle	select MIPS_MT
225607cc0c9eSRalf Baechle	help
225707cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
2258f088fc84SRalf Baechle	  onto another VPE and running it.
22591a2a6d7eSDeng-Cheng Zhu
22601a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22611a2a6d7eSDeng-Cheng Zhu	bool
22627fb6f7b0SThomas Bogendoerfer	default "y"
22631a2a6d7eSDeng-Cheng Zhu	depends on MIPS_VPE_LOADER
2264e01402b1SRalf Baechle
2265e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2266e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2267e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2268e01402b1SRalf Baechle	default y
2269e01402b1SRalf Baechle	help
2270e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2271e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2272e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2273e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2274e01402b1SRalf Baechle
2275e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2276e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2277e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
22782c973ef0SDeng-Cheng Zhu
22792c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
22802c973ef0SDeng-Cheng Zhu	bool
22817fb6f7b0SThomas Bogendoerfer	default "y"
22825cac93b3SPaul Burton	depends on MIPS_VPE_APSP_API
22830ee958e1SPaul Burton
22840ee958e1SPaul Burtonconfig MIPS_CPS
22855a3e7c02SPaul Burton	bool "MIPS Coherent Processing System support"
22860ee958e1SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
22871d8f1f5aSPaul Burton	select MIPS_CM
22880ee958e1SPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
2289c8d2bcc4SThomas Gleixner	select SMP
22900ee958e1SPaul Burton	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
22911d8f1f5aSPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
2292c8b7712cSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
22930ee958e1SPaul Burton	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
22940ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
2295d8d3276bSWei Li	select WEAK_ORDERING
22960ee958e1SPaul Burton	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
22970ee958e1SPaul Burton	help
22980ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
22990ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23000ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23010ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23020ee958e1SPaul Burton	  support is unavailable.
23033179d37eSPaul Burton
230439a59593SMarkos Chandrasconfig MIPS_CPS_PM
23053179d37eSPaul Burton	depends on MIPS_CPS
23063179d37eSPaul Burton	bool
23079f98f3ddSPaul Burton
23089f98f3ddSPaul Burtonconfig MIPS_CM
23093c9b4166SPaul Burton	bool
23109f98f3ddSPaul Burton	select MIPS_CPC
23119c38cf44SPaul Burton
23129c38cf44SPaul Burtonconfig MIPS_CPC
23134a16ff4cSRalf Baechle	bool
23141da177e4SLinus Torvalds
23151da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23161da177e4SLinus Torvalds	bool
23171da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23181da177e4SLinus Torvalds	default y
23191da177e4SLinus Torvalds
23201da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23211da177e4SLinus Torvalds	bool
23221da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23231da177e4SLinus Torvalds	default y
23249e2b5372SMarkos Chandras
23259e2b5372SMarkos Chandraschoice
23269e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23279e2b5372SMarkos Chandras
23289e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23299e2b5372SMarkos Chandras	bool "None"
23309e2b5372SMarkos Chandras	help
23319e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23329693a853SFranck Bui-Huu
23339693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23349e2b5372SMarkos Chandras	depends on SYS_SUPPORTS_SMARTMIPS
23359693a853SFranck Bui-Huu	bool "SmartMIPS"
23369693a853SFranck Bui-Huu	help
23379693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23389693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23399693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23409693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23419693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23429693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23439693a853SFranck Bui-Huu	  here.
2344bce86083SSteven J. Hill
23457fd08ca5SLeonid Yegoshinconfig CPU_MICROMIPS
23469e2b5372SMarkos Chandras	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
2347bce86083SSteven J. Hill	bool "microMIPS"
2348bce86083SSteven J. Hill	help
2349bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2350bce86083SSteven J. Hill	  microMIPS ISA
23519e2b5372SMarkos Chandras
23529e2b5372SMarkos Chandrasendchoice
2353a5e9a69eSPaul Burton
23540ce3417eSPaul Burtonconfig CPU_HAS_MSA
2355a5e9a69eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2356c92e47e5SPaul Burton	depends on CPU_SUPPORTS_MSA
23572a6cb669SPaul Burton	depends on MIPS_FP_SUPPORT
2358a5e9a69eSPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2359a5e9a69eSPaul Burton	help
2360a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
23611db1af84SPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23621db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23631db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23641db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23651db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
2366a5e9a69eSPaul Burton	  the size & complexity of your kernel.
2367a5e9a69eSPaul Burton
2368a5e9a69eSPaul Burton	  If unsure, say Y.
23691da177e4SLinus Torvalds
2370f7062ddbSRalf Baechleconfig CPU_HAS_WB
2371e01402b1SRalf Baechle	bool
2372df0ac8a4SKevin Cernekee
2373df0ac8a4SKevin Cernekeeconfig XKS01
2374df0ac8a4SKevin Cernekee	bool
2375ba9196d2SJiaxun Yang
2376ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2377ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2378ba9196d2SJiaxun Yang	bool
2379ba9196d2SJiaxun Yang
2380ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2381ba9196d2SJiaxun Yang	bool
23828256b17eSFlorian Fainelli
23838256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
23848256b17eSFlorian Fainelli	bool
238518d84e2eSAlexander Lobakin
2386932afdeeSYasha Cherikovskyconfig CPU_NO_LOAD_STORE_LR
2387932afdeeSYasha Cherikovsky	bool
238818d84e2eSAlexander Lobakin	help
2389932afdeeSYasha Cherikovsky	  CPU lacks support for unaligned load and store instructions:
239018d84e2eSAlexander Lobakin	  LWL, LWR, SWL, SWR (Load/store word left/right).
239118d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
2392932afdeeSYasha Cherikovsky	  systems).
2393f41ae0b2SRalf Baechle
2394f41ae0b2SRalf Baechle#
2395f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2396e01402b1SRalf Baechle#
2397f41ae0b2SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2398e01402b1SRalf Baechle	bool
2399f41ae0b2SRalf Baechle
2400f41ae0b2SRalf Baechle#
2401f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2402e01402b1SRalf Baechle#
2403f41ae0b2SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2404e01402b1SRalf Baechle	bool
24051da177e4SLinus Torvalds
24061da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24071da177e4SLinus Torvalds	bool
24081da177e4SLinus Torvalds	depends on !CPU_R3000
24091da177e4SLinus Torvalds	default y
24101da177e4SLinus Torvalds
241120d60d99SMaciej W. Rozycki#
241220d60d99SMaciej W. Rozycki# CPU non-features
2413b56d1cafSThomas Bogendoerfer#
2414b56d1cafSThomas Bogendoerfer
2415b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2416b56d1cafSThomas Bogendoerfer#
2417b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2418b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2419b56d1cafSThomas Bogendoerfer#   erratum #23
2420b56d1cafSThomas Bogendoerfer#
2421b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2422b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2423b56d1cafSThomas Bogendoerfer#   erratum #41
2424b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2425b56d1cafSThomas Bogendoerfer#   #15
2426b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
242720d60d99SMaciej W. Rozycki#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
242820d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
242920d60d99SMaciej W. Rozycki	bool
2430b56d1cafSThomas Bogendoerfer
2431b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2432b56d1cafSThomas Bogendoerfer#
2433b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2434b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2435b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2436b56d1cafSThomas Bogendoerfer#   erratum #28
2437b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2438b56d1cafSThomas Bogendoerfer#   #19
2439b56d1cafSThomas Bogendoerfer#
2440b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2441b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2442b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2443b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2444b56d1cafSThomas Bogendoerfer#
2445b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2446b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2447b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
244820d60d99SMaciej W. Rozycki#   erratum #52
244920d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
245020d60d99SMaciej W. Rozycki	bool
245120d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
2452b56d1cafSThomas Bogendoerfer
2453b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2454b56d1cafSThomas Bogendoerfer#
2455b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2456b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2457b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
245820d60d99SMaciej W. Rozycki#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
245920d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
246020d60d99SMaciej W. Rozycki	bool
2461071d2f0bSPaul Burton
2462071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2463071d2f0bSPaul Burton	bool
2464071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
24654edf00a4SPaul Burton
24664edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
2467455481fcSThomas Bogendoerfer	int
24684edf00a4SPaul Burton	default 6 if CPU_R3000
24694edf00a4SPaul Burton	default 0
24704edf00a4SPaul Burton
24714edf00a4SPaul Burtonconfig MIPS_ASID_BITS
24722db003a5SPaul Burton	int
2473455481fcSThomas Bogendoerfer	default 0 if MIPS_ASID_BITS_VARIABLE
24744edf00a4SPaul Burton	default 6 if CPU_R3000
24754edf00a4SPaul Burton	default 8
24762db003a5SPaul Burton
24772db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
24782db003a5SPaul Burton	bool
2479802b8362SThomas Bogendoerfer
2480802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2481802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2482802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2483802b8362SThomas Bogendoerfer# with the issue.
2484802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2485802b8362SThomas Bogendoerfer	bool
24865e5b6527SThomas Bogendoerfer
24875e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
24885e5b6527SThomas Bogendoerfer#
24895e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
24905e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
249118ff14c8SColin Ian King#      executed if there is no other dcache activity. If the dcache is
24925e5b6527SThomas Bogendoerfer#      accessed for another instruction immediately preceding when these
24935e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
24945e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
24955e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
24965e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
24975e5b6527SThomas Bogendoerfer#      instruction.
24985e5b6527SThomas Bogendoerfer#
24995e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25005e5b6527SThomas Bogendoerfer#                              nop
25015e5b6527SThomas Bogendoerfer#                              nop
25025e5b6527SThomas Bogendoerfer#                              nop
25035e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25045e5b6527SThomas Bogendoerfer#
25055e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25065e5b6527SThomas Bogendoerfer#                              nop
25075e5b6527SThomas Bogendoerfer#                              nop
25085e5b6527SThomas Bogendoerfer#                              nop
25095e5b6527SThomas Bogendoerfer#                              nop
25105e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25115e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25125e5b6527SThomas Bogendoerfer	bool
251344def342SThomas Bogendoerfer
251444def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
251544def342SThomas Bogendoerfer#
251644def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
251744def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
251844def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
251944def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
252044def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
252144def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
252244def342SThomas Bogendoerfer# in .pdf format.)
252344def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
252444def342SThomas Bogendoerfer	bool
252524a1c023SThomas Bogendoerfer
252624a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
252724a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
252824a1c023SThomas Bogendoerfer# operation is not guaranteed."
252924a1c023SThomas Bogendoerfer#
253024a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
253124a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
253224a1c023SThomas Bogendoerfer	bool
2533886ee136SThomas Bogendoerfer
2534886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2535886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2536886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2537886ee136SThomas Bogendoerfer# exceptions.
2538886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2539886ee136SThomas Bogendoerfer	bool
2540256ec489SThomas Bogendoerfer
2541256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2542256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2543256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2544256ec489SThomas Bogendoerfer	bool
2545a7fbed98SThomas Bogendoerfer
2546a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2547a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2548a7fbed98SThomas Bogendoerfer	bool
254920d60d99SMaciej W. Rozycki
25501da177e4SLinus Torvalds#
25511da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25521da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25531da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25541da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25551da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25561da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25571da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
2558797798c1SRalf Baechle#   indexed CPUs but we're playing safe.
2559797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2560797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
25611da177e4SLinus Torvalds#   support.
25621da177e4SLinus Torvalds#
25631da177e4SLinus Torvaldsconfig HIGHMEM
2564a6e18781SLeonid Yegoshin	bool "High Memory Support"
2565a4c33e83SThomas Gleixner	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2566797798c1SRalf Baechle	select KMAP_LOCAL
2567797798c1SRalf Baechle
2568797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2569797798c1SRalf Baechle	bool
2570797798c1SRalf Baechle
2571797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
25721da177e4SLinus Torvalds	bool
25739693a853SFranck Bui-Huu
25749693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25759693a853SFranck Bui-Huu	bool
2576a6a4834cSSteven J. Hill
2577a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2578a6a4834cSSteven J. Hill	bool
2579377cb1b6SRalf Baechle
2580377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2581377cb1b6SRalf Baechle	bool
2582377cb1b6SRalf Baechle	help
2583377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2584377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2585377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2586a5e9a69eSPaul Burton
2587a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2588a5e9a69eSPaul Burton	bool
2589b4819b59SYoichi Yuasa
2590b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2591268a2d60SJiaxun Yang	def_bool y
2592b4819b59SYoichi Yuasa	depends on !NUMA && !CPU_LOONGSON2EF
2593b1c6cd42SAtsushi Nemoto
2594b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
259531473747SAtsushi Nemoto	bool
2596d8cb4e11SRalf Baechle
2597d8cb4e11SRalf Baechleconfig NUMA
2598d8cb4e11SRalf Baechle	bool "NUMA Support"
2599cf8194e4STiezhu Yang	depends on SYS_SUPPORTS_NUMA
26007ecd19cfSKefeng Wang	select SMP
26017ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
2602d8cb4e11SRalf Baechle	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2603d8cb4e11SRalf Baechle	help
2604d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2605d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2606172a37e9SRandy Dunlap	  than two nodes; on two node systems it is generally better to
2607d8cb4e11SRalf Baechle	  leave it disabled; on single node systems leave this option
2608d8cb4e11SRalf Baechle	  disabled.
2609d8cb4e11SRalf Baechle
2610d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2611d8cb4e11SRalf Baechle	bool
26128c530ea3SMatt Redfearn
26138c530ea3SMatt Redfearnconfig RELOCATABLE
2614ab7c01fdSSerge Semin	bool "Relocatable kernel"
2615ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2616ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2617ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2618a307a4ceSJinyang He		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2619a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2620*9b400d17SArd Biesheuvel		   CPU_LOONGSON64
26218c530ea3SMatt Redfearn	select ARCH_VMLINUX_NEEDS_RELOCS
26228c530ea3SMatt Redfearn	help
26238c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26248c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26258c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26268c530ea3SMatt Redfearn	  but are discarded at runtime
2627069fd766SMatt Redfearn
2628069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2629069fd766SMatt Redfearn	hex "Relocation table size"
2630069fd766SMatt Redfearn	depends on RELOCATABLE
2631a307a4ceSJinyang He	range 0x0 0x01000000
2632069fd766SMatt Redfearn	default "0x00200000" if CPU_LOONGSON64
2633a7f7f624SMasahiro Yamada	default "0x00100000"
2634069fd766SMatt Redfearn	help
2635069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2636069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2637069fd766SMatt Redfearn
2638069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2639069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2640069fd766SMatt Redfearn
2641069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2642069fd766SMatt Redfearn
2643069fd766SMatt Redfearn	  If unsure, leave at the default value.
2644405bc8fdSMatt Redfearn
2645405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2646405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2647a7f7f624SMasahiro Yamada	depends on RELOCATABLE
2648405bc8fdSMatt Redfearn	help
2649405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2650405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2651405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2652405bc8fdSMatt Redfearn	  of kernel internals.
2653405bc8fdSMatt Redfearn
2654405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2655405bc8fdSMatt Redfearn
2656405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2657405bc8fdSMatt Redfearn
2658405bc8fdSMatt Redfearn	  If unsure, say N.
2659405bc8fdSMatt Redfearn
2660405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2661405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2662405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2663405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2664405bc8fdSMatt Redfearn	range 0x0 0x08000000
2665a7f7f624SMasahiro Yamada	default "0x01000000"
2666405bc8fdSMatt Redfearn	help
2667405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2668405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2669405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2670405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2671405bc8fdSMatt Redfearn
2672405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2673405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2674c80d79d7SYasunori Goto
2675c80d79d7SYasunori Gotoconfig NODES_SHIFT
2676c80d79d7SYasunori Goto	int
2677a9ee6cf5SMike Rapoport	default "6"
2678c80d79d7SYasunori Goto	depends on NUMA
267914f70012SDeng-Cheng Zhu
268014f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
268195b8a5e0SThomas Bogendoerfer	bool "Enable hardware performance counter support for perf events"
268214f70012SDeng-Cheng Zhu	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
268314f70012SDeng-Cheng Zhu	default y
268414f70012SDeng-Cheng Zhu	help
268514f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
268614f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
2687be8fa1cbSTiezhu Yang
2688be8fa1cbSTiezhu Yangconfig DMI
2689be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2690be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2691be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2692be8fa1cbSTiezhu Yang	default y
2693be8fa1cbSTiezhu Yang	help
2694be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2695be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2696be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2697be8fa1cbSTiezhu Yang	  BIOS code.
26981da177e4SLinus Torvalds
26991da177e4SLinus Torvaldsconfig SMP
2700e73ea273SRalf Baechle	bool "Multi-Processing support"
2701e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
27021da177e4SLinus Torvalds	help
27034a474157SRobert Graffham	  This enables support for systems with more than one CPU. If you have
27044a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27051da177e4SLinus Torvalds	  than one CPU, say Y.
27064a474157SRobert Graffham
27071da177e4SLinus Torvalds	  If you say N here, the kernel will run on uni- and multiprocessor
27081da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27094a474157SRobert Graffham	  you say Y here, the kernel will run on many, but not all,
27101da177e4SLinus Torvalds	  uniprocessor machines. On a uniprocessor machine, the kernel
27111da177e4SLinus Torvalds	  will run faster if you say N here.
27121da177e4SLinus Torvalds
27131da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27141da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
271503502faaSAdrian Bunk
2716ef054ad3SAlexander A. Klimov	  See also the SMP-HOWTO available at
27171da177e4SLinus Torvalds	  <https://www.tldp.org/docs.html#howto>.
27181da177e4SLinus Torvalds
27191da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27207840d618SMatt Redfearn
27217840d618SMatt Redfearnconfig HOTPLUG_CPU
27227840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27237840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27247840d618SMatt Redfearn	help
27257840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27267840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27277840d618SMatt Redfearn	  (Note: power management support will enable this option
27287840d618SMatt Redfearn	    automatically on SMP systems. )
27297840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
273087353d8aSRalf Baechle
273187353d8aSRalf Baechleconfig SMP_UP
273287353d8aSRalf Baechle	bool
27330ee958e1SPaul Burton
27340ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27350ee958e1SPaul Burton	bool
2736e73ea273SRalf Baechle
2737e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2738e73ea273SRalf Baechle	bool
2739130e2fb7SRalf Baechle
2740130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2741130e2fb7SRalf Baechle	bool
2742130e2fb7SRalf Baechle
2743130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2744130e2fb7SRalf Baechle	bool
2745130e2fb7SRalf Baechle
2746130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2747130e2fb7SRalf Baechle	bool
2748130e2fb7SRalf Baechle
2749130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2750130e2fb7SRalf Baechle	bool
2751130e2fb7SRalf Baechle
2752130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2753130e2fb7SRalf Baechle	bool
27541da177e4SLinus Torvalds
2755a91796a9SJayachandran Cconfig NR_CPUS
2756a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
27571da177e4SLinus Torvalds	range 2 256
2758130e2fb7SRalf Baechle	depends on SMP
2759130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2760130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2761130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2762130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
27631da177e4SLinus Torvalds	default "64" if NR_CPUS_DEFAULT_64
27641da177e4SLinus Torvalds	help
27651da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27661da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
276772ede9b1SAtsushi Nemoto	  kernel and 64 for 64-bit kernels; the minimum value which makes
276872ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
27691da177e4SLinus Torvalds	  and 2 for all others.
27701da177e4SLinus Torvalds
277172ede9b1SAtsushi Nemoto	  This is purely to save memory - each supported CPU adds
277272ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
277372ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
27741da177e4SLinus Torvalds	  power of two.
2775399aaa25SAl Cooper
2776399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2777399aaa25SAl Cooper	bool
27787820b84bSDavid Daney
27797820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27807820b84bSDavid Daney	bool
27817820b84bSDavid Daney
27827820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27837820b84bSDavid Daney	int
27847820b84bSDavid Daney	depends on SMP
27857820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
27867820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
27871723b4a3SAtsushi Nemoto
27881723b4a3SAtsushi Nemoto#
27891723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
27901723b4a3SAtsushi Nemoto#
27911723b4a3SAtsushi Nemoto
27921723b4a3SAtsushi Nemotochoice
27931723b4a3SAtsushi Nemoto	prompt "Timer frequency"
27941723b4a3SAtsushi Nemoto	default HZ_250
27951723b4a3SAtsushi Nemoto	help
27961723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
279767596573SPaul Burton
279867596573SPaul Burton	config HZ_24
279967596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
28001723b4a3SAtsushi Nemoto
28010f873585SRalf Baechle	config HZ_48
28021723b4a3SAtsushi Nemoto		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28031723b4a3SAtsushi Nemoto
28041723b4a3SAtsushi Nemoto	config HZ_100
28051723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28061723b4a3SAtsushi Nemoto
28071723b4a3SAtsushi Nemoto	config HZ_128
28081723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28091723b4a3SAtsushi Nemoto
28101723b4a3SAtsushi Nemoto	config HZ_250
28111723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28121723b4a3SAtsushi Nemoto
28131723b4a3SAtsushi Nemoto	config HZ_256
28141723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28151723b4a3SAtsushi Nemoto
28161723b4a3SAtsushi Nemoto	config HZ_1000
28171723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28181723b4a3SAtsushi Nemoto
28191723b4a3SAtsushi Nemoto	config HZ_1024
28201723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28211723b4a3SAtsushi Nemoto
28221723b4a3SAtsushi Nemotoendchoice
282367596573SPaul Burton
282467596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
282567596573SPaul Burton	bool
28261723b4a3SAtsushi Nemoto
28271723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28281723b4a3SAtsushi Nemoto	bool
28291723b4a3SAtsushi Nemoto
28301723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28311723b4a3SAtsushi Nemoto	bool
28321723b4a3SAtsushi Nemoto
28331723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28341723b4a3SAtsushi Nemoto	bool
28351723b4a3SAtsushi Nemoto
28361723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28371723b4a3SAtsushi Nemoto	bool
28381723b4a3SAtsushi Nemoto
28391723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28401723b4a3SAtsushi Nemoto	bool
28411723b4a3SAtsushi Nemoto
28421723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28431723b4a3SAtsushi Nemoto	bool
28441723b4a3SAtsushi Nemoto
28451723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28461723b4a3SAtsushi Nemoto	bool
28471723b4a3SAtsushi Nemoto
28481723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
284967596573SPaul Burton	bool
285067596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
285167596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
285267596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
285367596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
285467596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
285567596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
28561723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1000HZ && \
28571723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28581723b4a3SAtsushi Nemoto
28591723b4a3SAtsushi Nemotoconfig HZ
286067596573SPaul Burton	int
28611723b4a3SAtsushi Nemoto	default 24 if HZ_24
28621723b4a3SAtsushi Nemoto	default 48 if HZ_48
28631723b4a3SAtsushi Nemoto	default 100 if HZ_100
28641723b4a3SAtsushi Nemoto	default 128 if HZ_128
28651723b4a3SAtsushi Nemoto	default 250 if HZ_250
28661723b4a3SAtsushi Nemoto	default 256 if HZ_256
28671723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28681723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
286996685b17SDeng-Cheng Zhu
287096685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
287196685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
2872571feed5SEric DeVolder
2873571feed5SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
2874ea6e942bSAtsushi Nemoto	def_bool y
2875571feed5SEric DeVolder
2876571feed5SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
28777aa1c8f4SRalf Baechle	def_bool y
287831daa343SDave Vasilevsky
287931daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
288031daa343SDave Vasilevsky	def_bool y
28817aa1c8f4SRalf Baechle
28827aa1c8f4SRalf Baechleconfig PHYSICAL_START
28838bda3e26SMaciej W. Rozycki	hex "Physical address where the kernel is loaded"
28847aa1c8f4SRalf Baechle	default "0xffffffff84000000"
28857aa1c8f4SRalf Baechle	depends on CRASH_DUMP
28867aa1c8f4SRalf Baechle	help
28877aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
28887aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
28897aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
28907aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
28917aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
2892597ce172SPaul Burton
2893b7f1e273SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2894597ce172SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2895597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2896597ce172SPaul Burton	help
2897597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2898597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2899597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2900597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2901597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2902597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2903597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2904597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2905597ce172SPaul Burton	  saying N here.
290606e2e882SPaul Burton
290706e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
290818ff14c8SColin Ian King	  concerning its effect upon the O32 ABI in userland are still being
290906e2e882SPaul Burton	  worked on. In order to avoid userland becoming dependent upon current
291006e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
291106e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
291206e2e882SPaul Burton	  said details.
291306e2e882SPaul Burton
2914597ce172SPaul Burton	  If unsure, say N.
2915f2ffa5abSDezhong Diao
29160b3e06fdSJonas Gorskiconfig USE_OF
2917f2ffa5abSDezhong Diao	bool
2918e6ce1324SStephen Neuendorffer	select OF
2919abd2363fSGrant Likely	select OF_EARLY_FLATTREE
2920f2ffa5abSDezhong Diao	select IRQ_DOMAIN
29212fe8ea39SDengcheng Zhu
29222fe8ea39SDengcheng Zhuconfig UHI_BOOT
29232fe8ea39SDengcheng Zhu	bool
29247fafb068SAndrew Bresticker
29257fafb068SAndrew Brestickerconfig BUILTIN_DTB
29267fafb068SAndrew Bresticker	bool
29271da8f179SJonas Gorski
2928b9d73218SMasahiro Yamadachoice
2929b9d73218SMasahiro Yamada	prompt "Kernel appended dtb support"
29301da8f179SJonas Gorski	depends on USE_OF
29311da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29321da8f179SJonas Gorski
29331da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29341da8f179SJonas Gorski		bool "None"
29351da8f179SJonas Gorski		help
29361da8f179SJonas Gorski		  Do not enable appended dtb support.
293787db537dSAaro Koskinen
293887db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
293987db537dSAaro Koskinen		bool "vmlinux"
294087db537dSAaro Koskinen		help
294187db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
294287db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
294387db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
294487db537dSAaro Koskinen		  objcopy:
294587db537dSAaro Koskinen
294687db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
294718ff14c8SColin Ian King
294887db537dSAaro Koskinen		  This is meant as a backward compatibility convenience for those
294987db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
295087db537dSAaro Koskinen		  the documented boot protocol using a device tree.
29511da8f179SJonas Gorski
2952b8f54f2cSJonas Gorski	config MIPS_RAW_APPENDED_DTB
29531da8f179SJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29541da8f179SJonas Gorski		help
2955b8f54f2cSJonas Gorski		  With this option, the boot code will look for a device tree binary
29561da8f179SJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29571da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29581da8f179SJonas Gorski
29591da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29601da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29611da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29621da8f179SJonas Gorski
29631da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29641da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29651da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29661da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29671da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29681da8f179SJonas Gorskiendchoice
29692024972eSJonas Gorski
2970b9d73218SMasahiro Yamadachoice
2971b9d73218SMasahiro Yamada	prompt "Kernel command line type"
29722bcef9b4SJonas Gorski	depends on !CMDLINE_OVERRIDE
297387fcfa7bSJiaxun Yang	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
29742bcef9b4SJonas Gorski					 !MACH_LOONGSON64 && !MIPS_MALTA && \
29752024972eSJonas Gorski					 !CAVIUM_OCTEON_SOC
29762024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29772024972eSJonas Gorski
29782024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
29792024972eSJonas Gorski		depends on USE_OF
29802024972eSJonas Gorski		bool "Dtb kernel arguments if available"
29812024972eSJonas Gorski
29822024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
29832024972eSJonas Gorski		depends on USE_OF
29842024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
29852024972eSJonas Gorski
29862024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
2987ed47e153SRabin Vincent		bool "Bootloader kernel arguments if available"
2988ed47e153SRabin Vincent
2989ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
2990ed47e153SRabin Vincent		depends on CMDLINE_BOOL
29912024972eSJonas Gorski		bool "Extend builtin kernel arguments with bootloader arguments"
29922024972eSJonas Gorskiendchoice
29935e83d430SRalf Baechle
29945e83d430SRalf Baechleendmenu
29951df0f0ffSAtsushi Nemoto
29961df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
29971df0f0ffSAtsushi Nemoto	bool
29981df0f0ffSAtsushi Nemoto	default y
29991df0f0ffSAtsushi Nemoto
30001df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
30011df0f0ffSAtsushi Nemoto	bool
30021df0f0ffSAtsushi Nemoto	default y
3003a728ab52SKirill A. Shutemov
3004a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
30053377e227SAlex Belits	int
300641ce097fSHuang Pei	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
3007a728ab52SKirill A. Shutemov	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3008a728ab52SKirill A. Shutemov	default 2
30096c359eb1SPaul Burton
30106c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30116c359eb1SPaul Burton	bool
30121da177e4SLinus Torvalds
30131da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
3014c5611df9SPaul Burton
30152eac9c2dSChristoph Hellwigconfig PCI_DRIVERS_GENERIC
3016c5611df9SPaul Burton	select PCI_DOMAINS_GENERIC if PCI
3017c5611df9SPaul Burton	bool
3018c5611df9SPaul Burton
3019c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3020c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
30212eac9c2dSChristoph Hellwig	select NO_GENERIC_PCI_IOPORT_MAP
30221da177e4SLinus Torvalds	select PCI_DOMAINS if PCI
30231da177e4SLinus Torvalds
30241da177e4SLinus Torvalds#
30251da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30261da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30271da177e4SLinus Torvalds# users to choose the right thing ...
30281da177e4SLinus Torvalds#
30291da177e4SLinus Torvaldsconfig ISA
30301da177e4SLinus Torvalds	bool
30311da177e4SLinus Torvalds
30321da177e4SLinus Torvaldsconfig TC
30331da177e4SLinus Torvalds	bool "TURBOchannel support"
30341da177e4SLinus Torvalds	depends on MACH_DECSTATION
303550a23e6eSJustin P. Mattock	help
303650a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
303750a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
303850a23e6eSJustin P. Mattock	  at:
303950a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
304050a23e6eSJustin P. Mattock	  and:
304150a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
304250a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
30431da177e4SLinus Torvalds	  <http://www.linux-mips.org/wiki/DECstation>
30441da177e4SLinus Torvalds
30451da177e4SLinus Torvaldsconfig MMU
30461da177e4SLinus Torvalds	bool
30471da177e4SLinus Torvalds	default y
3048109c32ffSMatt Redfearn
3049109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3050109c32ffSMatt Redfearn	default 12 if 64BIT
3051109c32ffSMatt Redfearn	default 8
3052109c32ffSMatt Redfearn
3053109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3054109c32ffSMatt Redfearn	default 18 if 64BIT
3055109c32ffSMatt Redfearn	default 15
3056109c32ffSMatt Redfearn
3057109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3058109c32ffSMatt Redfearn	default 8
3059109c32ffSMatt Redfearn
3060109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3061109c32ffSMatt Redfearn	default 15
3062d865bea4SRalf Baechle
3063d865bea4SRalf Baechleconfig I8253
3064798778b8SRussell King	bool
30652d02612fSThomas Gleixner	select CLKSRC_I8253
30669726b43aSWu Zhangjin	select CLKEVT_I8253
30671da177e4SLinus Torvalds	select MIPS_EXTERNAL_TIMER
30681da177e4SLinus Torvaldsendmenu
30691da177e4SLinus Torvalds
30701da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30711da177e4SLinus Torvalds	bool
30721da177e4SLinus Torvalds
307378aaf956SRalf Baechleconfig MIPS32_COMPAT
30741da177e4SLinus Torvalds	bool
30751da177e4SLinus Torvalds
30761da177e4SLinus Torvaldsconfig COMPAT
30771da177e4SLinus Torvalds	bool
30781da177e4SLinus Torvalds
30791da177e4SLinus Torvaldsconfig MIPS32_O32
308078aaf956SRalf Baechle	bool "Kernel support for o32 binaries"
308178aaf956SRalf Baechle	depends on 64BIT
308278aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
308378aaf956SRalf Baechle	select COMPAT
30841da177e4SLinus Torvalds	select MIPS32_COMPAT
30851da177e4SLinus Torvalds	help
30861da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
30871da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
30881da177e4SLinus Torvalds	  existing binaries are in this format.
30891da177e4SLinus Torvalds
30901da177e4SLinus Torvalds	  If unsure, say Y.
30911da177e4SLinus Torvalds
30921da177e4SLinus Torvaldsconfig MIPS32_N32
3093c22eacfeSRalf Baechle	bool "Kernel support for n32 binaries"
30945a9372f7SArnd Bergmann	depends on 64BIT
309578aaf956SRalf Baechle	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
309678aaf956SRalf Baechle	select COMPAT
30971da177e4SLinus Torvalds	select MIPS32_COMPAT
30981da177e4SLinus Torvalds	help
30991da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31001da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31011da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31021da177e4SLinus Torvalds	  cases.
31031da177e4SLinus Torvalds
31041da177e4SLinus Torvalds	  If unsure, say N.
3105d49fc692SNathan Chancellor
3106d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3107d49fc692SNathan Chancellor	def_bool y
3108d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
31091a2c73f4SJiaxun Yang
31101a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31111a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31121a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31132116245eSRalf Baechle
3114952fa954SRodolfo Giomettimenu "Power management options"
3115363c55caSWu Zhangjin
3116363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
31173f5b3e17SRalf Baechle	def_bool y
3118363c55caSWu Zhangjin	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3119f4cb5700SJohannes Berg
3120f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
31213f5b3e17SRalf Baechle	def_bool y
3122f4cb5700SJohannes Berg	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
31232116245eSRalf Baechle
3124952fa954SRodolfo Giomettisource "kernel/power/Kconfig"
31251da177e4SLinus Torvalds
31261da177e4SLinus Torvaldsendmenu
31277a998935SViresh Kumar
31287a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31297a998935SViresh Kumar	bool
31307a998935SViresh Kumar
3131c095ebafSPaul Burtonmenu "CPU Power Management"
3132c095ebafSPaul Burton
31337a998935SViresh Kumarif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
313431f12fdcSJuerg Haefligersource "drivers/cpufreq/Kconfig"
31359726b43aSWu Zhangjinendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
3136c095ebafSPaul Burton
3137c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3138c095ebafSPaul Burton
3139c095ebafSPaul Burtonendmenu
31402235a54dSSanjay Lal
3141e91946d6SNathan Chancellorsource "arch/mips/kvm/Kconfig"
3142e91946d6SNathan Chancellor
3143source "arch/mips/vdso/Kconfig"
3144