md: raid1: use __bio_add_page for adding single page to bio
[linux-block.git] / arch / mips / Kconfig
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2config MIPS
3 bool
4 default y
942fa985 5 select ARCH_32BIT_OFF_T if !64BIT
ea6a3737 6 select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
b847bd64 7 select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
dfad83cb 8 select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
34c01e41
AL
9 select ARCH_HAS_FORTIFY_SOURCE
10 select ARCH_HAS_KCOV
66633abd 11 select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
34c01e41 12 select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
e6226997
AB
13 select ARCH_HAS_STRNCPY_FROM_USER
14 select ARCH_HAS_STRNLEN_USER
12597988 15 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1e35918a 16 select ARCH_HAS_UBSAN_SANITIZE_ALL
8b3165e5 17 select ARCH_HAS_GCOV_PROFILE_ALL
c55944cc 18 select ARCH_KEEP_MEMBLOCK
1ee3630a 19 select ARCH_USE_BUILTIN_BSWAP
12597988 20 select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
dce44566 21 select ARCH_USE_MEMTEST
25da4e9d 22 select ARCH_USE_QUEUED_RWLOCKS
0b17c967 23 select ARCH_USE_QUEUED_SPINLOCKS
855f9a8e 24 select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
9035bd29 25 select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
12597988 26 select ARCH_WANT_IPC_PARSE_VERSION
d3a4e0f1 27 select ARCH_WANT_LD_ORPHAN_WARN
10916706 28 select BUILDTIME_TABLE_SORT
12597988 29 select CLONE_BACKWARDS
57eeaced 30 select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
12597988
MR
31 select CPU_PM if CPU_IDLE
32 select GENERIC_ATOMIC64 if !64BIT
12597988
MR
33 select GENERIC_CMOS_UPDATE
34 select GENERIC_CPU_AUTOPROBE
24640f23 35 select GENERIC_GETTIMEOFDAY
b962aeb0 36 select GENERIC_IOMAP
12597988
MR
37 select GENERIC_IRQ_PROBE
38 select GENERIC_IRQ_SHOW
6630a8e5 39 select GENERIC_ISA_DMA if EISA
740129b3
AP
40 select GENERIC_LIB_ASHLDI3
41 select GENERIC_LIB_ASHRDI3
42 select GENERIC_LIB_CMPDI2
43 select GENERIC_LIB_LSHRDI3
44 select GENERIC_LIB_UCMPDI2
12597988
MR
45 select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
46 select GENERIC_SMP_IDLE_THREAD
47 select GENERIC_TIME_VSYSCALL
6ca297d4 48 select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
fcbfe812 49 select HAS_IOPORT if !NO_IOPORT_MAP || ISA
906d441f 50 select HAVE_ARCH_COMPILER_H
12597988 51 select HAVE_ARCH_JUMP_LABEL
42b20995 52 select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
109c32ff
MR
53 select HAVE_ARCH_MMAP_RND_BITS if MMU
54 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
490b004f 55 select HAVE_ARCH_SECCOMP_FILTER
c0ff3c53 56 select HAVE_ARCH_TRACEHOOK
45e03e62 57 select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
2ff2b7ec 58 select HAVE_ASM_MODVERSIONS
24a9c541 59 select HAVE_CONTEXT_TRACKING_USER
490f561b 60 select HAVE_TIF_NOHZ
12597988
MR
61 select HAVE_C_RECORDMCOUNT
62 select HAVE_DEBUG_KMEMLEAK
63 select HAVE_DEBUG_STACKOVERFLOW
12597988 64 select HAVE_DMA_CONTIGUOUS
538f1952 65 select HAVE_DYNAMIC_FTRACE
7364d60c 66 select HAVE_EBPF_JIT if !CPU_MICROMIPS
12597988 67 select HAVE_EXIT_THREAD
67a929e0 68 select HAVE_FAST_GUP
538f1952 69 select HAVE_FTRACE_MCOUNT_RECORD
29c5d346 70 select HAVE_FUNCTION_GRAPH_TRACER
12597988 71 select HAVE_FUNCTION_TRACER
34c01e41
AL
72 select HAVE_GCC_PLUGINS
73 select HAVE_GENERIC_VDSO
b3a428b4 74 select HAVE_IOREMAP_PROT
12597988
MR
75 select HAVE_IRQ_EXIT_ON_IRQ_STACK
76 select HAVE_IRQ_TIME_ACCOUNTING
c1bf207d
DD
77 select HAVE_KPROBES
78 select HAVE_KRETPROBES
c0436b50 79 select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
786d35d4 80 select HAVE_MOD_ARCH_SPECIFIC
42a0bb3f 81 select HAVE_NMI
12597988 82 select HAVE_PERF_EVENTS
1ddc96bd
TY
83 select HAVE_PERF_REGS
84 select HAVE_PERF_USER_STACK_DUMP
12597988 85 select HAVE_REGS_AND_STACK_ACCESS_API
9ea141ad 86 select HAVE_RSEQ
16c0f03f 87 select HAVE_SPARSE_SYSCALL_NR
d148eac0 88 select HAVE_STACKPROTECTOR
12597988 89 select HAVE_SYSCALL_TRACEPOINTS
a3f14310 90 select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
12597988 91 select IRQ_FORCED_THREADING
6630a8e5 92 select ISA if EISA
12597988 93 select MODULES_USE_ELF_REL if MODULES
34c01e41 94 select MODULES_USE_ELF_RELA if MODULES && 64BIT
12597988 95 select PERF_USE_VMALLOC
981aa1d3 96 select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
05a0a344 97 select RTC_LIB
d79d853d 98 select SYSCTL_EXCEPTION_TRACE
4aae683f 99 select TRACE_IRQFLAGS_SUPPORT
0bb87f05 100 select ARCH_HAS_ELFCORE_COMPAT
e0a8b93e 101 select HAVE_ARCH_KCSAN if 64BIT
1da177e4 102
d3991572
CH
103config MIPS_FIXUP_BIGPHYS_ADDR
104 bool
105
c434b9f8
PC
106config MIPS_GENERIC
107 bool
108
f0f4a753
PC
109config MACH_INGENIC
110 bool
111 select SYS_SUPPORTS_32BIT_KERNEL
112 select SYS_SUPPORTS_LITTLE_ENDIAN
113 select SYS_SUPPORTS_ZBOOT
f0f4a753
PC
114 select DMA_NONCOHERENT
115 select IRQ_MIPS_CPU
116 select PINCTRL
117 select GPIOLIB
118 select COMMON_CLK
119 select GENERIC_IRQ_CHIP
120 select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
121 select USE_OF
122 select CPU_SUPPORTS_CPUFREQ
123 select MIPS_EXTERNAL_TIMER
124
1da177e4
LT
125menu "Machine selection"
126
5e83d430
RB
127choice
128 prompt "System type"
c434b9f8 129 default MIPS_GENERIC_KERNEL
1da177e4 130
c434b9f8 131config MIPS_GENERIC_KERNEL
eed0eabd 132 bool "Generic board-agnostic MIPS kernel"
c434b9f8 133 select MIPS_GENERIC
eed0eabd
PB
134 select BOOT_RAW
135 select BUILTIN_DTB
136 select CEVT_R4K
137 select CLKSRC_MIPS_GIC
138 select COMMON_CLK
eed0eabd 139 select CPU_MIPSR2_IRQ_EI
34c01e41 140 select CPU_MIPSR2_IRQ_VI
eed0eabd 141 select CSRC_R4K
4e066441 142 select DMA_NONCOHERENT
eb01d42a 143 select HAVE_PCI
eed0eabd 144 select IRQ_MIPS_CPU
0211d49e 145 select MIPS_AUTO_PFN_OFFSET
eed0eabd
PB
146 select MIPS_CPU_SCACHE
147 select MIPS_GIC
148 select MIPS_L1_CACHE_SHIFT_7
149 select NO_EXCEPT_FILL
150 select PCI_DRIVERS_GENERIC
eed0eabd 151 select SMP_UP if SMP
a3078e59 152 select SWAP_IO_SPACE
eed0eabd
PB
153 select SYS_HAS_CPU_MIPS32_R1
154 select SYS_HAS_CPU_MIPS32_R2
155 select SYS_HAS_CPU_MIPS32_R6
156 select SYS_HAS_CPU_MIPS64_R1
157 select SYS_HAS_CPU_MIPS64_R2
158 select SYS_HAS_CPU_MIPS64_R6
159 select SYS_SUPPORTS_32BIT_KERNEL
160 select SYS_SUPPORTS_64BIT_KERNEL
161 select SYS_SUPPORTS_BIG_ENDIAN
162 select SYS_SUPPORTS_HIGHMEM
163 select SYS_SUPPORTS_LITTLE_ENDIAN
164 select SYS_SUPPORTS_MICROMIPS
eed0eabd 165 select SYS_SUPPORTS_MIPS16
34c01e41 166 select SYS_SUPPORTS_MIPS_CPS
eed0eabd
PB
167 select SYS_SUPPORTS_MULTITHREADING
168 select SYS_SUPPORTS_RELOCATABLE
169 select SYS_SUPPORTS_SMARTMIPS
c3e2ee65 170 select SYS_SUPPORTS_ZBOOT
34c01e41 171 select UHI_BOOT
2e6522c5
CL
172 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
173 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
174 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
175 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
176 select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
177 select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
eed0eabd
PB
178 select USE_OF
179 help
180 Select this to build a kernel which aims to support multiple boards,
181 generally using a flattened device tree passed from the bootloader
182 using the boot protocol defined in the UHI (Unified Hosting
183 Interface) specification.
184
42a4f17d 185config MIPS_ALCHEMY
c3543e25 186 bool "Alchemy processor based machines"
d4a451d5 187 select PHYS_ADDR_T_64BIT
f772cdb2 188 select CEVT_R4K
d7ea335c 189 select CSRC_R4K
67e38cf2 190 select IRQ_MIPS_CPU
a86497d6 191 select DMA_NONCOHERENT # Au1000,1500,1100 aren't, rest is
d3991572 192 select MIPS_FIXUP_BIGPHYS_ADDR if PCI
42a4f17d
ML
193 select SYS_HAS_CPU_MIPS32_R1
194 select SYS_SUPPORTS_32BIT_KERNEL
195 select SYS_SUPPORTS_APM_EMULATION
d30a2b47 196 select GPIOLIB
1b93b3c3 197 select SYS_SUPPORTS_ZBOOT
47440229 198 select COMMON_CLK
1da177e4 199
7ca5dc14
FF
200config AR7
201 bool "Texas Instruments AR7"
202 select BOOT_ELF32
b408b611 203 select COMMON_CLK
7ca5dc14
FF
204 select DMA_NONCOHERENT
205 select CEVT_R4K
206 select CSRC_R4K
67e38cf2 207 select IRQ_MIPS_CPU
7ca5dc14
FF
208 select NO_EXCEPT_FILL
209 select SWAP_IO_SPACE
210 select SYS_HAS_CPU_MIPS32_R1
211 select SYS_HAS_EARLY_PRINTK
212 select SYS_SUPPORTS_32BIT_KERNEL
213 select SYS_SUPPORTS_LITTLE_ENDIAN
377cb1b6 214 select SYS_SUPPORTS_MIPS16
1b93b3c3 215 select SYS_SUPPORTS_ZBOOT_UART16550
d30a2b47 216 select GPIOLIB
7ca5dc14
FF
217 select VLYNQ
218 help
219 Support for the Texas Instruments AR7 System-on-a-Chip
220 family: TNETD7100, 7200 and 7300.
221
43cc739f
SR
222config ATH25
223 bool "Atheros AR231x/AR531x SoC support"
224 select CEVT_R4K
225 select CSRC_R4K
226 select DMA_NONCOHERENT
67e38cf2 227 select IRQ_MIPS_CPU
1753e74e 228 select IRQ_DOMAIN
43cc739f
SR
229 select SYS_HAS_CPU_MIPS32_R1
230 select SYS_SUPPORTS_BIG_ENDIAN
231 select SYS_SUPPORTS_32BIT_KERNEL
8aaa7278 232 select SYS_HAS_EARLY_PRINTK
43cc739f
SR
233 help
234 Support for Atheros AR231x and Atheros AR531x based boards
235
d4a67d9d
GJ
236config ATH79
237 bool "Atheros AR71XX/AR724X/AR913X based boards"
ff591a91 238 select ARCH_HAS_RESET_CONTROLLER
d4a67d9d
GJ
239 select BOOT_RAW
240 select CEVT_R4K
241 select CSRC_R4K
242 select DMA_NONCOHERENT
d30a2b47 243 select GPIOLIB
a08227a2 244 select PINCTRL
411520af 245 select COMMON_CLK
67e38cf2 246 select IRQ_MIPS_CPU
d4a67d9d
GJ
247 select SYS_HAS_CPU_MIPS32_R2
248 select SYS_HAS_EARLY_PRINTK
249 select SYS_SUPPORTS_32BIT_KERNEL
250 select SYS_SUPPORTS_BIG_ENDIAN
377cb1b6 251 select SYS_SUPPORTS_MIPS16
b3f0a250 252 select SYS_SUPPORTS_ZBOOT_UART_PROM
03c8c407 253 select USE_OF
53d473fc 254 select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
d4a67d9d
GJ
255 help
256 Support for the Atheros AR71XX/AR724X/AR913X SoCs.
257
5f2d4459
KC
258config BMIPS_GENERIC
259 bool "Broadcom Generic BMIPS kernel"
29906e1a 260 select ARCH_HAS_RESET_CONTROLLER
d59098a0 261 select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
d666cd02
KC
262 select BOOT_RAW
263 select NO_EXCEPT_FILL
264 select USE_OF
265 select CEVT_R4K
266 select CSRC_R4K
267 select SYNC_R4K
268 select COMMON_CLK
c7c42ec2 269 select BCM6345_L1_IRQ
60b858f2
KC
270 select BCM7038_L1_IRQ
271 select BCM7120_L2_IRQ
272 select BRCMSTB_L2_IRQ
67e38cf2 273 select IRQ_MIPS_CPU
60b858f2 274 select DMA_NONCOHERENT
d666cd02 275 select SYS_SUPPORTS_32BIT_KERNEL
60b858f2 276 select SYS_SUPPORTS_LITTLE_ENDIAN
d666cd02
KC
277 select SYS_SUPPORTS_BIG_ENDIAN
278 select SYS_SUPPORTS_HIGHMEM
60b858f2
KC
279 select SYS_HAS_CPU_BMIPS32_3300
280 select SYS_HAS_CPU_BMIPS4350
281 select SYS_HAS_CPU_BMIPS4380
d666cd02
KC
282 select SYS_HAS_CPU_BMIPS5000
283 select SWAP_IO_SPACE
60b858f2
KC
284 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
285 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
286 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
287 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
4dc4704c 288 select HARDIRQS_SW_RESEND
1d987052
FF
289 select HAVE_PCI
290 select PCI_DRIVERS_GENERIC
466ab2ea 291 select FW_CFE
d666cd02 292 help
5f2d4459
KC
293 Build a generic DT-based kernel image that boots on select
294 BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
295 box chips. Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
296 must be set appropriately for your board.
d666cd02 297
1c0c13eb 298config BCM47XX
c619366e 299 bool "Broadcom BCM47XX based boards"
fe08f8c2 300 select BOOT_RAW
42f77542 301 select CEVT_R4K
940f6b48 302 select CSRC_R4K
1c0c13eb 303 select DMA_NONCOHERENT
eb01d42a 304 select HAVE_PCI
67e38cf2 305 select IRQ_MIPS_CPU
314878d2 306 select SYS_HAS_CPU_MIPS32_R1
dd54dedd 307 select NO_EXCEPT_FILL
1c0c13eb
AJ
308 select SYS_SUPPORTS_32BIT_KERNEL
309 select SYS_SUPPORTS_LITTLE_ENDIAN
377cb1b6 310 select SYS_SUPPORTS_MIPS16
6507831f 311 select SYS_SUPPORTS_ZBOOT
25e5fb97 312 select SYS_HAS_EARLY_PRINTK
e6086557 313 select USE_GENERIC_EARLY_PRINTK_8250
c949c0bc
RM
314 select GPIOLIB
315 select LEDS_GPIO_REGISTER
f6e734a8 316 select BCM47XX_NVRAM
2ab71a02 317 select BCM47XX_SPROM
dfe00495 318 select BCM47XX_SSB if !BCM47XX_BCMA
1c0c13eb 319 help
371a4151 320 Support for BCM47XX based boards
1c0c13eb 321
e7300d04
MB
322config BCM63XX
323 bool "Broadcom BCM63XX based boards"
ae8de61c 324 select BOOT_RAW
e7300d04
MB
325 select CEVT_R4K
326 select CSRC_R4K
fc264022 327 select SYNC_R4K
e7300d04 328 select DMA_NONCOHERENT
67e38cf2 329 select IRQ_MIPS_CPU
e7300d04
MB
330 select SYS_SUPPORTS_32BIT_KERNEL
331 select SYS_SUPPORTS_BIG_ENDIAN
332 select SYS_HAS_EARLY_PRINTK
5eeaafc8
RD
333 select SYS_HAS_CPU_BMIPS32_3300
334 select SYS_HAS_CPU_BMIPS4350
335 select SYS_HAS_CPU_BMIPS4380
e7300d04 336 select SWAP_IO_SPACE
d30a2b47 337 select GPIOLIB
af2418be 338 select MIPS_L1_CACHE_SHIFT_4
bbd7ffdb 339 select HAVE_LEGACY_CLK
e7300d04 340 help
371a4151 341 Support for BCM63XX based boards
e7300d04 342
1da177e4 343config MIPS_COBALT
3fa986fa 344 bool "Cobalt Server"
42f77542 345 select CEVT_R4K
940f6b48 346 select CSRC_R4K
1097c6ac 347 select CEVT_GT641XX
1da177e4 348 select DMA_NONCOHERENT
eb01d42a 349 select FORCE_PCI
d865bea4 350 select I8253
1da177e4 351 select I8259
67e38cf2 352 select IRQ_MIPS_CPU
d5ab1a69 353 select IRQ_GT641XX
252161ec 354 select PCI_GT64XXX_PCI0
7cf8053b 355 select SYS_HAS_CPU_NEVADA
0a22e0d4 356 select SYS_HAS_EARLY_PRINTK
ed5ba2fb 357 select SYS_SUPPORTS_32BIT_KERNEL
0e8774b6 358 select SYS_SUPPORTS_64BIT_KERNEL
5e83d430 359 select SYS_SUPPORTS_LITTLE_ENDIAN
e6086557 360 select USE_GENERIC_EARLY_PRINTK_8250
1da177e4
LT
361
362config MACH_DECSTATION
3fa986fa 363 bool "DECstations"
1da177e4 364 select BOOT_ELF32
6457d9fc 365 select CEVT_DS1287
81d10bad 366 select CEVT_R4K if CPU_R4X00
4247417d 367 select CSRC_IOASIC
81d10bad 368 select CSRC_R4K if CPU_R4X00
20d60d99
MR
369 select CPU_DADDI_WORKAROUNDS if 64BIT
370 select CPU_R4000_WORKAROUNDS if 64BIT
371 select CPU_R4400_WORKAROUNDS if 64BIT
1da177e4 372 select DMA_NONCOHERENT
ce816fa8 373 select NO_IOPORT_MAP
67e38cf2 374 select IRQ_MIPS_CPU
7cf8053b
RB
375 select SYS_HAS_CPU_R3000
376 select SYS_HAS_CPU_R4X00
ed5ba2fb 377 select SYS_SUPPORTS_32BIT_KERNEL
7d60717e 378 select SYS_SUPPORTS_64BIT_KERNEL
5e83d430 379 select SYS_SUPPORTS_LITTLE_ENDIAN
1723b4a3
AN
380 select SYS_SUPPORTS_128HZ
381 select SYS_SUPPORTS_256HZ
382 select SYS_SUPPORTS_1024HZ
930beb5a 383 select MIPS_L1_CACHE_SHIFT_4
5e83d430 384 help
1da177e4
LT
385 This enables support for DEC's MIPS based workstations. For details
386 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
387 DECstation porting pages on <http://decstation.unix-ag.org/>.
388
389 If you have one of the following DECstation Models you definitely
390 want to choose R4xx0 for the CPU Type:
391
9308816c
RB
392 DECstation 5000/50
393 DECstation 5000/150
394 DECstation 5000/260
395 DECsystem 5900/260
1da177e4
LT
396
397 otherwise choose R3000.
398
5e83d430 399config MACH_JAZZ
3fa986fa 400 bool "Jazz family of machines"
39b2d756
TB
401 select ARC_MEMORY
402 select ARC_PROMLIB
a211a082 403 select ARCH_MIGHT_HAVE_PC_PARPORT
7a407aa5 404 select ARCH_MIGHT_HAVE_PC_SERIO
2f9237d4 405 select DMA_OPS
0e2794b0
RB
406 select FW_ARC
407 select FW_ARC32
5e83d430 408 select ARCH_MAY_HAVE_PC_FDC
42f77542 409 select CEVT_R4K
940f6b48 410 select CSRC_R4K
e2defae5 411 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
5e83d430 412 select GENERIC_ISA_DMA
8a118c38 413 select HAVE_PCSPKR_PLATFORM
67e38cf2 414 select IRQ_MIPS_CPU
d865bea4 415 select I8253
5e83d430
RB
416 select I8259
417 select ISA
7cf8053b 418 select SYS_HAS_CPU_R4X00
5e83d430 419 select SYS_SUPPORTS_32BIT_KERNEL
7d60717e 420 select SYS_SUPPORTS_64BIT_KERNEL
1723b4a3 421 select SYS_SUPPORTS_100HZ
aadfe4b5 422 select SYS_SUPPORTS_LITTLE_ENDIAN
1da177e4 423 help
371a4151
EWI
424 This a family of machines based on the MIPS R4030 chipset which was
425 used by several vendors to build RISC/os and Windows NT workstations.
426 Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
427 Olivetti M700-10 workstations.
5e83d430 428
f0f4a753 429config MACH_INGENIC_SOC
de361e8b 430 bool "Ingenic SoC based machines"
f0f4a753
PC
431 select MIPS_GENERIC
432 select MACH_INGENIC
f9c9affc 433 select SYS_SUPPORTS_ZBOOT_UART16550
eb384937
PC
434 select CPU_SUPPORTS_CPUFREQ
435 select MIPS_EXTERNAL_TIMER
5ebabe59 436
171bb2f1
JC
437config LANTIQ
438 bool "Lantiq based platforms"
439 select DMA_NONCOHERENT
67e38cf2 440 select IRQ_MIPS_CPU
171bb2f1
JC
441 select CEVT_R4K
442 select CSRC_R4K
b74cc639 443 select NO_EXCEPT_FILL
171bb2f1
JC
444 select SYS_HAS_CPU_MIPS32_R1
445 select SYS_HAS_CPU_MIPS32_R2
446 select SYS_SUPPORTS_BIG_ENDIAN
447 select SYS_SUPPORTS_32BIT_KERNEL
377cb1b6 448 select SYS_SUPPORTS_MIPS16
171bb2f1 449 select SYS_SUPPORTS_MULTITHREADING
f35764e7 450 select SYS_SUPPORTS_VPE_LOADER
171bb2f1 451 select SYS_HAS_EARLY_PRINTK
d30a2b47 452 select GPIOLIB
171bb2f1
JC
453 select SWAP_IO_SPACE
454 select BOOT_RAW
bbd7ffdb 455 select HAVE_LEGACY_CLK
a0392222 456 select USE_OF
3f8c50c9
JC
457 select PINCTRL
458 select PINCTRL_LANTIQ
c530781c
JC
459 select ARCH_HAS_RESET_CONTROLLER
460 select RESET_CONTROLLER
171bb2f1 461
30ad29bb 462config MACH_LOONGSON32
caed1d1b 463 bool "Loongson 32-bit family of machines"
c7e8c668 464 select SYS_SUPPORTS_ZBOOT
ade299d8 465 help
30ad29bb 466 This enables support for the Loongson-1 family of machines.
85749d24 467
30ad29bb
HC
468 Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
469 the Institute of Computing Technology (ICT), Chinese Academy of
470 Sciences (CAS).
ade299d8 471
71e2f4dd
JY
472config MACH_LOONGSON2EF
473 bool "Loongson-2E/F family of machines"
ca585cf9
KC
474 select SYS_SUPPORTS_ZBOOT
475 help
71e2f4dd 476 This enables the support of early Loongson-2E/F family of machines.
ca585cf9 477
71e2f4dd 478config MACH_LOONGSON64
caed1d1b 479 bool "Loongson 64-bit family of machines"
6fbde6b4
JY
480 select ARCH_SPARSEMEM_ENABLE
481 select ARCH_MIGHT_HAVE_PC_PARPORT
482 select ARCH_MIGHT_HAVE_PC_SERIO
483 select GENERIC_ISA_DMA_SUPPORT_BROKEN
484 select BOOT_ELF32
485 select BOARD_SCACHE
486 select CSRC_R4K
487 select CEVT_R4K
6fbde6b4
JY
488 select FORCE_PCI
489 select ISA
490 select I8259
491 select IRQ_MIPS_CPU
7d6d2837 492 select NO_EXCEPT_FILL
5125bfee 493 select NR_CPUS_DEFAULT_64
6fbde6b4 494 select USE_GENERIC_EARLY_PRINTK_8250
6423e59a 495 select PCI_DRIVERS_GENERIC
6fbde6b4
JY
496 select SYS_HAS_CPU_LOONGSON64
497 select SYS_HAS_EARLY_PRINTK
498 select SYS_SUPPORTS_SMP
499 select SYS_SUPPORTS_HOTPLUG_CPU
500 select SYS_SUPPORTS_NUMA
501 select SYS_SUPPORTS_64BIT_KERNEL
502 select SYS_SUPPORTS_HIGHMEM
503 select SYS_SUPPORTS_LITTLE_ENDIAN
71e2f4dd 504 select SYS_SUPPORTS_ZBOOT
a307a4ce 505 select SYS_SUPPORTS_RELOCATABLE
6fbde6b4 506 select ZONE_DMA32
87fcfa7b
JY
507 select COMMON_CLK
508 select USE_OF
509 select BUILTIN_DTB
39c1485c 510 select PCI_HOST_GENERIC
f8f9f21c 511 select HAVE_ARCH_NODEDATA_EXTENSION if NUMA
71e2f4dd 512 help
caed1d1b
HC
513 This enables the support of Loongson-2/3 family of machines.
514
515 Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
516 GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
517 and Loongson-2F which will be removed), developed by the Institute
518 of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
ca585cf9 519
1da177e4 520config MIPS_MALTA
3fa986fa 521 bool "MIPS Malta board"
61ed242d 522 select ARCH_MAY_HAVE_PC_FDC
a211a082 523 select ARCH_MIGHT_HAVE_PC_PARPORT
7a407aa5 524 select ARCH_MIGHT_HAVE_PC_SERIO
1da177e4 525 select BOOT_ELF32
fa71c960 526 select BOOT_RAW
e8823d26 527 select BUILTIN_DTB
42f77542 528 select CEVT_R4K
fa5635a2 529 select CLKSRC_MIPS_GIC
42b002ab 530 select COMMON_CLK
47bf2b03 531 select CSRC_R4K
a86497d6 532 select DMA_NONCOHERENT
1da177e4 533 select GENERIC_ISA_DMA
8a118c38 534 select HAVE_PCSPKR_PLATFORM
eb01d42a 535 select HAVE_PCI
d865bea4 536 select I8253
1da177e4 537 select I8259
47bf2b03 538 select IRQ_MIPS_CPU
5e83d430 539 select MIPS_BONITO64
9318c51a 540 select MIPS_CPU_SCACHE
47bf2b03 541 select MIPS_GIC
a7ef1ead 542 select MIPS_L1_CACHE_SHIFT_6
5e83d430 543 select MIPS_MSC
47bf2b03 544 select PCI_GT64XXX_PCI0
ecafe3e9 545 select SMP_UP if SMP
1da177e4 546 select SWAP_IO_SPACE
7cf8053b
RB
547 select SYS_HAS_CPU_MIPS32_R1
548 select SYS_HAS_CPU_MIPS32_R2
bfc3c5a6 549 select SYS_HAS_CPU_MIPS32_R3_5
c5b36783 550 select SYS_HAS_CPU_MIPS32_R5
575509b6 551 select SYS_HAS_CPU_MIPS32_R6
7cf8053b 552 select SYS_HAS_CPU_MIPS64_R1
5d9fbed1 553 select SYS_HAS_CPU_MIPS64_R2
575509b6 554 select SYS_HAS_CPU_MIPS64_R6
7cf8053b
RB
555 select SYS_HAS_CPU_NEVADA
556 select SYS_HAS_CPU_RM7000
ed5ba2fb
YY
557 select SYS_SUPPORTS_32BIT_KERNEL
558 select SYS_SUPPORTS_64BIT_KERNEL
5e83d430 559 select SYS_SUPPORTS_BIG_ENDIAN
c5b36783 560 select SYS_SUPPORTS_HIGHMEM
5e83d430 561 select SYS_SUPPORTS_LITTLE_ENDIAN
424ebcdf 562 select SYS_SUPPORTS_MICROMIPS
47bf2b03 563 select SYS_SUPPORTS_MIPS16
e56b6aa6 564 select SYS_SUPPORTS_MIPS_CPS
f41ae0b2 565 select SYS_SUPPORTS_MULTITHREADING
47bf2b03 566 select SYS_SUPPORTS_RELOCATABLE
9693a853 567 select SYS_SUPPORTS_SMARTMIPS
f35764e7 568 select SYS_SUPPORTS_VPE_LOADER
1b93b3c3 569 select SYS_SUPPORTS_ZBOOT
e8823d26 570 select USE_OF
886ee136 571 select WAR_ICACHE_REFILLS
abcc82b1 572 select ZONE_DMA32 if 64BIT
1da177e4 573 help
f638d197 574 This enables support for the MIPS Technologies Malta evaluation
1da177e4
LT
575 board.
576
2572f00d
JH
577config MACH_PIC32
578 bool "Microchip PIC32 Family"
579 help
580 This enables support for the Microchip PIC32 family of platforms.
581
582 Microchip PIC32 is a family of general-purpose 32 bit MIPS core
583 microcontrollers.
584
baec970a
LK
585config MACH_NINTENDO64
586 bool "Nintendo 64 console"
587 select CEVT_R4K
588 select CSRC_R4K
589 select SYS_HAS_CPU_R4300
590 select SYS_SUPPORTS_BIG_ENDIAN
591 select SYS_SUPPORTS_ZBOOT
592 select SYS_SUPPORTS_32BIT_KERNEL
593 select SYS_SUPPORTS_64BIT_KERNEL
594 select DMA_NONCOHERENT
595 select IRQ_MIPS_CPU
596
ae2b5bb6
JC
597config RALINK
598 bool "Ralink based machines"
599 select CEVT_R4K
35f752be 600 select COMMON_CLK
ae2b5bb6
JC
601 select CSRC_R4K
602 select BOOT_RAW
603 select DMA_NONCOHERENT
67e38cf2 604 select IRQ_MIPS_CPU
ae2b5bb6 605 select USE_OF
ae2b5bb6
JC
606 select SYS_HAS_CPU_MIPS32_R2
607 select SYS_SUPPORTS_32BIT_KERNEL
608 select SYS_SUPPORTS_LITTLE_ENDIAN
377cb1b6 609 select SYS_SUPPORTS_MIPS16
1f0400d0 610 select SYS_SUPPORTS_ZBOOT
ae2b5bb6 611 select SYS_HAS_EARLY_PRINTK
2a153f1c
JC
612 select ARCH_HAS_RESET_CONTROLLER
613 select RESET_CONTROLLER
ae2b5bb6 614
4042147a
BV
615config MACH_REALTEK_RTL
616 bool "Realtek RTL838x/RTL839x based machines"
617 select MIPS_GENERIC
618 select DMA_NONCOHERENT
619 select IRQ_MIPS_CPU
620 select CSRC_R4K
621 select CEVT_R4K
622 select SYS_HAS_CPU_MIPS32_R1
623 select SYS_HAS_CPU_MIPS32_R2
624 select SYS_SUPPORTS_BIG_ENDIAN
625 select SYS_SUPPORTS_32BIT_KERNEL
626 select SYS_SUPPORTS_MIPS16
627 select SYS_SUPPORTS_MULTITHREADING
628 select SYS_SUPPORTS_VPE_LOADER
4042147a
BV
629 select BOOT_RAW
630 select PINCTRL
631 select USE_OF
632
1da177e4 633config SGI_IP22
3fa986fa 634 bool "SGI IP22 (Indy/Indigo2)"
c0de00b2 635 select ARC_MEMORY
39b2d756 636 select ARC_PROMLIB
0e2794b0
RB
637 select FW_ARC
638 select FW_ARC32
7a407aa5 639 select ARCH_MIGHT_HAVE_PC_SERIO
1da177e4 640 select BOOT_ELF32
42f77542 641 select CEVT_R4K
940f6b48 642 select CSRC_R4K
e2defae5 643 select DEFAULT_SGI_PARTITION
1da177e4 644 select DMA_NONCOHERENT
6630a8e5 645 select HAVE_EISA
d865bea4 646 select I8253
68de4803 647 select I8259
1da177e4 648 select IP22_CPU_SCACHE
67e38cf2 649 select IRQ_MIPS_CPU
aa414dff 650 select GENERIC_ISA_DMA_SUPPORT_BROKEN
e2defae5
TB
651 select SGI_HAS_I8042
652 select SGI_HAS_INDYDOG
36e5c21d 653 select SGI_HAS_HAL2
e2defae5
TB
654 select SGI_HAS_SEEQ
655 select SGI_HAS_WD93
656 select SGI_HAS_ZILOG
1da177e4 657 select SWAP_IO_SPACE
7cf8053b
RB
658 select SYS_HAS_CPU_R4X00
659 select SYS_HAS_CPU_R5000
c0de00b2 660 select SYS_HAS_EARLY_PRINTK
ed5ba2fb
YY
661 select SYS_SUPPORTS_32BIT_KERNEL
662 select SYS_SUPPORTS_64BIT_KERNEL
5e83d430 663 select SYS_SUPPORTS_BIG_ENDIAN
802b8362 664 select WAR_R4600_V1_INDEX_ICACHEOP
5e5b6527 665 select WAR_R4600_V1_HIT_CACHEOP
44def342 666 select WAR_R4600_V2_HIT_CACHEOP
930beb5a 667 select MIPS_L1_CACHE_SHIFT_7
1da177e4
LT
668 help
669 This are the SGI Indy, Challenge S and Indigo2, as well as certain
670 OEM variants like the Tandem CMN B006S. To compile a Linux kernel
671 that runs on these, say Y here.
672
673config SGI_IP27
3fa986fa 674 bool "SGI IP27 (Origin200/2000)"
54aed4dd 675 select ARCH_HAS_PHYS_TO_DMA
397dc00e 676 select ARCH_SPARSEMEM_ENABLE
0e2794b0
RB
677 select FW_ARC
678 select FW_ARC64
e9422427 679 select ARC_CMDLINE_ONLY
5e83d430 680 select BOOT_ELF64
e2defae5 681 select DEFAULT_SGI_PARTITION
04100459 682 select FORCE_PCI
36a88530 683 select SYS_HAS_EARLY_PRINTK
eb01d42a 684 select HAVE_PCI
69a07a41 685 select IRQ_MIPS_CPU
e6308b6d 686 select IRQ_DOMAIN_HIERARCHY
130e2fb7 687 select NR_CPUS_DEFAULT_64
a57140e9
TB
688 select PCI_DRIVERS_GENERIC
689 select PCI_XTALK_BRIDGE
7cf8053b 690 select SYS_HAS_CPU_R10000
ed5ba2fb 691 select SYS_SUPPORTS_64BIT_KERNEL
5e83d430 692 select SYS_SUPPORTS_BIG_ENDIAN
d8cb4e11 693 select SYS_SUPPORTS_NUMA
1a5c5de1 694 select SYS_SUPPORTS_SMP
256ec489 695 select WAR_R10000_LLSC
930beb5a 696 select MIPS_L1_CACHE_SHIFT_7
6c86a302 697 select NUMA
f8f9f21c 698 select HAVE_ARCH_NODEDATA_EXTENSION
1da177e4
LT
699 help
700 This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
701 workstations. To compile a Linux kernel that runs on these, say Y
702 here.
703
e2defae5 704config SGI_IP28
7d60717e 705 bool "SGI IP28 (Indigo2 R10k)"
c0de00b2 706 select ARC_MEMORY
39b2d756 707 select ARC_PROMLIB
0e2794b0
RB
708 select FW_ARC
709 select FW_ARC64
7a407aa5 710 select ARCH_MIGHT_HAVE_PC_SERIO
e2defae5
TB
711 select BOOT_ELF64
712 select CEVT_R4K
713 select CSRC_R4K
714 select DEFAULT_SGI_PARTITION
715 select DMA_NONCOHERENT
716 select GENERIC_ISA_DMA_SUPPORT_BROKEN
67e38cf2 717 select IRQ_MIPS_CPU
6630a8e5 718 select HAVE_EISA
e2defae5
TB
719 select I8253
720 select I8259
e2defae5
TB
721 select SGI_HAS_I8042
722 select SGI_HAS_INDYDOG
5b438c44 723 select SGI_HAS_HAL2
e2defae5
TB
724 select SGI_HAS_SEEQ
725 select SGI_HAS_WD93
726 select SGI_HAS_ZILOG
727 select SWAP_IO_SPACE
728 select SYS_HAS_CPU_R10000
c0de00b2 729 select SYS_HAS_EARLY_PRINTK
e2defae5
TB
730 select SYS_SUPPORTS_64BIT_KERNEL
731 select SYS_SUPPORTS_BIG_ENDIAN
256ec489 732 select WAR_R10000_LLSC
dc24d68d 733 select MIPS_L1_CACHE_SHIFT_7
371a4151
EWI
734 help
735 This is the SGI Indigo2 with R10000 processor. To compile a Linux
736 kernel that runs on these, say Y here.
e2defae5 737
7505576d
TB
738config SGI_IP30
739 bool "SGI IP30 (Octane/Octane2)"
740 select ARCH_HAS_PHYS_TO_DMA
741 select FW_ARC
742 select FW_ARC64
743 select BOOT_ELF64
744 select CEVT_R4K
745 select CSRC_R4K
04100459 746 select FORCE_PCI
7505576d
TB
747 select SYNC_R4K if SMP
748 select ZONE_DMA32
749 select HAVE_PCI
750 select IRQ_MIPS_CPU
751 select IRQ_DOMAIN_HIERARCHY
7505576d
TB
752 select PCI_DRIVERS_GENERIC
753 select PCI_XTALK_BRIDGE
754 select SYS_HAS_EARLY_PRINTK
755 select SYS_HAS_CPU_R10000
756 select SYS_SUPPORTS_64BIT_KERNEL
757 select SYS_SUPPORTS_BIG_ENDIAN
758 select SYS_SUPPORTS_SMP
256ec489 759 select WAR_R10000_LLSC
7505576d
TB
760 select MIPS_L1_CACHE_SHIFT_7
761 select ARC_MEMORY
762 help
763 These are the SGI Octane and Octane2 graphics workstations. To
764 compile a Linux kernel that runs on these, say Y here.
765
1da177e4 766config SGI_IP32
cfd2afc0 767 bool "SGI IP32 (O2)"
39b2d756
TB
768 select ARC_MEMORY
769 select ARC_PROMLIB
03df8229 770 select ARCH_HAS_PHYS_TO_DMA
0e2794b0
RB
771 select FW_ARC
772 select FW_ARC32
1da177e4 773 select BOOT_ELF32
42f77542 774 select CEVT_R4K
940f6b48 775 select CSRC_R4K
1da177e4 776 select DMA_NONCOHERENT
eb01d42a 777 select HAVE_PCI
67e38cf2 778 select IRQ_MIPS_CPU
1da177e4
LT
779 select R5000_CPU_SCACHE
780 select RM7000_CPU_SCACHE
7cf8053b
RB
781 select SYS_HAS_CPU_R5000
782 select SYS_HAS_CPU_R10000 if BROKEN
783 select SYS_HAS_CPU_RM7000
dd2f18fe 784 select SYS_HAS_CPU_NEVADA
ed5ba2fb 785 select SYS_SUPPORTS_64BIT_KERNEL
23fbee9d 786 select SYS_SUPPORTS_BIG_ENDIAN
886ee136 787 select WAR_ICACHE_REFILLS
23fbee9d 788 help
5e83d430 789 If you want this kernel to run on SGI O2 workstation, say Y here.
1da177e4 790
ade299d8
YY
791config SIBYTE_CRHONE
792 bool "Sibyte BCM91125C-CRhone"
5e83d430 793 select BOOT_ELF32
ade299d8 794 select SIBYTE_BCM1125
5e83d430 795 select SWAP_IO_SPACE
7cf8053b 796 select SYS_HAS_CPU_SB1
5e83d430 797 select SYS_SUPPORTS_BIG_ENDIAN
ade299d8 798 select SYS_SUPPORTS_HIGHMEM
5e83d430 799 select SYS_SUPPORTS_LITTLE_ENDIAN
1da177e4 800
5e83d430 801config SIBYTE_RHONE
3fa986fa 802 bool "Sibyte BCM91125E-Rhone"
5e83d430 803 select BOOT_ELF32
03452347 804 select SIBYTE_SB1250
5e83d430 805 select SWAP_IO_SPACE
7cf8053b 806 select SYS_HAS_CPU_SB1
5e83d430
RB
807 select SYS_SUPPORTS_BIG_ENDIAN
808 select SYS_SUPPORTS_LITTLE_ENDIAN
1da177e4 809
ade299d8
YY
810config SIBYTE_SWARM
811 bool "Sibyte BCM91250A-SWARM"
5e83d430 812 select BOOT_ELF32
fcf3ca4c 813 select HAVE_PATA_PLATFORM
ade299d8 814 select SIBYTE_SB1250
5e83d430 815 select SWAP_IO_SPACE
7cf8053b 816 select SYS_HAS_CPU_SB1
5e83d430 817 select SYS_SUPPORTS_BIG_ENDIAN
ade299d8 818 select SYS_SUPPORTS_HIGHMEM
e3ad1c23 819 select SYS_SUPPORTS_LITTLE_ENDIAN
cce335ae 820 select ZONE_DMA32 if 64BIT
e4849aff 821 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
e3ad1c23 822
ade299d8
YY
823config SIBYTE_LITTLESUR
824 bool "Sibyte BCM91250C2-LittleSur"
5e83d430 825 select BOOT_ELF32
fcf3ca4c 826 select HAVE_PATA_PLATFORM
5e83d430
RB
827 select SIBYTE_SB1250
828 select SWAP_IO_SPACE
7cf8053b 829 select SYS_HAS_CPU_SB1
5e83d430
RB
830 select SYS_SUPPORTS_BIG_ENDIAN
831 select SYS_SUPPORTS_HIGHMEM
832 select SYS_SUPPORTS_LITTLE_ENDIAN
756d6d83 833 select ZONE_DMA32 if 64BIT
1da177e4 834
ade299d8
YY
835config SIBYTE_SENTOSA
836 bool "Sibyte BCM91250E-Sentosa"
5e83d430 837 select BOOT_ELF32
5e83d430
RB
838 select SIBYTE_SB1250
839 select SWAP_IO_SPACE
7cf8053b 840 select SYS_HAS_CPU_SB1
5e83d430 841 select SYS_SUPPORTS_BIG_ENDIAN
5e83d430 842 select SYS_SUPPORTS_LITTLE_ENDIAN
e4849aff 843 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
1da177e4 844
ade299d8
YY
845config SIBYTE_BIGSUR
846 bool "Sibyte BCM91480B-BigSur"
5e83d430 847 select BOOT_ELF32
ade299d8 848 select NR_CPUS_DEFAULT_4
ade299d8 849 select SIBYTE_BCM1x80
5e83d430 850 select SWAP_IO_SPACE
7cf8053b 851 select SYS_HAS_CPU_SB1
5e83d430 852 select SYS_SUPPORTS_BIG_ENDIAN
651194f8 853 select SYS_SUPPORTS_HIGHMEM
5e83d430 854 select SYS_SUPPORTS_LITTLE_ENDIAN
cce335ae 855 select ZONE_DMA32 if 64BIT
e4849aff 856 select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
1da177e4 857
14b36af4
TB
858config SNI_RM
859 bool "SNI RM200/300/400"
39b2d756
TB
860 select ARC_MEMORY
861 select ARC_PROMLIB
0e2794b0
RB
862 select FW_ARC if CPU_LITTLE_ENDIAN
863 select FW_ARC32 if CPU_LITTLE_ENDIAN
aaa9fad3 864 select FW_SNIPROM if CPU_BIG_ENDIAN
61ed242d 865 select ARCH_MAY_HAVE_PC_FDC
a211a082 866 select ARCH_MIGHT_HAVE_PC_PARPORT
7a407aa5 867 select ARCH_MIGHT_HAVE_PC_SERIO
1da177e4 868 select BOOT_ELF32
42f77542 869 select CEVT_R4K
940f6b48 870 select CSRC_R4K
e2defae5 871 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
1da177e4
LT
872 select DMA_NONCOHERENT
873 select GENERIC_ISA_DMA
6630a8e5 874 select HAVE_EISA
8a118c38 875 select HAVE_PCSPKR_PLATFORM
eb01d42a 876 select HAVE_PCI
67e38cf2 877 select IRQ_MIPS_CPU
d865bea4 878 select I8253
1da177e4
LT
879 select I8259
880 select ISA
564c836f 881 select MIPS_L1_CACHE_SHIFT_6
4a0312fc 882 select SWAP_IO_SPACE if CPU_BIG_ENDIAN
7cf8053b 883 select SYS_HAS_CPU_R4X00
4a0312fc 884 select SYS_HAS_CPU_R5000
c066a32a 885 select SYS_HAS_CPU_R10000
4a0312fc 886 select R5000_CPU_SCACHE
36a88530 887 select SYS_HAS_EARLY_PRINTK
ed5ba2fb 888 select SYS_SUPPORTS_32BIT_KERNEL
7d60717e 889 select SYS_SUPPORTS_64BIT_KERNEL
4a0312fc 890 select SYS_SUPPORTS_BIG_ENDIAN
797798c1 891 select SYS_SUPPORTS_HIGHMEM
5e83d430 892 select SYS_SUPPORTS_LITTLE_ENDIAN
44def342 893 select WAR_R4600_V2_HIT_CACHEOP
1da177e4 894 help
14b36af4
TB
895 The SNI RM200/300/400 are MIPS-based machines manufactured by
896 Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
1da177e4
LT
897 Technology and now in turn merged with Fujitsu. Say Y here to
898 support this machine type.
899
edcaf1a6
AN
900config MACH_TX49XX
901 bool "Toshiba TX49 series based machines"
24a1c023 902 select WAR_TX49XX_ICACHE_INDEX_INV
5e83d430 903
73b4390f
RB
904config MIKROTIK_RB532
905 bool "Mikrotik RB532 boards"
906 select CEVT_R4K
907 select CSRC_R4K
908 select DMA_NONCOHERENT
eb01d42a 909 select HAVE_PCI
67e38cf2 910 select IRQ_MIPS_CPU
73b4390f
RB
911 select SYS_HAS_CPU_MIPS32_R1
912 select SYS_SUPPORTS_32BIT_KERNEL
913 select SYS_SUPPORTS_LITTLE_ENDIAN
914 select SWAP_IO_SPACE
915 select BOOT_RAW
d30a2b47 916 select GPIOLIB
930beb5a 917 select MIPS_L1_CACHE_SHIFT_4
73b4390f
RB
918 help
919 Support the Mikrotik(tm) RouterBoard 532 series,
920 based on the IDT RC32434 SoC.
921
9ddebc46
DD
922config CAVIUM_OCTEON_SOC
923 bool "Cavium Networks Octeon SoC based boards"
a86c7f72 924 select CEVT_R4K
ea8c64ac 925 select ARCH_HAS_PHYS_TO_DMA
1753d50c 926 select HAVE_RAPIDIO
d4a451d5 927 select PHYS_ADDR_T_64BIT
a86c7f72
DD
928 select SYS_SUPPORTS_64BIT_KERNEL
929 select SYS_SUPPORTS_BIG_ENDIAN
f65aad41 930 select EDAC_SUPPORT
b01aec9b 931 select EDAC_ATOMIC_SCRUB
73569d87
DD
932 select SYS_SUPPORTS_LITTLE_ENDIAN
933 select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
a86c7f72 934 select SYS_HAS_EARLY_PRINTK
5e683389 935 select SYS_HAS_CPU_CAVIUM_OCTEON
eb01d42a 936 select HAVE_PCI
78bdbbac
MY
937 select HAVE_PLAT_DELAY
938 select HAVE_PLAT_FW_INIT_CMDLINE
939 select HAVE_PLAT_MEMCPY
f00e001e 940 select ZONE_DMA32
d30a2b47 941 select GPIOLIB
6e511163
DD
942 select USE_OF
943 select ARCH_SPARSEMEM_ENABLE
944 select SYS_SUPPORTS_SMP
7820b84b
DD
945 select NR_CPUS_DEFAULT_64
946 select MIPS_NR_CPU_NR_MAP_1024
e326479f 947 select BUILTIN_DTB
f766b28a 948 select MTD
8c1e6b14 949 select MTD_COMPLEX_MAPPINGS
09230cbc 950 select SWIOTLB
3ff72be4 951 select SYS_SUPPORTS_RELOCATABLE
a86c7f72
DD
952 help
953 This option supports all of the Octeon reference boards from Cavium
954 Networks. It builds a kernel that dynamically determines the Octeon
955 CPU type and supports all known board reference implementations.
956 Some of the supported boards are:
957 EBT3000
958 EBH3000
959 EBH3100
960 Thunder
961 Kodama
962 Hikari
963 Say Y here for most Octeon reference boards.
964
5e83d430 965endchoice
1da177e4 966
e8c7c482 967source "arch/mips/alchemy/Kconfig"
3b12308f 968source "arch/mips/ath25/Kconfig"
d4a67d9d 969source "arch/mips/ath79/Kconfig"
a656ffcb 970source "arch/mips/bcm47xx/Kconfig"
e7300d04 971source "arch/mips/bcm63xx/Kconfig"
8945e37e 972source "arch/mips/bmips/Kconfig"
eed0eabd 973source "arch/mips/generic/Kconfig"
a103e9b9 974source "arch/mips/ingenic/Kconfig"
5e83d430 975source "arch/mips/jazz/Kconfig"
8ec6d935 976source "arch/mips/lantiq/Kconfig"
2572f00d 977source "arch/mips/pic32/Kconfig"
ae2b5bb6 978source "arch/mips/ralink/Kconfig"
29c48699 979source "arch/mips/sgi-ip27/Kconfig"
38b18f72 980source "arch/mips/sibyte/Kconfig"
22b1d707 981source "arch/mips/txx9/Kconfig"
a86c7f72 982source "arch/mips/cavium-octeon/Kconfig"
71e2f4dd 983source "arch/mips/loongson2ef/Kconfig"
30ad29bb
HC
984source "arch/mips/loongson32/Kconfig"
985source "arch/mips/loongson64/Kconfig"
38b18f72 986
5e83d430
RB
987endmenu
988
3c9ee7ef
AM
989config GENERIC_HWEIGHT
990 bool
991 default y
992
1da177e4
LT
993config GENERIC_CALIBRATE_DELAY
994 bool
995 default y
996
ae1e9130 997config SCHED_OMIT_FRAME_POINTER
1cc89038
AN
998 bool
999 default y
1000
1da177e4
LT
1001#
1002# Select some configuration options automatically based on user selections.
1003#
0e2794b0 1004config FW_ARC
1da177e4 1005 bool
1da177e4 1006
61ed242d
RB
1007config ARCH_MAY_HAVE_PC_FDC
1008 bool
1009
9267a30d
MSJ
1010config BOOT_RAW
1011 bool
1012
217dd11e
RB
1013config CEVT_BCM1480
1014 bool
1015
6457d9fc
YY
1016config CEVT_DS1287
1017 bool
1018
1097c6ac
YY
1019config CEVT_GT641XX
1020 bool
1021
42f77542
RB
1022config CEVT_R4K
1023 bool
1024
217dd11e
RB
1025config CEVT_SB1250
1026 bool
1027
229f773e
AN
1028config CEVT_TXX9
1029 bool
1030
217dd11e
RB
1031config CSRC_BCM1480
1032 bool
1033
4247417d
YY
1034config CSRC_IOASIC
1035 bool
1036
940f6b48 1037config CSRC_R4K
38586428 1038 select CLOCKSOURCE_WATCHDOG if CPU_FREQ
940f6b48
RB
1039 bool
1040
217dd11e
RB
1041config CSRC_SB1250
1042 bool
1043
a7f4df4e
AS
1044config MIPS_CLOCK_VSYSCALL
1045 def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1046
a9aec7fe 1047config GPIO_TXX9
d30a2b47 1048 select GPIOLIB
a9aec7fe
AN
1049 bool
1050
0e2794b0 1051config FW_CFE
df78b5c8
AJ
1052 bool
1053
40e084a5 1054config ARCH_SUPPORTS_UPROBES
f5748b8c 1055 def_bool y
40e084a5 1056
4ce588cd
RB
1057config DMA_NONCOHERENT
1058 bool
db91427b
CH
1059 #
1060 # MIPS allows mixing "slightly different" Cacheability and Coherency
1061 # Attribute bits. It is believed that the uncached access through
1062 # KSEG1 and the implementation specific "uncached accelerated" used
1063 # by pgprot_writcombine can be mixed, and the latter sometimes provides
1064 # significant advantages.
1065 #
6be87d61 1066 select ARCH_HAS_SETUP_DMA_OPS
419e2f18 1067 select ARCH_HAS_DMA_WRITE_COMBINE
fa7e2247 1068 select ARCH_HAS_DMA_PREP_COHERENT
e0b7fd12 1069 select ARCH_HAS_SYNC_DMA_FOR_CPU
f8c55dc6 1070 select ARCH_HAS_SYNC_DMA_FOR_DEVICE
fa7e2247 1071 select ARCH_HAS_DMA_SET_UNCACHED
34dc0ea6 1072 select DMA_NONCOHERENT_MMAP
34dc0ea6 1073 select NEED_DMA_MAP_STATE
4ce588cd 1074
36a88530 1075config SYS_HAS_EARLY_PRINTK
1da177e4 1076 bool
1da177e4 1077
1b2bc75c 1078config SYS_SUPPORTS_HOTPLUG_CPU
dbb74540 1079 bool
dbb74540 1080
1da177e4
LT
1081config MIPS_BONITO64
1082 bool
1da177e4
LT
1083
1084config MIPS_MSC
1085 bool
1da177e4 1086
39b8d525
RB
1087config SYNC_R4K
1088 bool
1089
ce816fa8 1090config NO_IOPORT_MAP
d388d685
MR
1091 def_bool n
1092
4e0748f5 1093config GENERIC_CSUM
18d84e2e 1094 def_bool CPU_NO_LOAD_STORE_LR
4e0748f5 1095
8313da30
RB
1096config GENERIC_ISA_DMA
1097 bool
1098 select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
a35bee8a 1099 select ISA_DMA_API
8313da30 1100
aa414dff
RB
1101config GENERIC_ISA_DMA_SUPPORT_BROKEN
1102 bool
8313da30 1103 select GENERIC_ISA_DMA
aa414dff 1104
78bdbbac
MY
1105config HAVE_PLAT_DELAY
1106 bool
1107
1108config HAVE_PLAT_FW_INIT_CMDLINE
1109 bool
1110
1111config HAVE_PLAT_MEMCPY
1112 bool
1113
a35bee8a
NK
1114config ISA_DMA_API
1115 bool
1116
8c530ea3
MR
1117config SYS_SUPPORTS_RELOCATABLE
1118 bool
1119 help
371a4151
EWI
1120 Selected if the platform supports relocating the kernel.
1121 The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
1122 to allow access to command line and entropy sources.
8c530ea3 1123
5e83d430 1124#
6b2aac42 1125# Endianness selection. Sufficiently obscure so many users don't know what to
5e83d430
RB
1126# answer,so we try hard to limit the available choices. Also the use of a
1127# choice statement should be more obvious to the user.
1128#
1129choice
6b2aac42 1130 prompt "Endianness selection"
1da177e4
LT
1131 help
1132 Some MIPS machines can be configured for either little or big endian
5e83d430 1133 byte order. These modes require different kernels and a different
3cb2fccc 1134 Linux distribution. In general there is one preferred byteorder for a
5e83d430 1135 particular system but some systems are just as commonly used in the
3dde6ad8 1136 one or the other endianness.
5e83d430
RB
1137
1138config CPU_BIG_ENDIAN
1139 bool "Big endian"
1140 depends on SYS_SUPPORTS_BIG_ENDIAN
1141
1142config CPU_LITTLE_ENDIAN
1143 bool "Little endian"
1144 depends on SYS_SUPPORTS_LITTLE_ENDIAN
5e83d430
RB
1145
1146endchoice
1147
22b0763a
DD
1148config EXPORT_UASM
1149 bool
1150
2116245e
RB
1151config SYS_SUPPORTS_APM_EMULATION
1152 bool
1153
5e83d430
RB
1154config SYS_SUPPORTS_BIG_ENDIAN
1155 bool
1156
1157config SYS_SUPPORTS_LITTLE_ENDIAN
1158 bool
1da177e4 1159
aa1762f4
DD
1160config MIPS_HUGE_TLB_SUPPORT
1161 def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1162
8420fd00
AN
1163config IRQ_TXX9
1164 bool
1165
d5ab1a69
YY
1166config IRQ_GT641XX
1167 bool
1168
252161ec 1169config PCI_GT64XXX_PCI0
1da177e4 1170 bool
1da177e4 1171
a57140e9
TB
1172config PCI_XTALK_BRIDGE
1173 bool
1174
9267a30d
MSJ
1175config NO_EXCEPT_FILL
1176 bool
1177
a7e07b1a
MC
1178config MIPS_SPRAM
1179 bool
1180
1da177e4
LT
1181config SWAP_IO_SPACE
1182 bool
1183
e2defae5
TB
1184config SGI_HAS_INDYDOG
1185 bool
1186
5b438c44
TB
1187config SGI_HAS_HAL2
1188 bool
1189
e2defae5
TB
1190config SGI_HAS_SEEQ
1191 bool
1192
1193config SGI_HAS_WD93
1194 bool
1195
1196config SGI_HAS_ZILOG
1197 bool
1198
1199config SGI_HAS_I8042
1200 bool
1201
1202config DEFAULT_SGI_PARTITION
1203 bool
1204
0e2794b0 1205config FW_ARC32
5e83d430
RB
1206 bool
1207
aaa9fad3 1208config FW_SNIPROM
231a35d3
TB
1209 bool
1210
1da177e4
LT
1211config BOOT_ELF32
1212 bool
1da177e4 1213
930beb5a
FF
1214config MIPS_L1_CACHE_SHIFT_4
1215 bool
1216
1217config MIPS_L1_CACHE_SHIFT_5
1218 bool
1219
1220config MIPS_L1_CACHE_SHIFT_6
1221 bool
1222
1223config MIPS_L1_CACHE_SHIFT_7
1224 bool
1225
1da177e4
LT
1226config MIPS_L1_CACHE_SHIFT
1227 int
a4c0201e 1228 default "7" if MIPS_L1_CACHE_SHIFT_7
5432eeb6
KC
1229 default "6" if MIPS_L1_CACHE_SHIFT_6
1230 default "5" if MIPS_L1_CACHE_SHIFT_5
1231 default "4" if MIPS_L1_CACHE_SHIFT_4
1da177e4
LT
1232 default "5"
1233
e9422427
TB
1234config ARC_CMDLINE_ONLY
1235 bool
1236
1da177e4
LT
1237config ARC_CONSOLE
1238 bool "ARC console support"
e2defae5 1239 depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
1da177e4
LT
1240
1241config ARC_MEMORY
1242 bool
1da177e4
LT
1243
1244config ARC_PROMLIB
1245 bool
1da177e4 1246
0e2794b0 1247config FW_ARC64
1da177e4 1248 bool
1da177e4
LT
1249
1250config BOOT_ELF64
1251 bool
1da177e4 1252
1da177e4
LT
1253menu "CPU selection"
1254
1255choice
1256 prompt "CPU type"
1257 default CPU_R4X00
1258
268a2d60 1259config CPU_LOONGSON64
caed1d1b 1260 bool "Loongson 64-bit CPU"
268a2d60 1261 depends on SYS_HAS_CPU_LOONGSON64
d3bc81be 1262 select ARCH_HAS_PHYS_TO_DMA
51522217
JY
1263 select CPU_MIPSR2
1264 select CPU_HAS_PREFETCH
0e476d91
HC
1265 select CPU_SUPPORTS_64BIT_KERNEL
1266 select CPU_SUPPORTS_HIGHMEM
1267 select CPU_SUPPORTS_HUGEPAGES
7507445b 1268 select CPU_SUPPORTS_MSA
51522217
JY
1269 select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
1270 select CPU_MIPSR2_IRQ_VI
0e476d91
HC
1271 select WEAK_ORDERING
1272 select WEAK_REORDERING_BEYOND_LLSC
7507445b 1273 select MIPS_ASID_BITS_VARIABLE
b2edcfc8 1274 select MIPS_PGD_C0_CONTEXT
17c99d94 1275 select MIPS_L1_CACHE_SHIFT_6
7f3b3c2b 1276 select MIPS_FP_SUPPORT
d30a2b47 1277 select GPIOLIB
09230cbc 1278 select SWIOTLB
0f78355c 1279 select HAVE_KVM
0e476d91 1280 help
31f12fdc
JH
1281 The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
1282 cores implements the MIPS64R2 instruction set with many extensions,
1283 including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
1284 3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
1285 Loongson-2E/2F is not covered here and will be removed in future.
caed1d1b
HC
1286
1287config LOONGSON3_ENHANCEMENT
1288 bool "New Loongson-3 CPU Enhancements"
1e820da3 1289 default n
268a2d60 1290 depends on CPU_LOONGSON64
1e820da3 1291 help
caed1d1b 1292 New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
1e820da3 1293 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
268a2d60 1294 FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
1e820da3
HC
1295 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
1296 Fast TLB refill support, etc.
1297
1298 This option enable those enhancements which are not probed at run
1299 time. If you want a generic kernel to run on all Loongson 3 machines,
1300 please say 'N' here. If you want a high-performance kernel to run on
caed1d1b 1301 new Loongson-3 machines only, please say 'Y' here.
1e820da3 1302
e02e07e3 1303config CPU_LOONGSON3_WORKAROUNDS
3f059a7e 1304 bool "Loongson-3 LLSC Workarounds"
e02e07e3 1305 default y if SMP
268a2d60 1306 depends on CPU_LOONGSON64
e02e07e3 1307 help
caed1d1b 1308 Loongson-3 processors have the llsc issues which require workarounds.
e02e07e3
HC
1309 Without workarounds the system may hang unexpectedly.
1310
3f059a7e 1311 Say Y, unless you know what you are doing.
e02e07e3 1312
ec7a9318
WX
1313config CPU_LOONGSON3_CPUCFG_EMULATION
1314 bool "Emulate the CPUCFG instruction on older Loongson cores"
1315 default y
1316 depends on CPU_LOONGSON64
1317 help
1318 Loongson-3A R4 and newer have the CPUCFG instruction available for
1319 userland to query CPU capabilities, much like CPUID on x86. This
1320 option provides emulation of the instruction on older Loongson
1321 cores, back to Loongson-3A1000.
1322
1323 If unsure, please say Y.
1324
3702bba5
WZ
1325config CPU_LOONGSON2E
1326 bool "Loongson 2E"
1327 depends on SYS_HAS_CPU_LOONGSON2E
268a2d60 1328 select CPU_LOONGSON2EF
2a21c730
FZ
1329 help
1330 The Loongson 2E processor implements the MIPS III instruction set
1331 with many extensions.
1332
25985edc 1333 It has an internal FPGA northbridge, which is compatible to
6f7a251a
WZ
1334 bonito64.
1335
1336config CPU_LOONGSON2F
1337 bool "Loongson 2F"
1338 depends on SYS_HAS_CPU_LOONGSON2F
268a2d60 1339 select CPU_LOONGSON2EF
6f7a251a
WZ
1340 help
1341 The Loongson 2F processor implements the MIPS III instruction set
1342 with many extensions.
1343
1344 Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
1345 have a similar programming interface with FPGA northbridge used in
1346 Loongson2E.
1347
ca585cf9
KC
1348config CPU_LOONGSON1B
1349 bool "Loongson 1B"
1350 depends on SYS_HAS_CPU_LOONGSON1B
b2afb64c 1351 select CPU_LOONGSON32
9ec88b60 1352 select LEDS_GPIO_REGISTER
ca585cf9
KC
1353 help
1354 The Loongson 1B is a 32-bit SoC, which implements the MIPS32
968dc5a0
XZ
1355 Release 1 instruction set and part of the MIPS32 Release 2
1356 instruction set.
ca585cf9 1357
12e3280b
YL
1358config CPU_LOONGSON1C
1359 bool "Loongson 1C"
1360 depends on SYS_HAS_CPU_LOONGSON1C
b2afb64c 1361 select CPU_LOONGSON32
12e3280b
YL
1362 select LEDS_GPIO_REGISTER
1363 help
1364 The Loongson 1C is a 32-bit SoC, which implements the MIPS32
968dc5a0
XZ
1365 Release 1 instruction set and part of the MIPS32 Release 2
1366 instruction set.
12e3280b 1367
6e760c8d
RB
1368config CPU_MIPS32_R1
1369 bool "MIPS32 Release 1"
7cf8053b 1370 depends on SYS_HAS_CPU_MIPS32_R1
6e760c8d 1371 select CPU_HAS_PREFETCH
797798c1 1372 select CPU_SUPPORTS_32BIT_KERNEL
ec28f306 1373 select CPU_SUPPORTS_HIGHMEM
1e5f1caa 1374 help
5e83d430 1375 Choose this option to build a kernel for release 1 or later of the
1e5f1caa
RB
1376 MIPS32 architecture. Most modern embedded systems with a 32-bit
1377 MIPS processor are based on a MIPS32 processor. If you know the
1378 specific type of processor in your system, choose those that one
1379 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
1380 Release 2 of the MIPS32 architecture is available since several
1381 years so chances are you even have a MIPS32 Release 2 processor
1382 in which case you should choose CPU_MIPS32_R2 instead for better
1383 performance.
1384
1385config CPU_MIPS32_R2
1386 bool "MIPS32 Release 2"
7cf8053b 1387 depends on SYS_HAS_CPU_MIPS32_R2
1e5f1caa 1388 select CPU_HAS_PREFETCH
797798c1 1389 select CPU_SUPPORTS_32BIT_KERNEL
ec28f306 1390 select CPU_SUPPORTS_HIGHMEM
a5e9a69e 1391 select CPU_SUPPORTS_MSA
2235a54d 1392 select HAVE_KVM
6e760c8d 1393 help
5e83d430 1394 Choose this option to build a kernel for release 2 or later of the
6e760c8d
RB
1395 MIPS32 architecture. Most modern embedded systems with a 32-bit
1396 MIPS processor are based on a MIPS32 processor. If you know the
1397 specific type of processor in your system, choose those that one
1398 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
1399
ab7c01fd
SS
1400config CPU_MIPS32_R5
1401 bool "MIPS32 Release 5"
1402 depends on SYS_HAS_CPU_MIPS32_R5
1403 select CPU_HAS_PREFETCH
1404 select CPU_SUPPORTS_32BIT_KERNEL
1405 select CPU_SUPPORTS_HIGHMEM
1406 select CPU_SUPPORTS_MSA
1407 select HAVE_KVM
1408 select MIPS_O32_FP64_SUPPORT
1409 help
1410 Choose this option to build a kernel for release 5 or later of the
1411 MIPS32 architecture. New MIPS processors, starting with the Warrior
1412 family, are based on a MIPS32r5 processor. If you own an older
1413 processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1414
7fd08ca5 1415config CPU_MIPS32_R6
674d10e2 1416 bool "MIPS32 Release 6"
7fd08ca5
LY
1417 depends on SYS_HAS_CPU_MIPS32_R6
1418 select CPU_HAS_PREFETCH
18d84e2e 1419 select CPU_NO_LOAD_STORE_LR
7fd08ca5
LY
1420 select CPU_SUPPORTS_32BIT_KERNEL
1421 select CPU_SUPPORTS_HIGHMEM
1422 select CPU_SUPPORTS_MSA
1423 select HAVE_KVM
1424 select MIPS_O32_FP64_SUPPORT
1425 help
1426 Choose this option to build a kernel for release 6 or later of the
1427 MIPS32 architecture. New MIPS processors, starting with the Warrior
1428 family, are based on a MIPS32r6 processor. If you own an older
1429 processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1430
6e760c8d
RB
1431config CPU_MIPS64_R1
1432 bool "MIPS64 Release 1"
7cf8053b 1433 depends on SYS_HAS_CPU_MIPS64_R1
797798c1 1434 select CPU_HAS_PREFETCH
ed5ba2fb
YY
1435 select CPU_SUPPORTS_32BIT_KERNEL
1436 select CPU_SUPPORTS_64BIT_KERNEL
ec28f306 1437 select CPU_SUPPORTS_HIGHMEM
9cffd154 1438 select CPU_SUPPORTS_HUGEPAGES
6e760c8d
RB
1439 help
1440 Choose this option to build a kernel for release 1 or later of the
1441 MIPS64 architecture. Many modern embedded systems with a 64-bit
1442 MIPS processor are based on a MIPS64 processor. If you know the
1443 specific type of processor in your system, choose those that one
1444 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
1e5f1caa
RB
1445 Release 2 of the MIPS64 architecture is available since several
1446 years so chances are you even have a MIPS64 Release 2 processor
1447 in which case you should choose CPU_MIPS64_R2 instead for better
1448 performance.
1449
1450config CPU_MIPS64_R2
1451 bool "MIPS64 Release 2"
7cf8053b 1452 depends on SYS_HAS_CPU_MIPS64_R2
797798c1 1453 select CPU_HAS_PREFETCH
1e5f1caa
RB
1454 select CPU_SUPPORTS_32BIT_KERNEL
1455 select CPU_SUPPORTS_64BIT_KERNEL
ec28f306 1456 select CPU_SUPPORTS_HIGHMEM
9cffd154 1457 select CPU_SUPPORTS_HUGEPAGES
a5e9a69e 1458 select CPU_SUPPORTS_MSA
40a2df49 1459 select HAVE_KVM
1e5f1caa
RB
1460 help
1461 Choose this option to build a kernel for release 2 or later of the
1462 MIPS64 architecture. Many modern embedded systems with a 64-bit
1463 MIPS processor are based on a MIPS64 processor. If you know the
1464 specific type of processor in your system, choose those that one
1465 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
1da177e4 1466
ab7c01fd
SS
1467config CPU_MIPS64_R5
1468 bool "MIPS64 Release 5"
1469 depends on SYS_HAS_CPU_MIPS64_R5
1470 select CPU_HAS_PREFETCH
1471 select CPU_SUPPORTS_32BIT_KERNEL
1472 select CPU_SUPPORTS_64BIT_KERNEL
1473 select CPU_SUPPORTS_HIGHMEM
1474 select CPU_SUPPORTS_HUGEPAGES
1475 select CPU_SUPPORTS_MSA
1476 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1477 select HAVE_KVM
1478 help
1479 Choose this option to build a kernel for release 5 or later of the
1480 MIPS64 architecture. This is a intermediate MIPS architecture
1481 release partly implementing release 6 features. Though there is no
1482 any hardware known to be based on this release.
1483
7fd08ca5 1484config CPU_MIPS64_R6
674d10e2 1485 bool "MIPS64 Release 6"
7fd08ca5
LY
1486 depends on SYS_HAS_CPU_MIPS64_R6
1487 select CPU_HAS_PREFETCH
18d84e2e 1488 select CPU_NO_LOAD_STORE_LR
7fd08ca5
LY
1489 select CPU_SUPPORTS_32BIT_KERNEL
1490 select CPU_SUPPORTS_64BIT_KERNEL
1491 select CPU_SUPPORTS_HIGHMEM
afd375dc 1492 select CPU_SUPPORTS_HUGEPAGES
7fd08ca5 1493 select CPU_SUPPORTS_MSA
2e6c7747 1494 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
40a2df49 1495 select HAVE_KVM
7fd08ca5
LY
1496 help
1497 Choose this option to build a kernel for release 6 or later of the
1498 MIPS64 architecture. New MIPS processors, starting with the Warrior
1499 family, are based on a MIPS64r6 processor. If you own an older
1500 processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
1501
281e3aea
SS
1502config CPU_P5600
1503 bool "MIPS Warrior P5600"
1504 depends on SYS_HAS_CPU_P5600
1505 select CPU_HAS_PREFETCH
1506 select CPU_SUPPORTS_32BIT_KERNEL
1507 select CPU_SUPPORTS_HIGHMEM
1508 select CPU_SUPPORTS_MSA
281e3aea
SS
1509 select CPU_SUPPORTS_CPUFREQ
1510 select CPU_MIPSR2_IRQ_VI
1511 select CPU_MIPSR2_IRQ_EI
1512 select HAVE_KVM
1513 select MIPS_O32_FP64_SUPPORT
1514 help
1515 Choose this option to build a kernel for MIPS Warrior P5600 CPU.
1516 It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
1517 MMU with two-levels TLB, UCA, MSA, MDU core level features and system
1518 level features like up to six P5600 calculation cores, CM2 with L2
1519 cache, IOCU/IOMMU (though might be unused depending on the system-
1520 specific IP core configuration), GIC, CPC, virtualisation module,
1521 eJTAG and PDtrace.
1522
1da177e4
LT
1523config CPU_R3000
1524 bool "R3000"
7cf8053b 1525 depends on SYS_HAS_CPU_R3000
f7062ddb 1526 select CPU_HAS_WB
54746829 1527 select CPU_R3K_TLB
ed5ba2fb 1528 select CPU_SUPPORTS_32BIT_KERNEL
797798c1 1529 select CPU_SUPPORTS_HIGHMEM
1da177e4
LT
1530 help
1531 Please make sure to pick the right CPU type. Linux/MIPS is not
1532 designed to be generic, i.e. Kernels compiled for R3000 CPUs will
1533 *not* work on R4000 machines and vice versa. However, since most
1534 of the supported machines have an R4000 (or similar) CPU, R4x00
1535 might be a safe bet. If the resulting kernel does not work,
1536 try to recompile with R3000.
1537
65ce6197
LK
1538config CPU_R4300
1539 bool "R4300"
1540 depends on SYS_HAS_CPU_R4300
1541 select CPU_SUPPORTS_32BIT_KERNEL
1542 select CPU_SUPPORTS_64BIT_KERNEL
65ce6197
LK
1543 help
1544 MIPS Technologies R4300-series processors.
1545
1da177e4
LT
1546config CPU_R4X00
1547 bool "R4x00"
7cf8053b 1548 depends on SYS_HAS_CPU_R4X00
ed5ba2fb
YY
1549 select CPU_SUPPORTS_32BIT_KERNEL
1550 select CPU_SUPPORTS_64BIT_KERNEL
970d032f 1551 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1552 help
1553 MIPS Technologies R4000-series processors other than 4300, including
1554 the R4000, R4400, R4600, and 4700.
1555
1556config CPU_TX49XX
1557 bool "R49XX"
7cf8053b 1558 depends on SYS_HAS_CPU_TX49XX
de862b48 1559 select CPU_HAS_PREFETCH
ed5ba2fb
YY
1560 select CPU_SUPPORTS_32BIT_KERNEL
1561 select CPU_SUPPORTS_64BIT_KERNEL
970d032f 1562 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1563
1564config CPU_R5000
1565 bool "R5000"
7cf8053b 1566 depends on SYS_HAS_CPU_R5000
ed5ba2fb
YY
1567 select CPU_SUPPORTS_32BIT_KERNEL
1568 select CPU_SUPPORTS_64BIT_KERNEL
970d032f 1569 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1570 help
1571 MIPS Technologies R5000-series processors other than the Nevada.
1572
542c1020
SK
1573config CPU_R5500
1574 bool "R5500"
1575 depends on SYS_HAS_CPU_R5500
542c1020
SK
1576 select CPU_SUPPORTS_32BIT_KERNEL
1577 select CPU_SUPPORTS_64BIT_KERNEL
9cffd154 1578 select CPU_SUPPORTS_HUGEPAGES
542c1020
SK
1579 help
1580 NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1581 instruction set.
1582
1da177e4
LT
1583config CPU_NEVADA
1584 bool "RM52xx"
7cf8053b 1585 depends on SYS_HAS_CPU_NEVADA
ed5ba2fb
YY
1586 select CPU_SUPPORTS_32BIT_KERNEL
1587 select CPU_SUPPORTS_64BIT_KERNEL
970d032f 1588 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1589 help
1590 QED / PMC-Sierra RM52xx-series ("Nevada") processors.
1591
1da177e4
LT
1592config CPU_R10000
1593 bool "R10000"
7cf8053b 1594 depends on SYS_HAS_CPU_R10000
5e83d430 1595 select CPU_HAS_PREFETCH
ed5ba2fb
YY
1596 select CPU_SUPPORTS_32BIT_KERNEL
1597 select CPU_SUPPORTS_64BIT_KERNEL
797798c1 1598 select CPU_SUPPORTS_HIGHMEM
970d032f 1599 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1600 help
1601 MIPS Technologies R10000-series processors.
1602
1603config CPU_RM7000
1604 bool "RM7000"
7cf8053b 1605 depends on SYS_HAS_CPU_RM7000
5e83d430 1606 select CPU_HAS_PREFETCH
ed5ba2fb
YY
1607 select CPU_SUPPORTS_32BIT_KERNEL
1608 select CPU_SUPPORTS_64BIT_KERNEL
797798c1 1609 select CPU_SUPPORTS_HIGHMEM
970d032f 1610 select CPU_SUPPORTS_HUGEPAGES
1da177e4
LT
1611
1612config CPU_SB1
1613 bool "SB1"
7cf8053b 1614 depends on SYS_HAS_CPU_SB1
ed5ba2fb
YY
1615 select CPU_SUPPORTS_32BIT_KERNEL
1616 select CPU_SUPPORTS_64BIT_KERNEL
797798c1 1617 select CPU_SUPPORTS_HIGHMEM
970d032f 1618 select CPU_SUPPORTS_HUGEPAGES
0004a9df 1619 select WEAK_ORDERING
1da177e4 1620
a86c7f72
DD
1621config CPU_CAVIUM_OCTEON
1622 bool "Cavium Octeon processor"
5e683389 1623 depends on SYS_HAS_CPU_CAVIUM_OCTEON
a86c7f72
DD
1624 select CPU_HAS_PREFETCH
1625 select CPU_SUPPORTS_64BIT_KERNEL
a86c7f72 1626 select WEAK_ORDERING
a86c7f72 1627 select CPU_SUPPORTS_HIGHMEM
9cffd154 1628 select CPU_SUPPORTS_HUGEPAGES
df115f3e
BH
1629 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1630 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
930beb5a 1631 select MIPS_L1_CACHE_SHIFT_7
0ae3abcd 1632 select HAVE_KVM
a86c7f72
DD
1633 help
1634 The Cavium Octeon processor is a highly integrated chip containing
1635 many ethernet hardware widgets for networking tasks. The processor
1636 can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1637 Full details can be found at http://www.caviumnetworks.com.
1638
cd746249
JG
1639config CPU_BMIPS
1640 bool "Broadcom BMIPS"
1641 depends on SYS_HAS_CPU_BMIPS
1642 select CPU_MIPS32
fe7f62c0 1643 select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
cd746249
JG
1644 select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1645 select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1646 select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1647 select CPU_SUPPORTS_32BIT_KERNEL
1648 select DMA_NONCOHERENT
67e38cf2 1649 select IRQ_MIPS_CPU
cd746249
JG
1650 select SWAP_IO_SPACE
1651 select WEAK_ORDERING
c1c0c461 1652 select CPU_SUPPORTS_HIGHMEM
69aaf9c8 1653 select CPU_HAS_PREFETCH
a8d709b0
MM
1654 select CPU_SUPPORTS_CPUFREQ
1655 select MIPS_EXTERNAL_TIMER
bf8bde41 1656 select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
c1c0c461 1657 help
fe7f62c0 1658 Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
c1c0c461 1659
1da177e4
LT
1660endchoice
1661
a6e18781
LY
1662config CPU_MIPS32_3_5_FEATURES
1663 bool "MIPS32 Release 3.5 Features"
1664 depends on SYS_HAS_CPU_MIPS32_R3_5
281e3aea
SS
1665 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
1666 CPU_P5600
a6e18781
LY
1667 help
1668 Choose this option to build a kernel for release 2 or later of the
1669 MIPS32 architecture including features from the 3.5 release such as
1670 support for Enhanced Virtual Addressing (EVA).
1671
1672config CPU_MIPS32_3_5_EVA
1673 bool "Enhanced Virtual Addressing (EVA)"
1674 depends on CPU_MIPS32_3_5_FEATURES
1675 select EVA
1676 default y
1677 help
1678 Choose this option if you want to enable the Enhanced Virtual
1679 Addressing (EVA) on your MIPS32 core (such as proAptiv).
1680 One of its primary benefits is an increase in the maximum size
1681 of lowmem (up to 3GB). If unsure, say 'N' here.
1682
c5b36783
SH
1683config CPU_MIPS32_R5_FEATURES
1684 bool "MIPS32 Release 5 Features"
1685 depends on SYS_HAS_CPU_MIPS32_R5
281e3aea 1686 depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
c5b36783
SH
1687 help
1688 Choose this option to build a kernel for release 2 or later of the
1689 MIPS32 architecture including features from release 5 such as
1690 support for Extended Physical Addressing (XPA).
1691
1692config CPU_MIPS32_R5_XPA
1693 bool "Extended Physical Addressing (XPA)"
1694 depends on CPU_MIPS32_R5_FEATURES
1695 depends on !EVA
1696 depends on !PAGE_SIZE_4KB
1697 depends on SYS_SUPPORTS_HIGHMEM
1698 select XPA
1699 select HIGHMEM
d4a451d5 1700 select PHYS_ADDR_T_64BIT
c5b36783
SH
1701 default n
1702 help
1703 Choose this option if you want to enable the Extended Physical
1704 Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1705 benefit is to increase physical addressing equal to or greater
1706 than 40 bits. Note that this has the side effect of turning on
1707 64-bit addressing which in turn makes the PTEs 64-bit in size.
1708 If unsure, say 'N' here.
1709
622844bf
WZ
1710if CPU_LOONGSON2F
1711config CPU_NOP_WORKAROUNDS
1712 bool
1713
1714config CPU_JUMP_WORKAROUNDS
1715 bool
1716
1717config CPU_LOONGSON2F_WORKAROUNDS
1718 bool "Loongson 2F Workarounds"
1719 default y
1720 select CPU_NOP_WORKAROUNDS
1721 select CPU_JUMP_WORKAROUNDS
1722 help
1723 Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1724 require workarounds. Without workarounds the system may hang
1725 unexpectedly. For more information please refer to the gas
1726 -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1727
1728 Loongson 2F03 and later have fixed these issues and no workarounds
1729 are needed. The workarounds have no significant side effect on them
1730 but may decrease the performance of the system so this option should
1731 be disabled unless the kernel is intended to be run on 2F01 or 2F02
1732 systems.
1733
1734 If unsure, please say Y.
1735endif # CPU_LOONGSON2F
1736
1b93b3c3
WZ
1737config SYS_SUPPORTS_ZBOOT
1738 bool
1739 select HAVE_KERNEL_GZIP
1740 select HAVE_KERNEL_BZIP2
31c4867d 1741 select HAVE_KERNEL_LZ4
1b93b3c3 1742 select HAVE_KERNEL_LZMA
fe1d45e0 1743 select HAVE_KERNEL_LZO
4e23eb63 1744 select HAVE_KERNEL_XZ
a510b616 1745 select HAVE_KERNEL_ZSTD
1b93b3c3
WZ
1746
1747config SYS_SUPPORTS_ZBOOT_UART16550
1748 bool
1749 select SYS_SUPPORTS_ZBOOT
1750
dbb98314
AB
1751config SYS_SUPPORTS_ZBOOT_UART_PROM
1752 bool
1753 select SYS_SUPPORTS_ZBOOT
1754
268a2d60 1755config CPU_LOONGSON2EF
3702bba5
WZ
1756 bool
1757 select CPU_SUPPORTS_32BIT_KERNEL
1758 select CPU_SUPPORTS_64BIT_KERNEL
1759 select CPU_SUPPORTS_HIGHMEM
970d032f 1760 select CPU_SUPPORTS_HUGEPAGES
3702bba5 1761
b2afb64c 1762config CPU_LOONGSON32
ca585cf9
KC
1763 bool
1764 select CPU_MIPS32
7e280f6b 1765 select CPU_MIPSR2
ca585cf9
KC
1766 select CPU_HAS_PREFETCH
1767 select CPU_SUPPORTS_32BIT_KERNEL
1768 select CPU_SUPPORTS_HIGHMEM
f29ad10d 1769 select CPU_SUPPORTS_CPUFREQ
ca585cf9 1770
fe7f62c0 1771config CPU_BMIPS32_3300
04fa8bf7 1772 select SMP_UP if SMP
1bbb6c1b 1773 bool
cd746249
JG
1774
1775config CPU_BMIPS4350
1776 bool
1777 select SYS_SUPPORTS_SMP
1778 select SYS_SUPPORTS_HOTPLUG_CPU
1779
1780config CPU_BMIPS4380
1781 bool
bbf2ba67 1782 select MIPS_L1_CACHE_SHIFT_6
cd746249
JG
1783 select SYS_SUPPORTS_SMP
1784 select SYS_SUPPORTS_HOTPLUG_CPU
b4720809 1785 select CPU_HAS_RIXI
cd746249
JG
1786
1787config CPU_BMIPS5000
1788 bool
cd746249 1789 select MIPS_CPU_SCACHE
bbf2ba67 1790 select MIPS_L1_CACHE_SHIFT_7
cd746249
JG
1791 select SYS_SUPPORTS_SMP
1792 select SYS_SUPPORTS_HOTPLUG_CPU
b4720809 1793 select CPU_HAS_RIXI
1bbb6c1b 1794
268a2d60 1795config SYS_HAS_CPU_LOONGSON64
0e476d91
HC
1796 bool
1797 select CPU_SUPPORTS_CPUFREQ
b2edcfc8 1798 select CPU_HAS_RIXI
0e476d91 1799
3702bba5 1800config SYS_HAS_CPU_LOONGSON2E
2a21c730
FZ
1801 bool
1802
6f7a251a
WZ
1803config SYS_HAS_CPU_LOONGSON2F
1804 bool
55045ff5
WZ
1805 select CPU_SUPPORTS_CPUFREQ
1806 select CPU_SUPPORTS_ADDRWINCFG if 64BIT
6f7a251a 1807
ca585cf9
KC
1808config SYS_HAS_CPU_LOONGSON1B
1809 bool
1810
12e3280b
YL
1811config SYS_HAS_CPU_LOONGSON1C
1812 bool
1813
7cf8053b
RB
1814config SYS_HAS_CPU_MIPS32_R1
1815 bool
1816
1817config SYS_HAS_CPU_MIPS32_R2
1818 bool
1819
a6e18781
LY
1820config SYS_HAS_CPU_MIPS32_R3_5
1821 bool
1822
c5b36783
SH
1823config SYS_HAS_CPU_MIPS32_R5
1824 bool
1825
7fd08ca5
LY
1826config SYS_HAS_CPU_MIPS32_R6
1827 bool
1828
7cf8053b
RB
1829config SYS_HAS_CPU_MIPS64_R1
1830 bool
1831
1832config SYS_HAS_CPU_MIPS64_R2
1833 bool
1834
fd4eb90b
LB
1835config SYS_HAS_CPU_MIPS64_R5
1836 bool
fd4eb90b 1837
7fd08ca5
LY
1838config SYS_HAS_CPU_MIPS64_R6
1839 bool
1840
281e3aea
SS
1841config SYS_HAS_CPU_P5600
1842 bool
281e3aea 1843
7cf8053b
RB
1844config SYS_HAS_CPU_R3000
1845 bool
1846
65ce6197
LK
1847config SYS_HAS_CPU_R4300
1848 bool
1849
7cf8053b
RB
1850config SYS_HAS_CPU_R4X00
1851 bool
1852
1853config SYS_HAS_CPU_TX49XX
1854 bool
1855
1856config SYS_HAS_CPU_R5000
1857 bool
1858
542c1020
SK
1859config SYS_HAS_CPU_R5500
1860 bool
1861
7cf8053b
RB
1862config SYS_HAS_CPU_NEVADA
1863 bool
1864
7cf8053b
RB
1865config SYS_HAS_CPU_R10000
1866 bool
1867
1868config SYS_HAS_CPU_RM7000
1869 bool
1870
7cf8053b
RB
1871config SYS_HAS_CPU_SB1
1872 bool
1873
5e683389
DD
1874config SYS_HAS_CPU_CAVIUM_OCTEON
1875 bool
1876
cd746249 1877config SYS_HAS_CPU_BMIPS
c1c0c461
KC
1878 bool
1879
fe7f62c0 1880config SYS_HAS_CPU_BMIPS32_3300
c1c0c461 1881 bool
cd746249 1882 select SYS_HAS_CPU_BMIPS
c1c0c461
KC
1883
1884config SYS_HAS_CPU_BMIPS4350
1885 bool
cd746249 1886 select SYS_HAS_CPU_BMIPS
c1c0c461
KC
1887
1888config SYS_HAS_CPU_BMIPS4380
1889 bool
cd746249 1890 select SYS_HAS_CPU_BMIPS
c1c0c461
KC
1891
1892config SYS_HAS_CPU_BMIPS5000
1893 bool
cd746249 1894 select SYS_HAS_CPU_BMIPS
c1c0c461 1895
17099b11
RB
1896#
1897# CPU may reorder R->R, R->W, W->R, W->W
1898# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
1899#
0004a9df
RB
1900config WEAK_ORDERING
1901 bool
17099b11
RB
1902
1903#
1904# CPU may reorder reads and writes beyond LL/SC
1905# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
1906#
1907config WEAK_REORDERING_BEYOND_LLSC
1908 bool
5e83d430
RB
1909endmenu
1910
1911#
c09b47d8 1912# These two indicate any level of the MIPS32 and MIPS64 architecture
5e83d430
RB
1913#
1914config CPU_MIPS32
1915 bool
ab7c01fd 1916 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
281e3aea 1917 CPU_MIPS32_R6 || CPU_P5600
5e83d430
RB
1918
1919config CPU_MIPS64
1920 bool
ab7c01fd 1921 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
5a4fa44f 1922 CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
5e83d430
RB
1923
1924#
57eeaced 1925# These indicate the revision of the architecture
5e83d430
RB
1926#
1927config CPU_MIPSR1
1928 bool
1929 default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
1930
1931config CPU_MIPSR2
1932 bool
a86c7f72 1933 default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
8256b17e 1934 select CPU_HAS_RIXI
ba9196d2 1935 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
a7e07b1a 1936 select MIPS_SPRAM
5e83d430 1937
ab7c01fd
SS
1938config CPU_MIPSR5
1939 bool
281e3aea 1940 default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
ab7c01fd
SS
1941 select CPU_HAS_RIXI
1942 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1943 select MIPS_SPRAM
1944
7fd08ca5
LY
1945config CPU_MIPSR6
1946 bool
1947 default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
8256b17e 1948 select CPU_HAS_RIXI
ba9196d2 1949 select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
87321fdd 1950 select HAVE_ARCH_BITREVERSE
2db003a5 1951 select MIPS_ASID_BITS_VARIABLE
4a5dc51e 1952 select MIPS_CRC_SUPPORT
a7e07b1a 1953 select MIPS_SPRAM
5e83d430 1954
57eeaced
PB
1955config TARGET_ISA_REV
1956 int
1957 default 1 if CPU_MIPSR1
1958 default 2 if CPU_MIPSR2
ab7c01fd 1959 default 5 if CPU_MIPSR5
57eeaced
PB
1960 default 6 if CPU_MIPSR6
1961 default 0
1962 help
1963 Reflects the ISA revision being targeted by the kernel build. This
1964 is effectively the Kconfig equivalent of MIPS_ISA_REV.
1965
a6e18781
LY
1966config EVA
1967 bool
1968
c5b36783
SH
1969config XPA
1970 bool
1971
5e83d430
RB
1972config SYS_SUPPORTS_32BIT_KERNEL
1973 bool
1974config SYS_SUPPORTS_64BIT_KERNEL
1975 bool
1976config CPU_SUPPORTS_32BIT_KERNEL
1977 bool
1978config CPU_SUPPORTS_64BIT_KERNEL
1979 bool
55045ff5
WZ
1980config CPU_SUPPORTS_CPUFREQ
1981 bool
1982config CPU_SUPPORTS_ADDRWINCFG
1983 bool
9cffd154
DD
1984config CPU_SUPPORTS_HUGEPAGES
1985 bool
a670c82d 1986 depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
82622284
DD
1987config MIPS_PGD_C0_CONTEXT
1988 bool
c6972fb9 1989 depends on 64BIT
95b8a5e0 1990 default y if (CPU_MIPSR2 || CPU_MIPSR6)
5e83d430 1991
8192c9ea
DD
1992#
1993# Set to y for ptrace access to watch registers.
1994#
1995config HARDWARE_WATCHPOINTS
371a4151
EWI
1996 bool
1997 default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
8192c9ea 1998
5e83d430
RB
1999menu "Kernel type"
2000
2001choice
5e83d430
RB
2002 prompt "Kernel code model"
2003 help
2004 You should only select this option if you have a workload that
2005 actually benefits from 64-bit processing or if your machine has
2006 large memory. You will only be presented a single option in this
2007 menu if your system does not support both 32-bit and 64-bit kernels.
2008
2009config 32BIT
2010 bool "32-bit kernel"
2011 depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
2012 select TRAD_SIGNALS
2013 help
2014 Select this option if you want to build a 32-bit kernel.
f17c4ca3 2015
5e83d430
RB
2016config 64BIT
2017 bool "64-bit kernel"
2018 depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
2019 help
2020 Select this option if you want to build a 64-bit kernel.
2021
2022endchoice
2023
1e321fa9
LY
2024config MIPS_VA_BITS_48
2025 bool "48 bits virtual memory"
2026 depends on 64BIT
2027 help
3377e227
AB
2028 Support a maximum at least 48 bits of application virtual
2029 memory. Default is 40 bits or less, depending on the CPU.
2030 For page sizes 16k and above, this option results in a small
2031 memory overhead for page tables. For 4k page size, a fourth
2032 level of page tables is added which imposes both a memory
2033 overhead as well as slower TLB fault handling.
2034
1e321fa9
LY
2035 If unsure, say N.
2036
79876cc1
YS
2037config ZBOOT_LOAD_ADDRESS
2038 hex "Compressed kernel load address"
2039 default 0xffffffff80400000 if BCM47XX
2040 default 0x0
2041 depends on SYS_SUPPORTS_ZBOOT
2042 help
2043 The address to load compressed kernel, aka vmlinuz.
2044
2045 This is only used if non-zero.
2046
1da177e4
LT
2047choice
2048 prompt "Kernel page size"
2049 default PAGE_SIZE_4KB
2050
2051config PAGE_SIZE_4KB
2052 bool "4kB"
268a2d60 2053 depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
1da177e4 2054 help
371a4151
EWI
2055 This option select the standard 4kB Linux page size. On some
2056 R3000-family processors this is the only available page size. Using
2057 4kB page size will minimize memory consumption and is therefore
2058 recommended for low memory systems.
1da177e4
LT
2059
2060config PAGE_SIZE_8KB
2061 bool "8kB"
c2aeaaea 2062 depends on CPU_CAVIUM_OCTEON
1e321fa9 2063 depends on !MIPS_VA_BITS_48
1da177e4
LT
2064 help
2065 Using 8kB page size will result in higher performance kernel at
2066 the price of higher memory consumption. This option is available
c2aeaaea
PB
2067 only on cnMIPS processors. Note that you will need a suitable Linux
2068 distribution to support this.
1da177e4
LT
2069
2070config PAGE_SIZE_16KB
2071 bool "16kB"
455481fc 2072 depends on !CPU_R3000
1da177e4
LT
2073 help
2074 Using 16kB page size will result in higher performance kernel at
2075 the price of higher memory consumption. This option is available on
714bfad6
RB
2076 all non-R3000 family processors. Note that you will need a suitable
2077 Linux distribution to support this.
1da177e4 2078
c52399be
RB
2079config PAGE_SIZE_32KB
2080 bool "32kB"
2081 depends on CPU_CAVIUM_OCTEON
1e321fa9 2082 depends on !MIPS_VA_BITS_48
c52399be
RB
2083 help
2084 Using 32kB page size will result in higher performance kernel at
2085 the price of higher memory consumption. This option is available
2086 only on cnMIPS cores. Note that you will need a suitable Linux
2087 distribution to support this.
2088
1da177e4
LT
2089config PAGE_SIZE_64KB
2090 bool "64kB"
455481fc 2091 depends on !CPU_R3000
1da177e4
LT
2092 help
2093 Using 64kB page size will result in higher performance kernel at
2094 the price of higher memory consumption. This option is available on
2095 all non-R3000 family processor. Not that at the time of this
714bfad6 2096 writing this option is still high experimental.
1da177e4
LT
2097
2098endchoice
2099
0192445c 2100config ARCH_FORCE_MAX_ORDER
c9bace7c 2101 int "Maximum zone order"
23baf831 2102 default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
23baf831 2103 default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
23baf831 2104 default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
23baf831 2105 default "10"
c9bace7c
DD
2106 help
2107 The kernel memory allocator divides physically contiguous memory
2108 blocks into "zones", where each zone is a power of two number of
2109 pages. This option selects the largest power of two that the kernel
2110 keeps in the memory allocator. If you need to allocate very large
2111 blocks of physically contiguous memory, then you may need to
2112 increase this value.
2113
c9bace7c
DD
2114 The page size is not necessarily 4KB. Keep this in mind
2115 when choosing a value for this option.
2116
1da177e4
LT
2117config BOARD_SCACHE
2118 bool
2119
2120config IP22_CPU_SCACHE
2121 bool
2122 select BOARD_SCACHE
2123
9318c51a
CD
2124#
2125# Support for a MIPS32 / MIPS64 style S-caches
2126#
2127config MIPS_CPU_SCACHE
2128 bool
2129 select BOARD_SCACHE
2130
1da177e4
LT
2131config R5000_CPU_SCACHE
2132 bool
2133 select BOARD_SCACHE
2134
2135config RM7000_CPU_SCACHE
2136 bool
2137 select BOARD_SCACHE
2138
2139config SIBYTE_DMA_PAGEOPS
2140 bool "Use DMA to clear/copy pages"
2141 depends on CPU_SB1
2142 help
2143 Instead of using the CPU to zero and copy pages, use a Data Mover
2144 channel. These DMA channels are otherwise unused by the standard
2145 SiByte Linux port. Seems to give a small performance benefit.
2146
2147config CPU_HAS_PREFETCH
c8094b53 2148 bool
1da177e4 2149
3165c846
FF
2150config CPU_GENERIC_DUMP_TLB
2151 bool
455481fc 2152 default y if !CPU_R3000
3165c846 2153
c92e47e5 2154config MIPS_FP_SUPPORT
183b40f9
PB
2155 bool "Floating Point support" if EXPERT
2156 default y
2157 help
2158 Select y to include support for floating point in the kernel
2159 including initialization of FPU hardware, FP context save & restore
2160 and emulation of an FPU where necessary. Without this support any
2161 userland program attempting to use floating point instructions will
2162 receive a SIGILL.
2163
2164 If you know that your userland will not attempt to use floating point
2165 instructions then you can say n here to shrink the kernel a little.
2166
2167 If unsure, say y.
c92e47e5 2168
97f7dcbf
PB
2169config CPU_R2300_FPU
2170 bool
c92e47e5 2171 depends on MIPS_FP_SUPPORT
455481fc 2172 default y if CPU_R3000
97f7dcbf 2173
54746829
PB
2174config CPU_R3K_TLB
2175 bool
2176
91405eb6
FF
2177config CPU_R4K_FPU
2178 bool
c92e47e5 2179 depends on MIPS_FP_SUPPORT
97f7dcbf 2180 default y if !CPU_R2300_FPU
91405eb6 2181
62cedc4f
FF
2182config CPU_R4K_CACHE_TLB
2183 bool
54746829 2184 default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
62cedc4f 2185
59d6ab86 2186config MIPS_MT_SMP
a92b7f87 2187 bool "MIPS MT SMP support (1 TC on each available VPE)"
5cbf9688 2188 default y
527f1028 2189 depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
f7062ddb 2190 select CPU_MIPSR2_IRQ_VI
d725cf38 2191 select CPU_MIPSR2_IRQ_EI
c080faa5 2192 select SYNC_R4K
f41ae0b2 2193 select MIPS_MT
41c594ab 2194 select SMP
87353d8a 2195 select SMP_UP
c080faa5
SH
2196 select SYS_SUPPORTS_SMP
2197 select SYS_SUPPORTS_SCHED_SMT
399aaa25 2198 select MIPS_PERF_SHARED_TC_COUNTERS
f41ae0b2 2199 help
c080faa5
SH
2200 This is a kernel model which is known as SMVP. This is supported
2201 on cores with the MT ASE and uses the available VPEs to implement
2202 virtual processors which supports SMP. This is equivalent to the
2203 Intel Hyperthreading feature. For further information go to
2204 <http://www.imgtec.com/mips/mips-multithreading.asp>.
41c594ab 2205
f41ae0b2
RB
2206config MIPS_MT
2207 bool
2208
0ab7aefc
RB
2209config SCHED_SMT
2210 bool "SMT (multithreading) scheduler support"
2211 depends on SYS_SUPPORTS_SCHED_SMT
2212 default n
2213 help
2214 SMT scheduler support improves the CPU scheduler's decision making
2215 when dealing with MIPS MT enabled cores at a cost of slightly
2216 increased overhead in some places. If unsure say N here.
2217
2218config SYS_SUPPORTS_SCHED_SMT
2219 bool
2220
f41ae0b2
RB
2221config SYS_SUPPORTS_MULTITHREADING
2222 bool
2223
f088fc84
RB
2224config MIPS_MT_FPAFF
2225 bool "Dynamic FPU affinity for FP-intensive threads"
f088fc84 2226 default y
b633648c 2227 depends on MIPS_MT_SMP
07cc0c9e 2228
b0a668fb
LY
2229config MIPSR2_TO_R6_EMULATOR
2230 bool "MIPS R2-to-R6 emulator"
9eaa9a82 2231 depends on CPU_MIPSR6
c92e47e5 2232 depends on MIPS_FP_SUPPORT
b0a668fb
LY
2233 default y
2234 help
2235 Choose this option if you want to run non-R6 MIPS userland code.
2236 Even if you say 'Y' here, the emulator will still be disabled by
07edf0d4 2237 default. You can enable it using the 'mipsr2emu' kernel option.
b0a668fb
LY
2238 The only reason this is a build-time option is to save ~14K from the
2239 final kernel image.
b0a668fb 2240
f35764e7
JH
2241config SYS_SUPPORTS_VPE_LOADER
2242 bool
2243 depends on SYS_SUPPORTS_MULTITHREADING
2244 help
2245 Indicates that the platform supports the VPE loader, and provides
2246 physical_memsize.
2247
07cc0c9e
RB
2248config MIPS_VPE_LOADER
2249 bool "VPE loader support."
f35764e7 2250 depends on SYS_SUPPORTS_VPE_LOADER && MODULES
07cc0c9e
RB
2251 select CPU_MIPSR2_IRQ_VI
2252 select CPU_MIPSR2_IRQ_EI
07cc0c9e
RB
2253 select MIPS_MT
2254 help
2255 Includes a loader for loading an elf relocatable object
2256 onto another VPE and running it.
f088fc84 2257
1a2a6d7e
DCZ
2258config MIPS_VPE_LOADER_MT
2259 bool
2260 default "y"
7fb6f7b0 2261 depends on MIPS_VPE_LOADER
1a2a6d7e 2262
e01402b1
RB
2263config MIPS_VPE_LOADER_TOM
2264 bool "Load VPE program into memory hidden from linux"
2265 depends on MIPS_VPE_LOADER
2266 default y
2267 help
2268 The loader can use memory that is present but has been hidden from
2269 Linux using the kernel command line option "mem=xxMB". It's up to
2270 you to ensure the amount you put in the option and the space your
2271 program requires is less or equal to the amount physically present.
2272
e01402b1 2273config MIPS_VPE_APSP_API
5e83d430
RB
2274 bool "Enable support for AP/SP API (RTLX)"
2275 depends on MIPS_VPE_LOADER
e01402b1 2276
2c973ef0
DCZ
2277config MIPS_VPE_APSP_API_MT
2278 bool
2279 default "y"
7fb6f7b0 2280 depends on MIPS_VPE_APSP_API
5cac93b3 2281
0ee958e1
PB
2282config MIPS_CPS
2283 bool "MIPS Coherent Processing System support"
5a3e7c02 2284 depends on SYS_SUPPORTS_MIPS_CPS
0ee958e1 2285 select MIPS_CM
1d8f1f5a 2286 select MIPS_CPS_PM if HOTPLUG_CPU
0ee958e1
PB
2287 select SMP
2288 select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
1d8f1f5a 2289 select SYS_SUPPORTS_HOTPLUG_CPU
c8b7712c 2290 select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
0ee958e1
PB
2291 select SYS_SUPPORTS_SMP
2292 select WEAK_ORDERING
d8d3276b 2293 select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
0ee958e1
PB
2294 help
2295 Select this if you wish to run an SMP kernel across multiple cores
2296 within a MIPS Coherent Processing System. When this option is
2297 enabled the kernel will probe for other cores and boot them with
2298 no external assistance. It is safe to enable this when hardware
2299 support is unavailable.
2300
3179d37e 2301config MIPS_CPS_PM
39a59593 2302 depends on MIPS_CPS
3179d37e
PB
2303 bool
2304
9f98f3dd
PB
2305config MIPS_CM
2306 bool
3c9b4166 2307 select MIPS_CPC
9f98f3dd 2308
9c38cf44
PB
2309config MIPS_CPC
2310 bool
4a16ff4c 2311
1da177e4
LT
2312config SB1_PASS_2_WORKAROUNDS
2313 bool
2314 depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
2315 default y
2316
2317config SB1_PASS_2_1_WORKAROUNDS
2318 bool
2319 depends on CPU_SB1 && CPU_SB1_PASS_2
2320 default y
2321
9e2b5372
MC
2322choice
2323 prompt "SmartMIPS or microMIPS ASE support"
2324
2325config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
2326 bool "None"
2327 help
2328 Select this if you want neither microMIPS nor SmartMIPS support
2329
9693a853
FBH
2330config CPU_HAS_SMARTMIPS
2331 depends on SYS_SUPPORTS_SMARTMIPS
9e2b5372 2332 bool "SmartMIPS"
9693a853
FBH
2333 help
2334 SmartMIPS is a extension of the MIPS32 architecture aimed at
2335 increased security at both hardware and software level for
2336 smartcards. Enabling this option will allow proper use of the
2337 SmartMIPS instructions by Linux applications. However a kernel with
2338 this option will not work on a MIPS core without SmartMIPS core. If
2339 you don't know you probably don't have SmartMIPS and should say N
2340 here.
2341
bce86083 2342config CPU_MICROMIPS
7fd08ca5 2343 depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
9e2b5372 2344 bool "microMIPS"
bce86083
SH
2345 help
2346 When this option is enabled the kernel will be built using the
2347 microMIPS ISA
2348
9e2b5372
MC
2349endchoice
2350
a5e9a69e 2351config CPU_HAS_MSA
0ce3417e 2352 bool "Support for the MIPS SIMD Architecture"
a5e9a69e 2353 depends on CPU_SUPPORTS_MSA
c92e47e5 2354 depends on MIPS_FP_SUPPORT
2a6cb669 2355 depends on 64BIT || MIPS_O32_FP64_SUPPORT
a5e9a69e
PB
2356 help
2357 MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2358 and a set of SIMD instructions to operate on them. When this option
1db1af84
PB
2359 is enabled the kernel will support allocating & switching MSA
2360 vector register contexts. If you know that your kernel will only be
2361 running on CPUs which do not support MSA or that your userland will
2362 not be making use of it then you may wish to say N here to reduce
2363 the size & complexity of your kernel.
a5e9a69e
PB
2364
2365 If unsure, say Y.
2366
1da177e4 2367config CPU_HAS_WB
f7062ddb 2368 bool
e01402b1 2369
df0ac8a4
KC
2370config XKS01
2371 bool
2372
ba9196d2
JY
2373config CPU_HAS_DIEI
2374 depends on !CPU_DIEI_BROKEN
2375 bool
2376
2377config CPU_DIEI_BROKEN
2378 bool
2379
8256b17e
FF
2380config CPU_HAS_RIXI
2381 bool
2382
18d84e2e 2383config CPU_NO_LOAD_STORE_LR
932afdee
YC
2384 bool
2385 help
18d84e2e 2386 CPU lacks support for unaligned load and store instructions:
932afdee 2387 LWL, LWR, SWL, SWR (Load/store word left/right).
18d84e2e
AL
2388 LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
2389 systems).
932afdee 2390
f41ae0b2
RB
2391#
2392# Vectored interrupt mode is an R2 feature
2393#
e01402b1 2394config CPU_MIPSR2_IRQ_VI
f41ae0b2 2395 bool
e01402b1 2396
f41ae0b2
RB
2397#
2398# Extended interrupt mode is an R2 feature
2399#
e01402b1 2400config CPU_MIPSR2_IRQ_EI
f41ae0b2 2401 bool
e01402b1 2402
1da177e4
LT
2403config CPU_HAS_SYNC
2404 bool
2405 depends on !CPU_R3000
2406 default y
2407
20d60d99
MR
2408#
2409# CPU non-features
2410#
b56d1caf
TB
2411
2412# Work around the "daddi" and "daddiu" CPU errata:
2413#
2414# - The `daddi' instruction fails to trap on overflow.
2415# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2416# erratum #23
2417#
2418# - The `daddiu' instruction can produce an incorrect result.
2419# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2420# erratum #41
2421# "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2422# #15
2423# "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
2424# "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
20d60d99
MR
2425config CPU_DADDI_WORKAROUNDS
2426 bool
2427
b56d1caf
TB
2428# Work around certain R4000 CPU errata (as implemented by GCC):
2429#
2430# - A double-word or a variable shift may give an incorrect result
2431# if executed immediately after starting an integer division:
2432# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2433# erratum #28
2434# "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
2435# #19
2436#
2437# - A double-word or a variable shift may give an incorrect result
2438# if executed while an integer multiplication is in progress:
2439# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2440# errata #16 & #28
2441#
2442# - An integer division may give an incorrect result if started in
2443# a delay slot of a taken branch or a jump:
2444# "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
2445# erratum #52
20d60d99
MR
2446config CPU_R4000_WORKAROUNDS
2447 bool
2448 select CPU_R4400_WORKAROUNDS
2449
b56d1caf
TB
2450# Work around certain R4400 CPU errata (as implemented by GCC):
2451#
2452# - A double-word or a variable shift may give an incorrect result
2453# if executed immediately after starting an integer division:
2454# "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
2455# "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
20d60d99
MR
2456config CPU_R4400_WORKAROUNDS
2457 bool
2458
071d2f0b
PB
2459config CPU_R4X00_BUGS64
2460 bool
2461 default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)
2462
4edf00a4
PB
2463config MIPS_ASID_SHIFT
2464 int
455481fc 2465 default 6 if CPU_R3000
4edf00a4
PB
2466 default 0
2467
2468config MIPS_ASID_BITS
2469 int
2db003a5 2470 default 0 if MIPS_ASID_BITS_VARIABLE
455481fc 2471 default 6 if CPU_R3000
4edf00a4
PB
2472 default 8
2473
2db003a5
PB
2474config MIPS_ASID_BITS_VARIABLE
2475 bool
2476
4a5dc51e
MN
2477config MIPS_CRC_SUPPORT
2478 bool
2479
802b8362
TB
2480# R4600 erratum. Due to the lack of errata information the exact
2481# technical details aren't known. I've experimentally found that disabling
2482# interrupts during indexed I-cache flushes seems to be sufficient to deal
2483# with the issue.
2484config WAR_R4600_V1_INDEX_ICACHEOP
2485 bool
2486
5e5b6527
TB
2487# Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata:
2488#
2489# 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
2490# Hit_Invalidate_D and Create_Dirty_Excl_D should only be
2491# executed if there is no other dcache activity. If the dcache is
18ff14c8 2492# accessed for another instruction immediately preceding when these
5e5b6527
TB
2493# cache instructions are executing, it is possible that the dcache
2494# tag match outputs used by these cache instructions will be
2495# incorrect. These cache instructions should be preceded by at least
2496# four instructions that are not any kind of load or store
2497# instruction.
2498#
2499# This is not allowed: lw
2500# nop
2501# nop
2502# nop
2503# cache Hit_Writeback_Invalidate_D
2504#
2505# This is allowed: lw
2506# nop
2507# nop
2508# nop
2509# nop
2510# cache Hit_Writeback_Invalidate_D
2511config WAR_R4600_V1_HIT_CACHEOP
2512 bool
2513
44def342
TB
2514# Writeback and invalidate the primary cache dcache before DMA.
2515#
2516# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
2517# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
2518# operate correctly if the internal data cache refill buffer is empty. These
2519# CACHE instructions should be separated from any potential data cache miss
2520# by a load instruction to an uncached address to empty the response buffer."
2521# (Revision 2.0 device errata from IDT available on https://www.idt.com/
2522# in .pdf format.)
2523config WAR_R4600_V2_HIT_CACHEOP
2524 bool
2525
24a1c023
TB
2526# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
2527# the line which this instruction itself exists, the following
2528# operation is not guaranteed."
2529#
2530# Workaround: do two phase flushing for Index_Invalidate_I
2531config WAR_TX49XX_ICACHE_INDEX_INV
2532 bool
2533
886ee136
TB
2534# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
2535# opposes it being called that) where invalid instructions in the same
2536# I-cache line worth of instructions being fetched may case spurious
2537# exceptions.
2538config WAR_ICACHE_REFILLS
2539 bool
2540
256ec489
TB
2541# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
2542# may cause ll / sc and lld / scd sequences to execute non-atomically.
2543config WAR_R10000_LLSC
2544 bool
2545
a7fbed98
TB
2546# 34K core erratum: "Problems Executing the TLBR Instruction"
2547config WAR_MIPS34K_MISSED_ITLB
2548 bool
2549
1da177e4
LT
2550#
2551# - Highmem only makes sense for the 32-bit kernel.
2552# - The current highmem code will only work properly on physically indexed
2553# caches such as R3000, SB1, R7000 or those that look like they're virtually
2554# indexed such as R4000/R4400 SC and MC versions or R10000. So for the
2555# moment we protect the user and offer the highmem option only on machines
2556# where it's known to be safe. This will not offer highmem on a few systems
2557# such as MIPS32 and MIPS64 CPUs which may have virtual and physically
2558# indexed CPUs but we're playing safe.
797798c1
RB
2559# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2560# know they might have memory configurations that could make use of highmem
2561# support.
1da177e4
LT
2562#
2563config HIGHMEM
2564 bool "High Memory Support"
a6e18781 2565 depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
a4c33e83 2566 select KMAP_LOCAL
797798c1
RB
2567
2568config CPU_SUPPORTS_HIGHMEM
2569 bool
2570
2571config SYS_SUPPORTS_HIGHMEM
2572 bool
1da177e4 2573
9693a853
FBH
2574config SYS_SUPPORTS_SMARTMIPS
2575 bool
2576
a6a4834c
SH
2577config SYS_SUPPORTS_MICROMIPS
2578 bool
2579
377cb1b6
RB
2580config SYS_SUPPORTS_MIPS16
2581 bool
2582 help
2583 This option must be set if a kernel might be executed on a MIPS16-
2584 enabled CPU even if MIPS16 is not actually being used. In other
2585 words, it makes the kernel MIPS16-tolerant.
2586
a5e9a69e
PB
2587config CPU_SUPPORTS_MSA
2588 bool
2589
b4819b59
YY
2590config ARCH_FLATMEM_ENABLE
2591 def_bool y
268a2d60 2592 depends on !NUMA && !CPU_LOONGSON2EF
b4819b59 2593
31473747
AN
2594config ARCH_SPARSEMEM_ENABLE
2595 bool
2596
d8cb4e11
RB
2597config NUMA
2598 bool "NUMA Support"
2599 depends on SYS_SUPPORTS_NUMA
cf8194e4 2600 select SMP
7ecd19cf
KW
2601 select HAVE_SETUP_PER_CPU_AREA
2602 select NEED_PER_CPU_EMBED_FIRST_CHUNK
d8cb4e11
RB
2603 help
2604 Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2605 Access). This option improves performance on systems with more
2606 than two nodes; on two node systems it is generally better to
172a37e9 2607 leave it disabled; on single node systems leave this option
d8cb4e11
RB
2608 disabled.
2609
2610config SYS_SUPPORTS_NUMA
2611 bool
2612
f8f9f21c
FC
2613config HAVE_ARCH_NODEDATA_EXTENSION
2614 bool
2615
8c530ea3
MR
2616config RELOCATABLE
2617 bool "Relocatable kernel"
ab7c01fd
SS
2618 depends on SYS_SUPPORTS_RELOCATABLE
2619 depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
2620 CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
2621 CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
a307a4ce
JH
2622 CPU_P5600 || CAVIUM_OCTEON_SOC || \
2623 CPU_LOONGSON64
8c530ea3
MR
2624 help
2625 This builds a kernel image that retains relocation information
2626 so it can be loaded someplace besides the default 1MB.
2627 The relocations make the kernel binary about 15% larger,
2628 but are discarded at runtime
2629
069fd766
MR
2630config RELOCATION_TABLE_SIZE
2631 hex "Relocation table size"
2632 depends on RELOCATABLE
2633 range 0x0 0x01000000
a307a4ce 2634 default "0x00200000" if CPU_LOONGSON64
069fd766 2635 default "0x00100000"
a7f7f624 2636 help
069fd766
MR
2637 A table of relocation data will be appended to the kernel binary
2638 and parsed at boot to fix up the relocated kernel.
2639
2640 This option allows the amount of space reserved for the table to be
2641 adjusted, although the default of 1Mb should be ok in most cases.
2642
2643 The build will fail and a valid size suggested if this is too small.
2644
2645 If unsure, leave at the default value.
2646
405bc8fd
MR
2647config RANDOMIZE_BASE
2648 bool "Randomize the address of the kernel image"
2649 depends on RELOCATABLE
a7f7f624 2650 help
371a4151
EWI
2651 Randomizes the physical and virtual address at which the
2652 kernel image is loaded, as a security feature that
2653 deters exploit attempts relying on knowledge of the location
2654 of kernel internals.
405bc8fd 2655
371a4151 2656 Entropy is generated using any coprocessor 0 registers available.
405bc8fd 2657
371a4151 2658 The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
405bc8fd 2659
371a4151 2660 If unsure, say N.
405bc8fd
MR
2661
2662config RANDOMIZE_BASE_MAX_OFFSET
2663 hex "Maximum kASLR offset" if EXPERT
2664 depends on RANDOMIZE_BASE
2665 range 0x0 0x40000000 if EVA || 64BIT
2666 range 0x0 0x08000000
2667 default "0x01000000"
a7f7f624 2668 help
405bc8fd
MR
2669 When kASLR is active, this provides the maximum offset that will
2670 be applied to the kernel image. It should be set according to the
2671 amount of physical RAM available in the target system minus
2672 PHYSICAL_START and must be a power of 2.
2673
2674 This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2675 EVA or 64-bit. The default is 16Mb.
2676
c80d79d7
YG
2677config NODES_SHIFT
2678 int
2679 default "6"
a9ee6cf5 2680 depends on NUMA
c80d79d7 2681
14f70012
DCZ
2682config HW_PERF_EVENTS
2683 bool "Enable hardware performance counter support for perf events"
95b8a5e0 2684 depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
14f70012
DCZ
2685 default y
2686 help
2687 Enable hardware performance counter support for perf events. If
2688 disabled, perf events will use software events only.
2689
be8fa1cb
TY
2690config DMI
2691 bool "Enable DMI scanning"
2692 depends on MACH_LOONGSON64
2693 select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
2694 default y
2695 help
2696 Enabled scanning of DMI to identify machine quirks. Say Y
2697 here unless you have verified that your setup is not
2698 affected by entries in the DMI blacklist. Required by PNP
2699 BIOS code.
2700
1da177e4
LT
2701config SMP
2702 bool "Multi-Processing support"
e73ea273
RB
2703 depends on SYS_SUPPORTS_SMP
2704 help
1da177e4 2705 This enables support for systems with more than one CPU. If you have
4a474157
RG
2706 a system with only one CPU, say N. If you have a system with more
2707 than one CPU, say Y.
1da177e4 2708
4a474157 2709 If you say N here, the kernel will run on uni- and multiprocessor
1da177e4
LT
2710 machines, but will use only one CPU of a multiprocessor machine. If
2711 you say Y here, the kernel will run on many, but not all,
4a474157 2712 uniprocessor machines. On a uniprocessor machine, the kernel
1da177e4
LT
2713 will run faster if you say N here.
2714
2715 People using multiprocessor machines who say Y here should also say
2716 Y to "Enhanced Real Time Clock Support", below.
2717
03502faa 2718 See also the SMP-HOWTO available at
ef054ad3 2719 <https://www.tldp.org/docs.html#howto>.
1da177e4
LT
2720
2721 If you don't know what to do here, say N.
2722
7840d618
MR
2723config HOTPLUG_CPU
2724 bool "Support for hot-pluggable CPUs"
2725 depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
2726 help
2727 Say Y here to allow turning CPUs off and on. CPUs can be
2728 controlled through /sys/devices/system/cpu.
2729 (Note: power management support will enable this option
2730 automatically on SMP systems. )
2731 Say N if you want to disable CPU hotplug.
2732
87353d8a
RB
2733config SMP_UP
2734 bool
2735
0ee958e1
PB
2736config SYS_SUPPORTS_MIPS_CPS
2737 bool
2738
e73ea273
RB
2739config SYS_SUPPORTS_SMP
2740 bool
2741
130e2fb7
RB
2742config NR_CPUS_DEFAULT_4
2743 bool
2744
2745config NR_CPUS_DEFAULT_8
2746 bool
2747
2748config NR_CPUS_DEFAULT_16
2749 bool
2750
2751config NR_CPUS_DEFAULT_32
2752 bool
2753
2754config NR_CPUS_DEFAULT_64
2755 bool
2756
1da177e4 2757config NR_CPUS
a91796a9
J
2758 int "Maximum number of CPUs (2-256)"
2759 range 2 256
1da177e4 2760 depends on SMP
130e2fb7
RB
2761 default "4" if NR_CPUS_DEFAULT_4
2762 default "8" if NR_CPUS_DEFAULT_8
2763 default "16" if NR_CPUS_DEFAULT_16
2764 default "32" if NR_CPUS_DEFAULT_32
2765 default "64" if NR_CPUS_DEFAULT_64
1da177e4
LT
2766 help
2767 This allows you to specify the maximum number of CPUs which this
2768 kernel will support. The maximum supported value is 32 for 32-bit
2769 kernel and 64 for 64-bit kernels; the minimum value which makes
72ede9b1
AN
2770 sense is 1 for Qemu (useful only for kernel debugging purposes)
2771 and 2 for all others.
1da177e4
LT
2772
2773 This is purely to save memory - each supported CPU adds
72ede9b1
AN
2774 approximately eight kilobytes to the kernel image. For best
2775 performance should round up your number of processors to the next
2776 power of two.
1da177e4 2777
399aaa25
AC
2778config MIPS_PERF_SHARED_TC_COUNTERS
2779 bool
7820b84b
DD
2780
2781config MIPS_NR_CPU_NR_MAP_1024
2782 bool
2783
2784config MIPS_NR_CPU_NR_MAP
2785 int
2786 depends on SMP
2787 default 1024 if MIPS_NR_CPU_NR_MAP_1024
2788 default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
399aaa25 2789
1723b4a3
AN
2790#
2791# Timer Interrupt Frequency Configuration
2792#
2793
2794choice
2795 prompt "Timer frequency"
2796 default HZ_250
2797 help
371a4151 2798 Allows the configuration of the timer frequency.
1723b4a3 2799
67596573
PB
2800 config HZ_24
2801 bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
2802
1723b4a3 2803 config HZ_48
0f873585 2804 bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
1723b4a3
AN
2805
2806 config HZ_100
2807 bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
2808
2809 config HZ_128
2810 bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
2811
2812 config HZ_250
2813 bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
2814
2815 config HZ_256
2816 bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
2817
2818 config HZ_1000
2819 bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
2820
2821 config HZ_1024
2822 bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
2823
2824endchoice
2825
67596573
PB
2826config SYS_SUPPORTS_24HZ
2827 bool
2828
1723b4a3
AN
2829config SYS_SUPPORTS_48HZ
2830 bool
2831
2832config SYS_SUPPORTS_100HZ
2833 bool
2834
2835config SYS_SUPPORTS_128HZ
2836 bool
2837
2838config SYS_SUPPORTS_250HZ
2839 bool
2840
2841config SYS_SUPPORTS_256HZ
2842 bool
2843
2844config SYS_SUPPORTS_1000HZ
2845 bool
2846
2847config SYS_SUPPORTS_1024HZ
2848 bool
2849
2850config SYS_SUPPORTS_ARBIT_HZ
2851 bool
67596573
PB
2852 default y if !SYS_SUPPORTS_24HZ && \
2853 !SYS_SUPPORTS_48HZ && \
2854 !SYS_SUPPORTS_100HZ && \
2855 !SYS_SUPPORTS_128HZ && \
2856 !SYS_SUPPORTS_250HZ && \
2857 !SYS_SUPPORTS_256HZ && \
2858 !SYS_SUPPORTS_1000HZ && \
1723b4a3
AN
2859 !SYS_SUPPORTS_1024HZ
2860
2861config HZ
2862 int
67596573 2863 default 24 if HZ_24
1723b4a3
AN
2864 default 48 if HZ_48
2865 default 100 if HZ_100
2866 default 128 if HZ_128
2867 default 250 if HZ_250
2868 default 256 if HZ_256
2869 default 1000 if HZ_1000
2870 default 1024 if HZ_1024
2871
96685b17
DCZ
2872config SCHED_HRTICK
2873 def_bool HIGH_RES_TIMERS
2874
ea6e942b 2875config KEXEC
7d60717e 2876 bool "Kexec system call"
2965faa5 2877 select KEXEC_CORE
ea6e942b
AN
2878 help
2879 kexec is a system call that implements the ability to shutdown your
2880 current kernel, and to start another kernel. It is like a reboot
3dde6ad8 2881 but it is independent of the system firmware. And like a reboot
ea6e942b
AN
2882 you can start any kernel with it, not just Linux.
2883
01dd2fbf 2884 The name comes from the similarity to the exec system call.
ea6e942b
AN
2885
2886 It is an ongoing process to be certain the hardware in a machine
2887 is properly shutdown, so do not be surprised if this code does not
bf220695
GU
2888 initially work for you. As of this writing the exact hardware
2889 interface is strongly in flux, so no good recommendation can be
2890 made.
ea6e942b 2891
7aa1c8f4 2892config CRASH_DUMP
bff323d5
MN
2893 bool "Kernel crash dumps"
2894 help
7aa1c8f4
RB
2895 Generate crash dump after being started by kexec.
2896 This should be normally only set in special crash dump kernels
2897 which are loaded in the main kernel with kexec-tools into
2898 a specially reserved region and then later executed after
2899 a crash by kdump/kexec. The crash dump kernel must be compiled
2900 to a memory address not used by the main kernel or firmware using
2901 PHYSICAL_START.
2902
2903config PHYSICAL_START
bff323d5 2904 hex "Physical address where the kernel is loaded"
8bda3e26 2905 default "0xffffffff84000000"
bff323d5
MN
2906 depends on CRASH_DUMP
2907 help
7aa1c8f4
RB
2908 This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
2909 If you plan to use kernel for capturing the crash dump change
2910 this value to start of the reserved region (the "X" value as
2911 specified in the "crashkernel=YM@XM" command line boot parameter
2912 passed to the panic-ed kernel).
2913
597ce172 2914config MIPS_O32_FP64_SUPPORT
b7f1e273 2915 bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
597ce172 2916 depends on 32BIT || MIPS32_O32
597ce172
PB
2917 help
2918 When this is enabled, the kernel will support use of 64-bit floating
2919 point registers with binaries using the O32 ABI along with the
2920 EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2921 32-bit MIPS systems this support is at the cost of increasing the
2922 size and complexity of the compiled FPU emulator. Thus if you are
2923 running a MIPS32 system and know that none of your userland binaries
2924 will require 64-bit floating point, you may wish to reduce the size
2925 of your kernel & potentially improve FP emulation performance by
2926 saying N here.
2927
06e2e882
PB
2928 Although binutils currently supports use of this flag the details
2929 concerning its effect upon the O32 ABI in userland are still being
18ff14c8 2930 worked on. In order to avoid userland becoming dependent upon current
06e2e882
PB
2931 behaviour before the details have been finalised, this option should
2932 be considered experimental and only enabled by those working upon
2933 said details.
2934
2935 If unsure, say N.
597ce172 2936
f2ffa5ab 2937config USE_OF
0b3e06fd 2938 bool
f2ffa5ab 2939 select OF
e6ce1324 2940 select OF_EARLY_FLATTREE
abd2363f 2941 select IRQ_DOMAIN
f2ffa5ab 2942
2fe8ea39
DZ
2943config UHI_BOOT
2944 bool
2945
7fafb068
AB
2946config BUILTIN_DTB
2947 bool
2948
1da8f179 2949choice
5b24d52c 2950 prompt "Kernel appended dtb support" if USE_OF
1da8f179
JG
2951 default MIPS_NO_APPENDED_DTB
2952
2953 config MIPS_NO_APPENDED_DTB
2954 bool "None"
2955 help
2956 Do not enable appended dtb support.
2957
87db537d
AK
2958 config MIPS_ELF_APPENDED_DTB
2959 bool "vmlinux"
2960 help
2961 With this option, the boot code will look for a device tree binary
2962 DTB) included in the vmlinux ELF section .appended_dtb. By default
2963 it is empty and the DTB can be appended using binutils command
2964 objcopy:
2965
2966 objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
2967
18ff14c8 2968 This is meant as a backward compatibility convenience for those
87db537d
AK
2969 systems with a bootloader that can't be upgraded to accommodate
2970 the documented boot protocol using a device tree.
2971
1da8f179 2972 config MIPS_RAW_APPENDED_DTB
b8f54f2c 2973 bool "vmlinux.bin or vmlinuz.bin"
1da8f179
JG
2974 help
2975 With this option, the boot code will look for a device tree binary
b8f54f2c 2976 DTB) appended to raw vmlinux.bin or vmlinuz.bin.
1da8f179
JG
2977 (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
2978
2979 This is meant as a backward compatibility convenience for those
2980 systems with a bootloader that can't be upgraded to accommodate
2981 the documented boot protocol using a device tree.
2982
2983 Beware that there is very little in terms of protection against
2984 this option being confused by leftover garbage in memory that might
2985 look like a DTB header after a reboot if no actual DTB is appended
2986 to vmlinux.bin. Do not leave this option active in a production kernel
2987 if you don't intend to always append a DTB.
2988endchoice
2989
2024972e
JG
2990choice
2991 prompt "Kernel command line type" if !CMDLINE_OVERRIDE
2bcef9b4 2992 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
87fcfa7b 2993 !MACH_LOONGSON64 && !MIPS_MALTA && \
2bcef9b4 2994 !CAVIUM_OCTEON_SOC
2024972e
JG
2995 default MIPS_CMDLINE_FROM_BOOTLOADER
2996
2997 config MIPS_CMDLINE_FROM_DTB
2998 depends on USE_OF
2999 bool "Dtb kernel arguments if available"
3000
3001 config MIPS_CMDLINE_DTB_EXTEND
3002 depends on USE_OF
3003 bool "Extend dtb kernel arguments with bootloader arguments"
3004
3005 config MIPS_CMDLINE_FROM_BOOTLOADER
3006 bool "Bootloader kernel arguments if available"
ed47e153
RV
3007
3008 config MIPS_CMDLINE_BUILTIN_EXTEND
3009 depends on CMDLINE_BOOL
3010 bool "Extend builtin kernel arguments with bootloader arguments"
2024972e
JG
3011endchoice
3012
5e83d430
RB
3013endmenu
3014
1df0f0ff
AN
3015config LOCKDEP_SUPPORT
3016 bool
3017 default y
3018
3019config STACKTRACE_SUPPORT
3020 bool
3021 default y
3022
a728ab52
KS
3023config PGTABLE_LEVELS
3024 int
3377e227 3025 default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
41ce097f 3026 default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
a728ab52
KS
3027 default 2
3028
6c359eb1
PB
3029config MIPS_AUTO_PFN_OFFSET
3030 bool
3031
1da177e4
LT
3032menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
3033
c5611df9 3034config PCI_DRIVERS_GENERIC
2eac9c2d 3035 select PCI_DOMAINS_GENERIC if PCI
c5611df9
PB
3036 bool
3037
3038config PCI_DRIVERS_LEGACY
3039 def_bool !PCI_DRIVERS_GENERIC
3040 select NO_GENERIC_PCI_IOPORT_MAP
2eac9c2d 3041 select PCI_DOMAINS if PCI
1da177e4
LT
3042
3043#
3044# ISA support is now enabled via select. Too many systems still have the one
3045# or other ISA chip on the board that users don't know about so don't expect
3046# users to choose the right thing ...
3047#
3048config ISA
3049 bool
3050
1da177e4
LT
3051config TC
3052 bool "TURBOchannel support"
3053 depends on MACH_DECSTATION
3054 help
50a23e6e
JM
3055 TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
3056 processors. TURBOchannel programming specifications are available
3057 at:
3058 <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
3059 and:
3060 <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
3061 Linux driver support status is documented at:
3062 <http://www.linux-mips.org/wiki/DECstation>
1da177e4 3063
1da177e4
LT
3064config MMU
3065 bool
3066 default y
3067
109c32ff
MR
3068config ARCH_MMAP_RND_BITS_MIN
3069 default 12 if 64BIT
3070 default 8
3071
3072config ARCH_MMAP_RND_BITS_MAX
3073 default 18 if 64BIT
3074 default 15
3075
3076config ARCH_MMAP_RND_COMPAT_BITS_MIN
371a4151 3077 default 8
109c32ff
MR
3078
3079config ARCH_MMAP_RND_COMPAT_BITS_MAX
371a4151 3080 default 15
109c32ff 3081
d865bea4
RB
3082config I8253
3083 bool
798778b8 3084 select CLKSRC_I8253
2d02612f 3085 select CLKEVT_I8253
9726b43a 3086 select MIPS_EXTERNAL_TIMER
1da177e4
LT
3087endmenu
3088
1da177e4
LT
3089config TRAD_SIGNALS
3090 bool
1da177e4 3091
1da177e4 3092config MIPS32_COMPAT
78aaf956 3093 bool
1da177e4
LT
3094
3095config COMPAT
3096 bool
1da177e4
LT
3097
3098config MIPS32_O32
3099 bool "Kernel support for o32 binaries"
78aaf956
RB
3100 depends on 64BIT
3101 select ARCH_WANT_OLD_COMPAT_IPC
3102 select COMPAT
3103 select MIPS32_COMPAT
1da177e4
LT
3104 help
3105 Select this option if you want to run o32 binaries. These are pure
3106 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
3107 existing binaries are in this format.
3108
3109 If unsure, say Y.
3110
3111config MIPS32_N32
3112 bool "Kernel support for n32 binaries"
c22eacfe 3113 depends on 64BIT
5a9372f7 3114 select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
78aaf956
RB
3115 select COMPAT
3116 select MIPS32_COMPAT
1da177e4
LT
3117 help
3118 Select this option if you want to run n32 binaries. These are
3119 64-bit binaries using 32-bit quantities for addressing and certain
3120 data that would normally be 64-bit. They are used in special
3121 cases.
3122
3123 If unsure, say N.
3124
d49fc692
NC
3125config CC_HAS_MNO_BRANCH_LIKELY
3126 def_bool y
3127 depends on $(cc-option,-mno-branch-likely)
3128
1a2c73f4
JY
3129# https://github.com/llvm/llvm-project/issues/61045
3130config CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
3131 def_bool y if CC_IS_CLANG
3132
2116245e
RB
3133menu "Power management options"
3134
363c55ca
WZ
3135config ARCH_HIBERNATION_POSSIBLE
3136 def_bool y
3f5b3e17 3137 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
363c55ca 3138
f4cb5700
JB
3139config ARCH_SUSPEND_POSSIBLE
3140 def_bool y
3f5b3e17 3141 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
f4cb5700 3142
2116245e 3143source "kernel/power/Kconfig"
952fa954 3144
1da177e4
LT
3145endmenu
3146
7a998935
VK
3147config MIPS_EXTERNAL_TIMER
3148 bool
3149
7a998935 3150menu "CPU Power Management"
c095ebaf
PB
3151
3152if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
7a998935 3153source "drivers/cpufreq/Kconfig"
31f12fdc 3154endif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
9726b43a 3155
c095ebaf
PB
3156source "drivers/cpuidle/Kconfig"
3157
3158endmenu
3159
2235a54d 3160source "arch/mips/kvm/Kconfig"
e91946d6
NC
3161
3162source "arch/mips/vdso/Kconfig"