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