xref: /linux/arch/mips/Kconfig (revision 5023f5b861d50e43b25a3b1de47808023243484a)
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
70bce126aSThomas Weißschuh	select ARCH_HAS_CC_CAN_LINK
88690bbcfSMathieu Desnoyers	select ARCH_HAS_CPU_CACHE_ALIASING
97f066a22SThomas Gleixner	select ARCH_HAS_CPU_FINALIZE_INIT
10e633c2e7SNathan Chancellor	select ARCH_HAS_CURRENT_STACK_POINTER
11dfad83cbSFlorian Fainelli	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
12de6c85bfSChristoph Hellwig	select ARCH_HAS_DMA_OPS if MACH_JAZZ
1334c01e41SAlexander Lobakin	select ARCH_HAS_FORTIFY_SOURCE
1434c01e41SAlexander Lobakin	select ARCH_HAS_KCOV
1566633abdSTiezhu Yang	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
1634c01e41SAlexander Lobakin	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
17e6226997SArnd Bergmann	select ARCH_HAS_STRNCPY_FROM_USER
18e6226997SArnd Bergmann	select ARCH_HAS_STRNLEN_USER
1912597988SMatt Redfearn	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
20918327e9SKees Cook	select ARCH_HAS_UBSAN
218b3165e5SXingxing Su	select ARCH_HAS_GCOV_PROFILE_ALL
22c55944ccSNick Desaulniers	select ARCH_KEEP_MEMBLOCK
231ee3630aSRalf Baechle	select ARCH_USE_BUILTIN_BSWAP
2412597988SMatt Redfearn	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
25dce44566SAnshuman Khandual	select ARCH_USE_MEMTEST
2625da4e9dSPaul Burton	select ARCH_USE_QUEUED_RWLOCKS
270b17c967SPaul Burton	select ARCH_USE_QUEUED_SPINLOCKS
28855f9a8eSAnshuman Khandual	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
299035bd29SAlexandre Ghiti	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
3012597988SMatt Redfearn	select ARCH_WANT_IPC_PARSE_VERSION
31d3a4e0f1SAlexander Lobakin	select ARCH_WANT_LD_ORPHAN_WARN
3210916706SShile Zhang	select BUILDTIME_TABLE_SORT
3304e4ec98SMasahiro Yamada	select BUILTIN_DTB_ALL if BUILTIN_DTB
3412597988SMatt Redfearn	select CLONE_BACKWARDS
3557eeacedSPaul Burton	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
362226d454SJiaxun Yang	select CPU_PM if CPU_IDLE || SUSPEND
3712597988SMatt Redfearn	select GENERIC_ATOMIC64 if !64BIT
3804e4ec98SMasahiro Yamada	select GENERIC_BUILTIN_DTB if BUILTIN_DTB
3912597988SMatt Redfearn	select GENERIC_CMOS_UPDATE
4012597988SMatt Redfearn	select GENERIC_CPU_AUTOPROBE
4112597988SMatt Redfearn	select GENERIC_IRQ_PROBE
4212597988SMatt Redfearn	select GENERIC_IRQ_SHOW
436630a8e5SChristoph Hellwig	select GENERIC_ISA_DMA if EISA
44740129b3SAntony Pavlov	select GENERIC_LIB_ASHLDI3
45740129b3SAntony Pavlov	select GENERIC_LIB_ASHRDI3
46740129b3SAntony Pavlov	select GENERIC_LIB_CMPDI2
47740129b3SAntony Pavlov	select GENERIC_LIB_LSHRDI3
48740129b3SAntony Pavlov	select GENERIC_LIB_UCMPDI2
49976bf3aeSArnd Bergmann	select GENERIC_PCI_IOMAP
5012597988SMatt Redfearn	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
5112597988SMatt Redfearn	select GENERIC_SMP_IDLE_THREAD
52975fd3c2SJiaxun Yang	select GENERIC_IDLE_POLL_SETUP
536ca297d4SPeter Zijlstra	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
54fcbfe812SNiklas Schnelle	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
55906d441fSPaul Burton	select HAVE_ARCH_COMPILER_H
5612597988SMatt Redfearn	select HAVE_ARCH_JUMP_LABEL
5742b20995SArnd Bergmann	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
58109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_BITS if MMU
59109c32ffSMatt Redfearn	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
60490b004fSMarkos Chandras	select HAVE_ARCH_SECCOMP_FILTER
61c0ff3c53SRalf Baechle	select HAVE_ARCH_TRACEHOOK
6245e03e62SDaniel Silsby	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
632ff2b7ecSMasahiro Yamada	select HAVE_ASM_MODVERSIONS
6424a9c541SFrederic Weisbecker	select HAVE_CONTEXT_TRACKING_USER
65490f561bSFrederic Weisbecker	select HAVE_TIF_NOHZ
6664575f91SWu Zhangjin	select HAVE_C_RECORDMCOUNT
6712597988SMatt Redfearn	select HAVE_DEBUG_KMEMLEAK
6812597988SMatt Redfearn	select HAVE_DEBUG_STACKOVERFLOW
6912597988SMatt Redfearn	select HAVE_DMA_CONTIGUOUS
7012597988SMatt Redfearn	select HAVE_DYNAMIC_FTRACE
717364d60cSJiaxun Yang	select HAVE_EBPF_JIT if !CPU_MICROMIPS
7212597988SMatt Redfearn	select HAVE_EXIT_THREAD
7325176ad0SDavid Hildenbrand	select HAVE_GUP_FAST
7429c5d346SWu Zhangjin	select HAVE_FUNCTION_GRAPH_TRACER
7512597988SMatt Redfearn	select HAVE_FUNCTION_TRACER
7634c01e41SAlexander Lobakin	select HAVE_GCC_PLUGINS
77b3a428b4SHassan Naveed	select HAVE_IOREMAP_PROT
7812597988SMatt Redfearn	select HAVE_IRQ_EXIT_ON_IRQ_STACK
7912597988SMatt Redfearn	select HAVE_IRQ_TIME_ACCOUNTING
80c1bf207dSDavid Daney	select HAVE_KPROBES
81c1bf207dSDavid Daney	select HAVE_KRETPROBES
82c0436b50SPaul Burton	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
83786d35d4SDavid Howells	select HAVE_MOD_ARCH_SPECIFIC
8442a0bb3fSPetr Mladek	select HAVE_NMI
85ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_4KB if !CPU_LOONGSON2EF && !CPU_LOONGSON64
86ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_16KB if !CPU_R3000
87ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_64KB if !CPU_R3000
8812597988SMatt Redfearn	select HAVE_PERF_EVENTS
891ddc96bdSTiezhu Yang	select HAVE_PERF_REGS
901ddc96bdSTiezhu Yang	select HAVE_PERF_USER_STACK_DUMP
9108bccf43SMarcin Nowakowski	select HAVE_REGS_AND_STACK_ACCESS_API
929ea141adSPaul Burton	select HAVE_RSEQ
9316c0f03fSHassan Naveed	select HAVE_SPARSE_SYSCALL_NR
94d148eac0SMasahiro Yamada	select HAVE_STACKPROTECTOR
9512597988SMatt Redfearn	select HAVE_SYSCALL_TRACEPOINTS
96a3f14310SBen Hutchings	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
9712597988SMatt Redfearn	select IRQ_FORCED_THREADING
986630a8e5SChristoph Hellwig	select ISA if EISA
994bce37a6SBen Hutchings	select LOCK_MM_AND_FIND_VMA
1006c8e9580SQi Zheng	select MMU_GATHER_RCU_TABLE_FREE
10112597988SMatt Redfearn	select MODULES_USE_ELF_REL if MODULES
10234c01e41SAlexander Lobakin	select MODULES_USE_ELF_RELA if MODULES && 64BIT
10312597988SMatt Redfearn	select PERF_USE_VMALLOC
104981aa1d3SThomas Gleixner	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
10505a0a344SArnd Bergmann	select RTC_LIB
10612597988SMatt Redfearn	select SYSCTL_EXCEPTION_TRACE
1074aae683fSMasahiro Yamada	select TRACE_IRQFLAGS_SUPPORT
1080bb87f05SAl Viro	select ARCH_HAS_ELFCORE_COMPAT
109e0a8b93eSNemanja Rakovic	select HAVE_ARCH_KCSAN if 64BIT
1101da177e4SLinus Torvalds
111d3991572SChristoph Hellwigconfig MIPS_FIXUP_BIGPHYS_ADDR
112d3991572SChristoph Hellwig	bool
113d3991572SChristoph Hellwig
114c434b9f8SPaul Cercueilconfig MIPS_GENERIC
115c434b9f8SPaul Cercueil	bool
116c434b9f8SPaul Cercueil
11780f2e4cdSGregory CLEMENTconfig MACH_GENERIC_CORE
11880f2e4cdSGregory CLEMENT	bool
11980f2e4cdSGregory CLEMENT
120f0f4a753SPaul Cercueilconfig MACH_INGENIC
121f0f4a753SPaul Cercueil	bool
122f0f4a753SPaul Cercueil	select SYS_SUPPORTS_32BIT_KERNEL
123f0f4a753SPaul Cercueil	select SYS_SUPPORTS_LITTLE_ENDIAN
124f0f4a753SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
125f0f4a753SPaul Cercueil	select DMA_NONCOHERENT
126f0f4a753SPaul Cercueil	select IRQ_MIPS_CPU
127f0f4a753SPaul Cercueil	select PINCTRL
128f0f4a753SPaul Cercueil	select GPIOLIB
129f0f4a753SPaul Cercueil	select COMMON_CLK
130f0f4a753SPaul Cercueil	select GENERIC_IRQ_CHIP
131f0f4a753SPaul Cercueil	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
132f0f4a753SPaul Cercueil	select USE_OF
133f0f4a753SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
134f0f4a753SPaul Cercueil	select MIPS_EXTERNAL_TIMER
135f0f4a753SPaul Cercueil
1361da177e4SLinus Torvaldsmenu "Machine selection"
1371da177e4SLinus Torvalds
1385e83d430SRalf Baechlechoice
1395e83d430SRalf Baechle	prompt "System type"
140c434b9f8SPaul Cercueil	default MIPS_GENERIC_KERNEL
1411da177e4SLinus Torvalds
142c434b9f8SPaul Cercueilconfig MIPS_GENERIC_KERNEL
143eed0eabdSPaul Burton	bool "Generic board-agnostic MIPS kernel"
144c434b9f8SPaul Cercueil	select MIPS_GENERIC
145eed0eabdSPaul Burton	select BOOT_RAW
146eed0eabdSPaul Burton	select BUILTIN_DTB
147eed0eabdSPaul Burton	select CEVT_R4K
148eed0eabdSPaul Burton	select CLKSRC_MIPS_GIC
149eed0eabdSPaul Burton	select COMMON_CLK
150eed0eabdSPaul Burton	select CPU_MIPSR2_IRQ_EI
15134c01e41SAlexander Lobakin	select CPU_MIPSR2_IRQ_VI
152eed0eabdSPaul Burton	select CSRC_R4K
1534e066441SChristoph Hellwig	select DMA_NONCOHERENT
154eb01d42aSChristoph Hellwig	select HAVE_PCI
155eed0eabdSPaul Burton	select IRQ_MIPS_CPU
15680f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
1570211d49eSPaul Burton	select MIPS_AUTO_PFN_OFFSET
158eed0eabdSPaul Burton	select MIPS_CPU_SCACHE
159eed0eabdSPaul Burton	select MIPS_GIC
160eed0eabdSPaul Burton	select MIPS_L1_CACHE_SHIFT_7
161eed0eabdSPaul Burton	select NO_EXCEPT_FILL
162eed0eabdSPaul Burton	select PCI_DRIVERS_GENERIC
163eed0eabdSPaul Burton	select SMP_UP if SMP
164a3078e59SMatt Redfearn	select SWAP_IO_SPACE
165eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R1
166eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R2
167fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS32_R5
168eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS32_R6
169eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R1
170eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R2
171fb6700c5SJiaxun Yang	select SYS_HAS_CPU_MIPS64_R5
172eed0eabdSPaul Burton	select SYS_HAS_CPU_MIPS64_R6
173eed0eabdSPaul Burton	select SYS_SUPPORTS_32BIT_KERNEL
174eed0eabdSPaul Burton	select SYS_SUPPORTS_64BIT_KERNEL
175eed0eabdSPaul Burton	select SYS_SUPPORTS_BIG_ENDIAN
176eed0eabdSPaul Burton	select SYS_SUPPORTS_HIGHMEM
177eed0eabdSPaul Burton	select SYS_SUPPORTS_LITTLE_ENDIAN
178eed0eabdSPaul Burton	select SYS_SUPPORTS_MICROMIPS
179eed0eabdSPaul Burton	select SYS_SUPPORTS_MIPS16
18034c01e41SAlexander Lobakin	select SYS_SUPPORTS_MIPS_CPS
181eed0eabdSPaul Burton	select SYS_SUPPORTS_MULTITHREADING
182eed0eabdSPaul Burton	select SYS_SUPPORTS_RELOCATABLE
183eed0eabdSPaul Burton	select SYS_SUPPORTS_SMARTMIPS
184c3e2ee65SPaul Cercueil	select SYS_SUPPORTS_ZBOOT
18534c01e41SAlexander Lobakin	select UHI_BOOT
1862e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1872e6522c5SCorentin Labbe	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1882e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1892e6522c5SCorentin Labbe	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1902e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
1912e6522c5SCorentin Labbe	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
192eed0eabdSPaul Burton	select USE_OF
193eed0eabdSPaul Burton	help
194eed0eabdSPaul Burton	  Select this to build a kernel which aims to support multiple boards,
195eed0eabdSPaul Burton	  generally using a flattened device tree passed from the bootloader
196eed0eabdSPaul Burton	  using the boot protocol defined in the UHI (Unified Hosting
197eed0eabdSPaul Burton	  Interface) specification.
198eed0eabdSPaul Burton
19942a4f17dSManuel Laussconfig MIPS_ALCHEMY
200c3543e25SYoichi Yuasa	bool "Alchemy processor based machines"
201d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
202f772cdb2SRalf Baechle	select CEVT_R4K
203d7ea335cSSteven J. Hill	select CSRC_R4K
20467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
205a86497d6SChristoph Hellwig	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
2066f25741bSArnd Bergmann	select GPIOLIB
2076f25741bSArnd Bergmann	select GPIOLIB_LEGACY
208d3991572SChristoph Hellwig	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
20942a4f17dSManuel Lauss	select SYS_HAS_CPU_MIPS32_R1
21042a4f17dSManuel Lauss	select SYS_SUPPORTS_32BIT_KERNEL
21142a4f17dSManuel Lauss	select SYS_SUPPORTS_APM_EMULATION
212d30a2b47SLinus Walleij	select GPIOLIB
2131b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
21447440229SManuel Lauss	select COMMON_CLK
2151da177e4SLinus Torvalds
21643cc739fSSergey Ryazanovconfig ATH25
21743cc739fSSergey Ryazanov	bool "Atheros AR231x/AR531x SoC support"
21843cc739fSSergey Ryazanov	select CEVT_R4K
21943cc739fSSergey Ryazanov	select CSRC_R4K
22043cc739fSSergey Ryazanov	select DMA_NONCOHERENT
22167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
2221753e74eSSergey Ryazanov	select IRQ_DOMAIN
22343cc739fSSergey Ryazanov	select SYS_HAS_CPU_MIPS32_R1
22443cc739fSSergey Ryazanov	select SYS_SUPPORTS_BIG_ENDIAN
22543cc739fSSergey Ryazanov	select SYS_SUPPORTS_32BIT_KERNEL
2268aaa7278SSergey Ryazanov	select SYS_HAS_EARLY_PRINTK
22743cc739fSSergey Ryazanov	help
22843cc739fSSergey Ryazanov	  Support for Atheros AR231x and Atheros AR531x based boards
22943cc739fSSergey Ryazanov
230d4a67d9dSGabor Juhosconfig ATH79
231d4a67d9dSGabor Juhos	bool "Atheros AR71XX/AR724X/AR913X based boards"
232ff591a91SAlban Bedel	select ARCH_HAS_RESET_CONTROLLER
233d4a67d9dSGabor Juhos	select BOOT_RAW
234d4a67d9dSGabor Juhos	select CEVT_R4K
235d4a67d9dSGabor Juhos	select CSRC_R4K
236d4a67d9dSGabor Juhos	select DMA_NONCOHERENT
237d30a2b47SLinus Walleij	select GPIOLIB
238a08227a2SJohn Crispin	select PINCTRL
239411520afSAlban Bedel	select COMMON_CLK
24067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
241d4a67d9dSGabor Juhos	select SYS_HAS_CPU_MIPS32_R2
242d4a67d9dSGabor Juhos	select SYS_HAS_EARLY_PRINTK
243d4a67d9dSGabor Juhos	select SYS_SUPPORTS_32BIT_KERNEL
244d4a67d9dSGabor Juhos	select SYS_SUPPORTS_BIG_ENDIAN
245377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
246b3f0a250SAlban Bedel	select SYS_SUPPORTS_ZBOOT_UART_PROM
24703c8c407SAlban Bedel	select USE_OF
24853d473fcSAlban Bedel	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
249d4a67d9dSGabor Juhos	help
250d4a67d9dSGabor Juhos	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.
251d4a67d9dSGabor Juhos
2525f2d4459SKevin Cernekeeconfig BMIPS_GENERIC
2535f2d4459SKevin Cernekee	bool "Broadcom Generic BMIPS kernel"
25429906e1aSÁlvaro Fernández Rojas	select ARCH_HAS_RESET_CONTROLLER
255d59098a0SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
256d666cd02SKevin Cernekee	select BOOT_RAW
257d666cd02SKevin Cernekee	select NO_EXCEPT_FILL
258d666cd02SKevin Cernekee	select USE_OF
259d666cd02SKevin Cernekee	select CEVT_R4K
260d666cd02SKevin Cernekee	select CSRC_R4K
261d666cd02SKevin Cernekee	select SYNC_R4K
262d666cd02SKevin Cernekee	select COMMON_CLK
263c7c42ec2SSimon Arlott	select BCM6345_L1_IRQ
26460b858f2SKevin Cernekee	select BCM7038_L1_IRQ
26560b858f2SKevin Cernekee	select BCM7120_L2_IRQ
26660b858f2SKevin Cernekee	select BRCMSTB_L2_IRQ
26767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
26860b858f2SKevin Cernekee	select DMA_NONCOHERENT
269d666cd02SKevin Cernekee	select SYS_SUPPORTS_32BIT_KERNEL
27060b858f2SKevin Cernekee	select SYS_SUPPORTS_LITTLE_ENDIAN
271d666cd02SKevin Cernekee	select SYS_SUPPORTS_BIG_ENDIAN
272d666cd02SKevin Cernekee	select SYS_SUPPORTS_HIGHMEM
27360b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS32_3300
27460b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4350
27560b858f2SKevin Cernekee	select SYS_HAS_CPU_BMIPS4380
276d666cd02SKevin Cernekee	select SYS_HAS_CPU_BMIPS5000
277d666cd02SKevin Cernekee	select SWAP_IO_SPACE
27860b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
27960b858f2SKevin Cernekee	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
28060b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
28160b858f2SKevin Cernekee	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
2824dc4704cSJustin Chen	select HARDIRQS_SW_RESEND
2831d987052SFlorian Fainelli	select HAVE_PCI
2841d987052SFlorian Fainelli	select PCI_DRIVERS_GENERIC
285466ab2eaSFlorian Fainelli	select FW_CFE
286d666cd02SKevin Cernekee	help
2875f2d4459SKevin Cernekee	  Build a generic DT-based kernel image that boots on select
2885f2d4459SKevin Cernekee	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
2895f2d4459SKevin Cernekee	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
2905f2d4459SKevin Cernekee	  must be set appropriately for your board.
291d666cd02SKevin Cernekee
2921c0c13ebSAurelien Jarnoconfig BCM47XX
293c619366eSFlorian Fainelli	bool "Broadcom BCM47XX based boards"
294fe08f8c2SHauke Mehrtens	select BOOT_RAW
29542f77542SRalf Baechle	select CEVT_R4K
296940f6b48SRalf Baechle	select CSRC_R4K
2971c0c13ebSAurelien Jarno	select DMA_NONCOHERENT
298eb01d42aSChristoph Hellwig	select HAVE_PCI
29967e38cf2SRalf Baechle	select IRQ_MIPS_CPU
300314878d2SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R1
301dd54deddSHauke Mehrtens	select NO_EXCEPT_FILL
3021c0c13ebSAurelien Jarno	select SYS_SUPPORTS_32BIT_KERNEL
3031c0c13ebSAurelien Jarno	select SYS_SUPPORTS_LITTLE_ENDIAN
304377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
3056507831fSAaro Koskinen	select SYS_SUPPORTS_ZBOOT
30625e5fb97SAurelien Jarno	select SYS_HAS_EARLY_PRINTK
307e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
308c949c0bcSRafał Miłecki	select GPIOLIB
3096f25741bSArnd Bergmann	select GPIOLIB_LEGACY
310c949c0bcSRafał Miłecki	select LEDS_GPIO_REGISTER
311f6e734a8SRafał Miłecki	select BCM47XX_NVRAM
3122ab71a02SRafał Miłecki	select BCM47XX_SPROM
313dfe00495SMatt Redfearn	select BCM47XX_SSB if !BCM47XX_BCMA
3141c0c13ebSAurelien Jarno	help
3151c0c13ebSAurelien Jarno	  Support for BCM47XX based boards
3161c0c13ebSAurelien Jarno
317e7300d04SMaxime Bizonconfig BCM63XX
318e7300d04SMaxime Bizon	bool "Broadcom BCM63XX based boards"
319ae8de61cSFlorian Fainelli	select BOOT_RAW
320e7300d04SMaxime Bizon	select CEVT_R4K
321e7300d04SMaxime Bizon	select CSRC_R4K
322fc264022SJonas Gorski	select SYNC_R4K
323e7300d04SMaxime Bizon	select DMA_NONCOHERENT
32467e38cf2SRalf Baechle	select IRQ_MIPS_CPU
325e7300d04SMaxime Bizon	select SYS_SUPPORTS_32BIT_KERNEL
326e7300d04SMaxime Bizon	select SYS_SUPPORTS_BIG_ENDIAN
327e7300d04SMaxime Bizon	select SYS_HAS_EARLY_PRINTK
3285eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS32_3300
3295eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4350
3305eeaafc8SRandy Dunlap	select SYS_HAS_CPU_BMIPS4380
331e7300d04SMaxime Bizon	select SWAP_IO_SPACE
332d30a2b47SLinus Walleij	select GPIOLIB
3336f25741bSArnd Bergmann	select GPIOLIB_LEGACY
334af2418beSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
335bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
336e7300d04SMaxime Bizon	help
337e7300d04SMaxime Bizon	  Support for BCM63XX based boards
338e7300d04SMaxime Bizon
3391da177e4SLinus Torvaldsconfig MIPS_COBALT
3403fa986faSMartin Michlmayr	bool "Cobalt Server"
34142f77542SRalf Baechle	select CEVT_R4K
342940f6b48SRalf Baechle	select CSRC_R4K
3431097c6acSYoichi Yuasa	select CEVT_GT641XX
3441da177e4SLinus Torvalds	select DMA_NONCOHERENT
345eb01d42aSChristoph Hellwig	select FORCE_PCI
346d865bea4SRalf Baechle	select I8253
3471da177e4SLinus Torvalds	select I8259
34867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
349d5ab1a69SYoichi Yuasa	select IRQ_GT641XX
350252161ecSYoichi Yuasa	select PCI_GT64XXX_PCI0
3517cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
3520a22e0d4SYoichi Yuasa	select SYS_HAS_EARLY_PRINTK
353ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3540e8774b6SFlorian Fainelli	select SYS_SUPPORTS_64BIT_KERNEL
3555e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
356e6086557SRalf Baechle	select USE_GENERIC_EARLY_PRINTK_8250
3571da177e4SLinus Torvalds
3581da177e4SLinus Torvaldsconfig MACH_DECSTATION
3593fa986faSMartin Michlmayr	bool "DECstations"
3601da177e4SLinus Torvalds	select BOOT_ELF32
3616457d9fcSYoichi Yuasa	select CEVT_DS1287
36281d10badSMaciej W. Rozycki	select CEVT_R4K if CPU_R4X00
3634247417dSYoichi Yuasa	select CSRC_IOASIC
36481d10badSMaciej W. Rozycki	select CSRC_R4K if CPU_R4X00
36520d60d99SMaciej W. Rozycki	select CPU_DADDI_WORKAROUNDS if 64BIT
36620d60d99SMaciej W. Rozycki	select CPU_R4000_WORKAROUNDS if 64BIT
36720d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS if 64BIT
3681da177e4SLinus Torvalds	select DMA_NONCOHERENT
369ce816fa8SUwe Kleine-König	select NO_IOPORT_MAP
37067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
3717cf8053bSRalf Baechle	select SYS_HAS_CPU_R3000
3727cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
373ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
3747d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
3755e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
3761723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_128HZ
3771723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_256HZ
3781723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_1024HZ
379930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
3805e83d430SRalf Baechle	help
3811da177e4SLinus Torvalds	  This enables support for DEC's MIPS based workstations.  For details
3821da177e4SLinus Torvalds	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
3831da177e4SLinus Torvalds	  DECstation porting pages on <http://decstation.unix-ag.org/>.
3841da177e4SLinus Torvalds
3851da177e4SLinus Torvalds	  If you have one of the following DECstation Models you definitely
3861da177e4SLinus Torvalds	  want to choose R4xx0 for the CPU Type:
3871da177e4SLinus Torvalds
3881da177e4SLinus Torvalds		DECstation 5000/50
3891da177e4SLinus Torvalds		DECstation 5000/150
3901da177e4SLinus Torvalds		DECstation 5000/260
3911da177e4SLinus Torvalds		DECsystem 5900/260
3921da177e4SLinus Torvalds
3931da177e4SLinus Torvalds	  otherwise choose R3000.
3941da177e4SLinus Torvalds
39535fb26f9SCaleb James DeLisleconfig ECONET
39635fb26f9SCaleb James DeLisle	bool "EcoNet MIPS family"
39735fb26f9SCaleb James DeLisle	select BOOT_RAW
39879ee1d20SCaleb James DeLisle	select DEBUG_ZBOOT if DEBUG_KERNEL
39935fb26f9SCaleb James DeLisle	select ECONET_EN751221_TIMER
40035fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_BIG_ENDIAN
40135fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R1
40235fb26f9SCaleb James DeLisle	select SYS_HAS_CPU_MIPS32_R2
40335fb26f9SCaleb James DeLisle	select SYS_HAS_EARLY_PRINTK
40435fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_32BIT_KERNEL
40535fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_MIPS16
40635fb26f9SCaleb James DeLisle	select SYS_SUPPORTS_ZBOOT_UART16550
40735fb26f9SCaleb James DeLisle	select USE_GENERIC_EARLY_PRINTK_8250
40835fb26f9SCaleb James DeLisle	select USE_OF
40935fb26f9SCaleb James DeLisle	help
41035fb26f9SCaleb James DeLisle	  EcoNet EN75xx MIPS devices are big endian MIPS machines used
41135fb26f9SCaleb James DeLisle	  in XPON (fiber) and DSL applications. They have SPI, PCI, USB,
41235fb26f9SCaleb James DeLisle	  GPIO, and Ethernet, with optional XPON, DSL, and VoIP DSP cores.
41335fb26f9SCaleb James DeLisle	  Don't confuse these with the Airoha ARM devices sometimes referred
41435fb26f9SCaleb James DeLisle	  to as "EcoNet", this family is for MIPS based devices only.
41535fb26f9SCaleb James DeLisle
4165e83d430SRalf Baechleconfig MACH_JAZZ
4173fa986faSMartin Michlmayr	bool "Jazz family of machines"
41839b2d756SThomas Bogendoerfer	select ARC_MEMORY
41939b2d756SThomas Bogendoerfer	select ARC_PROMLIB
420a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
4217a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
4220e2794b0SRalf Baechle	select FW_ARC
4230e2794b0SRalf Baechle	select FW_ARC32
4245e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
42542f77542SRalf Baechle	select CEVT_R4K
426940f6b48SRalf Baechle	select CSRC_R4K
427e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
4285e83d430SRalf Baechle	select GENERIC_ISA_DMA
4298a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
43067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
431d865bea4SRalf Baechle	select I8253
4325e83d430SRalf Baechle	select I8259
4335e83d430SRalf Baechle	select ISA
4347cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
4355e83d430SRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
4367d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
4371723b4a3SAtsushi Nemoto	select SYS_SUPPORTS_100HZ
438aadfe4b5SArnd Bergmann	select SYS_SUPPORTS_LITTLE_ENDIAN
4391da177e4SLinus Torvalds	help
4405e83d430SRalf Baechle	  This a family of machines based on the MIPS R4030 chipset which was
4415e83d430SRalf Baechle	  used by several vendors to build RISC/os and Windows NT workstations.
442692105b8SMatt LaPlante	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
4435e83d430SRalf Baechle	  Olivetti M700-10 workstations.
4445e83d430SRalf Baechle
445f0f4a753SPaul Cercueilconfig MACH_INGENIC_SOC
446de361e8bSPaul Burton	bool "Ingenic SoC based machines"
447f0f4a753SPaul Cercueil	select MIPS_GENERIC
448f0f4a753SPaul Cercueil	select MACH_INGENIC
44980f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
450f9c9affcSLluís Batlle i Rossell	select SYS_SUPPORTS_ZBOOT_UART16550
451eb384937SPaul Cercueil	select CPU_SUPPORTS_CPUFREQ
452eb384937SPaul Cercueil	select MIPS_EXTERNAL_TIMER
4535ebabe59SLars-Peter Clausen
454171bb2f1SJohn Crispinconfig LANTIQ
455171bb2f1SJohn Crispin	bool "Lantiq based platforms"
456171bb2f1SJohn Crispin	select DMA_NONCOHERENT
45767e38cf2SRalf Baechle	select IRQ_MIPS_CPU
458171bb2f1SJohn Crispin	select CEVT_R4K
459171bb2f1SJohn Crispin	select CSRC_R4K
460b74cc639SSander Vanheule	select NO_EXCEPT_FILL
461171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R1
462171bb2f1SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
463171bb2f1SJohn Crispin	select SYS_SUPPORTS_BIG_ENDIAN
464171bb2f1SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
465377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
466171bb2f1SJohn Crispin	select SYS_SUPPORTS_MULTITHREADING
467f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
468171bb2f1SJohn Crispin	select SYS_HAS_EARLY_PRINTK
469d30a2b47SLinus Walleij	select GPIOLIB
470171bb2f1SJohn Crispin	select SWAP_IO_SPACE
471171bb2f1SJohn Crispin	select BOOT_RAW
472bbd7ffdbSStephen Boyd	select HAVE_LEGACY_CLK
473a0392222SJohn Crispin	select USE_OF
4743f8c50c9SJohn Crispin	select PINCTRL
4753f8c50c9SJohn Crispin	select PINCTRL_LANTIQ
476c530781cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
477c530781cSJohn Crispin	select RESET_CONTROLLER
478171bb2f1SJohn Crispin
47930ad29bbSHuacai Chenconfig MACH_LOONGSON32
480caed1d1bSHuacai Chen	bool "Loongson 32-bit family of machines"
48185c43540SKeguang Zhang	select MACH_GENERIC_CORE
48285c43540SKeguang Zhang	select USE_OF
48385c43540SKeguang Zhang	select BUILTIN_DTB
48485c43540SKeguang Zhang	select BOOT_ELF32
48585c43540SKeguang Zhang	select CEVT_R4K
48685c43540SKeguang Zhang	select CSRC_R4K
48785c43540SKeguang Zhang	select COMMON_CLK
48885c43540SKeguang Zhang	select DMA_NONCOHERENT
48985c43540SKeguang Zhang	select GENERIC_IRQ_SHOW_LEVEL
49085c43540SKeguang Zhang	select IRQ_MIPS_CPU
49185c43540SKeguang Zhang	select LS1X_IRQ
49285c43540SKeguang Zhang	select SYS_HAS_CPU_LOONGSON32
49385c43540SKeguang Zhang	select SYS_HAS_EARLY_PRINTK
49485c43540SKeguang Zhang	select USE_GENERIC_EARLY_PRINTK_8250
49585c43540SKeguang Zhang	select SYS_SUPPORTS_32BIT_KERNEL
49685c43540SKeguang Zhang	select SYS_SUPPORTS_LITTLE_ENDIAN
49785c43540SKeguang Zhang	select SYS_SUPPORTS_HIGHMEM
498c7e8c668SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
499ade299d8SYoichi Yuasa	help
50030ad29bbSHuacai Chen	  This enables support for the Loongson-1 family of machines.
50185749d24SWu Zhangjin
50230ad29bbSHuacai Chen	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
50330ad29bbSHuacai Chen	  the Institute of Computing Technology (ICT), Chinese Academy of
50430ad29bbSHuacai Chen	  Sciences (CAS).
505ade299d8SYoichi Yuasa
50671e2f4ddSJiaxun Yangconfig MACH_LOONGSON2EF
50771e2f4ddSJiaxun Yang	bool "Loongson-2E/F family of machines"
508ca585cf9SKelvin Cheung	select SYS_SUPPORTS_ZBOOT
509ca585cf9SKelvin Cheung	help
51071e2f4ddSJiaxun Yang	  This enables the support of early Loongson-2E/F family of machines.
511ca585cf9SKelvin Cheung
51271e2f4ddSJiaxun Yangconfig MACH_LOONGSON64
513caed1d1bSHuacai Chen	bool "Loongson 64-bit family of machines"
514edc0378eSJiaxun Yang	select ARCH_DMA_DEFAULT_COHERENT
5156fbde6b4SJiaxun Yang	select ARCH_SPARSEMEM_ENABLE
5166fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_PARPORT
5176fbde6b4SJiaxun Yang	select ARCH_MIGHT_HAVE_PC_SERIO
5186fbde6b4SJiaxun Yang	select GENERIC_ISA_DMA_SUPPORT_BROKEN
5196fbde6b4SJiaxun Yang	select BOOT_ELF32
5206fbde6b4SJiaxun Yang	select BOARD_SCACHE
5216fbde6b4SJiaxun Yang	select CSRC_R4K
5226fbde6b4SJiaxun Yang	select CEVT_R4K
523fa165f91SJiaxun Yang	select SYNC_R4K
5246fbde6b4SJiaxun Yang	select FORCE_PCI
5256fbde6b4SJiaxun Yang	select ISA
5266fbde6b4SJiaxun Yang	select I8259
5276fbde6b4SJiaxun Yang	select IRQ_MIPS_CPU
5287d6d2837SJiaxun Yang	select NO_EXCEPT_FILL
5295125bfeeSTiezhu Yang	select NR_CPUS_DEFAULT_64
5306fbde6b4SJiaxun Yang	select USE_GENERIC_EARLY_PRINTK_8250
5316423e59aSJiaxun Yang	select PCI_DRIVERS_GENERIC
5326fbde6b4SJiaxun Yang	select SYS_HAS_CPU_LOONGSON64
5336fbde6b4SJiaxun Yang	select SYS_HAS_EARLY_PRINTK
5346fbde6b4SJiaxun Yang	select SYS_SUPPORTS_SMP
5356fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HOTPLUG_CPU
5366fbde6b4SJiaxun Yang	select SYS_SUPPORTS_NUMA
5376fbde6b4SJiaxun Yang	select SYS_SUPPORTS_64BIT_KERNEL
5386fbde6b4SJiaxun Yang	select SYS_SUPPORTS_HIGHMEM
5396fbde6b4SJiaxun Yang	select SYS_SUPPORTS_LITTLE_ENDIAN
54071e2f4ddSJiaxun Yang	select SYS_SUPPORTS_ZBOOT
541a307a4ceSJinyang He	select SYS_SUPPORTS_RELOCATABLE
5426fbde6b4SJiaxun Yang	select ZONE_DMA32
54387fcfa7bSJiaxun Yang	select COMMON_CLK
54487fcfa7bSJiaxun Yang	select USE_OF
54587fcfa7bSJiaxun Yang	select BUILTIN_DTB
54639c1485cSHuacai Chen	select PCI_HOST_GENERIC
54771e2f4ddSJiaxun Yang	help
548caed1d1bSHuacai Chen	  This enables the support of Loongson-2/3 family of machines.
549caed1d1bSHuacai Chen
550caed1d1bSHuacai Chen	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
551caed1d1bSHuacai Chen	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
552caed1d1bSHuacai Chen	  and Loongson-2F which will be removed), developed by the Institute
553caed1d1bSHuacai Chen	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
554ca585cf9SKelvin Cheung
5551da177e4SLinus Torvaldsconfig MIPS_MALTA
5563fa986faSMartin Michlmayr	bool "MIPS Malta board"
55761ed242dSRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
558a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
5597a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
5601da177e4SLinus Torvalds	select BOOT_ELF32
561fa71c960SRalf Baechle	select BOOT_RAW
562e8823d26SPaul Burton	select BUILTIN_DTB
56342f77542SRalf Baechle	select CEVT_R4K
564fa5635a2SAndrew Bresticker	select CLKSRC_MIPS_GIC
56542b002abSGuenter Roeck	select COMMON_CLK
56647bf2b03SMaksym Kokhan	select CSRC_R4K
567a86497d6SChristoph Hellwig	select DMA_NONCOHERENT
5681da177e4SLinus Torvalds	select GENERIC_ISA_DMA
5698a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
570eb01d42aSChristoph Hellwig	select HAVE_PCI
571d865bea4SRalf Baechle	select I8253
5721da177e4SLinus Torvalds	select I8259
57347bf2b03SMaksym Kokhan	select IRQ_MIPS_CPU
5745e83d430SRalf Baechle	select MIPS_BONITO64
5759318c51aSChris Dearman	select MIPS_CPU_SCACHE
57647bf2b03SMaksym Kokhan	select MIPS_GIC
577a7ef1eadSKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
5785e83d430SRalf Baechle	select MIPS_MSC
57947bf2b03SMaksym Kokhan	select PCI_GT64XXX_PCI0
58001557e34SMateusz Jończyk	select RTC_MC146818_LIB
581ecafe3e9SPaul Burton	select SMP_UP if SMP
5821da177e4SLinus Torvalds	select SWAP_IO_SPACE
5837cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
5847cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS32_R2
585bfc3c5a6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R3_5
586c5b36783SSteven J. Hill	select SYS_HAS_CPU_MIPS32_R5
587575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS32_R6
5887cf8053bSRalf Baechle	select SYS_HAS_CPU_MIPS64_R1
5895d9fbed1SLeonid Yegoshin	select SYS_HAS_CPU_MIPS64_R2
590575509b6SMarkos Chandras	select SYS_HAS_CPU_MIPS64_R6
5917cf8053bSRalf Baechle	select SYS_HAS_CPU_NEVADA
5927cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
593ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
594ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
5955e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
596c5b36783SSteven J. Hill	select SYS_SUPPORTS_HIGHMEM
5975e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
598424ebcdfSMaciej W. Rozycki	select SYS_SUPPORTS_MICROMIPS
59947bf2b03SMaksym Kokhan	select SYS_SUPPORTS_MIPS16
600e56b6aa6SPaul Burton	select SYS_SUPPORTS_MIPS_CPS
601f41ae0b2SRalf Baechle	select SYS_SUPPORTS_MULTITHREADING
60247bf2b03SMaksym Kokhan	select SYS_SUPPORTS_RELOCATABLE
6039693a853SFranck Bui-Huu	select SYS_SUPPORTS_SMARTMIPS
604f35764e7SJames Hogan	select SYS_SUPPORTS_VPE_LOADER
6051b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
606e8823d26SPaul Burton	select USE_OF
607886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
608abcc82b1SJames Hogan	select ZONE_DMA32 if 64BIT
6091da177e4SLinus Torvalds	help
610f638d197SMaciej W. Rozycki	  This enables support for the MIPS Technologies Malta evaluation
6111da177e4SLinus Torvalds	  board.
6121da177e4SLinus Torvalds
6132572f00dSJoshua Hendersonconfig MACH_PIC32
6142572f00dSJoshua Henderson	bool "Microchip PIC32 Family"
6152572f00dSJoshua Henderson	help
6162572f00dSJoshua Henderson	  This enables support for the Microchip PIC32 family of platforms.
6172572f00dSJoshua Henderson
6182572f00dSJoshua Henderson	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
6192572f00dSJoshua Henderson	  microcontrollers.
6202572f00dSJoshua Henderson
621fbe0fae6SGregory CLEMENTconfig EYEQ
622fbe0fae6SGregory CLEMENT	bool "Mobileye EyeQ SoC"
623101bd58fSGregory CLEMENT	select MACH_GENERIC_CORE
624101bd58fSGregory CLEMENT	select ARM_AMBA
625101bd58fSGregory CLEMENT	select PHYSICAL_START_BOOL
626101bd58fSGregory CLEMENT	select ARCH_SPARSEMEM_DEFAULT if 64BIT
627101bd58fSGregory CLEMENT	select BOOT_RAW
628101bd58fSGregory CLEMENT	select BUILTIN_DTB
629101bd58fSGregory CLEMENT	select CEVT_R4K
630101bd58fSGregory CLEMENT	select CLKSRC_MIPS_GIC
631101bd58fSGregory CLEMENT	select COMMON_CLK
632101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_EI
633101bd58fSGregory CLEMENT	select CPU_MIPSR2_IRQ_VI
634101bd58fSGregory CLEMENT	select CSRC_R4K
635101bd58fSGregory CLEMENT	select DMA_NONCOHERENT
636101bd58fSGregory CLEMENT	select HAVE_PCI
637101bd58fSGregory CLEMENT	select IRQ_MIPS_CPU
638101bd58fSGregory CLEMENT	select MIPS_AUTO_PFN_OFFSET
639101bd58fSGregory CLEMENT	select MIPS_CPU_SCACHE
640101bd58fSGregory CLEMENT	select MIPS_GIC
641101bd58fSGregory CLEMENT	select MIPS_L1_CACHE_SHIFT_7
642101bd58fSGregory CLEMENT	select PCI_DRIVERS_GENERIC
643101bd58fSGregory CLEMENT	select SMP_UP if SMP
644101bd58fSGregory CLEMENT	select SWAP_IO_SPACE
645101bd58fSGregory CLEMENT	select SYS_HAS_CPU_MIPS64_R6
646101bd58fSGregory CLEMENT	select SYS_SUPPORTS_64BIT_KERNEL
647101bd58fSGregory CLEMENT	select SYS_SUPPORTS_HIGHMEM
648101bd58fSGregory CLEMENT	select SYS_SUPPORTS_LITTLE_ENDIAN
649101bd58fSGregory CLEMENT	select SYS_SUPPORTS_MIPS_CPS
650101bd58fSGregory CLEMENT	select SYS_SUPPORTS_RELOCATABLE
651101bd58fSGregory CLEMENT	select SYS_SUPPORTS_ZBOOT
652101bd58fSGregory CLEMENT	select UHI_BOOT
653101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
654101bd58fSGregory CLEMENT	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
655101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
656101bd58fSGregory CLEMENT	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
657101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
658101bd58fSGregory CLEMENT	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
659101bd58fSGregory CLEMENT	select USE_OF
660c8610c02SGregory CLEMENT	select HOTPLUG_PARALLEL if HOTPLUG_CPU
661*bbc448c5SThéo Lebrun	select WEAK_REORDERING_BEYOND_LLSC
662101bd58fSGregory CLEMENT	help
663fbe0fae6SGregory CLEMENT	  Select this to build a kernel supporting EyeQ SoC from Mobileye.
664101bd58fSGregory CLEMENT
665101bd58fSGregory CLEMENT	bool
666101bd58fSGregory CLEMENT
667baec970aSLauri Kasanenconfig MACH_NINTENDO64
668baec970aSLauri Kasanen	bool "Nintendo 64 console"
669baec970aSLauri Kasanen	select CEVT_R4K
670baec970aSLauri Kasanen	select CSRC_R4K
671baec970aSLauri Kasanen	select SYS_HAS_CPU_R4300
672baec970aSLauri Kasanen	select SYS_SUPPORTS_BIG_ENDIAN
673baec970aSLauri Kasanen	select SYS_SUPPORTS_ZBOOT
674baec970aSLauri Kasanen	select SYS_SUPPORTS_32BIT_KERNEL
675baec970aSLauri Kasanen	select SYS_SUPPORTS_64BIT_KERNEL
676baec970aSLauri Kasanen	select DMA_NONCOHERENT
677baec970aSLauri Kasanen	select IRQ_MIPS_CPU
678baec970aSLauri Kasanen
679ae2b5bb6SJohn Crispinconfig RALINK
680ae2b5bb6SJohn Crispin	bool "Ralink based machines"
681ae2b5bb6SJohn Crispin	select CEVT_R4K
68235f752beSArnd Bergmann	select COMMON_CLK
683ae2b5bb6SJohn Crispin	select CSRC_R4K
684ae2b5bb6SJohn Crispin	select BOOT_RAW
685ae2b5bb6SJohn Crispin	select DMA_NONCOHERENT
68667e38cf2SRalf Baechle	select IRQ_MIPS_CPU
687ae2b5bb6SJohn Crispin	select USE_OF
688ae2b5bb6SJohn Crispin	select SYS_HAS_CPU_MIPS32_R2
689ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_32BIT_KERNEL
690ae2b5bb6SJohn Crispin	select SYS_SUPPORTS_LITTLE_ENDIAN
691377cb1b6SRalf Baechle	select SYS_SUPPORTS_MIPS16
6921f0400d0SChuanhong Guo	select SYS_SUPPORTS_ZBOOT
693ae2b5bb6SJohn Crispin	select SYS_HAS_EARLY_PRINTK
6942a153f1cSJohn Crispin	select ARCH_HAS_RESET_CONTROLLER
6952a153f1cSJohn Crispin	select RESET_CONTROLLER
696ae2b5bb6SJohn Crispin
6974042147aSBert Vermeulenconfig MACH_REALTEK_RTL
6984042147aSBert Vermeulen	bool "Realtek RTL838x/RTL839x based machines"
6994042147aSBert Vermeulen	select MIPS_GENERIC
70080f2e4cdSGregory CLEMENT	select MACH_GENERIC_CORE
7014042147aSBert Vermeulen	select DMA_NONCOHERENT
7024042147aSBert Vermeulen	select IRQ_MIPS_CPU
7034042147aSBert Vermeulen	select CSRC_R4K
7044042147aSBert Vermeulen	select CEVT_R4K
7054042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R1
7064042147aSBert Vermeulen	select SYS_HAS_CPU_MIPS32_R2
7074042147aSBert Vermeulen	select SYS_SUPPORTS_BIG_ENDIAN
7084042147aSBert Vermeulen	select SYS_SUPPORTS_32BIT_KERNEL
7094042147aSBert Vermeulen	select SYS_SUPPORTS_MIPS16
7104042147aSBert Vermeulen	select SYS_SUPPORTS_MULTITHREADING
7114042147aSBert Vermeulen	select SYS_SUPPORTS_VPE_LOADER
7124042147aSBert Vermeulen	select BOOT_RAW
7134042147aSBert Vermeulen	select PINCTRL
7144042147aSBert Vermeulen	select USE_OF
71562b8db3aSChris Packham	select REALTEK_OTTO_TIMER
7164042147aSBert Vermeulen
7171da177e4SLinus Torvaldsconfig SGI_IP22
7183fa986faSMartin Michlmayr	bool "SGI IP22 (Indy/Indigo2)"
719c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
72039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7210e2794b0SRalf Baechle	select FW_ARC
7220e2794b0SRalf Baechle	select FW_ARC32
7237a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
7241da177e4SLinus Torvalds	select BOOT_ELF32
72542f77542SRalf Baechle	select CEVT_R4K
726940f6b48SRalf Baechle	select CSRC_R4K
727e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
7281da177e4SLinus Torvalds	select DMA_NONCOHERENT
7296630a8e5SChristoph Hellwig	select HAVE_EISA
730d865bea4SRalf Baechle	select I8253
73168de4803SThomas Bogendoerfer	select I8259
7321da177e4SLinus Torvalds	select IP22_CPU_SCACHE
73367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
734aa414dffSRalf Baechle	select GENERIC_ISA_DMA_SUPPORT_BROKEN
735e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
736e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
73736e5c21dSThomas Bogendoerfer	select SGI_HAS_HAL2
738e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
739e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
740e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
7411da177e4SLinus Torvalds	select SWAP_IO_SPACE
7427cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
7437cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
744c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
745ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
746ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7475e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
748802b8362SThomas Bogendoerfer	select WAR_R4600_V1_INDEX_ICACHEOP
7495e5b6527SThomas Bogendoerfer	select WAR_R4600_V1_HIT_CACHEOP
75044def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
751930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7521da177e4SLinus Torvalds	help
7531da177e4SLinus Torvalds	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
7541da177e4SLinus Torvalds	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
7551da177e4SLinus Torvalds	  that runs on these, say Y here.
7561da177e4SLinus Torvalds
7571da177e4SLinus Torvaldsconfig SGI_IP27
7583fa986faSMartin Michlmayr	bool "SGI IP27 (Origin200/2000)"
75954aed4ddSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
760397dc00eSMike Rapoport	select ARCH_SPARSEMEM_ENABLE
7610e2794b0SRalf Baechle	select FW_ARC
7620e2794b0SRalf Baechle	select FW_ARC64
763e9422427SThomas Bogendoerfer	select ARC_CMDLINE_ONLY
7645e83d430SRalf Baechle	select BOOT_ELF64
765e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
76604100459SChristoph Hellwig	select FORCE_PCI
76736a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
768eb01d42aSChristoph Hellwig	select HAVE_PCI
76969a07a41SThomas Bogendoerfer	select IRQ_MIPS_CPU
770e6308b6dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
771130e2fb7SRalf Baechle	select NR_CPUS_DEFAULT_64
772a57140e9SThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
773a57140e9SThomas Bogendoerfer	select PCI_XTALK_BRIDGE
7747cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000
775ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
7765e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
777d8cb4e11SRalf Baechle	select SYS_SUPPORTS_NUMA
7781a5c5de1SRalf Baechle	select SYS_SUPPORTS_SMP
779256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
780930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
7816c86a302SMike Rapoport	select NUMA
7821da177e4SLinus Torvalds	help
7831da177e4SLinus Torvalds	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
7841da177e4SLinus Torvalds	  workstations.  To compile a Linux kernel that runs on these, say Y
7851da177e4SLinus Torvalds	  here.
7861da177e4SLinus Torvalds
787e2defae5SThomas Bogendoerferconfig SGI_IP28
7887d60717eSKees Cook	bool "SGI IP28 (Indigo2 R10k)"
789c0de00b2SThomas Bogendoerfer	select ARC_MEMORY
79039b2d756SThomas Bogendoerfer	select ARC_PROMLIB
7910e2794b0SRalf Baechle	select FW_ARC
7920e2794b0SRalf Baechle	select FW_ARC64
7937a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
794e2defae5SThomas Bogendoerfer	select BOOT_ELF64
795e2defae5SThomas Bogendoerfer	select CEVT_R4K
796e2defae5SThomas Bogendoerfer	select CSRC_R4K
797e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION
798e2defae5SThomas Bogendoerfer	select DMA_NONCOHERENT
799e2defae5SThomas Bogendoerfer	select GENERIC_ISA_DMA_SUPPORT_BROKEN
80067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8016630a8e5SChristoph Hellwig	select HAVE_EISA
802e2defae5SThomas Bogendoerfer	select I8253
803e2defae5SThomas Bogendoerfer	select I8259
804e2defae5SThomas Bogendoerfer	select SGI_HAS_I8042
805e2defae5SThomas Bogendoerfer	select SGI_HAS_INDYDOG
8065b438c44SThomas Bogendoerfer	select SGI_HAS_HAL2
807e2defae5SThomas Bogendoerfer	select SGI_HAS_SEEQ
808e2defae5SThomas Bogendoerfer	select SGI_HAS_WD93
809e2defae5SThomas Bogendoerfer	select SGI_HAS_ZILOG
810e2defae5SThomas Bogendoerfer	select SWAP_IO_SPACE
811e2defae5SThomas Bogendoerfer	select SYS_HAS_CPU_R10000
812c0de00b2SThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
813e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
814e2defae5SThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
815256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
816dc24d68dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
817e2defae5SThomas Bogendoerfer	help
818e2defae5SThomas Bogendoerfer	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
819e2defae5SThomas Bogendoerfer	  kernel that runs on these, say Y here.
820e2defae5SThomas Bogendoerfer
8217505576dSThomas Bogendoerferconfig SGI_IP30
8227505576dSThomas Bogendoerfer	bool "SGI IP30 (Octane/Octane2)"
8237505576dSThomas Bogendoerfer	select ARCH_HAS_PHYS_TO_DMA
8247505576dSThomas Bogendoerfer	select FW_ARC
8257505576dSThomas Bogendoerfer	select FW_ARC64
8267505576dSThomas Bogendoerfer	select BOOT_ELF64
8277505576dSThomas Bogendoerfer	select CEVT_R4K
8287505576dSThomas Bogendoerfer	select CSRC_R4K
82904100459SChristoph Hellwig	select FORCE_PCI
8307505576dSThomas Bogendoerfer	select SYNC_R4K if SMP
8317505576dSThomas Bogendoerfer	select ZONE_DMA32
8327505576dSThomas Bogendoerfer	select HAVE_PCI
8337505576dSThomas Bogendoerfer	select IRQ_MIPS_CPU
8347505576dSThomas Bogendoerfer	select IRQ_DOMAIN_HIERARCHY
8357505576dSThomas Bogendoerfer	select PCI_DRIVERS_GENERIC
8367505576dSThomas Bogendoerfer	select PCI_XTALK_BRIDGE
8377505576dSThomas Bogendoerfer	select SYS_HAS_EARLY_PRINTK
8387505576dSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
8397505576dSThomas Bogendoerfer	select SYS_SUPPORTS_64BIT_KERNEL
8407505576dSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
8417505576dSThomas Bogendoerfer	select SYS_SUPPORTS_SMP
842256ec489SThomas Bogendoerfer	select WAR_R10000_LLSC
8437505576dSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_7
8447505576dSThomas Bogendoerfer	select ARC_MEMORY
8457505576dSThomas Bogendoerfer	help
8467505576dSThomas Bogendoerfer	  These are the SGI Octane and Octane2 graphics workstations.  To
8477505576dSThomas Bogendoerfer	  compile a Linux kernel that runs on these, say Y here.
8487505576dSThomas Bogendoerfer
8491da177e4SLinus Torvaldsconfig SGI_IP32
850cfd2afc0SRalf Baechle	bool "SGI IP32 (O2)"
85139b2d756SThomas Bogendoerfer	select ARC_MEMORY
85239b2d756SThomas Bogendoerfer	select ARC_PROMLIB
85303df8229SChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
8540e2794b0SRalf Baechle	select FW_ARC
8550e2794b0SRalf Baechle	select FW_ARC32
8561da177e4SLinus Torvalds	select BOOT_ELF32
85742f77542SRalf Baechle	select CEVT_R4K
858940f6b48SRalf Baechle	select CSRC_R4K
8591da177e4SLinus Torvalds	select DMA_NONCOHERENT
860eb01d42aSChristoph Hellwig	select HAVE_PCI
86167e38cf2SRalf Baechle	select IRQ_MIPS_CPU
8621da177e4SLinus Torvalds	select R5000_CPU_SCACHE
8631da177e4SLinus Torvalds	select RM7000_CPU_SCACHE
8647cf8053bSRalf Baechle	select SYS_HAS_CPU_R5000
8657cf8053bSRalf Baechle	select SYS_HAS_CPU_R10000 if BROKEN
8667cf8053bSRalf Baechle	select SYS_HAS_CPU_RM7000
867dd2f18feSRalf Baechle	select SYS_HAS_CPU_NEVADA
868ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_64BIT_KERNEL
8695e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
870886ee136SThomas Bogendoerfer	select WAR_ICACHE_REFILLS
8711da177e4SLinus Torvalds	help
8721da177e4SLinus Torvalds	  If you want this kernel to run on SGI O2 workstation, say Y here.
8731da177e4SLinus Torvalds
8745e83d430SRalf Baechleconfig SIBYTE_CRHONE
8753fa986faSMartin Michlmayr	bool "Sibyte BCM91125C-CRhone"
8765e83d430SRalf Baechle	select BOOT_ELF32
8775e83d430SRalf Baechle	select SIBYTE_BCM1125
8785e83d430SRalf Baechle	select SWAP_IO_SPACE
8797cf8053bSRalf Baechle	select SYS_HAS_CPU_SB1
8805e83d430SRalf Baechle	select SYS_SUPPORTS_BIG_ENDIAN
8815e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
8825e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
8835e83d430SRalf Baechle
884ade299d8SYoichi Yuasaconfig SIBYTE_RHONE
885ade299d8SYoichi Yuasa	bool "Sibyte BCM91125E-Rhone"
886ade299d8SYoichi Yuasa	select BOOT_ELF32
88703452347SThomas Bogendoerfer	select SIBYTE_SB1250
888ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
889ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
890ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
891ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
892ade299d8SYoichi Yuasa
893ade299d8SYoichi Yuasaconfig SIBYTE_SWARM
894ade299d8SYoichi Yuasa	bool "Sibyte BCM91250A-SWARM"
895ade299d8SYoichi Yuasa	select BOOT_ELF32
896fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
897ade299d8SYoichi Yuasa	select SIBYTE_SB1250
898ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
899ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
900ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
901ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
902ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
903cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
904e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
905ade299d8SYoichi Yuasa
906ade299d8SYoichi Yuasaconfig SIBYTE_LITTLESUR
907ade299d8SYoichi Yuasa	bool "Sibyte BCM91250C2-LittleSur"
908ade299d8SYoichi Yuasa	select BOOT_ELF32
909fcf3ca4cSSebastian Andrzej Siewior	select HAVE_PATA_PLATFORM
910ade299d8SYoichi Yuasa	select SIBYTE_SB1250
911ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
912ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
913ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
914ade299d8SYoichi Yuasa	select SYS_SUPPORTS_HIGHMEM
915ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
916756d6d83SMaciej W. Rozycki	select ZONE_DMA32 if 64BIT
917ade299d8SYoichi Yuasa
918ade299d8SYoichi Yuasaconfig SIBYTE_SENTOSA
919ade299d8SYoichi Yuasa	bool "Sibyte BCM91250E-Sentosa"
920ade299d8SYoichi Yuasa	select BOOT_ELF32
921ade299d8SYoichi Yuasa	select SIBYTE_SB1250
922ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
923ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
924ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
925ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
926e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
927ade299d8SYoichi Yuasa
928ade299d8SYoichi Yuasaconfig SIBYTE_BIGSUR
929ade299d8SYoichi Yuasa	bool "Sibyte BCM91480B-BigSur"
930ade299d8SYoichi Yuasa	select BOOT_ELF32
931ade299d8SYoichi Yuasa	select NR_CPUS_DEFAULT_4
932ade299d8SYoichi Yuasa	select SIBYTE_BCM1x80
933ade299d8SYoichi Yuasa	select SWAP_IO_SPACE
934ade299d8SYoichi Yuasa	select SYS_HAS_CPU_SB1
935ade299d8SYoichi Yuasa	select SYS_SUPPORTS_BIG_ENDIAN
936651194f8SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
937ade299d8SYoichi Yuasa	select SYS_SUPPORTS_LITTLE_ENDIAN
938cce335aeSRalf Baechle	select ZONE_DMA32 if 64BIT
939e4849affSMaciej W. Rozycki	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
940ade299d8SYoichi Yuasa
94114b36af4SThomas Bogendoerferconfig SNI_RM
94214b36af4SThomas Bogendoerfer	bool "SNI RM200/300/400"
94339b2d756SThomas Bogendoerfer	select ARC_MEMORY
94439b2d756SThomas Bogendoerfer	select ARC_PROMLIB
9450e2794b0SRalf Baechle	select FW_ARC if CPU_LITTLE_ENDIAN
9460e2794b0SRalf Baechle	select FW_ARC32 if CPU_LITTLE_ENDIAN
947aaa9fad3SPaul Bolle	select FW_SNIPROM if CPU_BIG_ENDIAN
9485e83d430SRalf Baechle	select ARCH_MAY_HAVE_PC_FDC
949a211a082SRalf Baechle	select ARCH_MIGHT_HAVE_PC_PARPORT
9507a407aa5SRalf Baechle	select ARCH_MIGHT_HAVE_PC_SERIO
9515e83d430SRalf Baechle	select BOOT_ELF32
95242f77542SRalf Baechle	select CEVT_R4K
953940f6b48SRalf Baechle	select CSRC_R4K
954e2defae5SThomas Bogendoerfer	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
9555e83d430SRalf Baechle	select DMA_NONCOHERENT
9565e83d430SRalf Baechle	select GENERIC_ISA_DMA
9576630a8e5SChristoph Hellwig	select HAVE_EISA
9588a118c38SRalf Baechle	select HAVE_PCSPKR_PLATFORM
959eb01d42aSChristoph Hellwig	select HAVE_PCI
96067e38cf2SRalf Baechle	select IRQ_MIPS_CPU
961d865bea4SRalf Baechle	select I8253
9625e83d430SRalf Baechle	select I8259
9635e83d430SRalf Baechle	select ISA
964564c836fSThomas Bogendoerfer	select MIPS_L1_CACHE_SHIFT_6
9654a0312fcSThomas Bogendoerfer	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
9667cf8053bSRalf Baechle	select SYS_HAS_CPU_R4X00
9674a0312fcSThomas Bogendoerfer	select SYS_HAS_CPU_R5000
968c066a32aSThomas Bogendoerfer	select SYS_HAS_CPU_R10000
9694a0312fcSThomas Bogendoerfer	select R5000_CPU_SCACHE
97036a88530SRalf Baechle	select SYS_HAS_EARLY_PRINTK
971ed5ba2fbSYoichi Yuasa	select SYS_SUPPORTS_32BIT_KERNEL
9727d60717eSKees Cook	select SYS_SUPPORTS_64BIT_KERNEL
9734a0312fcSThomas Bogendoerfer	select SYS_SUPPORTS_BIG_ENDIAN
9745e83d430SRalf Baechle	select SYS_SUPPORTS_HIGHMEM
9755e83d430SRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
97644def342SThomas Bogendoerfer	select WAR_R4600_V2_HIT_CACHEOP
9771da177e4SLinus Torvalds	help
97814b36af4SThomas Bogendoerfer	  The SNI RM200/300/400 are MIPS-based machines manufactured by
97914b36af4SThomas Bogendoerfer	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
9805e83d430SRalf Baechle	  Technology and now in turn merged with Fujitsu.  Say Y here to
9815e83d430SRalf Baechle	  support this machine type.
9821da177e4SLinus Torvalds
983edcaf1a6SAtsushi Nemotoconfig MACH_TX49XX
984edcaf1a6SAtsushi Nemoto	bool "Toshiba TX49 series based machines"
98524a1c023SThomas Bogendoerfer	select WAR_TX49XX_ICACHE_INDEX_INV
98623fbee9dSRalf Baechle
98773b4390fSRalf Baechleconfig MIKROTIK_RB532
98873b4390fSRalf Baechle	bool "Mikrotik RB532 boards"
98973b4390fSRalf Baechle	select CEVT_R4K
99073b4390fSRalf Baechle	select CSRC_R4K
99173b4390fSRalf Baechle	select DMA_NONCOHERENT
992eb01d42aSChristoph Hellwig	select HAVE_PCI
99367e38cf2SRalf Baechle	select IRQ_MIPS_CPU
99473b4390fSRalf Baechle	select SYS_HAS_CPU_MIPS32_R1
99573b4390fSRalf Baechle	select SYS_SUPPORTS_32BIT_KERNEL
99673b4390fSRalf Baechle	select SYS_SUPPORTS_LITTLE_ENDIAN
99773b4390fSRalf Baechle	select SWAP_IO_SPACE
99873b4390fSRalf Baechle	select BOOT_RAW
999d30a2b47SLinus Walleij	select GPIOLIB
10006f25741bSArnd Bergmann	select GPIOLIB_LEGACY
1001930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_4
100273b4390fSRalf Baechle	help
100373b4390fSRalf Baechle	  Support the Mikrotik(tm) RouterBoard 532 series,
100473b4390fSRalf Baechle	  based on the IDT RC32434 SoC.
100573b4390fSRalf Baechle
10069ddebc46SDavid Daneyconfig CAVIUM_OCTEON_SOC
10079ddebc46SDavid Daney	bool "Cavium Networks Octeon SoC based boards"
1008a86c7f72SDavid Daney	select CEVT_R4K
1009ea8c64acSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
10101753d50cSChristoph Hellwig	select HAVE_RAPIDIO
1011d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1012a86c7f72SDavid Daney	select SYS_SUPPORTS_64BIT_KERNEL
1013a86c7f72SDavid Daney	select SYS_SUPPORTS_BIG_ENDIAN
1014f65aad41SRalf Baechle	select EDAC_SUPPORT
1015b01aec9bSBorislav Petkov	select EDAC_ATOMIC_SCRUB
101673569d87SDavid Daney	select SYS_SUPPORTS_LITTLE_ENDIAN
101773569d87SDavid Daney	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
1018a86c7f72SDavid Daney	select SYS_HAS_EARLY_PRINTK
10195e683389SDavid Daney	select SYS_HAS_CPU_CAVIUM_OCTEON
1020eb01d42aSChristoph Hellwig	select HAVE_PCI
102178bdbbacSMasahiro Yamada	select HAVE_PLAT_DELAY
102278bdbbacSMasahiro Yamada	select HAVE_PLAT_FW_INIT_CMDLINE
102378bdbbacSMasahiro Yamada	select HAVE_PLAT_MEMCPY
1024f00e001eSDavid Daney	select ZONE_DMA32
1025d30a2b47SLinus Walleij	select GPIOLIB
10266e511163SDavid Daney	select USE_OF
10276e511163SDavid Daney	select ARCH_SPARSEMEM_ENABLE
10286e511163SDavid Daney	select SYS_SUPPORTS_SMP
10297820b84bSDavid Daney	select NR_CPUS_DEFAULT_64
10307820b84bSDavid Daney	select MIPS_NR_CPU_NR_MAP_1024
1031e326479fSAndrew Bresticker	select BUILTIN_DTB
1032f766b28aSJulian Braha	select MTD
10338c1e6b14SDavid Daney	select MTD_COMPLEX_MAPPINGS
103409230cbcSChristoph Hellwig	select SWIOTLB
10353ff72be4SSteven J. Hill	select SYS_SUPPORTS_RELOCATABLE
1036a86c7f72SDavid Daney	help
1037a86c7f72SDavid Daney	  This option supports all of the Octeon reference boards from Cavium
1038a86c7f72SDavid Daney	  Networks. It builds a kernel that dynamically determines the Octeon
1039a86c7f72SDavid Daney	  CPU type and supports all known board reference implementations.
1040a86c7f72SDavid Daney	  Some of the supported boards are:
1041a86c7f72SDavid Daney		EBT3000
1042a86c7f72SDavid Daney		EBH3000
1043a86c7f72SDavid Daney		EBH3100
1044a86c7f72SDavid Daney		Thunder
1045a86c7f72SDavid Daney		Kodama
1046a86c7f72SDavid Daney		Hikari
1047a86c7f72SDavid Daney	  Say Y here for most Octeon reference boards.
1048a86c7f72SDavid Daney
10491da177e4SLinus Torvaldsendchoice
10501da177e4SLinus Torvalds
1051e8c7c482SRalf Baechlesource "arch/mips/alchemy/Kconfig"
10523b12308fSSergey Ryazanovsource "arch/mips/ath25/Kconfig"
1053d4a67d9dSGabor Juhossource "arch/mips/ath79/Kconfig"
1054a656ffcbSHauke Mehrtenssource "arch/mips/bcm47xx/Kconfig"
1055e7300d04SMaxime Bizonsource "arch/mips/bcm63xx/Kconfig"
10568945e37eSKevin Cernekeesource "arch/mips/bmips/Kconfig"
105735fb26f9SCaleb James DeLislesource "arch/mips/econet/Kconfig"
1058eed0eabdSPaul Burtonsource "arch/mips/generic/Kconfig"
1059a103e9b9SPaul Cercueilsource "arch/mips/ingenic/Kconfig"
10605e83d430SRalf Baechlesource "arch/mips/jazz/Kconfig"
10618ec6d935SJohn Crispinsource "arch/mips/lantiq/Kconfig"
1062fbe0fae6SGregory CLEMENTsource "arch/mips/mobileye/Kconfig"
10632572f00dSJoshua Hendersonsource "arch/mips/pic32/Kconfig"
1064ae2b5bb6SJohn Crispinsource "arch/mips/ralink/Kconfig"
106529c48699SRalf Baechlesource "arch/mips/sgi-ip27/Kconfig"
106638b18f72SRalf Baechlesource "arch/mips/sibyte/Kconfig"
106722b1d707SAtsushi Nemotosource "arch/mips/txx9/Kconfig"
1068a86c7f72SDavid Daneysource "arch/mips/cavium-octeon/Kconfig"
106971e2f4ddSJiaxun Yangsource "arch/mips/loongson2ef/Kconfig"
107030ad29bbSHuacai Chensource "arch/mips/loongson32/Kconfig"
107130ad29bbSHuacai Chensource "arch/mips/loongson64/Kconfig"
107238b18f72SRalf Baechle
10735e83d430SRalf Baechleendmenu
10745e83d430SRalf Baechle
10753c9ee7efSAkinobu Mitaconfig GENERIC_HWEIGHT
10763c9ee7efSAkinobu Mita	bool
10773c9ee7efSAkinobu Mita	default y
10783c9ee7efSAkinobu Mita
10791da177e4SLinus Torvaldsconfig GENERIC_CALIBRATE_DELAY
10801da177e4SLinus Torvalds	bool
10811da177e4SLinus Torvalds	default y
10821da177e4SLinus Torvalds
1083ae1e9130SIngo Molnarconfig SCHED_OMIT_FRAME_POINTER
10841cc89038SAtsushi Nemoto	bool
10851cc89038SAtsushi Nemoto	default y
10861cc89038SAtsushi Nemoto
10871da177e4SLinus Torvalds#
10881da177e4SLinus Torvalds# Select some configuration options automatically based on user selections.
10891da177e4SLinus Torvalds#
10900e2794b0SRalf Baechleconfig FW_ARC
10911da177e4SLinus Torvalds	bool
10921da177e4SLinus Torvalds
109361ed242dSRalf Baechleconfig ARCH_MAY_HAVE_PC_FDC
109461ed242dSRalf Baechle	bool
109561ed242dSRalf Baechle
10969267a30dSMarc St-Jeanconfig BOOT_RAW
10979267a30dSMarc St-Jean	bool
10989267a30dSMarc St-Jean
1099217dd11eSRalf Baechleconfig CEVT_BCM1480
1100217dd11eSRalf Baechle	bool
1101217dd11eSRalf Baechle
11026457d9fcSYoichi Yuasaconfig CEVT_DS1287
11036457d9fcSYoichi Yuasa	bool
11046457d9fcSYoichi Yuasa
11051097c6acSYoichi Yuasaconfig CEVT_GT641XX
11061097c6acSYoichi Yuasa	bool
11071097c6acSYoichi Yuasa
110842f77542SRalf Baechleconfig CEVT_R4K
110942f77542SRalf Baechle	bool
111042f77542SRalf Baechle
1111217dd11eSRalf Baechleconfig CEVT_SB1250
1112217dd11eSRalf Baechle	bool
1113217dd11eSRalf Baechle
1114229f773eSAtsushi Nemotoconfig CEVT_TXX9
1115229f773eSAtsushi Nemoto	bool
1116229f773eSAtsushi Nemoto
1117217dd11eSRalf Baechleconfig CSRC_BCM1480
1118217dd11eSRalf Baechle	bool
1119217dd11eSRalf Baechle
11204247417dSYoichi Yuasaconfig CSRC_IOASIC
11214247417dSYoichi Yuasa	bool
11224247417dSYoichi Yuasa
1123940f6b48SRalf Baechleconfig CSRC_R4K
1124940f6b48SRalf Baechle	bool
1125940f6b48SRalf Baechle
1126217dd11eSRalf Baechleconfig CSRC_SB1250
1127217dd11eSRalf Baechle	bool
1128217dd11eSRalf Baechle
1129a9aec7feSAtsushi Nemotoconfig GPIO_TXX9
1130d30a2b47SLinus Walleij	select GPIOLIB
1131a9aec7feSAtsushi Nemoto	bool
1132a9aec7feSAtsushi Nemoto
11330e2794b0SRalf Baechleconfig FW_CFE
1134df78b5c8SAurelien Jarno	bool
1135df78b5c8SAurelien Jarno
113640e084a5SRalf Baechleconfig ARCH_SUPPORTS_UPROBES
1137f5748b8cSTiezhu Yang	def_bool y
113840e084a5SRalf Baechle
11391da177e4SLinus Torvaldsconfig DMA_NONCOHERENT
11401da177e4SLinus Torvalds	bool
1141db91427bSChristoph Hellwig	#
1142db91427bSChristoph Hellwig	# MIPS allows mixing "slightly different" Cacheability and Coherency
1143db91427bSChristoph Hellwig	# Attribute bits.  It is believed that the uncached access through
1144db91427bSChristoph Hellwig	# KSEG1 and the implementation specific "uncached accelerated" used
1145db91427bSChristoph Hellwig	# by pgprot_writcombine can be mixed, and the latter sometimes provides
1146db91427bSChristoph Hellwig	# significant advantages.
1147db91427bSChristoph Hellwig	#
11486be87d61SJiaxun Yang	select ARCH_HAS_SETUP_DMA_OPS
1149419e2f18SChristoph Hellwig	select ARCH_HAS_DMA_WRITE_COMBINE
1150fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_PREP_COHERENT
1151e0b7fd12SJiaxun Yang	select ARCH_HAS_SYNC_DMA_FOR_CPU
1152f8c55dc6SChristoph Hellwig	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1153fa7e2247SChristoph Hellwig	select ARCH_HAS_DMA_SET_UNCACHED
115434dc0ea6SChristoph Hellwig	select DMA_NONCOHERENT_MMAP
115534dc0ea6SChristoph Hellwig	select NEED_DMA_MAP_STATE
11564ce588cdSRalf Baechle
115736a88530SRalf Baechleconfig SYS_HAS_EARLY_PRINTK
11581da177e4SLinus Torvalds	bool
11591da177e4SLinus Torvalds
11601b2bc75cSRalf Baechleconfig SYS_SUPPORTS_HOTPLUG_CPU
1161dbb74540SRalf Baechle	bool
1162dbb74540SRalf Baechle
11631da177e4SLinus Torvaldsconfig MIPS_BONITO64
11641da177e4SLinus Torvalds	bool
11651da177e4SLinus Torvalds
11661da177e4SLinus Torvaldsconfig MIPS_MSC
11671da177e4SLinus Torvalds	bool
11681da177e4SLinus Torvalds
116939b8d525SRalf Baechleconfig SYNC_R4K
117039b8d525SRalf Baechle	bool
117139b8d525SRalf Baechle
1172ce816fa8SUwe Kleine-Königconfig NO_IOPORT_MAP
1173d388d685SMaciej W. Rozycki	def_bool n
1174d388d685SMaciej W. Rozycki
11754e0748f5SMarkos Chandrasconfig GENERIC_CSUM
117618d84e2eSAlexander Lobakin	def_bool CPU_NO_LOAD_STORE_LR
11774e0748f5SMarkos Chandras
11788313da30SRalf Baechleconfig GENERIC_ISA_DMA
11798313da30SRalf Baechle	bool
11808313da30SRalf Baechle	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1181a35bee8aSNamhyung Kim	select ISA_DMA_API
11828313da30SRalf Baechle
1183aa414dffSRalf Baechleconfig GENERIC_ISA_DMA_SUPPORT_BROKEN
1184aa414dffSRalf Baechle	bool
11858313da30SRalf Baechle	select GENERIC_ISA_DMA
1186aa414dffSRalf Baechle
118778bdbbacSMasahiro Yamadaconfig HAVE_PLAT_DELAY
118878bdbbacSMasahiro Yamada	bool
118978bdbbacSMasahiro Yamada
119078bdbbacSMasahiro Yamadaconfig HAVE_PLAT_FW_INIT_CMDLINE
119178bdbbacSMasahiro Yamada	bool
119278bdbbacSMasahiro Yamada
119378bdbbacSMasahiro Yamadaconfig HAVE_PLAT_MEMCPY
119478bdbbacSMasahiro Yamada	bool
119578bdbbacSMasahiro Yamada
1196a35bee8aSNamhyung Kimconfig ISA_DMA_API
1197a35bee8aSNamhyung Kim	bool
1198a35bee8aSNamhyung Kim
11998c530ea3SMatt Redfearnconfig SYS_SUPPORTS_RELOCATABLE
12008c530ea3SMatt Redfearn	bool
12018c530ea3SMatt Redfearn	help
12028c530ea3SMatt Redfearn	  Selected if the platform supports relocating the kernel.
12038c530ea3SMatt Redfearn	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
12048c530ea3SMatt Redfearn	  to allow access to command line and entropy sources.
12058c530ea3SMatt Redfearn
12065e83d430SRalf Baechle#
12076b2aac42SMasanari Iida# Endianness selection.  Sufficiently obscure so many users don't know what to
12085e83d430SRalf Baechle# answer,so we try hard to limit the available choices.  Also the use of a
12095e83d430SRalf Baechle# choice statement should be more obvious to the user.
12105e83d430SRalf Baechle#
12115e83d430SRalf Baechlechoice
12126b2aac42SMasanari Iida	prompt "Endianness selection"
12131da177e4SLinus Torvalds	help
12141da177e4SLinus Torvalds	  Some MIPS machines can be configured for either little or big endian
12155e83d430SRalf Baechle	  byte order. These modes require different kernels and a different
12163cb2fcccSMatt LaPlante	  Linux distribution.  In general there is one preferred byteorder for a
12175e83d430SRalf Baechle	  particular system but some systems are just as commonly used in the
12183dde6ad8SDavid Sterba	  one or the other endianness.
12195e83d430SRalf Baechle
12205e83d430SRalf Baechleconfig CPU_BIG_ENDIAN
12215e83d430SRalf Baechle	bool "Big endian"
12225e83d430SRalf Baechle	depends on SYS_SUPPORTS_BIG_ENDIAN
12235e83d430SRalf Baechle
12245e83d430SRalf Baechleconfig CPU_LITTLE_ENDIAN
12255e83d430SRalf Baechle	bool "Little endian"
12265e83d430SRalf Baechle	depends on SYS_SUPPORTS_LITTLE_ENDIAN
12275e83d430SRalf Baechle
12285e83d430SRalf Baechleendchoice
12295e83d430SRalf Baechle
123022b0763aSDavid Daneyconfig EXPORT_UASM
123122b0763aSDavid Daney	bool
123222b0763aSDavid Daney
12332116245eSRalf Baechleconfig SYS_SUPPORTS_APM_EMULATION
12342116245eSRalf Baechle	bool
12352116245eSRalf Baechle
12365e83d430SRalf Baechleconfig SYS_SUPPORTS_BIG_ENDIAN
12375e83d430SRalf Baechle	bool
12385e83d430SRalf Baechle
12395e83d430SRalf Baechleconfig SYS_SUPPORTS_LITTLE_ENDIAN
12405e83d430SRalf Baechle	bool
12411da177e4SLinus Torvalds
1242aa1762f4SDavid Daneyconfig MIPS_HUGE_TLB_SUPPORT
1243aa1762f4SDavid Daney	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1244aa1762f4SDavid Daney
12458420fd00SAtsushi Nemotoconfig IRQ_TXX9
12468420fd00SAtsushi Nemoto	bool
12478420fd00SAtsushi Nemoto
1248d5ab1a69SYoichi Yuasaconfig IRQ_GT641XX
1249d5ab1a69SYoichi Yuasa	bool
1250d5ab1a69SYoichi Yuasa
1251252161ecSYoichi Yuasaconfig PCI_GT64XXX_PCI0
12521da177e4SLinus Torvalds	bool
12531da177e4SLinus Torvalds
1254a57140e9SThomas Bogendoerferconfig PCI_XTALK_BRIDGE
1255a57140e9SThomas Bogendoerfer	bool
1256a57140e9SThomas Bogendoerfer
12579267a30dSMarc St-Jeanconfig NO_EXCEPT_FILL
12589267a30dSMarc St-Jean	bool
12599267a30dSMarc St-Jean
1260a7e07b1aSMarkos Chandrasconfig MIPS_SPRAM
1261a7e07b1aSMarkos Chandras	bool
1262a7e07b1aSMarkos Chandras
12631da177e4SLinus Torvaldsconfig SWAP_IO_SPACE
12641da177e4SLinus Torvalds	bool
12651da177e4SLinus Torvalds
1266e2defae5SThomas Bogendoerferconfig SGI_HAS_INDYDOG
1267e2defae5SThomas Bogendoerfer	bool
1268e2defae5SThomas Bogendoerfer
12695b438c44SThomas Bogendoerferconfig SGI_HAS_HAL2
12705b438c44SThomas Bogendoerfer	bool
12715b438c44SThomas Bogendoerfer
1272e2defae5SThomas Bogendoerferconfig SGI_HAS_SEEQ
1273e2defae5SThomas Bogendoerfer	bool
1274e2defae5SThomas Bogendoerfer
1275e2defae5SThomas Bogendoerferconfig SGI_HAS_WD93
1276e2defae5SThomas Bogendoerfer	bool
1277e2defae5SThomas Bogendoerfer
1278e2defae5SThomas Bogendoerferconfig SGI_HAS_ZILOG
1279e2defae5SThomas Bogendoerfer	bool
1280e2defae5SThomas Bogendoerfer
1281e2defae5SThomas Bogendoerferconfig SGI_HAS_I8042
1282e2defae5SThomas Bogendoerfer	bool
1283e2defae5SThomas Bogendoerfer
1284e2defae5SThomas Bogendoerferconfig DEFAULT_SGI_PARTITION
1285e2defae5SThomas Bogendoerfer	bool
1286e2defae5SThomas Bogendoerfer
12870e2794b0SRalf Baechleconfig FW_ARC32
12885e83d430SRalf Baechle	bool
12895e83d430SRalf Baechle
1290aaa9fad3SPaul Bolleconfig FW_SNIPROM
1291231a35d3SThomas Bogendoerfer	bool
1292231a35d3SThomas Bogendoerfer
12931da177e4SLinus Torvaldsconfig BOOT_ELF32
12941da177e4SLinus Torvalds	bool
12951da177e4SLinus Torvalds
1296930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_4
1297930beb5aSFlorian Fainelli	bool
1298930beb5aSFlorian Fainelli
1299930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_5
1300930beb5aSFlorian Fainelli	bool
1301930beb5aSFlorian Fainelli
1302930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_6
1303930beb5aSFlorian Fainelli	bool
1304930beb5aSFlorian Fainelli
1305930beb5aSFlorian Fainelliconfig MIPS_L1_CACHE_SHIFT_7
1306930beb5aSFlorian Fainelli	bool
1307930beb5aSFlorian Fainelli
13081da177e4SLinus Torvaldsconfig MIPS_L1_CACHE_SHIFT
13091da177e4SLinus Torvalds	int
1310a4c0201eSFlorian Fainelli	default "7" if MIPS_L1_CACHE_SHIFT_7
13115432eeb6SKevin Cernekee	default "6" if MIPS_L1_CACHE_SHIFT_6
13125432eeb6SKevin Cernekee	default "5" if MIPS_L1_CACHE_SHIFT_5
13135432eeb6SKevin Cernekee	default "4" if MIPS_L1_CACHE_SHIFT_4
13141da177e4SLinus Torvalds	default "5"
13151da177e4SLinus Torvalds
1316e9422427SThomas Bogendoerferconfig ARC_CMDLINE_ONLY
1317e9422427SThomas Bogendoerfer	bool
1318e9422427SThomas Bogendoerfer
13191da177e4SLinus Torvaldsconfig ARC_CONSOLE
13201da177e4SLinus Torvalds	bool "ARC console support"
1321e2defae5SThomas Bogendoerfer	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
13221da177e4SLinus Torvalds
13231da177e4SLinus Torvaldsconfig ARC_MEMORY
13241da177e4SLinus Torvalds	bool
13251da177e4SLinus Torvalds
13261da177e4SLinus Torvaldsconfig ARC_PROMLIB
13271da177e4SLinus Torvalds	bool
13281da177e4SLinus Torvalds
13290e2794b0SRalf Baechleconfig FW_ARC64
13301da177e4SLinus Torvalds	bool
13311da177e4SLinus Torvalds
13321da177e4SLinus Torvaldsconfig BOOT_ELF64
13331da177e4SLinus Torvalds	bool
13341da177e4SLinus Torvalds
13351da177e4SLinus Torvaldsmenu "CPU selection"
13361da177e4SLinus Torvalds
13371da177e4SLinus Torvaldschoice
13381da177e4SLinus Torvalds	prompt "CPU type"
13391da177e4SLinus Torvalds	default CPU_R4X00
13401da177e4SLinus Torvalds
1341268a2d60SJiaxun Yangconfig CPU_LOONGSON64
1342caed1d1bSHuacai Chen	bool "Loongson 64-bit CPU"
1343268a2d60SJiaxun Yang	depends on SYS_HAS_CPU_LOONGSON64
1344d3bc81beSChristoph Hellwig	select ARCH_HAS_PHYS_TO_DMA
134551522217SJiaxun Yang	select CPU_MIPSR2
134651522217SJiaxun Yang	select CPU_HAS_PREFETCH
13470e476d91SHuacai Chen	select CPU_SUPPORTS_64BIT_KERNEL
13480e476d91SHuacai Chen	select CPU_SUPPORTS_HIGHMEM
13490e476d91SHuacai Chen	select CPU_SUPPORTS_HUGEPAGES
13507507445bSHuacai Chen	select CPU_SUPPORTS_MSA
1351a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
135251522217SJiaxun Yang	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
135351522217SJiaxun Yang	select CPU_MIPSR2_IRQ_VI
1354edc0378eSJiaxun Yang	select DMA_NONCOHERENT
13550e476d91SHuacai Chen	select WEAK_ORDERING
13560e476d91SHuacai Chen	select WEAK_REORDERING_BEYOND_LLSC
13577507445bSHuacai Chen	select MIPS_ASID_BITS_VARIABLE
1358b2edcfc8SHuacai Chen	select MIPS_PGD_C0_CONTEXT
135917c99d94SHuacai Chen	select MIPS_L1_CACHE_SHIFT_6
13607f3b3c2bSJackie Liu	select MIPS_FP_SUPPORT
1361d30a2b47SLinus Walleij	select GPIOLIB
136209230cbcSChristoph Hellwig	select SWIOTLB
13630e476d91SHuacai Chen	help
1364caed1d1bSHuacai Chen	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1365caed1d1bSHuacai Chen	  cores implements the MIPS64R2 instruction set with many extensions,
1366caed1d1bSHuacai Chen	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1367caed1d1bSHuacai Chen	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1368caed1d1bSHuacai Chen	  Loongson-2E/2F is not covered here and will be removed in future.
13690e476d91SHuacai Chen
13703702bba5SWu Zhangjinconfig CPU_LOONGSON2E
13713702bba5SWu Zhangjin	bool "Loongson 2E"
13723702bba5SWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2E
1373268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13742a21c730SFuxin Zhang	help
13752a21c730SFuxin Zhang	  The Loongson 2E processor implements the MIPS III instruction set
13762a21c730SFuxin Zhang	  with many extensions.
13772a21c730SFuxin Zhang
137825985edcSLucas De Marchi	  It has an internal FPGA northbridge, which is compatible to
13796f7a251aSWu Zhangjin	  bonito64.
13806f7a251aSWu Zhangjin
13816f7a251aSWu Zhangjinconfig CPU_LOONGSON2F
13826f7a251aSWu Zhangjin	bool "Loongson 2F"
13836f7a251aSWu Zhangjin	depends on SYS_HAS_CPU_LOONGSON2F
1384268a2d60SJiaxun Yang	select CPU_LOONGSON2EF
13856f7a251aSWu Zhangjin	help
13866f7a251aSWu Zhangjin	  The Loongson 2F processor implements the MIPS III instruction set
13876f7a251aSWu Zhangjin	  with many extensions.
13886f7a251aSWu Zhangjin
13896f7a251aSWu Zhangjin	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
13906f7a251aSWu Zhangjin	  have a similar programming interface with FPGA northbridge used in
13916f7a251aSWu Zhangjin	  Loongson2E.
13926f7a251aSWu Zhangjin
139385c43540SKeguang Zhangconfig CPU_LOONGSON32
139485c43540SKeguang Zhang	bool "Loongson 32-bit CPU"
139585c43540SKeguang Zhang	depends on SYS_HAS_CPU_LOONGSON32
139685c43540SKeguang Zhang	select CPU_MIPS32
139785c43540SKeguang Zhang	select CPU_MIPSR2
139885c43540SKeguang Zhang	select CPU_HAS_PREFETCH
139985c43540SKeguang Zhang	select CPU_SUPPORTS_32BIT_KERNEL
140085c43540SKeguang Zhang	select CPU_SUPPORTS_HIGHMEM
140185c43540SKeguang Zhang	select CPU_SUPPORTS_CPUFREQ
14029ec88b60SKelvin Cheung	select LEDS_GPIO_REGISTER
1403ca585cf9SKelvin Cheung	help
140485c43540SKeguang Zhang	  The Loongson GS232 microarchitecture implements the MIPS32 Release 1
140585c43540SKeguang Zhang	  instruction set and part of the MIPS32 Release 2 instruction set.
140612e3280bSYang Ling
14076e760c8dSRalf Baechleconfig CPU_MIPS32_R1
14086e760c8dSRalf Baechle	bool "MIPS32 Release 1"
14097cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R1
14106e760c8dSRalf Baechle	select CPU_HAS_PREFETCH
1411797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1412ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14136e760c8dSRalf Baechle	help
14145e83d430SRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14151e5f1caaSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14161e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14171e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
14181e5f1caaSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14191e5f1caaSRalf Baechle	  Release 2 of the MIPS32 architecture is available since several
14201e5f1caaSRalf Baechle	  years so chances are you even have a MIPS32 Release 2 processor
14211e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS32_R2 instead for better
14221e5f1caaSRalf Baechle	  performance.
14231e5f1caaSRalf Baechle
14241e5f1caaSRalf Baechleconfig CPU_MIPS32_R2
14251e5f1caaSRalf Baechle	bool "MIPS32 Release 2"
14267cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS32_R2
14271e5f1caaSRalf Baechle	select CPU_HAS_PREFETCH
1428797798c1SRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
1429ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1430a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14311e5f1caaSRalf Baechle	help
14325e83d430SRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14336e760c8dSRalf Baechle	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
14346e760c8dSRalf Baechle	  MIPS processor are based on a MIPS32 processor.  If you know the
14356e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14366e760c8dSRalf Baechle	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
14371da177e4SLinus Torvalds
1438ab7c01fdSSerge Seminconfig CPU_MIPS32_R5
1439ab7c01fdSSerge Semin	bool "MIPS32 Release 5"
1440ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS32_R5
1441ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1442ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1443ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1444ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1445a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1446ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT
1447ab7c01fdSSerge Semin	help
1448ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1449ab7c01fdSSerge Semin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
1450ab7c01fdSSerge Semin	  family, are based on a MIPS32r5 processor. If you own an older
1451ab7c01fdSSerge Semin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1452ab7c01fdSSerge Semin
14537fd08ca5SLeonid Yegoshinconfig CPU_MIPS32_R6
1454674d10e2SMarkos Chandras	bool "MIPS32 Release 6"
14557fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R6
14567fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
145718d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
14587fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
14597fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
14607fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
1461a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
14627fd08ca5SLeonid Yegoshin	select MIPS_O32_FP64_SUPPORT
14637fd08ca5SLeonid Yegoshin	help
14647fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
14657fd08ca5SLeonid Yegoshin	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
14667fd08ca5SLeonid Yegoshin	  family, are based on a MIPS32r6 processor. If you own an older
14677fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
14687fd08ca5SLeonid Yegoshin
14696e760c8dSRalf Baechleconfig CPU_MIPS64_R1
14706e760c8dSRalf Baechle	bool "MIPS64 Release 1"
14717cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R1
1472797798c1SRalf Baechle	select CPU_HAS_PREFETCH
1473ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1474ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1475ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14769cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
14776e760c8dSRalf Baechle	help
14786e760c8dSRalf Baechle	  Choose this option to build a kernel for release 1 or later of the
14796e760c8dSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
14806e760c8dSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
14816e760c8dSRalf Baechle	  specific type of processor in your system, choose those that one
14826e760c8dSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
14831e5f1caaSRalf Baechle	  Release 2 of the MIPS64 architecture is available since several
14841e5f1caaSRalf Baechle	  years so chances are you even have a MIPS64 Release 2 processor
14851e5f1caaSRalf Baechle	  in which case you should choose CPU_MIPS64_R2 instead for better
14861e5f1caaSRalf Baechle	  performance.
14871e5f1caaSRalf Baechle
14881e5f1caaSRalf Baechleconfig CPU_MIPS64_R2
14891e5f1caaSRalf Baechle	bool "MIPS64 Release 2"
14907cf8053bSRalf Baechle	depends on SYS_HAS_CPU_MIPS64_R2
1491797798c1SRalf Baechle	select CPU_HAS_PREFETCH
14921e5f1caaSRalf Baechle	select CPU_SUPPORTS_32BIT_KERNEL
14931e5f1caaSRalf Baechle	select CPU_SUPPORTS_64BIT_KERNEL
1494ec28f306SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
14959cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1496a5e9a69eSPaul Burton	select CPU_SUPPORTS_MSA
14971e5f1caaSRalf Baechle	help
14981e5f1caaSRalf Baechle	  Choose this option to build a kernel for release 2 or later of the
14991e5f1caaSRalf Baechle	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
15001e5f1caaSRalf Baechle	  MIPS processor are based on a MIPS64 processor.  If you know the
15011e5f1caaSRalf Baechle	  specific type of processor in your system, choose those that one
15021e5f1caaSRalf Baechle	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
15031da177e4SLinus Torvalds
1504ab7c01fdSSerge Seminconfig CPU_MIPS64_R5
1505ab7c01fdSSerge Semin	bool "MIPS64 Release 5"
1506ab7c01fdSSerge Semin	depends on SYS_HAS_CPU_MIPS64_R5
1507ab7c01fdSSerge Semin	select CPU_HAS_PREFETCH
1508ab7c01fdSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1509ab7c01fdSSerge Semin	select CPU_SUPPORTS_64BIT_KERNEL
1510ab7c01fdSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1511ab7c01fdSSerge Semin	select CPU_SUPPORTS_HUGEPAGES
1512ab7c01fdSSerge Semin	select CPU_SUPPORTS_MSA
1513ab7c01fdSSerge Semin	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1514a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1515ab7c01fdSSerge Semin	help
1516ab7c01fdSSerge Semin	  Choose this option to build a kernel for release 5 or later of the
1517ab7c01fdSSerge Semin	  MIPS64 architecture.  This is a intermediate MIPS architecture
1518ab7c01fdSSerge Semin	  release partly implementing release 6 features. Though there is no
1519ab7c01fdSSerge Semin	  any hardware known to be based on this release.
1520ab7c01fdSSerge Semin
15217fd08ca5SLeonid Yegoshinconfig CPU_MIPS64_R6
1522674d10e2SMarkos Chandras	bool "MIPS64 Release 6"
15237fd08ca5SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS64_R6
15247fd08ca5SLeonid Yegoshin	select CPU_HAS_PREFETCH
152518d84e2eSAlexander Lobakin	select CPU_NO_LOAD_STORE_LR
15267fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_32BIT_KERNEL
15277fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_64BIT_KERNEL
15287fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_HIGHMEM
1529afd375dcSPaul Burton	select CPU_SUPPORTS_HUGEPAGES
15307fd08ca5SLeonid Yegoshin	select CPU_SUPPORTS_MSA
15312e6c7747SJames Hogan	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1532a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
15337fd08ca5SLeonid Yegoshin	help
15347fd08ca5SLeonid Yegoshin	  Choose this option to build a kernel for release 6 or later of the
15357fd08ca5SLeonid Yegoshin	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
15367fd08ca5SLeonid Yegoshin	  family, are based on a MIPS64r6 processor. If you own an older
15377fd08ca5SLeonid Yegoshin	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
15387fd08ca5SLeonid Yegoshin
1539281e3aeaSSerge Seminconfig CPU_P5600
1540281e3aeaSSerge Semin	bool "MIPS Warrior P5600"
1541281e3aeaSSerge Semin	depends on SYS_HAS_CPU_P5600
1542281e3aeaSSerge Semin	select CPU_HAS_PREFETCH
1543281e3aeaSSerge Semin	select CPU_SUPPORTS_32BIT_KERNEL
1544281e3aeaSSerge Semin	select CPU_SUPPORTS_HIGHMEM
1545281e3aeaSSerge Semin	select CPU_SUPPORTS_MSA
1546281e3aeaSSerge Semin	select CPU_SUPPORTS_CPUFREQ
1547a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1548281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_VI
1549281e3aeaSSerge Semin	select CPU_MIPSR2_IRQ_EI
1550281e3aeaSSerge Semin	select MIPS_O32_FP64_SUPPORT
1551281e3aeaSSerge Semin	help
1552281e3aeaSSerge Semin	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1553281e3aeaSSerge Semin	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1554281e3aeaSSerge Semin	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1555281e3aeaSSerge Semin	  level features like up to six P5600 calculation cores, CM2 with L2
1556281e3aeaSSerge Semin	  cache, IOCU/IOMMU (though might be unused depending on the system-
1557281e3aeaSSerge Semin	  specific IP core configuration), GIC, CPC, virtualisation module,
1558281e3aeaSSerge Semin	  eJTAG and PDtrace.
1559281e3aeaSSerge Semin
15601da177e4SLinus Torvaldsconfig CPU_R3000
15611da177e4SLinus Torvalds	bool "R3000"
15627cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R3000
1563f7062ddbSRalf Baechle	select CPU_HAS_WB
156454746829SPaul Burton	select CPU_R3K_TLB
1565ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1566797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
15671da177e4SLinus Torvalds	help
15681da177e4SLinus Torvalds	  Please make sure to pick the right CPU type. Linux/MIPS is not
15691da177e4SLinus Torvalds	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
15701da177e4SLinus Torvalds	  *not* work on R4000 machines and vice versa.  However, since most
15711da177e4SLinus Torvalds	  of the supported machines have an R4000 (or similar) CPU, R4x00
15721da177e4SLinus Torvalds	  might be a safe bet.  If the resulting kernel does not work,
15731da177e4SLinus Torvalds	  try to recompile with R3000.
15741da177e4SLinus Torvalds
157565ce6197SLauri Kasanenconfig CPU_R4300
157665ce6197SLauri Kasanen	bool "R4300"
157765ce6197SLauri Kasanen	depends on SYS_HAS_CPU_R4300
157865ce6197SLauri Kasanen	select CPU_SUPPORTS_32BIT_KERNEL
157965ce6197SLauri Kasanen	select CPU_SUPPORTS_64BIT_KERNEL
158065ce6197SLauri Kasanen	help
158165ce6197SLauri Kasanen	  MIPS Technologies R4300-series processors.
158265ce6197SLauri Kasanen
15831da177e4SLinus Torvaldsconfig CPU_R4X00
15841da177e4SLinus Torvalds	bool "R4x00"
15857cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R4X00
1586ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1587ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1588970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
15891da177e4SLinus Torvalds	help
15901da177e4SLinus Torvalds	  MIPS Technologies R4000-series processors other than 4300, including
15911da177e4SLinus Torvalds	  the R4000, R4400, R4600, and 4700.
15921da177e4SLinus Torvalds
15931da177e4SLinus Torvaldsconfig CPU_TX49XX
15941da177e4SLinus Torvalds	bool "R49XX"
15957cf8053bSRalf Baechle	depends on SYS_HAS_CPU_TX49XX
1596de862b48SAtsushi Nemoto	select CPU_HAS_PREFETCH
1597ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1598ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1599970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16001da177e4SLinus Torvalds
16011da177e4SLinus Torvaldsconfig CPU_R5000
16021da177e4SLinus Torvalds	bool "R5000"
16037cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R5000
1604ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1605ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1606970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16071da177e4SLinus Torvalds	help
16081da177e4SLinus Torvalds	  MIPS Technologies R5000-series processors other than the Nevada.
16091da177e4SLinus Torvalds
1610542c1020SShinya Kuribayashiconfig CPU_R5500
1611542c1020SShinya Kuribayashi	bool "R5500"
1612542c1020SShinya Kuribayashi	depends on SYS_HAS_CPU_R5500
1613542c1020SShinya Kuribayashi	select CPU_SUPPORTS_32BIT_KERNEL
1614542c1020SShinya Kuribayashi	select CPU_SUPPORTS_64BIT_KERNEL
16159cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1616542c1020SShinya Kuribayashi	help
1617542c1020SShinya Kuribayashi	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1618542c1020SShinya Kuribayashi	  instruction set.
1619542c1020SShinya Kuribayashi
16201da177e4SLinus Torvaldsconfig CPU_NEVADA
16211da177e4SLinus Torvalds	bool "RM52xx"
16227cf8053bSRalf Baechle	depends on SYS_HAS_CPU_NEVADA
1623ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1624ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1625970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16261da177e4SLinus Torvalds	help
16271da177e4SLinus Torvalds	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.
16281da177e4SLinus Torvalds
16291da177e4SLinus Torvaldsconfig CPU_R10000
16301da177e4SLinus Torvalds	bool "R10000"
16317cf8053bSRalf Baechle	depends on SYS_HAS_CPU_R10000
16325e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1633ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1634ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1635797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1636970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16371da177e4SLinus Torvalds	help
16381da177e4SLinus Torvalds	  MIPS Technologies R10000-series processors.
16391da177e4SLinus Torvalds
16401da177e4SLinus Torvaldsconfig CPU_RM7000
16411da177e4SLinus Torvalds	bool "RM7000"
16427cf8053bSRalf Baechle	depends on SYS_HAS_CPU_RM7000
16435e83d430SRalf Baechle	select CPU_HAS_PREFETCH
1644ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1645ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1646797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1647970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16481da177e4SLinus Torvalds
16491da177e4SLinus Torvaldsconfig CPU_SB1
16501da177e4SLinus Torvalds	bool "SB1"
16517cf8053bSRalf Baechle	depends on SYS_HAS_CPU_SB1
1652ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_32BIT_KERNEL
1653ed5ba2fbSYoichi Yuasa	select CPU_SUPPORTS_64BIT_KERNEL
1654797798c1SRalf Baechle	select CPU_SUPPORTS_HIGHMEM
1655970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
16560004a9dfSRalf Baechle	select WEAK_ORDERING
16571da177e4SLinus Torvalds
1658a86c7f72SDavid Daneyconfig CPU_CAVIUM_OCTEON
1659a86c7f72SDavid Daney	bool "Cavium Octeon processor"
16605e683389SDavid Daney	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1661a86c7f72SDavid Daney	select CPU_HAS_PREFETCH
1662a86c7f72SDavid Daney	select CPU_SUPPORTS_64BIT_KERNEL
1663ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_8KB if !MIPS_VA_BITS_48
1664ba89f9c8SArnd Bergmann	select HAVE_PAGE_SIZE_32KB if !MIPS_VA_BITS_48
1665a86c7f72SDavid Daney	select WEAK_ORDERING
1666a86c7f72SDavid Daney	select CPU_SUPPORTS_HIGHMEM
16679cffd154SDavid Daney	select CPU_SUPPORTS_HUGEPAGES
1668df115f3eSBen Hutchings	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1669df115f3eSBen Hutchings	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1670930beb5aSFlorian Fainelli	select MIPS_L1_CACHE_SHIFT_7
1671a6d54338SPaolo Bonzini	select CPU_SUPPORTS_VZ
1672a86c7f72SDavid Daney	help
1673a86c7f72SDavid Daney	  The Cavium Octeon processor is a highly integrated chip containing
1674a86c7f72SDavid Daney	  many ethernet hardware widgets for networking tasks. The processor
1675a86c7f72SDavid Daney	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1676a86c7f72SDavid Daney	  Full details can be found at http://www.caviumnetworks.com.
1677a86c7f72SDavid Daney
1678cd746249SJonas Gorskiconfig CPU_BMIPS
1679cd746249SJonas Gorski	bool "Broadcom BMIPS"
1680cd746249SJonas Gorski	depends on SYS_HAS_CPU_BMIPS
1681cd746249SJonas Gorski	select CPU_MIPS32
1682fe7f62c0SJonas Gorski	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1683cd746249SJonas Gorski	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1684cd746249SJonas Gorski	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1685cd746249SJonas Gorski	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1686cd746249SJonas Gorski	select CPU_SUPPORTS_32BIT_KERNEL
1687cd746249SJonas Gorski	select DMA_NONCOHERENT
168867e38cf2SRalf Baechle	select IRQ_MIPS_CPU
1689cd746249SJonas Gorski	select SWAP_IO_SPACE
1690cd746249SJonas Gorski	select WEAK_ORDERING
1691c1c0c461SKevin Cernekee	select CPU_SUPPORTS_HIGHMEM
169269aaf9c8SJonas Gorski	select CPU_HAS_PREFETCH
1693a8d709b0SMarkus Mayer	select CPU_SUPPORTS_CPUFREQ
1694a8d709b0SMarkus Mayer	select MIPS_EXTERNAL_TIMER
1695bf8bde41SFlorian Fainelli	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1696c1c0c461SKevin Cernekee	help
1697fe7f62c0SJonas Gorski	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1698c1c0c461SKevin Cernekee
16991da177e4SLinus Torvaldsendchoice
17001da177e4SLinus Torvalds
17015033ad56SMasahiro Yamadaconfig LOONGSON3_ENHANCEMENT
17025033ad56SMasahiro Yamada	bool "New Loongson-3 CPU Enhancements"
17035033ad56SMasahiro Yamada	default n
17045033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17055033ad56SMasahiro Yamada	help
17065033ad56SMasahiro Yamada	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
17075033ad56SMasahiro Yamada	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
17085033ad56SMasahiro Yamada	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
17095033ad56SMasahiro Yamada	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
17105033ad56SMasahiro Yamada	  Fast TLB refill support, etc.
17115033ad56SMasahiro Yamada
17125033ad56SMasahiro Yamada	  This option enable those enhancements which are not probed at run
17135033ad56SMasahiro Yamada	  time. If you want a generic kernel to run on all Loongson 3 machines,
17145033ad56SMasahiro Yamada	  please say 'N' here. If you want a high-performance kernel to run on
17155033ad56SMasahiro Yamada	  new Loongson-3 machines only, please say 'Y' here.
17165033ad56SMasahiro Yamada
17175033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_WORKAROUNDS
17185033ad56SMasahiro Yamada	bool "Loongson-3 LLSC Workarounds"
17195033ad56SMasahiro Yamada	default y if SMP
17205033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17215033ad56SMasahiro Yamada	help
17225033ad56SMasahiro Yamada	  Loongson-3 processors have the llsc issues which require workarounds.
17235033ad56SMasahiro Yamada	  Without workarounds the system may hang unexpectedly.
17245033ad56SMasahiro Yamada
17255033ad56SMasahiro Yamada	  Say Y, unless you know what you are doing.
17265033ad56SMasahiro Yamada
17275033ad56SMasahiro Yamadaconfig CPU_LOONGSON3_CPUCFG_EMULATION
17285033ad56SMasahiro Yamada	bool "Emulate the CPUCFG instruction on older Loongson cores"
17295033ad56SMasahiro Yamada	default y
17305033ad56SMasahiro Yamada	depends on CPU_LOONGSON64
17315033ad56SMasahiro Yamada	help
17325033ad56SMasahiro Yamada	  Loongson-3A R4 and newer have the CPUCFG instruction available for
17335033ad56SMasahiro Yamada	  userland to query CPU capabilities, much like CPUID on x86. This
17345033ad56SMasahiro Yamada	  option provides emulation of the instruction on older Loongson
17355033ad56SMasahiro Yamada	  cores, back to Loongson-3A1000.
17365033ad56SMasahiro Yamada
17375033ad56SMasahiro Yamada	  If unsure, please say Y.
17385033ad56SMasahiro Yamada
1739a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_FEATURES
1740a6e18781SLeonid Yegoshin	bool "MIPS32 Release 3.5 Features"
1741a6e18781SLeonid Yegoshin	depends on SYS_HAS_CPU_MIPS32_R3_5
1742281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1743281e3aeaSSerge Semin		   CPU_P5600
1744a6e18781SLeonid Yegoshin	help
1745a6e18781SLeonid Yegoshin	  Choose this option to build a kernel for release 2 or later of the
1746a6e18781SLeonid Yegoshin	  MIPS32 architecture including features from the 3.5 release such as
1747a6e18781SLeonid Yegoshin	  support for Enhanced Virtual Addressing (EVA).
1748a6e18781SLeonid Yegoshin
1749a6e18781SLeonid Yegoshinconfig CPU_MIPS32_3_5_EVA
1750a6e18781SLeonid Yegoshin	bool "Enhanced Virtual Addressing (EVA)"
1751a6e18781SLeonid Yegoshin	depends on CPU_MIPS32_3_5_FEATURES
1752a6e18781SLeonid Yegoshin	select EVA
1753a6e18781SLeonid Yegoshin	default y
1754a6e18781SLeonid Yegoshin	help
1755a6e18781SLeonid Yegoshin	  Choose this option if you want to enable the Enhanced Virtual
1756a6e18781SLeonid Yegoshin	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
1757a6e18781SLeonid Yegoshin	  One of its primary benefits is an increase in the maximum size
1758a6e18781SLeonid Yegoshin	  of lowmem (up to 3GB). If unsure, say 'N' here.
1759a6e18781SLeonid Yegoshin
1760c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_FEATURES
1761c5b36783SSteven J. Hill	bool "MIPS32 Release 5 Features"
1762c5b36783SSteven J. Hill	depends on SYS_HAS_CPU_MIPS32_R5
1763281e3aeaSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1764c5b36783SSteven J. Hill	help
1765c5b36783SSteven J. Hill	  Choose this option to build a kernel for release 2 or later of the
1766c5b36783SSteven J. Hill	  MIPS32 architecture including features from release 5 such as
1767c5b36783SSteven J. Hill	  support for Extended Physical Addressing (XPA).
1768c5b36783SSteven J. Hill
1769c5b36783SSteven J. Hillconfig CPU_MIPS32_R5_XPA
1770c5b36783SSteven J. Hill	bool "Extended Physical Addressing (XPA)"
1771c5b36783SSteven J. Hill	depends on CPU_MIPS32_R5_FEATURES
1772c5b36783SSteven J. Hill	depends on !EVA
1773c5b36783SSteven J. Hill	depends on !PAGE_SIZE_4KB
1774c5b36783SSteven J. Hill	depends on SYS_SUPPORTS_HIGHMEM
1775c5b36783SSteven J. Hill	select XPA
1776c5b36783SSteven J. Hill	select HIGHMEM
1777d4a451d5SChristoph Hellwig	select PHYS_ADDR_T_64BIT
1778c5b36783SSteven J. Hill	default n
1779c5b36783SSteven J. Hill	help
1780c5b36783SSteven J. Hill	  Choose this option if you want to enable the Extended Physical
1781c5b36783SSteven J. Hill	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1782c5b36783SSteven J. Hill	  benefit is to increase physical addressing equal to or greater
1783c5b36783SSteven J. Hill	  than 40 bits. Note that this has the side effect of turning on
1784c5b36783SSteven J. Hill	  64-bit addressing which in turn makes the PTEs 64-bit in size.
1785c5b36783SSteven J. Hill	  If unsure, say 'N' here.
1786c5b36783SSteven J. Hill
1787622844bfSWu Zhangjinif CPU_LOONGSON2F
1788622844bfSWu Zhangjinconfig CPU_NOP_WORKAROUNDS
1789622844bfSWu Zhangjin	bool
1790622844bfSWu Zhangjin
1791622844bfSWu Zhangjinconfig CPU_JUMP_WORKAROUNDS
1792622844bfSWu Zhangjin	bool
1793622844bfSWu Zhangjin
1794622844bfSWu Zhangjinconfig CPU_LOONGSON2F_WORKAROUNDS
1795622844bfSWu Zhangjin	bool "Loongson 2F Workarounds"
1796622844bfSWu Zhangjin	default y
1797622844bfSWu Zhangjin	select CPU_NOP_WORKAROUNDS
1798622844bfSWu Zhangjin	select CPU_JUMP_WORKAROUNDS
1799622844bfSWu Zhangjin	help
1800622844bfSWu Zhangjin	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1801622844bfSWu Zhangjin	  require workarounds.  Without workarounds the system may hang
1802622844bfSWu Zhangjin	  unexpectedly.  For more information please refer to the gas
1803622844bfSWu Zhangjin	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1804622844bfSWu Zhangjin
1805622844bfSWu Zhangjin	  Loongson 2F03 and later have fixed these issues and no workarounds
1806622844bfSWu Zhangjin	  are needed.  The workarounds have no significant side effect on them
1807622844bfSWu Zhangjin	  but may decrease the performance of the system so this option should
1808622844bfSWu Zhangjin	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
1809622844bfSWu Zhangjin	  systems.
1810622844bfSWu Zhangjin
1811622844bfSWu Zhangjin	  If unsure, please say Y.
1812622844bfSWu Zhangjinendif # CPU_LOONGSON2F
1813622844bfSWu Zhangjin
18141b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT
18151b93b3c3SWu Zhangjin	bool
18161b93b3c3SWu Zhangjin	select HAVE_KERNEL_GZIP
18171b93b3c3SWu Zhangjin	select HAVE_KERNEL_BZIP2
181831c4867dSFlorian Fainelli	select HAVE_KERNEL_LZ4
18191b93b3c3SWu Zhangjin	select HAVE_KERNEL_LZMA
1820fe1d45e0SWu Zhangjin	select HAVE_KERNEL_LZO
18214e23eb63SFlorian Fainelli	select HAVE_KERNEL_XZ
1822a510b616SPaul Cercueil	select HAVE_KERNEL_ZSTD
18231b93b3c3SWu Zhangjin
18241b93b3c3SWu Zhangjinconfig SYS_SUPPORTS_ZBOOT_UART16550
18251b93b3c3SWu Zhangjin	bool
18261b93b3c3SWu Zhangjin	select SYS_SUPPORTS_ZBOOT
18271b93b3c3SWu Zhangjin
1828dbb98314SAlban Bedelconfig SYS_SUPPORTS_ZBOOT_UART_PROM
1829dbb98314SAlban Bedel	bool
1830dbb98314SAlban Bedel	select SYS_SUPPORTS_ZBOOT
1831dbb98314SAlban Bedel
1832268a2d60SJiaxun Yangconfig CPU_LOONGSON2EF
18333702bba5SWu Zhangjin	bool
18343702bba5SWu Zhangjin	select CPU_SUPPORTS_32BIT_KERNEL
18353702bba5SWu Zhangjin	select CPU_SUPPORTS_64BIT_KERNEL
18363702bba5SWu Zhangjin	select CPU_SUPPORTS_HIGHMEM
1837970d032fSRalf Baechle	select CPU_SUPPORTS_HUGEPAGES
183801557e34SMateusz Jończyk	select RTC_MC146818_LIB
18393702bba5SWu Zhangjin
1840fe7f62c0SJonas Gorskiconfig CPU_BMIPS32_3300
184104fa8bf7SJonas Gorski	select SMP_UP if SMP
18421bbb6c1bSKevin Cernekee	bool
1843cd746249SJonas Gorski
1844cd746249SJonas Gorskiconfig CPU_BMIPS4350
1845cd746249SJonas Gorski	bool
1846cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1847cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1848cd746249SJonas Gorski
1849cd746249SJonas Gorskiconfig CPU_BMIPS4380
1850cd746249SJonas Gorski	bool
1851bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_6
1852cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1853cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1854b4720809SFlorian Fainelli	select CPU_HAS_RIXI
1855cd746249SJonas Gorski
1856cd746249SJonas Gorskiconfig CPU_BMIPS5000
1857cd746249SJonas Gorski	bool
1858cd746249SJonas Gorski	select MIPS_CPU_SCACHE
1859bbf2ba67SKevin Cernekee	select MIPS_L1_CACHE_SHIFT_7
1860cd746249SJonas Gorski	select SYS_SUPPORTS_SMP
1861cd746249SJonas Gorski	select SYS_SUPPORTS_HOTPLUG_CPU
1862b4720809SFlorian Fainelli	select CPU_HAS_RIXI
18631bbb6c1bSKevin Cernekee
1864268a2d60SJiaxun Yangconfig SYS_HAS_CPU_LOONGSON64
18650e476d91SHuacai Chen	bool
18660e476d91SHuacai Chen	select CPU_SUPPORTS_CPUFREQ
1867b2edcfc8SHuacai Chen	select CPU_HAS_RIXI
18680e476d91SHuacai Chen
18693702bba5SWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2E
18702a21c730SFuxin Zhang	bool
18712a21c730SFuxin Zhang
18726f7a251aSWu Zhangjinconfig SYS_HAS_CPU_LOONGSON2F
18736f7a251aSWu Zhangjin	bool
187455045ff5SWu Zhangjin	select CPU_SUPPORTS_CPUFREQ
187555045ff5SWu Zhangjin	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
18766f7a251aSWu Zhangjin
187785c43540SKeguang Zhangconfig SYS_HAS_CPU_LOONGSON32
187812e3280bSYang Ling	bool
187912e3280bSYang Ling
18807cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R1
18817cf8053bSRalf Baechle	bool
18827cf8053bSRalf Baechle
18837cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS32_R2
18847cf8053bSRalf Baechle	bool
18857cf8053bSRalf Baechle
1886a6e18781SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R3_5
1887a6e18781SLeonid Yegoshin	bool
1888a6e18781SLeonid Yegoshin
1889c5b36783SSteven J. Hillconfig SYS_HAS_CPU_MIPS32_R5
1890c5b36783SSteven J. Hill	bool
1891c5b36783SSteven J. Hill
18927fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS32_R6
18937fd08ca5SLeonid Yegoshin	bool
18947fd08ca5SLeonid Yegoshin
18957cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R1
18967cf8053bSRalf Baechle	bool
18977cf8053bSRalf Baechle
18987cf8053bSRalf Baechleconfig SYS_HAS_CPU_MIPS64_R2
18997cf8053bSRalf Baechle	bool
19007cf8053bSRalf Baechle
1901fd4eb90bSLukas Bulwahnconfig SYS_HAS_CPU_MIPS64_R5
1902fd4eb90bSLukas Bulwahn	bool
1903fd4eb90bSLukas Bulwahn
19047fd08ca5SLeonid Yegoshinconfig SYS_HAS_CPU_MIPS64_R6
19057fd08ca5SLeonid Yegoshin	bool
19067fd08ca5SLeonid Yegoshin
1907281e3aeaSSerge Seminconfig SYS_HAS_CPU_P5600
1908281e3aeaSSerge Semin	bool
1909281e3aeaSSerge Semin
19107cf8053bSRalf Baechleconfig SYS_HAS_CPU_R3000
19117cf8053bSRalf Baechle	bool
19127cf8053bSRalf Baechle
191365ce6197SLauri Kasanenconfig SYS_HAS_CPU_R4300
191465ce6197SLauri Kasanen	bool
191565ce6197SLauri Kasanen
19167cf8053bSRalf Baechleconfig SYS_HAS_CPU_R4X00
19177cf8053bSRalf Baechle	bool
19187cf8053bSRalf Baechle
19197cf8053bSRalf Baechleconfig SYS_HAS_CPU_TX49XX
19207cf8053bSRalf Baechle	bool
19217cf8053bSRalf Baechle
19227cf8053bSRalf Baechleconfig SYS_HAS_CPU_R5000
19237cf8053bSRalf Baechle	bool
19247cf8053bSRalf Baechle
1925542c1020SShinya Kuribayashiconfig SYS_HAS_CPU_R5500
1926542c1020SShinya Kuribayashi	bool
1927542c1020SShinya Kuribayashi
19287cf8053bSRalf Baechleconfig SYS_HAS_CPU_NEVADA
19297cf8053bSRalf Baechle	bool
19307cf8053bSRalf Baechle
19317cf8053bSRalf Baechleconfig SYS_HAS_CPU_R10000
19327cf8053bSRalf Baechle	bool
19337cf8053bSRalf Baechle
19347cf8053bSRalf Baechleconfig SYS_HAS_CPU_RM7000
19357cf8053bSRalf Baechle	bool
19367cf8053bSRalf Baechle
19377cf8053bSRalf Baechleconfig SYS_HAS_CPU_SB1
19387cf8053bSRalf Baechle	bool
19397cf8053bSRalf Baechle
19405e683389SDavid Daneyconfig SYS_HAS_CPU_CAVIUM_OCTEON
19415e683389SDavid Daney	bool
19425e683389SDavid Daney
1943cd746249SJonas Gorskiconfig SYS_HAS_CPU_BMIPS
1944c1c0c461SKevin Cernekee	bool
1945c1c0c461SKevin Cernekee
1946fe7f62c0SJonas Gorskiconfig SYS_HAS_CPU_BMIPS32_3300
1947c1c0c461SKevin Cernekee	bool
1948cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1949c1c0c461SKevin Cernekee
1950c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4350
1951c1c0c461SKevin Cernekee	bool
1952cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1953c1c0c461SKevin Cernekee
1954c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS4380
1955c1c0c461SKevin Cernekee	bool
1956cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1957c1c0c461SKevin Cernekee
1958c1c0c461SKevin Cernekeeconfig SYS_HAS_CPU_BMIPS5000
1959c1c0c461SKevin Cernekee	bool
1960cd746249SJonas Gorski	select SYS_HAS_CPU_BMIPS
1961c1c0c461SKevin Cernekee
196217099b11SRalf Baechle#
196317099b11SRalf Baechle# CPU may reorder R->R, R->W, W->R, W->W
196417099b11SRalf Baechle# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
196517099b11SRalf Baechle#
19660004a9dfSRalf Baechleconfig WEAK_ORDERING
19670004a9dfSRalf Baechle	bool
196817099b11SRalf Baechle
196917099b11SRalf Baechle#
197017099b11SRalf Baechle# CPU may reorder reads and writes beyond LL/SC
197117099b11SRalf Baechle# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
197217099b11SRalf Baechle#
197317099b11SRalf Baechleconfig WEAK_REORDERING_BEYOND_LLSC
197417099b11SRalf Baechle	bool
19755e83d430SRalf Baechleendmenu
19765e83d430SRalf Baechle
19775e83d430SRalf Baechle#
19785e83d430SRalf Baechle# These two indicate any level of the MIPS32 and MIPS64 architecture
19795e83d430SRalf Baechle#
19805e83d430SRalf Baechleconfig CPU_MIPS32
19815e83d430SRalf Baechle	bool
1982ab7c01fdSSerge Semin	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1983281e3aeaSSerge Semin		     CPU_MIPS32_R6 || CPU_P5600
19845e83d430SRalf Baechle
19855e83d430SRalf Baechleconfig CPU_MIPS64
19865e83d430SRalf Baechle	bool
1987ab7c01fdSSerge Semin	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
19885a4fa44fSJason A. Donenfeld		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
19895e83d430SRalf Baechle
19905e83d430SRalf Baechle#
199157eeacedSPaul Burton# These indicate the revision of the architecture
19925e83d430SRalf Baechle#
19935e83d430SRalf Baechleconfig CPU_MIPSR1
19945e83d430SRalf Baechle	bool
19955e83d430SRalf Baechle	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
19965e83d430SRalf Baechle
19975e83d430SRalf Baechleconfig CPU_MIPSR2
19985e83d430SRalf Baechle	bool
1999a86c7f72SDavid Daney	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
20008256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2001ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2002a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20035e83d430SRalf Baechle
2004ab7c01fdSSerge Seminconfig CPU_MIPSR5
2005ab7c01fdSSerge Semin	bool
2006281e3aeaSSerge Semin	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
2007ab7c01fdSSerge Semin	select CPU_HAS_RIXI
2008ab7c01fdSSerge Semin	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
2009ab7c01fdSSerge Semin	select MIPS_SPRAM
2010ab7c01fdSSerge Semin
20117fd08ca5SLeonid Yegoshinconfig CPU_MIPSR6
20127fd08ca5SLeonid Yegoshin	bool
20137fd08ca5SLeonid Yegoshin	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
20148256b17eSFlorian Fainelli	select CPU_HAS_RIXI
2015ba9196d2SJiaxun Yang	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
201642d9c75eSYury Norov	select HAVE_ARCH_BITREVERSE if BITREVERSE
20172db003a5SPaul Burton	select MIPS_ASID_BITS_VARIABLE
2018a7e07b1aSMarkos Chandras	select MIPS_SPRAM
20195e83d430SRalf Baechle
202057eeacedSPaul Burtonconfig TARGET_ISA_REV
202157eeacedSPaul Burton	int
202257eeacedSPaul Burton	default 1 if CPU_MIPSR1
202357eeacedSPaul Burton	default 2 if CPU_MIPSR2
2024ab7c01fdSSerge Semin	default 5 if CPU_MIPSR5
202557eeacedSPaul Burton	default 6 if CPU_MIPSR6
202657eeacedSPaul Burton	default 0
202757eeacedSPaul Burton	help
202857eeacedSPaul Burton	  Reflects the ISA revision being targeted by the kernel build. This
202957eeacedSPaul Burton	  is effectively the Kconfig equivalent of MIPS_ISA_REV.
203057eeacedSPaul Burton
2031a6e18781SLeonid Yegoshinconfig EVA
2032a6e18781SLeonid Yegoshin	bool
2033a6e18781SLeonid Yegoshin
2034c5b36783SSteven J. Hillconfig XPA
2035c5b36783SSteven J. Hill	bool
2036c5b36783SSteven J. Hill
20375e83d430SRalf Baechleconfig SYS_SUPPORTS_32BIT_KERNEL
20385e83d430SRalf Baechle	bool
20395e83d430SRalf Baechleconfig SYS_SUPPORTS_64BIT_KERNEL
20405e83d430SRalf Baechle	bool
20415e83d430SRalf Baechleconfig CPU_SUPPORTS_32BIT_KERNEL
20425e83d430SRalf Baechle	bool
20435e83d430SRalf Baechleconfig CPU_SUPPORTS_64BIT_KERNEL
20445e83d430SRalf Baechle	bool
204555045ff5SWu Zhangjinconfig CPU_SUPPORTS_CPUFREQ
204655045ff5SWu Zhangjin	bool
204755045ff5SWu Zhangjinconfig CPU_SUPPORTS_ADDRWINCFG
204855045ff5SWu Zhangjin	bool
20499cffd154SDavid Daneyconfig CPU_SUPPORTS_HUGEPAGES
20509cffd154SDavid Daney	bool
2051a670c82dSLukas Bulwahn	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
2052a6d54338SPaolo Bonziniconfig CPU_SUPPORTS_VZ
2053a6d54338SPaolo Bonzini	bool
205482622284SDavid Daneyconfig MIPS_PGD_C0_CONTEXT
205582622284SDavid Daney	bool
2056c6972fb9SHuang Pei	depends on 64BIT
205795b8a5e0SThomas Bogendoerfer	default y if (CPU_MIPSR2 || CPU_MIPSR6)
20585e83d430SRalf Baechle
20598192c9eaSDavid Daney#
20608192c9eaSDavid Daney# Set to y for ptrace access to watch registers.
20618192c9eaSDavid Daney#
20628192c9eaSDavid Daneyconfig HARDWARE_WATCHPOINTS
20638192c9eaSDavid Daney	bool
2064679eb637SJames Hogan	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
20658192c9eaSDavid Daney
20665e83d430SRalf Baechlemenu "Kernel type"
20675e83d430SRalf Baechle
20685e83d430SRalf Baechlechoice
20695e83d430SRalf Baechle	prompt "Kernel code model"
20705e83d430SRalf Baechle	help
20715e83d430SRalf Baechle	  You should only select this option if you have a workload that
20725e83d430SRalf Baechle	  actually benefits from 64-bit processing or if your machine has
20735e83d430SRalf Baechle	  large memory.  You will only be presented a single option in this
20745e83d430SRalf Baechle	  menu if your system does not support both 32-bit and 64-bit kernels.
20755e83d430SRalf Baechle
20765e83d430SRalf Baechleconfig 32BIT
20775e83d430SRalf Baechle	bool "32-bit kernel"
20785e83d430SRalf Baechle	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
20795e83d430SRalf Baechle	select TRAD_SIGNALS
20805e83d430SRalf Baechle	help
20815e83d430SRalf Baechle	  Select this option if you want to build a 32-bit kernel.
2082f17c4ca3SRalf Baechle
20835e83d430SRalf Baechleconfig 64BIT
20845e83d430SRalf Baechle	bool "64-bit kernel"
20855e83d430SRalf Baechle	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
20865e83d430SRalf Baechle	help
20875e83d430SRalf Baechle	  Select this option if you want to build a 64-bit kernel.
20885e83d430SRalf Baechle
20895e83d430SRalf Baechleendchoice
20905e83d430SRalf Baechle
20911e321fa9SLeonid Yegoshinconfig MIPS_VA_BITS_48
20921e321fa9SLeonid Yegoshin	bool "48 bits virtual memory"
20931e321fa9SLeonid Yegoshin	depends on 64BIT
20941e321fa9SLeonid Yegoshin	help
20953377e227SAlex Belits	  Support a maximum at least 48 bits of application virtual
20963377e227SAlex Belits	  memory.  Default is 40 bits or less, depending on the CPU.
20973377e227SAlex Belits	  For page sizes 16k and above, this option results in a small
20983377e227SAlex Belits	  memory overhead for page tables.  For 4k page size, a fourth
20993377e227SAlex Belits	  level of page tables is added which imposes both a memory
21003377e227SAlex Belits	  overhead as well as slower TLB fault handling.
21013377e227SAlex Belits
21021e321fa9SLeonid Yegoshin	  If unsure, say N.
21031e321fa9SLeonid Yegoshin
210479876cc1SYunQiang Suconfig ZBOOT_LOAD_ADDRESS
210579876cc1SYunQiang Su	hex "Compressed kernel load address"
210679876cc1SYunQiang Su	default 0xffffffff80400000 if BCM47XX
210779876cc1SYunQiang Su	default 0x0
210879876cc1SYunQiang Su	depends on SYS_SUPPORTS_ZBOOT
210979876cc1SYunQiang Su	help
211079876cc1SYunQiang Su	  The address to load compressed kernel, aka vmlinuz.
211179876cc1SYunQiang Su
211279876cc1SYunQiang Su	  This is only used if non-zero.
211379876cc1SYunQiang Su
21140192445cSZi Yanconfig ARCH_FORCE_MAX_ORDER
2115c9bace7cSDavid Daney	int "Maximum zone order"
211623baf831SKirill A. Shutemov	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
211723baf831SKirill A. Shutemov	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
211823baf831SKirill A. Shutemov	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
211923baf831SKirill A. Shutemov	default "10"
2120c9bace7cSDavid Daney	help
2121c9bace7cSDavid Daney	  The kernel memory allocator divides physically contiguous memory
2122c9bace7cSDavid Daney	  blocks into "zones", where each zone is a power of two number of
2123c9bace7cSDavid Daney	  pages.  This option selects the largest power of two that the kernel
2124c9bace7cSDavid Daney	  keeps in the memory allocator.  If you need to allocate very large
2125c9bace7cSDavid Daney	  blocks of physically contiguous memory, then you may need to
2126c9bace7cSDavid Daney	  increase this value.
2127c9bace7cSDavid Daney
2128c9bace7cSDavid Daney	  The page size is not necessarily 4KB.  Keep this in mind
2129c9bace7cSDavid Daney	  when choosing a value for this option.
2130c9bace7cSDavid Daney
21311da177e4SLinus Torvaldsconfig BOARD_SCACHE
21321da177e4SLinus Torvalds	bool
21331da177e4SLinus Torvalds
21341da177e4SLinus Torvaldsconfig IP22_CPU_SCACHE
21351da177e4SLinus Torvalds	bool
21361da177e4SLinus Torvalds	select BOARD_SCACHE
21371da177e4SLinus Torvalds
21389318c51aSChris Dearman#
21399318c51aSChris Dearman# Support for a MIPS32 / MIPS64 style S-caches
21409318c51aSChris Dearman#
21419318c51aSChris Dearmanconfig MIPS_CPU_SCACHE
21429318c51aSChris Dearman	bool
21439318c51aSChris Dearman	select BOARD_SCACHE
21449318c51aSChris Dearman
21451da177e4SLinus Torvaldsconfig R5000_CPU_SCACHE
21461da177e4SLinus Torvalds	bool
21471da177e4SLinus Torvalds	select BOARD_SCACHE
21481da177e4SLinus Torvalds
21491da177e4SLinus Torvaldsconfig RM7000_CPU_SCACHE
21501da177e4SLinus Torvalds	bool
21511da177e4SLinus Torvalds	select BOARD_SCACHE
21521da177e4SLinus Torvalds
21531da177e4SLinus Torvaldsconfig SIBYTE_DMA_PAGEOPS
21541da177e4SLinus Torvalds	bool "Use DMA to clear/copy pages"
21551da177e4SLinus Torvalds	depends on CPU_SB1
21561da177e4SLinus Torvalds	help
21571da177e4SLinus Torvalds	  Instead of using the CPU to zero and copy pages, use a Data Mover
21581da177e4SLinus Torvalds	  channel.  These DMA channels are otherwise unused by the standard
21591da177e4SLinus Torvalds	  SiByte Linux port.  Seems to give a small performance benefit.
21601da177e4SLinus Torvalds
21611da177e4SLinus Torvaldsconfig CPU_HAS_PREFETCH
2162c8094b53SRalf Baechle	bool
21631da177e4SLinus Torvalds
21643165c846SFlorian Fainelliconfig CPU_GENERIC_DUMP_TLB
21653165c846SFlorian Fainelli	bool
2166455481fcSThomas Bogendoerfer	default y if !CPU_R3000
21673165c846SFlorian Fainelli
2168c92e47e5SPaul Burtonconfig MIPS_FP_SUPPORT
2169183b40f9SPaul Burton	bool "Floating Point support" if EXPERT
2170183b40f9SPaul Burton	default y
2171183b40f9SPaul Burton	help
2172183b40f9SPaul Burton	  Select y to include support for floating point in the kernel
2173183b40f9SPaul Burton	  including initialization of FPU hardware, FP context save & restore
2174183b40f9SPaul Burton	  and emulation of an FPU where necessary. Without this support any
2175183b40f9SPaul Burton	  userland program attempting to use floating point instructions will
2176183b40f9SPaul Burton	  receive a SIGILL.
2177183b40f9SPaul Burton
2178183b40f9SPaul Burton	  If you know that your userland will not attempt to use floating point
2179183b40f9SPaul Burton	  instructions then you can say n here to shrink the kernel a little.
2180183b40f9SPaul Burton
2181183b40f9SPaul Burton	  If unsure, say y.
2182c92e47e5SPaul Burton
218397f7dcbfSPaul Burtonconfig CPU_R2300_FPU
218497f7dcbfSPaul Burton	bool
2185c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2186455481fcSThomas Bogendoerfer	default y if CPU_R3000
218797f7dcbfSPaul Burton
218854746829SPaul Burtonconfig CPU_R3K_TLB
218954746829SPaul Burton	bool
219054746829SPaul Burton
219191405eb6SFlorian Fainelliconfig CPU_R4K_FPU
219291405eb6SFlorian Fainelli	bool
2193c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
219497f7dcbfSPaul Burton	default y if !CPU_R2300_FPU
219591405eb6SFlorian Fainelli
219662cedc4fSFlorian Fainelliconfig CPU_R4K_CACHE_TLB
219762cedc4fSFlorian Fainelli	bool
219854746829SPaul Burton	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
219962cedc4fSFlorian Fainelli
220059d6ab86SRalf Baechleconfig MIPS_MT_SMP
2201a92b7f87SMarkos Chandras	bool "MIPS MT SMP support (1 TC on each available VPE)"
22025cbf9688SPaul Burton	default y
220374efddadSJiaxun Yang	depends on TARGET_ISA_REV > 0 && TARGET_ISA_REV < 6
220474efddadSJiaxun Yang	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MICROMIPS
220559d6ab86SRalf Baechle	select CPU_MIPSR2_IRQ_VI
2206d725cf38SChris Dearman	select CPU_MIPSR2_IRQ_EI
2207c080faa5SSteven J. Hill	select SYNC_R4K
220859d6ab86SRalf Baechle	select MIPS_MT
220959d6ab86SRalf Baechle	select SMP
221087353d8aSRalf Baechle	select SMP_UP
2211c080faa5SSteven J. Hill	select SYS_SUPPORTS_SMP
22127bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT
2213399aaa25SAl Cooper	select MIPS_PERF_SHARED_TC_COUNTERS
221459d6ab86SRalf Baechle	help
2215c080faa5SSteven J. Hill	  This is a kernel model which is known as SMVP. This is supported
2216c080faa5SSteven J. Hill	  on cores with the MT ASE and uses the available VPEs to implement
2217c080faa5SSteven J. Hill	  virtual processors which supports SMP. This is equivalent to the
2218c080faa5SSteven J. Hill	  Intel Hyperthreading feature. For further information go to
2219c080faa5SSteven J. Hill	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
222059d6ab86SRalf Baechle
2221f41ae0b2SRalf Baechleconfig MIPS_MT
2222f41ae0b2SRalf Baechle	bool
2223f41ae0b2SRalf Baechle
2224f41ae0b2SRalf Baechleconfig SYS_SUPPORTS_MULTITHREADING
2225f41ae0b2SRalf Baechle	bool
2226f41ae0b2SRalf Baechle
2227f088fc84SRalf Baechleconfig MIPS_MT_FPAFF
2228f088fc84SRalf Baechle	bool "Dynamic FPU affinity for FP-intensive threads"
2229f088fc84SRalf Baechle	default y
2230b633648cSRalf Baechle	depends on MIPS_MT_SMP
223107cc0c9eSRalf Baechle
2232b0a668fbSLeonid Yegoshinconfig MIPSR2_TO_R6_EMULATOR
2233b0a668fbSLeonid Yegoshin	bool "MIPS R2-to-R6 emulator"
22349eaa9a82SPaul Burton	depends on CPU_MIPSR6
2235c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
2236b0a668fbSLeonid Yegoshin	default y
2237b0a668fbSLeonid Yegoshin	help
2238b0a668fbSLeonid Yegoshin	  Choose this option if you want to run non-R6 MIPS userland code.
2239b0a668fbSLeonid Yegoshin	  Even if you say 'Y' here, the emulator will still be disabled by
224007edf0d4SMarkos Chandras	  default. You can enable it using the 'mipsr2emu' kernel option.
2241b0a668fbSLeonid Yegoshin	  The only reason this is a build-time option is to save ~14K from the
2242b0a668fbSLeonid Yegoshin	  final kernel image.
2243b0a668fbSLeonid Yegoshin
2244f35764e7SJames Hoganconfig SYS_SUPPORTS_VPE_LOADER
2245f35764e7SJames Hogan	bool
2246f35764e7SJames Hogan	depends on SYS_SUPPORTS_MULTITHREADING
2247f35764e7SJames Hogan	help
2248f35764e7SJames Hogan	  Indicates that the platform supports the VPE loader, and provides
2249f35764e7SJames Hogan	  physical_memsize.
2250f35764e7SJames Hogan
225107cc0c9eSRalf Baechleconfig MIPS_VPE_LOADER
225207cc0c9eSRalf Baechle	bool "VPE loader support."
2253f35764e7SJames Hogan	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
225407cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_VI
225507cc0c9eSRalf Baechle	select CPU_MIPSR2_IRQ_EI
225607cc0c9eSRalf Baechle	select MIPS_MT
225707cc0c9eSRalf Baechle	help
225807cc0c9eSRalf Baechle	  Includes a loader for loading an elf relocatable object
225907cc0c9eSRalf Baechle	  onto another VPE and running it.
2260f088fc84SRalf Baechle
22611a2a6d7eSDeng-Cheng Zhuconfig MIPS_VPE_LOADER_MT
22621a2a6d7eSDeng-Cheng Zhu	bool
22631a2a6d7eSDeng-Cheng Zhu	default "y"
22647fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_LOADER
22651a2a6d7eSDeng-Cheng Zhu
2266e01402b1SRalf Baechleconfig MIPS_VPE_LOADER_TOM
2267e01402b1SRalf Baechle	bool "Load VPE program into memory hidden from linux"
2268e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2269e01402b1SRalf Baechle	default y
2270e01402b1SRalf Baechle	help
2271e01402b1SRalf Baechle	  The loader can use memory that is present but has been hidden from
2272e01402b1SRalf Baechle	  Linux using the kernel command line option "mem=xxMB". It's up to
2273e01402b1SRalf Baechle	  you to ensure the amount you put in the option and the space your
2274e01402b1SRalf Baechle	  program requires is less or equal to the amount physically present.
2275e01402b1SRalf Baechle
2276e01402b1SRalf Baechleconfig MIPS_VPE_APSP_API
2277e01402b1SRalf Baechle	bool "Enable support for AP/SP API (RTLX)"
2278e01402b1SRalf Baechle	depends on MIPS_VPE_LOADER
2279e01402b1SRalf Baechle
22802c973ef0SDeng-Cheng Zhuconfig MIPS_VPE_APSP_API_MT
22812c973ef0SDeng-Cheng Zhu	bool
22822c973ef0SDeng-Cheng Zhu	default "y"
22837fb6f7b0SThomas Bogendoerfer	depends on MIPS_VPE_APSP_API
22845cac93b3SPaul Burton
22850ee958e1SPaul Burtonconfig MIPS_CPS
22860ee958e1SPaul Burton	bool "MIPS Coherent Processing System support"
22875a3e7c02SPaul Burton	depends on SYS_SUPPORTS_MIPS_CPS
22880ee958e1SPaul Burton	select MIPS_CM
22891d8f1f5aSPaul Burton	select MIPS_CPS_PM if HOTPLUG_CPU
22900ee958e1SPaul Burton	select SMP
229176c43eb5SGregory CLEMENT	select HOTPLUG_SMT if HOTPLUG_PARALLEL
2292c8d2bcc4SThomas Gleixner	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
22930ee958e1SPaul Burton	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
22941d8f1f5aSPaul Burton	select SYS_SUPPORTS_HOTPLUG_CPU
22957bd291abSPeter Zijlstra	select ARCH_SUPPORTS_SCHED_SMT if CPU_MIPSR6
22960ee958e1SPaul Burton	select SYS_SUPPORTS_SMP
22970ee958e1SPaul Burton	select WEAK_ORDERING
2298d8d3276bSWei Li	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
22990ee958e1SPaul Burton	help
23000ee958e1SPaul Burton	  Select this if you wish to run an SMP kernel across multiple cores
23010ee958e1SPaul Burton	  within a MIPS Coherent Processing System. When this option is
23020ee958e1SPaul Burton	  enabled the kernel will probe for other cores and boot them with
23030ee958e1SPaul Burton	  no external assistance. It is safe to enable this when hardware
23040ee958e1SPaul Burton	  support is unavailable.
23050ee958e1SPaul Burton
23063179d37eSPaul Burtonconfig MIPS_CPS_PM
230739a59593SMarkos Chandras	depends on MIPS_CPS
23083179d37eSPaul Burton	bool
23093179d37eSPaul Burton
23109f98f3ddSPaul Burtonconfig MIPS_CM
23119f98f3ddSPaul Burton	bool
23123c9b4166SPaul Burton	select MIPS_CPC
23139f98f3ddSPaul Burton
23149c38cf44SPaul Burtonconfig MIPS_CPC
23159c38cf44SPaul Burton	bool
23164a16ff4cSRalf Baechle
23171da177e4SLinus Torvaldsconfig SB1_PASS_2_WORKAROUNDS
23181da177e4SLinus Torvalds	bool
23191da177e4SLinus Torvalds	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
23201da177e4SLinus Torvalds	default y
23211da177e4SLinus Torvalds
23221da177e4SLinus Torvaldsconfig SB1_PASS_2_1_WORKAROUNDS
23231da177e4SLinus Torvalds	bool
23241da177e4SLinus Torvalds	depends on CPU_SB1 && CPU_SB1_PASS_2
23251da177e4SLinus Torvalds	default y
23261da177e4SLinus Torvalds
23279e2b5372SMarkos Chandraschoice
23289e2b5372SMarkos Chandras	prompt "SmartMIPS or microMIPS ASE support"
23299e2b5372SMarkos Chandras
23309e2b5372SMarkos Chandrasconfig CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
23319e2b5372SMarkos Chandras	bool "None"
23329e2b5372SMarkos Chandras	help
23339e2b5372SMarkos Chandras	  Select this if you want neither microMIPS nor SmartMIPS support
23349e2b5372SMarkos Chandras
23359693a853SFranck Bui-Huuconfig CPU_HAS_SMARTMIPS
23369693a853SFranck Bui-Huu	depends on SYS_SUPPORTS_SMARTMIPS
23379e2b5372SMarkos Chandras	bool "SmartMIPS"
23389693a853SFranck Bui-Huu	help
23399693a853SFranck Bui-Huu	  SmartMIPS is a extension of the MIPS32 architecture aimed at
23409693a853SFranck Bui-Huu	  increased security at both hardware and software level for
23419693a853SFranck Bui-Huu	  smartcards.  Enabling this option will allow proper use of the
23429693a853SFranck Bui-Huu	  SmartMIPS instructions by Linux applications.  However a kernel with
23439693a853SFranck Bui-Huu	  this option will not work on a MIPS core without SmartMIPS core.  If
23449693a853SFranck Bui-Huu	  you don't know you probably don't have SmartMIPS and should say N
23459693a853SFranck Bui-Huu	  here.
23469693a853SFranck Bui-Huu
2347bce86083SSteven J. Hillconfig CPU_MICROMIPS
23487fd08ca5SLeonid Yegoshin	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
23499e2b5372SMarkos Chandras	bool "microMIPS"
2350bce86083SSteven J. Hill	help
2351bce86083SSteven J. Hill	  When this option is enabled the kernel will be built using the
2352bce86083SSteven J. Hill	  microMIPS ISA
2353bce86083SSteven J. Hill
23549e2b5372SMarkos Chandrasendchoice
23559e2b5372SMarkos Chandras
2356a5e9a69eSPaul Burtonconfig CPU_HAS_MSA
23570ce3417eSPaul Burton	bool "Support for the MIPS SIMD Architecture"
2358a5e9a69eSPaul Burton	depends on CPU_SUPPORTS_MSA
2359c92e47e5SPaul Burton	depends on MIPS_FP_SUPPORT
23602a6cb669SPaul Burton	depends on 64BIT || MIPS_O32_FP64_SUPPORT
2361a5e9a69eSPaul Burton	help
2362a5e9a69eSPaul Burton	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2363a5e9a69eSPaul Burton	  and a set of SIMD instructions to operate on them. When this option
23641db1af84SPaul Burton	  is enabled the kernel will support allocating & switching MSA
23651db1af84SPaul Burton	  vector register contexts. If you know that your kernel will only be
23661db1af84SPaul Burton	  running on CPUs which do not support MSA or that your userland will
23671db1af84SPaul Burton	  not be making use of it then you may wish to say N here to reduce
23681db1af84SPaul Burton	  the size & complexity of your kernel.
2369a5e9a69eSPaul Burton
2370a5e9a69eSPaul Burton	  If unsure, say Y.
2371a5e9a69eSPaul Burton
23721da177e4SLinus Torvaldsconfig CPU_HAS_WB
2373f7062ddbSRalf Baechle	bool
2374e01402b1SRalf Baechle
2375df0ac8a4SKevin Cernekeeconfig XKS01
2376df0ac8a4SKevin Cernekee	bool
2377df0ac8a4SKevin Cernekee
2378ba9196d2SJiaxun Yangconfig CPU_HAS_DIEI
2379ba9196d2SJiaxun Yang	depends on !CPU_DIEI_BROKEN
2380ba9196d2SJiaxun Yang	bool
2381ba9196d2SJiaxun Yang
2382ba9196d2SJiaxun Yangconfig CPU_DIEI_BROKEN
2383ba9196d2SJiaxun Yang	bool
2384ba9196d2SJiaxun Yang
23858256b17eSFlorian Fainelliconfig CPU_HAS_RIXI
23868256b17eSFlorian Fainelli	bool
23878256b17eSFlorian Fainelli
238818d84e2eSAlexander Lobakinconfig CPU_NO_LOAD_STORE_LR
2389932afdeeSYasha Cherikovsky	bool
2390932afdeeSYasha Cherikovsky	help
239118d84e2eSAlexander Lobakin	  CPU lacks support for unaligned load and store instructions:
2392932afdeeSYasha Cherikovsky	  LWL, LWR, SWL, SWR (Load/store word left/right).
239318d84e2eSAlexander Lobakin	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
239418d84e2eSAlexander Lobakin	  systems).
2395932afdeeSYasha Cherikovsky
2396f41ae0b2SRalf Baechle#
2397f41ae0b2SRalf Baechle# Vectored interrupt mode is an R2 feature
2398f41ae0b2SRalf Baechle#
2399e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_VI
2400f41ae0b2SRalf Baechle	bool
2401e01402b1SRalf Baechle
2402f41ae0b2SRalf Baechle#
2403f41ae0b2SRalf Baechle# Extended interrupt mode is an R2 feature
2404f41ae0b2SRalf Baechle#
2405e01402b1SRalf Baechleconfig CPU_MIPSR2_IRQ_EI
2406f41ae0b2SRalf Baechle	bool
2407e01402b1SRalf Baechle
24081da177e4SLinus Torvaldsconfig CPU_HAS_SYNC
24091da177e4SLinus Torvalds	bool
24101da177e4SLinus Torvalds	depends on !CPU_R3000
24111da177e4SLinus Torvalds	default y
24121da177e4SLinus Torvalds
24131da177e4SLinus Torvalds#
241420d60d99SMaciej W. Rozycki# CPU non-features
241520d60d99SMaciej W. Rozycki#
2416b56d1cafSThomas Bogendoerfer
2417b56d1cafSThomas Bogendoerfer# Work around the "daddi" and "daddiu" CPU errata:
2418b56d1cafSThomas Bogendoerfer#
2419b56d1cafSThomas Bogendoerfer# - The `daddi' instruction fails to trap on overflow.
2420b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2421b56d1cafSThomas Bogendoerfer#   erratum #23
2422b56d1cafSThomas Bogendoerfer#
2423b56d1cafSThomas Bogendoerfer# - The `daddiu' instruction can produce an incorrect result.
2424b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2425b56d1cafSThomas Bogendoerfer#   erratum #41
2426b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2427b56d1cafSThomas Bogendoerfer#   #15
2428b56d1cafSThomas Bogendoerfer#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2429b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
243020d60d99SMaciej W. Rozyckiconfig CPU_DADDI_WORKAROUNDS
243120d60d99SMaciej W. Rozycki	bool
243220d60d99SMaciej W. Rozycki
2433b56d1cafSThomas Bogendoerfer# Work around certain R4000 CPU errata (as implemented by GCC):
2434b56d1cafSThomas Bogendoerfer#
2435b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2436b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2437b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2438b56d1cafSThomas Bogendoerfer#   erratum #28
2439b56d1cafSThomas Bogendoerfer#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2440b56d1cafSThomas Bogendoerfer#   #19
2441b56d1cafSThomas Bogendoerfer#
2442b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2443b56d1cafSThomas Bogendoerfer#   if executed while an integer multiplication is in progress:
2444b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2445b56d1cafSThomas Bogendoerfer#   errata #16 & #28
2446b56d1cafSThomas Bogendoerfer#
2447b56d1cafSThomas Bogendoerfer# - An integer division may give an incorrect result if started in
2448b56d1cafSThomas Bogendoerfer#   a delay slot of a taken branch or a jump:
2449b56d1cafSThomas Bogendoerfer#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2450b56d1cafSThomas Bogendoerfer#   erratum #52
245120d60d99SMaciej W. Rozyckiconfig CPU_R4000_WORKAROUNDS
245220d60d99SMaciej W. Rozycki	bool
245320d60d99SMaciej W. Rozycki	select CPU_R4400_WORKAROUNDS
245420d60d99SMaciej W. Rozycki
2455b56d1cafSThomas Bogendoerfer# Work around certain R4400 CPU errata (as implemented by GCC):
2456b56d1cafSThomas Bogendoerfer#
2457b56d1cafSThomas Bogendoerfer# - A double-word or a variable shift may give an incorrect result
2458b56d1cafSThomas Bogendoerfer#   if executed immediately after starting an integer division:
2459b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2460b56d1cafSThomas Bogendoerfer#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
246120d60d99SMaciej W. Rozyckiconfig CPU_R4400_WORKAROUNDS
246220d60d99SMaciej W. Rozycki	bool
246320d60d99SMaciej W. Rozycki
2464071d2f0bSPaul Burtonconfig CPU_R4X00_BUGS64
2465071d2f0bSPaul Burton	bool
2466071d2f0bSPaul Burton	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2467071d2f0bSPaul Burton
24684edf00a4SPaul Burtonconfig MIPS_ASID_SHIFT
24694edf00a4SPaul Burton	int
2470455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24714edf00a4SPaul Burton	default 0
24724edf00a4SPaul Burton
24734edf00a4SPaul Burtonconfig MIPS_ASID_BITS
24744edf00a4SPaul Burton	int
24752db003a5SPaul Burton	default 0 if MIPS_ASID_BITS_VARIABLE
2476455481fcSThomas Bogendoerfer	default 6 if CPU_R3000
24774edf00a4SPaul Burton	default 8
24784edf00a4SPaul Burton
24792db003a5SPaul Burtonconfig MIPS_ASID_BITS_VARIABLE
24802db003a5SPaul Burton	bool
24812db003a5SPaul Burton
2482802b8362SThomas Bogendoerfer# R4600 erratum.  Due to the lack of errata information the exact
2483802b8362SThomas Bogendoerfer# technical details aren't known.  I've experimentally found that disabling
2484802b8362SThomas Bogendoerfer# interrupts during indexed I-cache flushes seems to be sufficient to deal
2485802b8362SThomas Bogendoerfer# with the issue.
2486802b8362SThomas Bogendoerferconfig WAR_R4600_V1_INDEX_ICACHEOP
2487802b8362SThomas Bogendoerfer	bool
2488802b8362SThomas Bogendoerfer
24895e5b6527SThomas Bogendoerfer# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
24905e5b6527SThomas Bogendoerfer#
24915e5b6527SThomas Bogendoerfer#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
24925e5b6527SThomas Bogendoerfer#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
24935e5b6527SThomas Bogendoerfer#      executed if there is no other dcache activity. If the dcache is
249418ff14c8SColin Ian King#      accessed for another instruction immediately preceding when these
24955e5b6527SThomas Bogendoerfer#      cache instructions are executing, it is possible that the dcache
24965e5b6527SThomas Bogendoerfer#      tag match outputs used by these cache instructions will be
24975e5b6527SThomas Bogendoerfer#      incorrect. These cache instructions should be preceded by at least
24985e5b6527SThomas Bogendoerfer#      four instructions that are not any kind of load or store
24995e5b6527SThomas Bogendoerfer#      instruction.
25005e5b6527SThomas Bogendoerfer#
25015e5b6527SThomas Bogendoerfer#      This is not allowed:    lw
25025e5b6527SThomas Bogendoerfer#                              nop
25035e5b6527SThomas Bogendoerfer#                              nop
25045e5b6527SThomas Bogendoerfer#                              nop
25055e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25065e5b6527SThomas Bogendoerfer#
25075e5b6527SThomas Bogendoerfer#      This is allowed:        lw
25085e5b6527SThomas Bogendoerfer#                              nop
25095e5b6527SThomas Bogendoerfer#                              nop
25105e5b6527SThomas Bogendoerfer#                              nop
25115e5b6527SThomas Bogendoerfer#                              nop
25125e5b6527SThomas Bogendoerfer#                              cache       Hit_Writeback_Invalidate_D
25135e5b6527SThomas Bogendoerferconfig WAR_R4600_V1_HIT_CACHEOP
25145e5b6527SThomas Bogendoerfer	bool
25155e5b6527SThomas Bogendoerfer
251644def342SThomas Bogendoerfer# Writeback and invalidate the primary cache dcache before DMA.
251744def342SThomas Bogendoerfer#
251844def342SThomas Bogendoerfer# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
251944def342SThomas Bogendoerfer# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
252044def342SThomas Bogendoerfer# operate correctly if the internal data cache refill buffer is empty.  These
252144def342SThomas Bogendoerfer# CACHE instructions should be separated from any potential data cache miss
252244def342SThomas Bogendoerfer# by a load instruction to an uncached address to empty the response buffer."
252344def342SThomas Bogendoerfer# (Revision 2.0 device errata from IDT available on https://www.idt.com/
252444def342SThomas Bogendoerfer# in .pdf format.)
252544def342SThomas Bogendoerferconfig WAR_R4600_V2_HIT_CACHEOP
252644def342SThomas Bogendoerfer	bool
252744def342SThomas Bogendoerfer
252824a1c023SThomas Bogendoerfer# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
252924a1c023SThomas Bogendoerfer# the line which this instruction itself exists, the following
253024a1c023SThomas Bogendoerfer# operation is not guaranteed."
253124a1c023SThomas Bogendoerfer#
253224a1c023SThomas Bogendoerfer# Workaround: do two phase flushing for Index_Invalidate_I
253324a1c023SThomas Bogendoerferconfig WAR_TX49XX_ICACHE_INDEX_INV
253424a1c023SThomas Bogendoerfer	bool
253524a1c023SThomas Bogendoerfer
2536886ee136SThomas Bogendoerfer# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2537886ee136SThomas Bogendoerfer# opposes it being called that) where invalid instructions in the same
2538886ee136SThomas Bogendoerfer# I-cache line worth of instructions being fetched may case spurious
2539886ee136SThomas Bogendoerfer# exceptions.
2540886ee136SThomas Bogendoerferconfig WAR_ICACHE_REFILLS
2541886ee136SThomas Bogendoerfer	bool
2542886ee136SThomas Bogendoerfer
2543256ec489SThomas Bogendoerfer# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2544256ec489SThomas Bogendoerfer# may cause ll / sc and lld / scd sequences to execute non-atomically.
2545256ec489SThomas Bogendoerferconfig WAR_R10000_LLSC
2546256ec489SThomas Bogendoerfer	bool
2547256ec489SThomas Bogendoerfer
2548a7fbed98SThomas Bogendoerfer# 34K core erratum: "Problems Executing the TLBR Instruction"
2549a7fbed98SThomas Bogendoerferconfig WAR_MIPS34K_MISSED_ITLB
2550a7fbed98SThomas Bogendoerfer	bool
2551a7fbed98SThomas Bogendoerfer
255220d60d99SMaciej W. Rozycki#
25531da177e4SLinus Torvalds# - Highmem only makes sense for the 32-bit kernel.
25541da177e4SLinus Torvalds# - The current highmem code will only work properly on physically indexed
25551da177e4SLinus Torvalds#   caches such as R3000, SB1, R7000 or those that look like they're virtually
25561da177e4SLinus Torvalds#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
25571da177e4SLinus Torvalds#   moment we protect the user and offer the highmem option only on machines
25581da177e4SLinus Torvalds#   where it's known to be safe.  This will not offer highmem on a few systems
25591da177e4SLinus Torvalds#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
25601da177e4SLinus Torvalds#   indexed CPUs but we're playing safe.
2561797798c1SRalf Baechle# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2562797798c1SRalf Baechle#   know they might have memory configurations that could make use of highmem
2563797798c1SRalf Baechle#   support.
25641da177e4SLinus Torvalds#
25651da177e4SLinus Torvaldsconfig HIGHMEM
25661da177e4SLinus Torvalds	bool "High Memory Support"
2567a6e18781SLeonid Yegoshin	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2568a4c33e83SThomas Gleixner	select KMAP_LOCAL
2569797798c1SRalf Baechle
2570797798c1SRalf Baechleconfig CPU_SUPPORTS_HIGHMEM
2571797798c1SRalf Baechle	bool
2572797798c1SRalf Baechle
2573797798c1SRalf Baechleconfig SYS_SUPPORTS_HIGHMEM
2574797798c1SRalf Baechle	bool
25751da177e4SLinus Torvalds
25769693a853SFranck Bui-Huuconfig SYS_SUPPORTS_SMARTMIPS
25779693a853SFranck Bui-Huu	bool
25789693a853SFranck Bui-Huu
2579a6a4834cSSteven J. Hillconfig SYS_SUPPORTS_MICROMIPS
2580a6a4834cSSteven J. Hill	bool
2581a6a4834cSSteven J. Hill
2582377cb1b6SRalf Baechleconfig SYS_SUPPORTS_MIPS16
2583377cb1b6SRalf Baechle	bool
2584377cb1b6SRalf Baechle	help
2585377cb1b6SRalf Baechle	  This option must be set if a kernel might be executed on a MIPS16-
2586377cb1b6SRalf Baechle	  enabled CPU even if MIPS16 is not actually being used.  In other
2587377cb1b6SRalf Baechle	  words, it makes the kernel MIPS16-tolerant.
2588377cb1b6SRalf Baechle
2589a5e9a69eSPaul Burtonconfig CPU_SUPPORTS_MSA
2590a5e9a69eSPaul Burton	bool
2591a5e9a69eSPaul Burton
2592b4819b59SYoichi Yuasaconfig ARCH_FLATMEM_ENABLE
2593b4819b59SYoichi Yuasa	def_bool y
2594268a2d60SJiaxun Yang	depends on !NUMA && !CPU_LOONGSON2EF
2595b4819b59SYoichi Yuasa
2596b1c6cd42SAtsushi Nemotoconfig ARCH_SPARSEMEM_ENABLE
2597b1c6cd42SAtsushi Nemoto	bool
259831473747SAtsushi Nemoto
2599d8cb4e11SRalf Baechleconfig NUMA
2600d8cb4e11SRalf Baechle	bool "NUMA Support"
2601d8cb4e11SRalf Baechle	depends on SYS_SUPPORTS_NUMA
2602cf8194e4STiezhu Yang	select SMP
26037ecd19cfSKefeng Wang	select HAVE_SETUP_PER_CPU_AREA
26047ecd19cfSKefeng Wang	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2605d8cb4e11SRalf Baechle	help
2606d8cb4e11SRalf Baechle	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2607d8cb4e11SRalf Baechle	  Access).  This option improves performance on systems with more
2608d8cb4e11SRalf Baechle	  than two nodes; on two node systems it is generally better to
2609172a37e9SRandy Dunlap	  leave it disabled; on single node systems leave this option
2610d8cb4e11SRalf Baechle	  disabled.
2611d8cb4e11SRalf Baechle
2612d8cb4e11SRalf Baechleconfig SYS_SUPPORTS_NUMA
2613d8cb4e11SRalf Baechle	bool
2614d8cb4e11SRalf Baechle
26158c530ea3SMatt Redfearnconfig RELOCATABLE
26168c530ea3SMatt Redfearn	bool "Relocatable kernel"
2617ab7c01fdSSerge Semin	depends on SYS_SUPPORTS_RELOCATABLE
2618ab7c01fdSSerge Semin	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2619ab7c01fdSSerge Semin		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2620ab7c01fdSSerge Semin		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2621a307a4ceSJinyang He		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
2622a307a4ceSJinyang He		   CPU_LOONGSON64
26239b400d17SArd Biesheuvel	select ARCH_VMLINUX_NEEDS_RELOCS
26248c530ea3SMatt Redfearn	help
26258c530ea3SMatt Redfearn	  This builds a kernel image that retains relocation information
26268c530ea3SMatt Redfearn	  so it can be loaded someplace besides the default 1MB.
26278c530ea3SMatt Redfearn	  The relocations make the kernel binary about 15% larger,
26288c530ea3SMatt Redfearn	  but are discarded at runtime
26298c530ea3SMatt Redfearn
2630069fd766SMatt Redfearnconfig RELOCATION_TABLE_SIZE
2631069fd766SMatt Redfearn	hex "Relocation table size"
2632069fd766SMatt Redfearn	depends on RELOCATABLE
2633069fd766SMatt Redfearn	range 0x0 0x01000000
2634a307a4ceSJinyang He	default "0x00200000" if CPU_LOONGSON64
2635069fd766SMatt Redfearn	default "0x00100000"
2636a7f7f624SMasahiro Yamada	help
2637069fd766SMatt Redfearn	  A table of relocation data will be appended to the kernel binary
2638069fd766SMatt Redfearn	  and parsed at boot to fix up the relocated kernel.
2639069fd766SMatt Redfearn
2640069fd766SMatt Redfearn	  This option allows the amount of space reserved for the table to be
2641069fd766SMatt Redfearn	  adjusted, although the default of 1Mb should be ok in most cases.
2642069fd766SMatt Redfearn
2643069fd766SMatt Redfearn	  The build will fail and a valid size suggested if this is too small.
2644069fd766SMatt Redfearn
2645069fd766SMatt Redfearn	  If unsure, leave at the default value.
2646069fd766SMatt Redfearn
2647405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE
2648405bc8fdSMatt Redfearn	bool "Randomize the address of the kernel image"
2649405bc8fdSMatt Redfearn	depends on RELOCATABLE
2650a7f7f624SMasahiro Yamada	help
2651405bc8fdSMatt Redfearn	  Randomizes the physical and virtual address at which the
2652405bc8fdSMatt Redfearn	  kernel image is loaded, as a security feature that
2653405bc8fdSMatt Redfearn	  deters exploit attempts relying on knowledge of the location
2654405bc8fdSMatt Redfearn	  of kernel internals.
2655405bc8fdSMatt Redfearn
2656405bc8fdSMatt Redfearn	  Entropy is generated using any coprocessor 0 registers available.
2657405bc8fdSMatt Redfearn
2658405bc8fdSMatt Redfearn	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2659405bc8fdSMatt Redfearn
2660405bc8fdSMatt Redfearn	  If unsure, say N.
2661405bc8fdSMatt Redfearn
2662405bc8fdSMatt Redfearnconfig RANDOMIZE_BASE_MAX_OFFSET
2663405bc8fdSMatt Redfearn	hex "Maximum kASLR offset" if EXPERT
2664405bc8fdSMatt Redfearn	depends on RANDOMIZE_BASE
2665405bc8fdSMatt Redfearn	range 0x0 0x40000000 if EVA || 64BIT
2666405bc8fdSMatt Redfearn	range 0x0 0x08000000
2667405bc8fdSMatt Redfearn	default "0x01000000"
2668a7f7f624SMasahiro Yamada	help
2669405bc8fdSMatt Redfearn	  When kASLR is active, this provides the maximum offset that will
2670405bc8fdSMatt Redfearn	  be applied to the kernel image. It should be set according to the
2671405bc8fdSMatt Redfearn	  amount of physical RAM available in the target system minus
2672405bc8fdSMatt Redfearn	  PHYSICAL_START and must be a power of 2.
2673405bc8fdSMatt Redfearn
2674405bc8fdSMatt Redfearn	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2675405bc8fdSMatt Redfearn	  EVA or 64-bit. The default is 16Mb.
2676405bc8fdSMatt Redfearn
2677c80d79d7SYasunori Gotoconfig NODES_SHIFT
2678c80d79d7SYasunori Goto	int
2679c80d79d7SYasunori Goto	default "6"
2680a9ee6cf5SMike Rapoport	depends on NUMA
2681c80d79d7SYasunori Goto
268214f70012SDeng-Cheng Zhuconfig HW_PERF_EVENTS
268314f70012SDeng-Cheng Zhu	bool "Enable hardware performance counter support for perf events"
268495b8a5e0SThomas Bogendoerfer	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
268514f70012SDeng-Cheng Zhu	default y
268614f70012SDeng-Cheng Zhu	help
268714f70012SDeng-Cheng Zhu	  Enable hardware performance counter support for perf events. If
268814f70012SDeng-Cheng Zhu	  disabled, perf events will use software events only.
268914f70012SDeng-Cheng Zhu
2690be8fa1cbSTiezhu Yangconfig DMI
2691be8fa1cbSTiezhu Yang	bool "Enable DMI scanning"
2692be8fa1cbSTiezhu Yang	depends on MACH_LOONGSON64
2693be8fa1cbSTiezhu Yang	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2694be8fa1cbSTiezhu Yang	default y
2695be8fa1cbSTiezhu Yang	help
2696be8fa1cbSTiezhu Yang	  Enabled scanning of DMI to identify machine quirks. Say Y
2697be8fa1cbSTiezhu Yang	  here unless you have verified that your setup is not
2698be8fa1cbSTiezhu Yang	  affected by entries in the DMI blacklist. Required by PNP
2699be8fa1cbSTiezhu Yang	  BIOS code.
2700be8fa1cbSTiezhu Yang
27011da177e4SLinus Torvaldsconfig SMP
27021da177e4SLinus Torvalds	bool "Multi-Processing support"
2703e73ea273SRalf Baechle	depends on SYS_SUPPORTS_SMP
2704e73ea273SRalf Baechle	help
27051da177e4SLinus Torvalds	  This enables support for systems with more than one CPU. If you have
27064a474157SRobert Graffham	  a system with only one CPU, say N. If you have a system with more
27074a474157SRobert Graffham	  than one CPU, say Y.
27081da177e4SLinus Torvalds
27094a474157SRobert Graffham	  If you say N here, the kernel will run on uni- and multiprocessor
27101da177e4SLinus Torvalds	  machines, but will use only one CPU of a multiprocessor machine. If
27111da177e4SLinus Torvalds	  you say Y here, the kernel will run on many, but not all,
27124a474157SRobert Graffham	  uniprocessor machines. On a uniprocessor machine, the kernel
27131da177e4SLinus Torvalds	  will run faster if you say N here.
27141da177e4SLinus Torvalds
27151da177e4SLinus Torvalds	  People using multiprocessor machines who say Y here should also say
27161da177e4SLinus Torvalds	  Y to "Enhanced Real Time Clock Support", below.
27171da177e4SLinus Torvalds
271803502faaSAdrian Bunk	  See also the SMP-HOWTO available at
2719ef054ad3SAlexander A. Klimov	  <https://www.tldp.org/docs.html#howto>.
27201da177e4SLinus Torvalds
27211da177e4SLinus Torvalds	  If you don't know what to do here, say N.
27221da177e4SLinus Torvalds
27237840d618SMatt Redfearnconfig HOTPLUG_CPU
27247840d618SMatt Redfearn	bool "Support for hot-pluggable CPUs"
27257840d618SMatt Redfearn	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
27267840d618SMatt Redfearn	help
27277840d618SMatt Redfearn	  Say Y here to allow turning CPUs off and on. CPUs can be
27287840d618SMatt Redfearn	  controlled through /sys/devices/system/cpu.
27297840d618SMatt Redfearn	  (Note: power management support will enable this option
27307840d618SMatt Redfearn	    automatically on SMP systems. )
27317840d618SMatt Redfearn	  Say N if you want to disable CPU hotplug.
27327840d618SMatt Redfearn
273387353d8aSRalf Baechleconfig SMP_UP
273487353d8aSRalf Baechle	bool
273587353d8aSRalf Baechle
27360ee958e1SPaul Burtonconfig SYS_SUPPORTS_MIPS_CPS
27370ee958e1SPaul Burton	bool
27380ee958e1SPaul Burton
2739e73ea273SRalf Baechleconfig SYS_SUPPORTS_SMP
2740e73ea273SRalf Baechle	bool
2741e73ea273SRalf Baechle
2742130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_4
2743130e2fb7SRalf Baechle	bool
2744130e2fb7SRalf Baechle
2745130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_8
2746130e2fb7SRalf Baechle	bool
2747130e2fb7SRalf Baechle
2748130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_16
2749130e2fb7SRalf Baechle	bool
2750130e2fb7SRalf Baechle
2751130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_32
2752130e2fb7SRalf Baechle	bool
2753130e2fb7SRalf Baechle
2754130e2fb7SRalf Baechleconfig NR_CPUS_DEFAULT_64
2755130e2fb7SRalf Baechle	bool
2756130e2fb7SRalf Baechle
27571da177e4SLinus Torvaldsconfig NR_CPUS
2758a91796a9SJayachandran C	int "Maximum number of CPUs (2-256)"
2759a91796a9SJayachandran C	range 2 256
27601da177e4SLinus Torvalds	depends on SMP
2761130e2fb7SRalf Baechle	default "4" if NR_CPUS_DEFAULT_4
2762130e2fb7SRalf Baechle	default "8" if NR_CPUS_DEFAULT_8
2763130e2fb7SRalf Baechle	default "16" if NR_CPUS_DEFAULT_16
2764130e2fb7SRalf Baechle	default "32" if NR_CPUS_DEFAULT_32
2765130e2fb7SRalf Baechle	default "64" if NR_CPUS_DEFAULT_64
27661da177e4SLinus Torvalds	help
27671da177e4SLinus Torvalds	  This allows you to specify the maximum number of CPUs which this
27681da177e4SLinus Torvalds	  kernel will support.  The maximum supported value is 32 for 32-bit
27691da177e4SLinus Torvalds	  kernel and 64 for 64-bit kernels; the minimum value which makes
277072ede9b1SAtsushi Nemoto	  sense is 1 for Qemu (useful only for kernel debugging purposes)
277172ede9b1SAtsushi Nemoto	  and 2 for all others.
27721da177e4SLinus Torvalds
27731da177e4SLinus Torvalds	  This is purely to save memory - each supported CPU adds
277472ede9b1SAtsushi Nemoto	  approximately eight kilobytes to the kernel image.  For best
277572ede9b1SAtsushi Nemoto	  performance should round up your number of processors to the next
277672ede9b1SAtsushi Nemoto	  power of two.
27771da177e4SLinus Torvalds
2778399aaa25SAl Cooperconfig MIPS_PERF_SHARED_TC_COUNTERS
2779399aaa25SAl Cooper	bool
2780399aaa25SAl Cooper
27817820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP_1024
27827820b84bSDavid Daney	bool
27837820b84bSDavid Daney
27847820b84bSDavid Daneyconfig MIPS_NR_CPU_NR_MAP
27857820b84bSDavid Daney	int
27867820b84bSDavid Daney	depends on SMP
27877820b84bSDavid Daney	default 1024 if MIPS_NR_CPU_NR_MAP_1024
27887820b84bSDavid Daney	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
27897820b84bSDavid Daney
27901723b4a3SAtsushi Nemoto#
27911723b4a3SAtsushi Nemoto# Timer Interrupt Frequency Configuration
27921723b4a3SAtsushi Nemoto#
27931723b4a3SAtsushi Nemoto
27941723b4a3SAtsushi Nemotochoice
27951723b4a3SAtsushi Nemoto	prompt "Timer frequency"
27961723b4a3SAtsushi Nemoto	default HZ_250
27971723b4a3SAtsushi Nemoto	help
27981723b4a3SAtsushi Nemoto	  Allows the configuration of the timer frequency.
27991723b4a3SAtsushi Nemoto
280067596573SPaul Burton	config HZ_24
280167596573SPaul Burton		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
280267596573SPaul Burton
28031723b4a3SAtsushi Nemoto	config HZ_48
28040f873585SRalf Baechle		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
28051723b4a3SAtsushi Nemoto
28061723b4a3SAtsushi Nemoto	config HZ_100
28071723b4a3SAtsushi Nemoto		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
28081723b4a3SAtsushi Nemoto
28091723b4a3SAtsushi Nemoto	config HZ_128
28101723b4a3SAtsushi Nemoto		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
28111723b4a3SAtsushi Nemoto
28121723b4a3SAtsushi Nemoto	config HZ_250
28131723b4a3SAtsushi Nemoto		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
28141723b4a3SAtsushi Nemoto
28151723b4a3SAtsushi Nemoto	config HZ_256
28161723b4a3SAtsushi Nemoto		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
28171723b4a3SAtsushi Nemoto
28181723b4a3SAtsushi Nemoto	config HZ_1000
28191723b4a3SAtsushi Nemoto		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
28201723b4a3SAtsushi Nemoto
28211723b4a3SAtsushi Nemoto	config HZ_1024
28221723b4a3SAtsushi Nemoto		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
28231723b4a3SAtsushi Nemoto
28241723b4a3SAtsushi Nemotoendchoice
28251723b4a3SAtsushi Nemoto
282667596573SPaul Burtonconfig SYS_SUPPORTS_24HZ
282767596573SPaul Burton	bool
282867596573SPaul Burton
28291723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_48HZ
28301723b4a3SAtsushi Nemoto	bool
28311723b4a3SAtsushi Nemoto
28321723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_100HZ
28331723b4a3SAtsushi Nemoto	bool
28341723b4a3SAtsushi Nemoto
28351723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_128HZ
28361723b4a3SAtsushi Nemoto	bool
28371723b4a3SAtsushi Nemoto
28381723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_250HZ
28391723b4a3SAtsushi Nemoto	bool
28401723b4a3SAtsushi Nemoto
28411723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_256HZ
28421723b4a3SAtsushi Nemoto	bool
28431723b4a3SAtsushi Nemoto
28441723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1000HZ
28451723b4a3SAtsushi Nemoto	bool
28461723b4a3SAtsushi Nemoto
28471723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_1024HZ
28481723b4a3SAtsushi Nemoto	bool
28491723b4a3SAtsushi Nemoto
28501723b4a3SAtsushi Nemotoconfig SYS_SUPPORTS_ARBIT_HZ
28511723b4a3SAtsushi Nemoto	bool
285267596573SPaul Burton	default y if !SYS_SUPPORTS_24HZ && \
285367596573SPaul Burton		     !SYS_SUPPORTS_48HZ && \
285467596573SPaul Burton		     !SYS_SUPPORTS_100HZ && \
285567596573SPaul Burton		     !SYS_SUPPORTS_128HZ && \
285667596573SPaul Burton		     !SYS_SUPPORTS_250HZ && \
285767596573SPaul Burton		     !SYS_SUPPORTS_256HZ && \
285867596573SPaul Burton		     !SYS_SUPPORTS_1000HZ && \
28591723b4a3SAtsushi Nemoto		     !SYS_SUPPORTS_1024HZ
28601723b4a3SAtsushi Nemoto
28611723b4a3SAtsushi Nemotoconfig HZ
28621723b4a3SAtsushi Nemoto	int
286367596573SPaul Burton	default 24 if HZ_24
28641723b4a3SAtsushi Nemoto	default 48 if HZ_48
28651723b4a3SAtsushi Nemoto	default 100 if HZ_100
28661723b4a3SAtsushi Nemoto	default 128 if HZ_128
28671723b4a3SAtsushi Nemoto	default 250 if HZ_250
28681723b4a3SAtsushi Nemoto	default 256 if HZ_256
28691723b4a3SAtsushi Nemoto	default 1000 if HZ_1000
28701723b4a3SAtsushi Nemoto	default 1024 if HZ_1024
28711723b4a3SAtsushi Nemoto
287296685b17SDeng-Cheng Zhuconfig SCHED_HRTICK
287396685b17SDeng-Cheng Zhu	def_bool HIGH_RES_TIMERS
287496685b17SDeng-Cheng Zhu
2875571feed5SEric DeVolderconfig ARCH_SUPPORTS_KEXEC
2876571feed5SEric DeVolder	def_bool y
2877ea6e942bSAtsushi Nemoto
2878571feed5SEric DeVolderconfig ARCH_SUPPORTS_CRASH_DUMP
2879571feed5SEric DeVolder	def_bool y
28807aa1c8f4SRalf Baechle
288131daa343SDave Vasilevskyconfig ARCH_DEFAULT_CRASH_DUMP
288231daa343SDave Vasilevsky	def_bool y
288331daa343SDave Vasilevsky
28847aa1c8f4SRalf Baechleconfig PHYSICAL_START
28857aa1c8f4SRalf Baechle	hex "Physical address where the kernel is loaded"
28868bda3e26SMaciej W. Rozycki	default "0xffffffff84000000"
28877aa1c8f4SRalf Baechle	depends on CRASH_DUMP
28887aa1c8f4SRalf Baechle	help
28897aa1c8f4SRalf Baechle	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
28907aa1c8f4SRalf Baechle	  If you plan to use kernel for capturing the crash dump change
28917aa1c8f4SRalf Baechle	  this value to start of the reserved region (the "X" value as
28927aa1c8f4SRalf Baechle	  specified in the "crashkernel=YM@XM" command line boot parameter
28937aa1c8f4SRalf Baechle	  passed to the panic-ed kernel).
28947aa1c8f4SRalf Baechle
2895597ce172SPaul Burtonconfig MIPS_O32_FP64_SUPPORT
2896b7f1e273SPaul Burton	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2897597ce172SPaul Burton	depends on 32BIT || MIPS32_O32
2898597ce172SPaul Burton	help
2899597ce172SPaul Burton	  When this is enabled, the kernel will support use of 64-bit floating
2900597ce172SPaul Burton	  point registers with binaries using the O32 ABI along with the
2901597ce172SPaul Burton	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2902597ce172SPaul Burton	  32-bit MIPS systems this support is at the cost of increasing the
2903597ce172SPaul Burton	  size and complexity of the compiled FPU emulator. Thus if you are
2904597ce172SPaul Burton	  running a MIPS32 system and know that none of your userland binaries
2905597ce172SPaul Burton	  will require 64-bit floating point, you may wish to reduce the size
2906597ce172SPaul Burton	  of your kernel & potentially improve FP emulation performance by
2907597ce172SPaul Burton	  saying N here.
2908597ce172SPaul Burton
290906e2e882SPaul Burton	  Although binutils currently supports use of this flag the details
291006e2e882SPaul Burton	  concerning its effect upon the O32 ABI in userland are still being
291118ff14c8SColin Ian King	  worked on. In order to avoid userland becoming dependent upon current
291206e2e882SPaul Burton	  behaviour before the details have been finalised, this option should
291306e2e882SPaul Burton	  be considered experimental and only enabled by those working upon
291406e2e882SPaul Burton	  said details.
291506e2e882SPaul Burton
291606e2e882SPaul Burton	  If unsure, say N.
2917597ce172SPaul Burton
2918f2ffa5abSDezhong Diaoconfig USE_OF
29190b3e06fdSJonas Gorski	bool
2920f2ffa5abSDezhong Diao	select OF
2921e6ce1324SStephen Neuendorffer	select OF_EARLY_FLATTREE
2922abd2363fSGrant Likely	select IRQ_DOMAIN
2923f2ffa5abSDezhong Diao
29242fe8ea39SDengcheng Zhuconfig UHI_BOOT
29252fe8ea39SDengcheng Zhu	bool
29262fe8ea39SDengcheng Zhu
29277fafb068SAndrew Brestickerconfig BUILTIN_DTB
29287fafb068SAndrew Bresticker	bool
29297fafb068SAndrew Bresticker
29301da8f179SJonas Gorskichoice
2931b9d73218SMasahiro Yamada	prompt "Kernel appended dtb support"
2932b9d73218SMasahiro Yamada	depends on USE_OF
29331da8f179SJonas Gorski	default MIPS_NO_APPENDED_DTB
29341da8f179SJonas Gorski
29351da8f179SJonas Gorski	config MIPS_NO_APPENDED_DTB
29361da8f179SJonas Gorski		bool "None"
29371da8f179SJonas Gorski		help
29381da8f179SJonas Gorski		  Do not enable appended dtb support.
29391da8f179SJonas Gorski
294087db537dSAaro Koskinen	config MIPS_ELF_APPENDED_DTB
294187db537dSAaro Koskinen		bool "vmlinux"
294287db537dSAaro Koskinen		help
294387db537dSAaro Koskinen		  With this option, the boot code will look for a device tree binary
294487db537dSAaro Koskinen		  DTB) included in the vmlinux ELF section .appended_dtb. By default
294587db537dSAaro Koskinen		  it is empty and the DTB can be appended using binutils command
294687db537dSAaro Koskinen		  objcopy:
294787db537dSAaro Koskinen
294887db537dSAaro Koskinen		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
294987db537dSAaro Koskinen
295018ff14c8SColin Ian King		  This is meant as a backward compatibility convenience for those
295187db537dSAaro Koskinen		  systems with a bootloader that can't be upgraded to accommodate
295287db537dSAaro Koskinen		  the documented boot protocol using a device tree.
295387db537dSAaro Koskinen
29541da8f179SJonas Gorski	config MIPS_RAW_APPENDED_DTB
2955b8f54f2cSJonas Gorski		bool "vmlinux.bin or vmlinuz.bin"
29561da8f179SJonas Gorski		help
29571da8f179SJonas Gorski		  With this option, the boot code will look for a device tree binary
2958b8f54f2cSJonas Gorski		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
29591da8f179SJonas Gorski		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
29601da8f179SJonas Gorski
29611da8f179SJonas Gorski		  This is meant as a backward compatibility convenience for those
29621da8f179SJonas Gorski		  systems with a bootloader that can't be upgraded to accommodate
29631da8f179SJonas Gorski		  the documented boot protocol using a device tree.
29641da8f179SJonas Gorski
29651da8f179SJonas Gorski		  Beware that there is very little in terms of protection against
29661da8f179SJonas Gorski		  this option being confused by leftover garbage in memory that might
29671da8f179SJonas Gorski		  look like a DTB header after a reboot if no actual DTB is appended
29681da8f179SJonas Gorski		  to vmlinux.bin.  Do not leave this option active in a production kernel
29691da8f179SJonas Gorski		  if you don't intend to always append a DTB.
29701da8f179SJonas Gorskiendchoice
29711da8f179SJonas Gorski
29722024972eSJonas Gorskichoice
2973b9d73218SMasahiro Yamada	prompt "Kernel command line type"
2974b9d73218SMasahiro Yamada	depends on !CMDLINE_OVERRIDE
29752bcef9b4SJonas Gorski	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
297685c43540SKeguang Zhang					 !MACH_LOONGSON64 && !MACH_LOONGSON32 && \
297785c43540SKeguang Zhang					 !MIPS_MALTA && !CAVIUM_OCTEON_SOC
29782024972eSJonas Gorski	default MIPS_CMDLINE_FROM_BOOTLOADER
29792024972eSJonas Gorski
29802024972eSJonas Gorski	config MIPS_CMDLINE_FROM_DTB
29812024972eSJonas Gorski		depends on USE_OF
29822024972eSJonas Gorski		bool "Dtb kernel arguments if available"
29832024972eSJonas Gorski
29842024972eSJonas Gorski	config MIPS_CMDLINE_DTB_EXTEND
29852024972eSJonas Gorski		depends on USE_OF
29862024972eSJonas Gorski		bool "Extend dtb kernel arguments with bootloader arguments"
29872024972eSJonas Gorski
29882024972eSJonas Gorski	config MIPS_CMDLINE_FROM_BOOTLOADER
29892024972eSJonas Gorski		bool "Bootloader kernel arguments if available"
2990ed47e153SRabin Vincent
2991ed47e153SRabin Vincent	config MIPS_CMDLINE_BUILTIN_EXTEND
2992ed47e153SRabin Vincent		depends on CMDLINE_BOOL
2993ed47e153SRabin Vincent		bool "Extend builtin kernel arguments with bootloader arguments"
29942024972eSJonas Gorskiendchoice
29952024972eSJonas Gorski
29965e83d430SRalf Baechleendmenu
29975e83d430SRalf Baechle
29981df0f0ffSAtsushi Nemotoconfig LOCKDEP_SUPPORT
29991df0f0ffSAtsushi Nemoto	bool
30001df0f0ffSAtsushi Nemoto	default y
30011df0f0ffSAtsushi Nemoto
30021df0f0ffSAtsushi Nemotoconfig STACKTRACE_SUPPORT
30031df0f0ffSAtsushi Nemoto	bool
30041df0f0ffSAtsushi Nemoto	default y
30051df0f0ffSAtsushi Nemoto
3006a728ab52SKirill A. Shutemovconfig PGTABLE_LEVELS
3007a728ab52SKirill A. Shutemov	int
30083377e227SAlex Belits	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
300941ce097fSHuang Pei	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3010a728ab52SKirill A. Shutemov	default 2
3011a728ab52SKirill A. Shutemov
30126c359eb1SPaul Burtonconfig MIPS_AUTO_PFN_OFFSET
30136c359eb1SPaul Burton	bool
30146c359eb1SPaul Burton
30151da177e4SLinus Torvaldsmenu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
30161da177e4SLinus Torvalds
3017c5611df9SPaul Burtonconfig PCI_DRIVERS_GENERIC
30182eac9c2dSChristoph Hellwig	select PCI_DOMAINS_GENERIC if PCI
3019c5611df9SPaul Burton	bool
3020c5611df9SPaul Burton
3021c5611df9SPaul Burtonconfig PCI_DRIVERS_LEGACY
3022c5611df9SPaul Burton	def_bool !PCI_DRIVERS_GENERIC
3023c5611df9SPaul Burton	select NO_GENERIC_PCI_IOPORT_MAP
30242eac9c2dSChristoph Hellwig	select PCI_DOMAINS if PCI
30251da177e4SLinus Torvalds
30261da177e4SLinus Torvalds#
30271da177e4SLinus Torvalds# ISA support is now enabled via select.  Too many systems still have the one
30281da177e4SLinus Torvalds# or other ISA chip on the board that users don't know about so don't expect
30291da177e4SLinus Torvalds# users to choose the right thing ...
30301da177e4SLinus Torvalds#
30311da177e4SLinus Torvaldsconfig ISA
30321da177e4SLinus Torvalds	bool
30331da177e4SLinus Torvalds
30341da177e4SLinus Torvaldsconfig TC
30351da177e4SLinus Torvalds	bool "TURBOchannel support"
30361da177e4SLinus Torvalds	depends on MACH_DECSTATION
30371da177e4SLinus Torvalds	help
303850a23e6eSJustin P. Mattock	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
303950a23e6eSJustin P. Mattock	  processors.  TURBOchannel programming specifications are available
304050a23e6eSJustin P. Mattock	  at:
304150a23e6eSJustin P. Mattock	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
304250a23e6eSJustin P. Mattock	  and:
304350a23e6eSJustin P. Mattock	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
304450a23e6eSJustin P. Mattock	  Linux driver support status is documented at:
304550a23e6eSJustin P. Mattock	  <http://www.linux-mips.org/wiki/DECstation>
30461da177e4SLinus Torvalds
30471da177e4SLinus Torvaldsconfig MMU
30481da177e4SLinus Torvalds	bool
30491da177e4SLinus Torvalds	default y
30501da177e4SLinus Torvalds
3051109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MIN
3052109c32ffSMatt Redfearn	default 12 if 64BIT
3053109c32ffSMatt Redfearn	default 8
3054109c32ffSMatt Redfearn
3055109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_BITS_MAX
3056109c32ffSMatt Redfearn	default 18 if 64BIT
3057109c32ffSMatt Redfearn	default 15
3058109c32ffSMatt Redfearn
3059109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MIN
3060109c32ffSMatt Redfearn	default 8
3061109c32ffSMatt Redfearn
3062109c32ffSMatt Redfearnconfig ARCH_MMAP_RND_COMPAT_BITS_MAX
3063109c32ffSMatt Redfearn	default 15
3064109c32ffSMatt Redfearn
3065d865bea4SRalf Baechleconfig I8253
3066d865bea4SRalf Baechle	bool
3067798778b8SRussell King	select CLKSRC_I8253
30682d02612fSThomas Gleixner	select CLKEVT_I8253
30699726b43aSWu Zhangjin	select MIPS_EXTERNAL_TIMER
30701da177e4SLinus Torvaldsendmenu
30711da177e4SLinus Torvalds
30721da177e4SLinus Torvaldsconfig TRAD_SIGNALS
30731da177e4SLinus Torvalds	bool
30741da177e4SLinus Torvalds
30751da177e4SLinus Torvaldsconfig MIPS32_COMPAT
307678aaf956SRalf Baechle	bool
30771da177e4SLinus Torvalds
30781da177e4SLinus Torvaldsconfig COMPAT
30791da177e4SLinus Torvalds	bool
30801da177e4SLinus Torvalds
30811da177e4SLinus Torvaldsconfig MIPS32_O32
30821da177e4SLinus Torvalds	bool "Kernel support for o32 binaries"
308378aaf956SRalf Baechle	depends on 64BIT
308478aaf956SRalf Baechle	select ARCH_WANT_OLD_COMPAT_IPC
308578aaf956SRalf Baechle	select COMPAT
308678aaf956SRalf Baechle	select MIPS32_COMPAT
30871da177e4SLinus Torvalds	help
30881da177e4SLinus Torvalds	  Select this option if you want to run o32 binaries.  These are pure
30891da177e4SLinus Torvalds	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
30901da177e4SLinus Torvalds	  existing binaries are in this format.
30911da177e4SLinus Torvalds
30921da177e4SLinus Torvalds	  If unsure, say Y.
30931da177e4SLinus Torvalds
30941da177e4SLinus Torvaldsconfig MIPS32_N32
30951da177e4SLinus Torvalds	bool "Kernel support for n32 binaries"
3096c22eacfeSRalf Baechle	depends on 64BIT
30975a9372f7SArnd Bergmann	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
309878aaf956SRalf Baechle	select COMPAT
309978aaf956SRalf Baechle	select MIPS32_COMPAT
31001da177e4SLinus Torvalds	help
31011da177e4SLinus Torvalds	  Select this option if you want to run n32 binaries.  These are
31021da177e4SLinus Torvalds	  64-bit binaries using 32-bit quantities for addressing and certain
31031da177e4SLinus Torvalds	  data that would normally be 64-bit.  They are used in special
31041da177e4SLinus Torvalds	  cases.
31051da177e4SLinus Torvalds
31061da177e4SLinus Torvalds	  If unsure, say N.
31071da177e4SLinus Torvalds
3108d49fc692SNathan Chancellorconfig CC_HAS_MNO_BRANCH_LIKELY
3109d49fc692SNathan Chancellor	def_bool y
3110d49fc692SNathan Chancellor	depends on $(cc-option,-mno-branch-likely)
3111d49fc692SNathan Chancellor
31121a2c73f4SJiaxun Yang# https://github.com/llvm/llvm-project/issues/61045
31131a2c73f4SJiaxun Yangconfig CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
31141a2c73f4SJiaxun Yang	def_bool y if CC_IS_CLANG
31151a2c73f4SJiaxun Yang
31160bce126aSThomas Weißschuhconfig ARCH_CC_CAN_LINK_N32
31170bce126aSThomas Weißschuh	bool
31180bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=n32 -EL) if MIPS32_N32 && CPU_LITTLE_ENDIAN
31190bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=n32 -EB) if MIPS32_N32 && CPU_BIG_ENDIAN
31200bce126aSThomas Weißschuh
31210bce126aSThomas Weißschuhconfig ARCH_CC_CAN_LINK_N64
31220bce126aSThomas Weißschuh	bool
31230bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=64 -EL) if 64BIT && CPU_LITTLE_ENDIAN
31240bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=64 -EB) if 64BIT && CPU_BIG_ENDIAN
31250bce126aSThomas Weißschuh
31260bce126aSThomas Weißschuhconfig ARCH_CC_CAN_LINK_O32
31270bce126aSThomas Weißschuh	bool
31280bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=32 -EL) if (32BIT || MIPS32_O32) && CPU_LITTLE_ENDIAN
31290bce126aSThomas Weißschuh	default $(cc_can_link_user,-mabi=32 -EB) if (32BIT || MIPS32_O32) && CPU_BIG_ENDIAN
31300bce126aSThomas Weißschuh
31310bce126aSThomas Weißschuhconfig ARCH_CC_CAN_LINK
31320bce126aSThomas Weißschuh	def_bool ARCH_CC_CAN_LINK_N32 || ARCH_CC_CAN_LINK_N64 || ARCH_CC_CAN_LINK_O32
31330bce126aSThomas Weißschuh
31340bce126aSThomas Weißschuhconfig ARCH_USERFLAGS
31350bce126aSThomas Weißschuh	string
31360bce126aSThomas Weißschuh	default "-mabi=n32 -EL" if ARCH_CC_CAN_LINK_N32 && CPU_LITTLE_ENDIAN
31370bce126aSThomas Weißschuh	default "-mabi=n32 -EB" if ARCH_CC_CAN_LINK_N32 && CPU_BIG_ENDIAN
31380bce126aSThomas Weißschuh	default "-mabi=64 -EL" if ARCH_CC_CAN_LINK_N64 && CPU_LITTLE_ENDIAN
31390bce126aSThomas Weißschuh	default "-mabi=64 -EB" if ARCH_CC_CAN_LINK_N64 && CPU_BIG_ENDIAN
31400bce126aSThomas Weißschuh	default "-mabi=32 -EL" if ARCH_CC_CAN_LINK_O32 && CPU_LITTLE_ENDIAN
31410bce126aSThomas Weißschuh	default "-mabi=32 -EB" if ARCH_CC_CAN_LINK_O32 && CPU_BIG_ENDIAN
31420bce126aSThomas Weißschuh
31432116245eSRalf Baechlemenu "Power management options"
3144952fa954SRodolfo Giometti
3145363c55caSWu Zhangjinconfig ARCH_HIBERNATION_POSSIBLE
3146363c55caSWu Zhangjin	def_bool y
31473f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3148363c55caSWu Zhangjin
3149f4cb5700SJohannes Bergconfig ARCH_SUSPEND_POSSIBLE
3150f4cb5700SJohannes Berg	def_bool y
31513f5b3e17SRalf Baechle	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3152f4cb5700SJohannes Berg
31532116245eSRalf Baechlesource "kernel/power/Kconfig"
3154952fa954SRodolfo Giometti
31551da177e4SLinus Torvaldsendmenu
31561da177e4SLinus Torvalds
31577a998935SViresh Kumarconfig MIPS_EXTERNAL_TIMER
31587a998935SViresh Kumar	bool
31597a998935SViresh Kumar
316060ad2f11SThomas Weißschuhconfig MIPS_GENERIC_GETTIMEOFDAY
316160ad2f11SThomas Weißschuh	def_bool y
316260ad2f11SThomas Weißschuh	select GENERIC_GETTIMEOFDAY
31638d563bd7SThomas Weißschuh	depends on CSRC_R4K || CLKSRC_MIPS_GIC
316451512c21SThomas Weißschuh	# GCC (at least up to version 9.2) appears to emit function calls that make use
316551512c21SThomas Weißschuh	# of the GOT when targeting microMIPS, which we can't use in the VDSO due to
316651512c21SThomas Weißschuh	# the lack of relocations. As such, we disable the VDSO for microMIPS builds.
3167d051ede1SThomas Weißschuh	depends on !(CPU_MICROMIPS && CC_IS_GCC && GCC_VERSION < 90300)
316860ad2f11SThomas Weißschuh
31697a998935SViresh Kumarmenu "CPU Power Management"
3170c095ebafSPaul Burton
3171c095ebafSPaul Burtonif CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31727a998935SViresh Kumarsource "drivers/cpufreq/Kconfig"
317331f12fdcSJuerg Haefligerendif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
31749726b43aSWu Zhangjin
3175c095ebafSPaul Burtonsource "drivers/cpuidle/Kconfig"
3176c095ebafSPaul Burton
3177c095ebafSPaul Burtonendmenu
3178c095ebafSPaul Burton
31792235a54dSSanjay Lalsource "arch/mips/kvm/Kconfig"
3180