Kconfig 82.3 KB
Newer Older
1
# SPDX-License-Identifier: GPL-2.0
Linus Torvalds's avatar
Linus Torvalds committed
2 3 4
config MIPS
	bool
	default y
5
	select ARCH_32BIT_OFF_T if !64BIT
6
	select ARCH_BINFMT_ELF_STATE if MIPS_FP_SUPPORT
7
	select ARCH_HAS_CPU_FINALIZE_INIT
8
	select ARCH_HAS_CURRENT_STACK_POINTER if !CC_IS_CLANG || CLANG_VERSION >= 140000
9
	select ARCH_HAS_DEBUG_VIRTUAL if !64BIT
10 11
	select ARCH_HAS_FORTIFY_SOURCE
	select ARCH_HAS_KCOV
12
	select ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE if !EVA
13
	select ARCH_HAS_PTE_SPECIAL if !(32BIT && CPU_HAS_RIXI)
14 15
	select ARCH_HAS_STRNCPY_FROM_USER
	select ARCH_HAS_STRNLEN_USER
16
	select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
17
	select ARCH_HAS_UBSAN_SANITIZE_ALL
Xingxing Su's avatar
Xingxing Su committed
18
	select ARCH_HAS_GCOV_PROFILE_ALL
19
	select ARCH_KEEP_MEMBLOCK
20
	select ARCH_USE_BUILTIN_BSWAP
21
	select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
22
	select ARCH_USE_MEMTEST
23
	select ARCH_USE_QUEUED_RWLOCKS
24
	select ARCH_USE_QUEUED_SPINLOCKS
25
	select ARCH_SUPPORTS_HUGETLBFS if CPU_SUPPORTS_HUGEPAGES
26
	select ARCH_WANT_DEFAULT_TOPDOWN_MMAP_LAYOUT if MMU
27
	select ARCH_WANT_IPC_PARSE_VERSION
28
	select ARCH_WANT_LD_ORPHAN_WARN
29
	select BUILDTIME_TABLE_SORT
30
	select CLONE_BACKWARDS
31
	select CPU_NO_EFFICIENT_FFS if (TARGET_ISA_REV < 1)
32 33 34 35
	select CPU_PM if CPU_IDLE
	select GENERIC_ATOMIC64 if !64BIT
	select GENERIC_CMOS_UPDATE
	select GENERIC_CPU_AUTOPROBE
36
	select GENERIC_GETTIMEOFDAY
Paul Burton's avatar
Paul Burton committed
37
	select GENERIC_IOMAP
38 39
	select GENERIC_IRQ_PROBE
	select GENERIC_IRQ_SHOW
40
	select GENERIC_ISA_DMA if EISA
41 42 43 44 45
	select GENERIC_LIB_ASHLDI3
	select GENERIC_LIB_ASHRDI3
	select GENERIC_LIB_CMPDI2
	select GENERIC_LIB_LSHRDI3
	select GENERIC_LIB_UCMPDI2
46 47
	select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
	select GENERIC_SMP_IDLE_THREAD
48
	select GENERIC_IDLE_POLL_SETUP
49
	select GENERIC_TIME_VSYSCALL
50
	select GUP_GET_PXX_LOW_HIGH if CPU_MIPS32 && PHYS_ADDR_T_64BIT
51
	select HAS_IOPORT if !NO_IOPORT_MAP || ISA
52
	select HAVE_ARCH_COMPILER_H
53
	select HAVE_ARCH_JUMP_LABEL
54
	select HAVE_ARCH_KGDB if MIPS_FP_SUPPORT
55 56
	select HAVE_ARCH_MMAP_RND_BITS if MMU
	select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
57
	select HAVE_ARCH_SECCOMP_FILTER
58
	select HAVE_ARCH_TRACEHOOK
59
	select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES
60
	select HAVE_ASM_MODVERSIONS
61
	select HAVE_CONTEXT_TRACKING_USER
62
	select HAVE_TIF_NOHZ
63 64 65 66
	select HAVE_C_RECORDMCOUNT
	select HAVE_DEBUG_KMEMLEAK
	select HAVE_DEBUG_STACKOVERFLOW
	select HAVE_DMA_CONTIGUOUS
67
	select HAVE_DYNAMIC_FTRACE
68
	select HAVE_EBPF_JIT if !CPU_MICROMIPS
69
	select HAVE_EXIT_THREAD
70
	select HAVE_FAST_GUP
71
	select HAVE_FTRACE_MCOUNT_RECORD
72
	select HAVE_FUNCTION_GRAPH_TRACER
73
	select HAVE_FUNCTION_TRACER
74 75
	select HAVE_GCC_PLUGINS
	select HAVE_GENERIC_VDSO
76
	select HAVE_IOREMAP_PROT
77 78
	select HAVE_IRQ_EXIT_ON_IRQ_STACK
	select HAVE_IRQ_TIME_ACCOUNTING
David Daney's avatar
David Daney committed
79 80
	select HAVE_KPROBES
	select HAVE_KRETPROBES
81
	select HAVE_LD_DEAD_CODE_DATA_ELIMINATION
82
	select HAVE_MOD_ARCH_SPECIFIC
83
	select HAVE_NMI
84
	select HAVE_PERF_EVENTS
85 86
	select HAVE_PERF_REGS
	select HAVE_PERF_USER_STACK_DUMP
87
	select HAVE_REGS_AND_STACK_ACCESS_API
88
	select HAVE_RSEQ
89
	select HAVE_SPARSE_SYSCALL_NR
90
	select HAVE_STACKPROTECTOR
91
	select HAVE_SYSCALL_TRACEPOINTS
92
	select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
93
	select IRQ_FORCED_THREADING
94
	select ISA if EISA
95
	select LOCK_MM_AND_FIND_VMA
96
	select MODULES_USE_ELF_REL if MODULES
97
	select MODULES_USE_ELF_RELA if MODULES && 64BIT
98
	select PERF_USE_VMALLOC
99
	select PCI_MSI_ARCH_FALLBACKS if PCI_MSI
100
	select RTC_LIB
101
	select SYSCTL_EXCEPTION_TRACE
102
	select TRACE_IRQFLAGS_SUPPORT
103
	select ARCH_HAS_ELFCORE_COMPAT
Nemanja Rakovic's avatar
Nemanja Rakovic committed
104
	select HAVE_ARCH_KCSAN if 64BIT
Linus Torvalds's avatar
Linus Torvalds committed
105

106 107 108
config MIPS_FIXUP_BIGPHYS_ADDR
	bool

109 110 111
config MIPS_GENERIC
	bool

112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127
config MACH_INGENIC
	bool
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SYS_SUPPORTS_ZBOOT
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU
	select PINCTRL
	select GPIOLIB
	select COMMON_CLK
	select GENERIC_IRQ_CHIP
	select BUILTIN_DTB if MIPS_NO_APPENDED_DTB
	select USE_OF
	select CPU_SUPPORTS_CPUFREQ
	select MIPS_EXTERNAL_TIMER

Linus Torvalds's avatar
Linus Torvalds committed
128 129
menu "Machine selection"

130 131
choice
	prompt "System type"
132
	default MIPS_GENERIC_KERNEL
Linus Torvalds's avatar
Linus Torvalds committed
133

134
config MIPS_GENERIC_KERNEL
135
	bool "Generic board-agnostic MIPS kernel"
136
	select MIPS_GENERIC
137 138 139 140 141 142
	select BOOT_RAW
	select BUILTIN_DTB
	select CEVT_R4K
	select CLKSRC_MIPS_GIC
	select COMMON_CLK
	select CPU_MIPSR2_IRQ_EI
143
	select CPU_MIPSR2_IRQ_VI
144
	select CSRC_R4K
145
	select DMA_NONCOHERENT
146
	select HAVE_PCI
147
	select IRQ_MIPS_CPU
148
	select MIPS_AUTO_PFN_OFFSET
149 150 151 152 153 154
	select MIPS_CPU_SCACHE
	select MIPS_GIC
	select MIPS_L1_CACHE_SHIFT_7
	select NO_EXCEPT_FILL
	select PCI_DRIVERS_GENERIC
	select SMP_UP if SMP
155
	select SWAP_IO_SPACE
156 157
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_HAS_CPU_MIPS32_R2
158
	select SYS_HAS_CPU_MIPS32_R5
159 160 161
	select SYS_HAS_CPU_MIPS32_R6
	select SYS_HAS_CPU_MIPS64_R1
	select SYS_HAS_CPU_MIPS64_R2
162
	select SYS_HAS_CPU_MIPS64_R5
163 164 165 166 167 168 169 170
	select SYS_HAS_CPU_MIPS64_R6
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SYS_SUPPORTS_MICROMIPS
	select SYS_SUPPORTS_MIPS16
171
	select SYS_SUPPORTS_MIPS_CPS
172 173 174
	select SYS_SUPPORTS_MULTITHREADING
	select SYS_SUPPORTS_RELOCATABLE
	select SYS_SUPPORTS_SMARTMIPS
175
	select SYS_SUPPORTS_ZBOOT
176
	select UHI_BOOT
177 178 179 180 181 182
	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
	select USB_UHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
	select USB_UHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
183 184 185 186 187 188 189
	select USE_OF
	help
	  Select this to build a kernel which aims to support multiple boards,
	  generally using a flattened device tree passed from the bootloader
	  using the boot protocol defined in the UHI (Unified Hosting
	  Interface) specification.

190
config MIPS_ALCHEMY
191
	bool "Alchemy processor based machines"
192
	select PHYS_ADDR_T_64BIT
193
	select CEVT_R4K
194
	select CSRC_R4K
195
	select IRQ_MIPS_CPU
196
	select DMA_NONCOHERENT		# Au1000,1500,1100 aren't, rest is
197
	select MIPS_FIXUP_BIGPHYS_ADDR if PCI
198 199 200
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_APM_EMULATION
201
	select GPIOLIB
202
	select SYS_SUPPORTS_ZBOOT
203
	select COMMON_CLK
Linus Torvalds's avatar
Linus Torvalds committed
204

205 206 207
config AR7
	bool "Texas Instruments AR7"
	select BOOT_ELF32
208
	select COMMON_CLK
209 210 211
	select DMA_NONCOHERENT
	select CEVT_R4K
	select CSRC_R4K
212
	select IRQ_MIPS_CPU
213 214 215 216 217 218
	select NO_EXCEPT_FILL
	select SWAP_IO_SPACE
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
219
	select SYS_SUPPORTS_MIPS16
220
	select SYS_SUPPORTS_ZBOOT_UART16550
221
	select GPIOLIB
222 223 224 225 226
	select VLYNQ
	help
	  Support for the Texas Instruments AR7 System-on-a-Chip
	  family: TNETD7100, 7200 and 7300.

227 228 229 230 231
config ATH25
	bool "Atheros AR231x/AR531x SoC support"
	select CEVT_R4K
	select CSRC_R4K
	select DMA_NONCOHERENT
232
	select IRQ_MIPS_CPU
233
	select IRQ_DOMAIN
234 235 236
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_32BIT_KERNEL
237
	select SYS_HAS_EARLY_PRINTK
238 239 240
	help
	  Support for Atheros AR231x and Atheros AR531x based boards

241 242
config ATH79
	bool "Atheros AR71XX/AR724X/AR913X based boards"
243
	select ARCH_HAS_RESET_CONTROLLER
244 245 246 247
	select BOOT_RAW
	select CEVT_R4K
	select CSRC_R4K
	select DMA_NONCOHERENT
248
	select GPIOLIB
249
	select PINCTRL
250
	select COMMON_CLK
251
	select IRQ_MIPS_CPU
252 253 254 255
	select SYS_HAS_CPU_MIPS32_R2
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
256
	select SYS_SUPPORTS_MIPS16
257
	select SYS_SUPPORTS_ZBOOT_UART_PROM
258
	select USE_OF
259
	select USB_EHCI_ROOT_HUB_TT if USB_EHCI_HCD_PLATFORM
260 261 262
	help
	  Support for the Atheros AR71XX/AR724X/AR913X SoCs.

263 264
config BMIPS_GENERIC
	bool "Broadcom Generic BMIPS kernel"
265
	select ARCH_HAS_RESET_CONTROLLER
266
	select ARCH_HAS_SYNC_DMA_FOR_CPU_ALL
267 268 269 270 271 272 273
	select BOOT_RAW
	select NO_EXCEPT_FILL
	select USE_OF
	select CEVT_R4K
	select CSRC_R4K
	select SYNC_R4K
	select COMMON_CLK
274
	select BCM6345_L1_IRQ
275 276 277
	select BCM7038_L1_IRQ
	select BCM7120_L2_IRQ
	select BRCMSTB_L2_IRQ
278
	select IRQ_MIPS_CPU
279
	select DMA_NONCOHERENT
280
	select SYS_SUPPORTS_32BIT_KERNEL
281
	select SYS_SUPPORTS_LITTLE_ENDIAN
282 283
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_HIGHMEM
284 285 286
	select SYS_HAS_CPU_BMIPS32_3300
	select SYS_HAS_CPU_BMIPS4350
	select SYS_HAS_CPU_BMIPS4380
287 288
	select SYS_HAS_CPU_BMIPS5000
	select SWAP_IO_SPACE
289 290 291 292
	select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
	select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
293
	select HARDIRQS_SW_RESEND
294 295
	select HAVE_PCI
	select PCI_DRIVERS_GENERIC
296
	select FW_CFE
297
	help
298 299 300 301
	  Build a generic DT-based kernel image that boots on select
	  BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
	  box chips.  Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
	  must be set appropriately for your board.
302

303
config BCM47XX
304
	bool "Broadcom BCM47XX based boards"
305
	select BOOT_RAW
306
	select CEVT_R4K
307
	select CSRC_R4K
308
	select DMA_NONCOHERENT
309
	select HAVE_PCI
310
	select IRQ_MIPS_CPU
311
	select SYS_HAS_CPU_MIPS32_R1
312
	select NO_EXCEPT_FILL
313 314
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
315
	select SYS_SUPPORTS_MIPS16
316
	select SYS_SUPPORTS_ZBOOT
317
	select SYS_HAS_EARLY_PRINTK
318
	select USE_GENERIC_EARLY_PRINTK_8250
319 320
	select GPIOLIB
	select LEDS_GPIO_REGISTER
321
	select BCM47XX_NVRAM
322
	select BCM47XX_SPROM
323
	select BCM47XX_SSB if !BCM47XX_BCMA
324
	help
325
	  Support for BCM47XX based boards
326

327 328
config BCM63XX
	bool "Broadcom BCM63XX based boards"
329
	select BOOT_RAW
330 331
	select CEVT_R4K
	select CSRC_R4K
332
	select SYNC_R4K
333
	select DMA_NONCOHERENT
334
	select IRQ_MIPS_CPU
335 336 337
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_HAS_EARLY_PRINTK
338 339 340
	select SYS_HAS_CPU_BMIPS32_3300
	select SYS_HAS_CPU_BMIPS4350
	select SYS_HAS_CPU_BMIPS4380
341
	select SWAP_IO_SPACE
342
	select GPIOLIB
343
	select MIPS_L1_CACHE_SHIFT_4
344
	select HAVE_LEGACY_CLK
345
	help
346
	  Support for BCM63XX based boards
347

Linus Torvalds's avatar
Linus Torvalds committed
348
config MIPS_COBALT
349
	bool "Cobalt Server"
350
	select CEVT_R4K
351
	select CSRC_R4K
352
	select CEVT_GT641XX
Linus Torvalds's avatar
Linus Torvalds committed
353
	select DMA_NONCOHERENT
354
	select FORCE_PCI
355
	select I8253
Linus Torvalds's avatar
Linus Torvalds committed
356
	select I8259
357
	select IRQ_MIPS_CPU
358
	select IRQ_GT641XX
359
	select PCI_GT64XXX_PCI0
360
	select SYS_HAS_CPU_NEVADA
361
	select SYS_HAS_EARLY_PRINTK
362
	select SYS_SUPPORTS_32BIT_KERNEL
363
	select SYS_SUPPORTS_64BIT_KERNEL
364
	select SYS_SUPPORTS_LITTLE_ENDIAN
365
	select USE_GENERIC_EARLY_PRINTK_8250
Linus Torvalds's avatar
Linus Torvalds committed
366 367

config MACH_DECSTATION
368
	bool "DECstations"
Linus Torvalds's avatar
Linus Torvalds committed
369
	select BOOT_ELF32
370
	select CEVT_DS1287
371
	select CEVT_R4K if CPU_R4X00
372
	select CSRC_IOASIC
373
	select CSRC_R4K if CPU_R4X00
374 375 376
	select CPU_DADDI_WORKAROUNDS if 64BIT
	select CPU_R4000_WORKAROUNDS if 64BIT
	select CPU_R4400_WORKAROUNDS if 64BIT
Linus Torvalds's avatar
Linus Torvalds committed
377
	select DMA_NONCOHERENT
378
	select NO_IOPORT_MAP
379
	select IRQ_MIPS_CPU
380 381
	select SYS_HAS_CPU_R3000
	select SYS_HAS_CPU_R4X00
382
	select SYS_SUPPORTS_32BIT_KERNEL
383
	select SYS_SUPPORTS_64BIT_KERNEL
384
	select SYS_SUPPORTS_LITTLE_ENDIAN
385 386 387
	select SYS_SUPPORTS_128HZ
	select SYS_SUPPORTS_256HZ
	select SYS_SUPPORTS_1024HZ
388
	select MIPS_L1_CACHE_SHIFT_4
389
	help
Linus Torvalds's avatar
Linus Torvalds committed
390 391 392 393 394 395 396
	  This enables support for DEC's MIPS based workstations.  For details
	  see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
	  DECstation porting pages on <http://decstation.unix-ag.org/>.

	  If you have one of the following DECstation Models you definitely
	  want to choose R4xx0 for the CPU Type:

397 398 399 400
		DECstation 5000/50
		DECstation 5000/150
		DECstation 5000/260
		DECsystem 5900/260
Linus Torvalds's avatar
Linus Torvalds committed
401 402 403

	  otherwise choose R3000.

404
config MACH_JAZZ
405
	bool "Jazz family of machines"
406 407
	select ARC_MEMORY
	select ARC_PROMLIB
408
	select ARCH_MIGHT_HAVE_PC_PARPORT
409
	select ARCH_MIGHT_HAVE_PC_SERIO
410
	select DMA_OPS
411 412
	select FW_ARC
	select FW_ARC32
413
	select ARCH_MAY_HAVE_PC_FDC
414
	select CEVT_R4K
415
	select CSRC_R4K
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
416
	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
417
	select GENERIC_ISA_DMA
418
	select HAVE_PCSPKR_PLATFORM
419
	select IRQ_MIPS_CPU
420
	select I8253
421 422
	select I8259
	select ISA
423
	select SYS_HAS_CPU_R4X00
424
	select SYS_SUPPORTS_32BIT_KERNEL
425
	select SYS_SUPPORTS_64BIT_KERNEL
426
	select SYS_SUPPORTS_100HZ
427
	select SYS_SUPPORTS_LITTLE_ENDIAN
Linus Torvalds's avatar
Linus Torvalds committed
428
	help
429 430 431 432
	  This a family of machines based on the MIPS R4030 chipset which was
	  used by several vendors to build RISC/os and Windows NT workstations.
	  Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
	  Olivetti M700-10 workstations.
433

434
config MACH_INGENIC_SOC
435
	bool "Ingenic SoC based machines"
436 437
	select MIPS_GENERIC
	select MACH_INGENIC
438
	select SYS_SUPPORTS_ZBOOT_UART16550
439 440
	select CPU_SUPPORTS_CPUFREQ
	select MIPS_EXTERNAL_TIMER
441

442 443 444
config LANTIQ
	bool "Lantiq based platforms"
	select DMA_NONCOHERENT
445
	select IRQ_MIPS_CPU
446 447
	select CEVT_R4K
	select CSRC_R4K
448
	select NO_EXCEPT_FILL
449 450 451 452
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_HAS_CPU_MIPS32_R2
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_32BIT_KERNEL
453
	select SYS_SUPPORTS_MIPS16
454
	select SYS_SUPPORTS_MULTITHREADING
455
	select SYS_SUPPORTS_VPE_LOADER
456
	select SYS_HAS_EARLY_PRINTK
457
	select GPIOLIB
458 459
	select SWAP_IO_SPACE
	select BOOT_RAW
460
	select HAVE_LEGACY_CLK
461
	select USE_OF
462 463
	select PINCTRL
	select PINCTRL_LANTIQ
464 465
	select ARCH_HAS_RESET_CONTROLLER
	select RESET_CONTROLLER
466

467
config MACH_LOONGSON32
468
	bool "Loongson 32-bit family of machines"
469
	select SYS_SUPPORTS_ZBOOT
470
	help
471
	  This enables support for the Loongson-1 family of machines.
472

473 474 475
	  Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
	  the Institute of Computing Technology (ICT), Chinese Academy of
	  Sciences (CAS).
476

477 478
config MACH_LOONGSON2EF
	bool "Loongson-2E/F family of machines"
479 480
	select SYS_SUPPORTS_ZBOOT
	help
481
	  This enables the support of early Loongson-2E/F family of machines.
482

483
config MACH_LOONGSON64
484
	bool "Loongson 64-bit family of machines"
485 486 487 488 489 490 491 492 493 494 495 496
	select ARCH_SPARSEMEM_ENABLE
	select ARCH_MIGHT_HAVE_PC_PARPORT
	select ARCH_MIGHT_HAVE_PC_SERIO
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
	select BOOT_ELF32
	select BOARD_SCACHE
	select CSRC_R4K
	select CEVT_R4K
	select FORCE_PCI
	select ISA
	select I8259
	select IRQ_MIPS_CPU
497
	select NO_EXCEPT_FILL
498
	select NR_CPUS_DEFAULT_64
499
	select USE_GENERIC_EARLY_PRINTK_8250
500
	select PCI_DRIVERS_GENERIC
501 502 503 504 505 506 507 508
	select SYS_HAS_CPU_LOONGSON64
	select SYS_HAS_EARLY_PRINTK
	select SYS_SUPPORTS_SMP
	select SYS_SUPPORTS_HOTPLUG_CPU
	select SYS_SUPPORTS_NUMA
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
509
	select SYS_SUPPORTS_ZBOOT
510
	select SYS_SUPPORTS_RELOCATABLE
511
	select ZONE_DMA32
512 513 514
	select COMMON_CLK
	select USE_OF
	select BUILTIN_DTB
515
	select PCI_HOST_GENERIC
516
	select HAVE_ARCH_NODEDATA_EXTENSION if NUMA
517
	help
518 519 520 521 522 523
	  This enables the support of Loongson-2/3 family of machines.

	  Loongson-2 and Loongson-3 are 64-bit general-purpose processors with
	  GS264/GS464/GS464E/GS464V microarchitecture (except old Loongson-2E
	  and Loongson-2F which will be removed), developed by the Institute
	  of Computing Technology (ICT), Chinese Academy of Sciences (CAS).
524

Linus Torvalds's avatar
Linus Torvalds committed
525
config MIPS_MALTA
526
	bool "MIPS Malta board"
527
	select ARCH_MAY_HAVE_PC_FDC
528
	select ARCH_MIGHT_HAVE_PC_PARPORT
529
	select ARCH_MIGHT_HAVE_PC_SERIO
Linus Torvalds's avatar
Linus Torvalds committed
530
	select BOOT_ELF32
531
	select BOOT_RAW
532
	select BUILTIN_DTB
533
	select CEVT_R4K
534
	select CLKSRC_MIPS_GIC
535
	select COMMON_CLK
536
	select CSRC_R4K
537
	select DMA_NONCOHERENT
Linus Torvalds's avatar
Linus Torvalds committed
538
	select GENERIC_ISA_DMA
539
	select HAVE_PCSPKR_PLATFORM
540
	select HAVE_PCI
541
	select I8253
Linus Torvalds's avatar
Linus Torvalds committed
542
	select I8259
543
	select IRQ_MIPS_CPU
544
	select MIPS_BONITO64
545
	select MIPS_CPU_SCACHE
546
	select MIPS_GIC
547
	select MIPS_L1_CACHE_SHIFT_6
548
	select MIPS_MSC
549
	select PCI_GT64XXX_PCI0
550
	select SMP_UP if SMP
Linus Torvalds's avatar
Linus Torvalds committed
551
	select SWAP_IO_SPACE
552 553
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_HAS_CPU_MIPS32_R2
554
	select SYS_HAS_CPU_MIPS32_R3_5
555
	select SYS_HAS_CPU_MIPS32_R5
556
	select SYS_HAS_CPU_MIPS32_R6
557
	select SYS_HAS_CPU_MIPS64_R1
558
	select SYS_HAS_CPU_MIPS64_R2
559
	select SYS_HAS_CPU_MIPS64_R6
560 561
	select SYS_HAS_CPU_NEVADA
	select SYS_HAS_CPU_RM7000
562 563
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL
564
	select SYS_SUPPORTS_BIG_ENDIAN
565
	select SYS_SUPPORTS_HIGHMEM
566
	select SYS_SUPPORTS_LITTLE_ENDIAN
567
	select SYS_SUPPORTS_MICROMIPS
568
	select SYS_SUPPORTS_MIPS16
569
	select SYS_SUPPORTS_MIPS_CPS
570
	select SYS_SUPPORTS_MULTITHREADING
571
	select SYS_SUPPORTS_RELOCATABLE
572
	select SYS_SUPPORTS_SMARTMIPS
573
	select SYS_SUPPORTS_VPE_LOADER
574
	select SYS_SUPPORTS_ZBOOT
575
	select USE_OF
576
	select WAR_ICACHE_REFILLS
577
	select ZONE_DMA32 if 64BIT
Linus Torvalds's avatar
Linus Torvalds committed
578
	help
579
	  This enables support for the MIPS Technologies Malta evaluation
Linus Torvalds's avatar
Linus Torvalds committed
580 581
	  board.

582 583 584 585 586 587 588 589
config MACH_PIC32
	bool "Microchip PIC32 Family"
	help
	  This enables support for the Microchip PIC32 family of platforms.

	  Microchip PIC32 is a family of general-purpose 32 bit MIPS core
	  microcontrollers.

Lauri Kasanen's avatar
Lauri Kasanen committed
590 591 592 593 594 595 596 597 598 599 600 601
config MACH_NINTENDO64
	bool "Nintendo 64 console"
	select CEVT_R4K
	select CSRC_R4K
	select SYS_HAS_CPU_R4300
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_ZBOOT
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU

602 603 604
config RALINK
	bool "Ralink based machines"
	select CEVT_R4K
605
	select COMMON_CLK
606 607 608
	select CSRC_R4K
	select BOOT_RAW
	select DMA_NONCOHERENT
609
	select IRQ_MIPS_CPU
610 611 612 613
	select USE_OF
	select SYS_HAS_CPU_MIPS32_R2
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
614
	select SYS_SUPPORTS_MIPS16
615
	select SYS_SUPPORTS_ZBOOT
616
	select SYS_HAS_EARLY_PRINTK
617 618
	select ARCH_HAS_RESET_CONTROLLER
	select RESET_CONTROLLER
619

620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637
config MACH_REALTEK_RTL
	bool "Realtek RTL838x/RTL839x based machines"
	select MIPS_GENERIC
	select DMA_NONCOHERENT
	select IRQ_MIPS_CPU
	select CSRC_R4K
	select CEVT_R4K
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_HAS_CPU_MIPS32_R2
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_MIPS16
	select SYS_SUPPORTS_MULTITHREADING
	select SYS_SUPPORTS_VPE_LOADER
	select BOOT_RAW
	select PINCTRL
	select USE_OF

Linus Torvalds's avatar
Linus Torvalds committed
638
config SGI_IP22
639
	bool "SGI IP22 (Indy/Indigo2)"
640
	select ARC_MEMORY
641
	select ARC_PROMLIB
642 643
	select FW_ARC
	select FW_ARC32
644
	select ARCH_MIGHT_HAVE_PC_SERIO
Linus Torvalds's avatar
Linus Torvalds committed
645
	select BOOT_ELF32
646
	select CEVT_R4K
647
	select CSRC_R4K
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
648
	select DEFAULT_SGI_PARTITION
Linus Torvalds's avatar
Linus Torvalds committed
649
	select DMA_NONCOHERENT
650
	select HAVE_EISA
651
	select I8253
652
	select I8259
Linus Torvalds's avatar
Linus Torvalds committed
653
	select IP22_CPU_SCACHE
654
	select IRQ_MIPS_CPU
655
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
656 657
	select SGI_HAS_I8042
	select SGI_HAS_INDYDOG
658
	select SGI_HAS_HAL2
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
659 660 661
	select SGI_HAS_SEEQ
	select SGI_HAS_WD93
	select SGI_HAS_ZILOG
Linus Torvalds's avatar
Linus Torvalds committed
662
	select SWAP_IO_SPACE
663 664
	select SYS_HAS_CPU_R4X00
	select SYS_HAS_CPU_R5000
665
	select SYS_HAS_EARLY_PRINTK
666 667
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_64BIT_KERNEL
668
	select SYS_SUPPORTS_BIG_ENDIAN
669
	select WAR_R4600_V1_INDEX_ICACHEOP
670
	select WAR_R4600_V1_HIT_CACHEOP
671
	select WAR_R4600_V2_HIT_CACHEOP
672
	select MIPS_L1_CACHE_SHIFT_7
Linus Torvalds's avatar
Linus Torvalds committed
673 674 675 676 677 678
	help
	  This are the SGI Indy, Challenge S and Indigo2, as well as certain
	  OEM variants like the Tandem CMN B006S. To compile a Linux kernel
	  that runs on these, say Y here.

config SGI_IP27
679
	bool "SGI IP27 (Origin200/2000)"
680
	select ARCH_HAS_PHYS_TO_DMA
681
	select ARCH_SPARSEMEM_ENABLE
682 683
	select FW_ARC
	select FW_ARC64
684
	select ARC_CMDLINE_ONLY
685
	select BOOT_ELF64
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
686
	select DEFAULT_SGI_PARTITION
687
	select FORCE_PCI
688
	select SYS_HAS_EARLY_PRINTK
689
	select HAVE_PCI
690
	select IRQ_MIPS_CPU
691
	select IRQ_DOMAIN_HIERARCHY
692
	select NR_CPUS_DEFAULT_64
693 694
	select PCI_DRIVERS_GENERIC
	select PCI_XTALK_BRIDGE
695
	select SYS_HAS_CPU_R10000
696
	select SYS_SUPPORTS_64BIT_KERNEL
697
	select SYS_SUPPORTS_BIG_ENDIAN
698
	select SYS_SUPPORTS_NUMA
699
	select SYS_SUPPORTS_SMP
700
	select WAR_R10000_LLSC
701
	select MIPS_L1_CACHE_SHIFT_7
702
	select NUMA
703
	select HAVE_ARCH_NODEDATA_EXTENSION
Linus Torvalds's avatar
Linus Torvalds committed
704 705 706 707 708
	help
	  This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
	  workstations.  To compile a Linux kernel that runs on these, say Y
	  here.

Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
709
config SGI_IP28
710
	bool "SGI IP28 (Indigo2 R10k)"
711
	select ARC_MEMORY
712
	select ARC_PROMLIB
713 714
	select FW_ARC
	select FW_ARC64
715
	select ARCH_MIGHT_HAVE_PC_SERIO
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
716 717 718 719 720 721
	select BOOT_ELF64
	select CEVT_R4K
	select CSRC_R4K
	select DEFAULT_SGI_PARTITION
	select DMA_NONCOHERENT
	select GENERIC_ISA_DMA_SUPPORT_BROKEN
722
	select IRQ_MIPS_CPU
723
	select HAVE_EISA
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
724 725 726 727
	select I8253
	select I8259
	select SGI_HAS_I8042
	select SGI_HAS_INDYDOG
728
	select SGI_HAS_HAL2
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
729 730 731 732 733
	select SGI_HAS_SEEQ
	select SGI_HAS_WD93
	select SGI_HAS_ZILOG
	select SWAP_IO_SPACE
	select SYS_HAS_CPU_R10000
734
	select SYS_HAS_EARLY_PRINTK
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
735 736
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
737
	select WAR_R10000_LLSC
738
	select MIPS_L1_CACHE_SHIFT_7
739 740 741
	help
	  This is the SGI Indigo2 with R10000 processor.  To compile a Linux
	  kernel that runs on these, say Y here.
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
742

743 744 745 746 747 748 749 750
config SGI_IP30
	bool "SGI IP30 (Octane/Octane2)"
	select ARCH_HAS_PHYS_TO_DMA
	select FW_ARC
	select FW_ARC64
	select BOOT_ELF64
	select CEVT_R4K
	select CSRC_R4K
751
	select FORCE_PCI
752 753 754 755 756 757 758 759 760 761 762 763
	select SYNC_R4K if SMP
	select ZONE_DMA32
	select HAVE_PCI
	select IRQ_MIPS_CPU
	select IRQ_DOMAIN_HIERARCHY
	select PCI_DRIVERS_GENERIC
	select PCI_XTALK_BRIDGE
	select SYS_HAS_EARLY_PRINTK
	select SYS_HAS_CPU_R10000
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_SMP
764
	select WAR_R10000_LLSC
765 766 767 768 769 770
	select MIPS_L1_CACHE_SHIFT_7
	select ARC_MEMORY
	help
	  These are the SGI Octane and Octane2 graphics workstations.  To
	  compile a Linux kernel that runs on these, say Y here.

Linus Torvalds's avatar
Linus Torvalds committed
771
config SGI_IP32
772
	bool "SGI IP32 (O2)"
773 774
	select ARC_MEMORY
	select ARC_PROMLIB
775
	select ARCH_HAS_PHYS_TO_DMA
776 777
	select FW_ARC
	select FW_ARC32
Linus Torvalds's avatar
Linus Torvalds committed
778
	select BOOT_ELF32
779
	select CEVT_R4K
780
	select CSRC_R4K
Linus Torvalds's avatar
Linus Torvalds committed
781
	select DMA_NONCOHERENT
782
	select HAVE_PCI
783
	select IRQ_MIPS_CPU
Linus Torvalds's avatar
Linus Torvalds committed
784 785
	select R5000_CPU_SCACHE
	select RM7000_CPU_SCACHE
786 787 788
	select SYS_HAS_CPU_R5000
	select SYS_HAS_CPU_R10000 if BROKEN
	select SYS_HAS_CPU_RM7000
789
	select SYS_HAS_CPU_NEVADA
790
	select SYS_SUPPORTS_64BIT_KERNEL
791
	select SYS_SUPPORTS_BIG_ENDIAN
792
	select WAR_ICACHE_REFILLS
793
	help
794
	  If you want this kernel to run on SGI O2 workstation, say Y here.
Linus Torvalds's avatar
Linus Torvalds committed
795

796 797
config SIBYTE_CRHONE
	bool "Sibyte BCM91125C-CRhone"
798
	select BOOT_ELF32
799
	select SIBYTE_BCM1125
800
	select SWAP_IO_SPACE
801
	select SYS_HAS_CPU_SB1
802
	select SYS_SUPPORTS_BIG_ENDIAN
803
	select SYS_SUPPORTS_HIGHMEM
804
	select SYS_SUPPORTS_LITTLE_ENDIAN
Linus Torvalds's avatar
Linus Torvalds committed
805

806
config SIBYTE_RHONE
807
	bool "Sibyte BCM91125E-Rhone"
808
	select BOOT_ELF32
809
	select SIBYTE_SB1250
810
	select SWAP_IO_SPACE
811
	select SYS_HAS_CPU_SB1
812 813
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_LITTLE_ENDIAN
Linus Torvalds's avatar
Linus Torvalds committed
814

815 816
config SIBYTE_SWARM
	bool "Sibyte BCM91250A-SWARM"
817
	select BOOT_ELF32
818
	select HAVE_PATA_PLATFORM
819
	select SIBYTE_SB1250
820
	select SWAP_IO_SPACE
821
	select SYS_HAS_CPU_SB1
822
	select SYS_SUPPORTS_BIG_ENDIAN
823
	select SYS_SUPPORTS_HIGHMEM
Pete Popov's avatar
Pete Popov committed
824
	select SYS_SUPPORTS_LITTLE_ENDIAN
825
	select ZONE_DMA32 if 64BIT
826
	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
Pete Popov's avatar
Pete Popov committed
827

828 829
config SIBYTE_LITTLESUR
	bool "Sibyte BCM91250C2-LittleSur"
830
	select BOOT_ELF32
831
	select HAVE_PATA_PLATFORM
832 833
	select SIBYTE_SB1250
	select SWAP_IO_SPACE
834
	select SYS_HAS_CPU_SB1
835 836 837
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_HIGHMEM
	select SYS_SUPPORTS_LITTLE_ENDIAN
838
	select ZONE_DMA32 if 64BIT
Linus Torvalds's avatar
Linus Torvalds committed
839

840 841
config SIBYTE_SENTOSA
	bool "Sibyte BCM91250E-Sentosa"
842 843 844
	select BOOT_ELF32
	select SIBYTE_SB1250
	select SWAP_IO_SPACE
845
	select SYS_HAS_CPU_SB1
846 847
	select SYS_SUPPORTS_BIG_ENDIAN
	select SYS_SUPPORTS_LITTLE_ENDIAN
848
	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
Linus Torvalds's avatar
Linus Torvalds committed
849

850 851
config SIBYTE_BIGSUR
	bool "Sibyte BCM91480B-BigSur"
852
	select BOOT_ELF32
853 854
	select NR_CPUS_DEFAULT_4
	select SIBYTE_BCM1x80
855
	select SWAP_IO_SPACE
856
	select SYS_HAS_CPU_SB1
857
	select SYS_SUPPORTS_BIG_ENDIAN
858
	select SYS_SUPPORTS_HIGHMEM
859
	select SYS_SUPPORTS_LITTLE_ENDIAN
860
	select ZONE_DMA32 if 64BIT
861
	select SWIOTLB if ARCH_DMA_ADDR_T_64BIT && PCI
Linus Torvalds's avatar
Linus Torvalds committed
862

863 864
config SNI_RM
	bool "SNI RM200/300/400"
865 866
	select ARC_MEMORY
	select ARC_PROMLIB
867 868
	select FW_ARC if CPU_LITTLE_ENDIAN
	select FW_ARC32 if CPU_LITTLE_ENDIAN
869
	select FW_SNIPROM if CPU_BIG_ENDIAN
870
	select ARCH_MAY_HAVE_PC_FDC
871
	select ARCH_MIGHT_HAVE_PC_PARPORT
872
	select ARCH_MIGHT_HAVE_PC_SERIO
Linus Torvalds's avatar
Linus Torvalds committed
873
	select BOOT_ELF32
874
	select CEVT_R4K
875
	select CSRC_R4K
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
876
	select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
Linus Torvalds's avatar
Linus Torvalds committed
877 878
	select DMA_NONCOHERENT
	select GENERIC_ISA_DMA
879
	select HAVE_EISA
880
	select HAVE_PCSPKR_PLATFORM
881
	select HAVE_PCI
882
	select IRQ_MIPS_CPU
883
	select I8253
Linus Torvalds's avatar
Linus Torvalds committed
884 885
	select I8259
	select ISA
886
	select MIPS_L1_CACHE_SHIFT_6
887
	select SWAP_IO_SPACE if CPU_BIG_ENDIAN
888
	select SYS_HAS_CPU_R4X00
889
	select SYS_HAS_CPU_R5000
890
	select SYS_HAS_CPU_R10000
891
	select R5000_CPU_SCACHE
892
	select SYS_HAS_EARLY_PRINTK
893
	select SYS_SUPPORTS_32BIT_KERNEL
894
	select SYS_SUPPORTS_64BIT_KERNEL
895
	select SYS_SUPPORTS_BIG_ENDIAN
896
	select SYS_SUPPORTS_HIGHMEM
897
	select SYS_SUPPORTS_LITTLE_ENDIAN
898
	select WAR_R4600_V2_HIT_CACHEOP
Linus Torvalds's avatar
Linus Torvalds committed
899
	help
900 901
	  The SNI RM200/300/400 are MIPS-based machines manufactured by
	  Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
Linus Torvalds's avatar
Linus Torvalds committed
902 903 904
	  Technology and now in turn merged with Fujitsu.  Say Y here to
	  support this machine type.

905 906
config MACH_TX49XX
	bool "Toshiba TX49 series based machines"
907
	select WAR_TX49XX_ICACHE_INDEX_INV
908

909 910 911 912 913
config MIKROTIK_RB532
	bool "Mikrotik RB532 boards"
	select CEVT_R4K
	select CSRC_R4K
	select DMA_NONCOHERENT
914
	select HAVE_PCI
915
	select IRQ_MIPS_CPU
916 917 918 919 920
	select SYS_HAS_CPU_MIPS32_R1
	select SYS_SUPPORTS_32BIT_KERNEL
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SWAP_IO_SPACE
	select BOOT_RAW
921
	select GPIOLIB
922
	select MIPS_L1_CACHE_SHIFT_4
923 924 925 926
	help
	  Support the Mikrotik(tm) RouterBoard 532 series,
	  based on the IDT RC32434 SoC.

927 928
config CAVIUM_OCTEON_SOC
	bool "Cavium Networks Octeon SoC based boards"
929
	select CEVT_R4K
930
	select ARCH_HAS_PHYS_TO_DMA
931
	select HAVE_RAPIDIO
932
	select PHYS_ADDR_T_64BIT
933 934
	select SYS_SUPPORTS_64BIT_KERNEL
	select SYS_SUPPORTS_BIG_ENDIAN
935
	select EDAC_SUPPORT
936
	select EDAC_ATOMIC_SCRUB
937 938
	select SYS_SUPPORTS_LITTLE_ENDIAN
	select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
939
	select SYS_HAS_EARLY_PRINTK
940
	select SYS_HAS_CPU_CAVIUM_OCTEON
941
	select HAVE_PCI
942 943 944
	select HAVE_PLAT_DELAY
	select HAVE_PLAT_FW_INIT_CMDLINE
	select HAVE_PLAT_MEMCPY
945
	select ZONE_DMA32
946
	select GPIOLIB
947 948 949
	select USE_OF
	select ARCH_SPARSEMEM_ENABLE
	select SYS_SUPPORTS_SMP
950 951
	select NR_CPUS_DEFAULT_64
	select MIPS_NR_CPU_NR_MAP_1024
952
	select BUILTIN_DTB
953
	select MTD
954
	select MTD_COMPLEX_MAPPINGS
955
	select SWIOTLB
956
	select SYS_SUPPORTS_RELOCATABLE
957 958 959 960 961 962 963 964 965 966 967 968 969
	help
	  This option supports all of the Octeon reference boards from Cavium
	  Networks. It builds a kernel that dynamically determines the Octeon
	  CPU type and supports all known board reference implementations.
	  Some of the supported boards are:
		EBT3000
		EBH3000
		EBH3100
		Thunder
		Kodama
		Hikari
	  Say Y here for most Octeon reference boards.

970
endchoice
Linus Torvalds's avatar
Linus Torvalds committed
971

972
source "arch/mips/alchemy/Kconfig"
973
source "arch/mips/ath25/Kconfig"
974
source "arch/mips/ath79/Kconfig"
975
source "arch/mips/bcm47xx/Kconfig"
976
source "arch/mips/bcm63xx/Kconfig"
977
source "arch/mips/bmips/Kconfig"
978
source "arch/mips/generic/Kconfig"
979
source "arch/mips/ingenic/Kconfig"
980
source "arch/mips/jazz/Kconfig"
981
source "arch/mips/lantiq/Kconfig"
982
source "arch/mips/pic32/Kconfig"
983
source "arch/mips/ralink/Kconfig"
984
source "arch/mips/sgi-ip27/Kconfig"
985
source "arch/mips/sibyte/Kconfig"
986
source "arch/mips/txx9/Kconfig"
987
source "arch/mips/cavium-octeon/Kconfig"
988
source "arch/mips/loongson2ef/Kconfig"
989 990
source "arch/mips/loongson32/Kconfig"
source "arch/mips/loongson64/Kconfig"
991

992 993
endmenu

994 995 996 997
config GENERIC_HWEIGHT
	bool
	default y

Linus Torvalds's avatar
Linus Torvalds committed
998 999 1000 1001
config GENERIC_CALIBRATE_DELAY
	bool
	default y

1002
config SCHED_OMIT_FRAME_POINTER
1003 1004 1005
	bool
	default y

Linus Torvalds's avatar
Linus Torvalds committed
1006 1007 1008
#
# Select some configuration options automatically based on user selections.
#
1009
config FW_ARC
Linus Torvalds's avatar
Linus Torvalds committed
1010 1011
	bool

1012 1013 1014
config ARCH_MAY_HAVE_PC_FDC
	bool

1015 1016 1017
config BOOT_RAW
	bool

1018 1019 1020
config CEVT_BCM1480
	bool

1021 1022 1023
config CEVT_DS1287
	bool

1024 1025 1026
config CEVT_GT641XX
	bool

1027 1028 1029
config CEVT_R4K
	bool

1030 1031 1032
config CEVT_SB1250
	bool

1033 1034 1035
config CEVT_TXX9
	bool

1036 1037 1038
config CSRC_BCM1480
	bool

1039 1040 1041
config CSRC_IOASIC
	bool

1042
config CSRC_R4K
1043
	select CLOCKSOURCE_WATCHDOG if CPU_FREQ
1044 1045
	bool

1046 1047 1048
config CSRC_SB1250
	bool

1049 1050 1051
config MIPS_CLOCK_VSYSCALL
	def_bool CSRC_R4K || CLKSRC_MIPS_GIC

1052
config GPIO_TXX9
1053
	select GPIOLIB
1054 1055
	bool

1056
config FW_CFE
1057 1058
	bool

Ralf Baechle's avatar
Ralf Baechle committed
1059
config ARCH_SUPPORTS_UPROBES
1060
	def_bool y
Ralf Baechle's avatar
Ralf Baechle committed
1061

1062 1063
config DMA_NONCOHERENT
	bool
1064 1065 1066 1067 1068 1069 1070
	#
	# MIPS allows mixing "slightly different" Cacheability and Coherency
	# Attribute bits.  It is believed that the uncached access through
	# KSEG1 and the implementation specific "uncached accelerated" used
	# by pgprot_writcombine can be mixed, and the latter sometimes provides
	# significant advantages.
	#
1071
	select ARCH_HAS_SETUP_DMA_OPS
1072
	select ARCH_HAS_DMA_WRITE_COMBINE
1073
	select ARCH_HAS_DMA_PREP_COHERENT
1074
	select ARCH_HAS_SYNC_DMA_FOR_CPU
1075
	select ARCH_HAS_SYNC_DMA_FOR_DEVICE
1076
	select ARCH_HAS_DMA_SET_UNCACHED
1077 1078
	select DMA_NONCOHERENT_MMAP
	select NEED_DMA_MAP_STATE
1079

1080
config SYS_HAS_EARLY_PRINTK
Linus Torvalds's avatar
Linus Torvalds committed
1081 1082
	bool

1083
config SYS_SUPPORTS_HOTPLUG_CPU
1084 1085
	bool

Linus Torvalds's avatar
Linus Torvalds committed
1086 1087 1088 1089 1090 1091
config MIPS_BONITO64
	bool

config MIPS_MSC
	bool

1092 1093 1094
config SYNC_R4K
	bool

1095
config NO_IOPORT_MAP
1096 1097
	def_bool n

1098
config GENERIC_CSUM
1099
	def_bool CPU_NO_LOAD_STORE_LR
1100

1101 1102 1103
config GENERIC_ISA_DMA
	bool
	select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1104
	select ISA_DMA_API
1105

1106 1107
config GENERIC_ISA_DMA_SUPPORT_BROKEN
	bool
1108
	select GENERIC_ISA_DMA
1109

1110 1111 1112 1113 1114 1115 1116 1117 1118
config HAVE_PLAT_DELAY
	bool

config HAVE_PLAT_FW_INIT_CMDLINE
	bool

config HAVE_PLAT_MEMCPY
	bool

1119 1120 1121
config ISA_DMA_API
	bool

1122 1123 1124
config SYS_SUPPORTS_RELOCATABLE
	bool
	help
1125 1126 1127
	  Selected if the platform supports relocating the kernel.
	  The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
	  to allow access to command line and entropy sources.
1128

1129
#
1130
# Endianness selection.  Sufficiently obscure so many users don't know what to
1131 1132 1133 1134
# answer,so we try hard to limit the available choices.  Also the use of a
# choice statement should be more obvious to the user.
#
choice
1135
	prompt "Endianness selection"
Linus Torvalds's avatar
Linus Torvalds committed
1136 1137
	help
	  Some MIPS machines can be configured for either little or big endian
1138
	  byte order. These modes require different kernels and a different
Matt LaPlante's avatar
Matt LaPlante committed
1139
	  Linux distribution.  In general there is one preferred byteorder for a
1140
	  particular system but some systems are just as commonly used in the
1141
	  one or the other endianness.
1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152

config CPU_BIG_ENDIAN
	bool "Big endian"
	depends on SYS_SUPPORTS_BIG_ENDIAN

config CPU_LITTLE_ENDIAN
	bool "Little endian"
	depends on SYS_SUPPORTS_LITTLE_ENDIAN

endchoice

1153 1154 1155
config EXPORT_UASM
	bool

1156 1157 1158
config SYS_SUPPORTS_APM_EMULATION
	bool

1159 1160 1161 1162 1163
config SYS_SUPPORTS_BIG_ENDIAN
	bool

config SYS_SUPPORTS_LITTLE_ENDIAN
	bool
Linus Torvalds's avatar
Linus Torvalds committed
1164

1165 1166 1167
config MIPS_HUGE_TLB_SUPPORT
	def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE

1168 1169 1170
config IRQ_TXX9
	bool

1171 1172 1173
config IRQ_GT641XX
	bool

1174
config PCI_GT64XXX_PCI0
Linus Torvalds's avatar
Linus Torvalds committed
1175 1176
	bool

1177 1178 1179
config PCI_XTALK_BRIDGE
	bool

1180 1181 1182
config NO_EXCEPT_FILL
	bool

1183 1184 1185
config MIPS_SPRAM
	bool

Linus Torvalds's avatar
Linus Torvalds committed
1186 1187 1188
config SWAP_IO_SPACE
	bool

Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
1189 1190 1191
config SGI_HAS_INDYDOG
	bool

1192 1193 1194
config SGI_HAS_HAL2
	bool

Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209
config SGI_HAS_SEEQ
	bool

config SGI_HAS_WD93
	bool

config SGI_HAS_ZILOG
	bool

config SGI_HAS_I8042
	bool

config DEFAULT_SGI_PARTITION
	bool

1210
config FW_ARC32
1211 1212
	bool

1213
config FW_SNIPROM
1214 1215
	bool

Linus Torvalds's avatar
Linus Torvalds committed
1216 1217 1218
config BOOT_ELF32
	bool

1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230
config MIPS_L1_CACHE_SHIFT_4
	bool

config MIPS_L1_CACHE_SHIFT_5
	bool

config MIPS_L1_CACHE_SHIFT_6
	bool

config MIPS_L1_CACHE_SHIFT_7
	bool

Linus Torvalds's avatar
Linus Torvalds committed
1231 1232
config MIPS_L1_CACHE_SHIFT
	int
1233
	default "7" if MIPS_L1_CACHE_SHIFT_7
1234 1235 1236
	default "6" if MIPS_L1_CACHE_SHIFT_6
	default "5" if MIPS_L1_CACHE_SHIFT_5
	default "4" if MIPS_L1_CACHE_SHIFT_4
Linus Torvalds's avatar
Linus Torvalds committed
1237 1238
	default "5"

1239 1240 1241
config ARC_CMDLINE_ONLY
	bool

Linus Torvalds's avatar
Linus Torvalds committed
1242 1243
config ARC_CONSOLE
	bool "ARC console support"
Thomas Bogendoerfer's avatar
Thomas Bogendoerfer committed
1244
	depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
Linus Torvalds's avatar
Linus Torvalds committed
1245 1246 1247 1248 1249 1250 1251

config ARC_MEMORY
	bool

config ARC_PROMLIB
	bool

1252
config FW_ARC64
Linus Torvalds's avatar
Linus Torvalds committed
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263
	bool

config BOOT_ELF64
	bool

menu "CPU selection"

choice
	prompt "CPU type"
	default CPU_R4X00

1264
config CPU_LOONGSON64
1265
	bool "Loongson 64-bit CPU"
1266
	depends on SYS_HAS_CPU_LOONGSON64
1267
	select ARCH_HAS_PHYS_TO_DMA
1268 1269
	select CPU_MIPSR2
	select CPU_HAS_PREFETCH
1270 1271 1272
	select CPU_SUPPORTS_64BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
	select CPU_SUPPORTS_HUGEPAGES
1273
	select CPU_SUPPORTS_MSA
1274 1275
	select CPU_DIEI_BROKEN if !LOONGSON3_ENHANCEMENT
	select CPU_MIPSR2_IRQ_VI
1276 1277
	select WEAK_ORDERING
	select WEAK_REORDERING_BEYOND_LLSC
1278
	select MIPS_ASID_BITS_VARIABLE
1279
	select MIPS_PGD_C0_CONTEXT
1280
	select MIPS_L1_CACHE_SHIFT_6
1281
	select MIPS_FP_SUPPORT
1282
	select GPIOLIB
1283
	select SWIOTLB
1284
	select HAVE_KVM
1285
	help
1286 1287 1288 1289 1290
	  The Loongson GSx64(GS264/GS464/GS464E/GS464V) series of processor
	  cores implements the MIPS64R2 instruction set with many extensions,
	  including most 64-bit Loongson-2 (2H, 2K) and Loongson-3 (3A1000,
	  3B1000, 3B1500, 3A2000, 3A3000 and 3A4000) processors. However, old
	  Loongson-2E/2F is not covered here and will be removed in future.
1291 1292 1293

config LOONGSON3_ENHANCEMENT
	bool "New Loongson-3 CPU Enhancements"
1294
	default n
1295
	depends on CPU_LOONGSON64
1296
	help
1297
	  New Loongson-3 cores (since Loongson-3A R2, as opposed to Loongson-3A
1298
	  R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1299
	  FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPr2 ASE, User
1300 1301 1302 1303 1304 1305
	  Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
	  Fast TLB refill support, etc.

	  This option enable those enhancements which are not probed at run
	  time. If you want a generic kernel to run on all Loongson 3 machines,
	  please say 'N' here. If you want a high-performance kernel to run on
1306
	  new Loongson-3 machines only, please say 'Y' here.
1307

1308
config CPU_LOONGSON3_WORKAROUNDS
1309
	bool "Loongson-3 LLSC Workarounds"
1310
	default y if SMP
1311
	depends on CPU_LOONGSON64
1312
	help
1313
	  Loongson-3 processors have the llsc issues which require workarounds.
1314 1315
	  Without workarounds the system may hang unexpectedly.

1316
	  Say Y, unless you know what you are doing.
1317

1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329
config CPU_LOONGSON3_CPUCFG_EMULATION
	bool "Emulate the CPUCFG instruction on older Loongson cores"
	default y
	depends on CPU_LOONGSON64
	help
	  Loongson-3A R4 and newer have the CPUCFG instruction available for
	  userland to query CPU capabilities, much like CPUID on x86. This
	  option provides emulation of the instruction on older Loongson
	  cores, back to Loongson-3A1000.

	  If unsure, please say Y.

1330 1331 1332
config CPU_LOONGSON2E
	bool "Loongson 2E"
	depends on SYS_HAS_CPU_LOONGSON2E
1333
	select CPU_LOONGSON2EF
1334 1335 1336 1337
	help
	  The Loongson 2E processor implements the MIPS III instruction set
	  with many extensions.

Lucas De Marchi's avatar
Lucas De Marchi committed
1338
	  It has an internal FPGA northbridge, which is compatible to
1339 1340 1341 1342 1343
	  bonito64.

config CPU_LOONGSON2F
	bool "Loongson 2F"
	depends on SYS_HAS_CPU_LOONGSON2F
1344
	select CPU_LOONGSON2EF
1345 1346 1347 1348 1349 1350 1351 1352
	help
	  The Loongson 2F processor implements the MIPS III instruction set
	  with many extensions.

	  Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
	  have a similar programming interface with FPGA northbridge used in
	  Loongson2E.

1353 1354 1355
config CPU_LOONGSON1B
	bool "Loongson 1B"
	depends on SYS_HAS_CPU_LOONGSON1B
1356
	select CPU_LOONGSON32
1357
	select LEDS_GPIO_REGISTER
1358 1359
	help
	  The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1360 1361
	  Release 1 instruction set and part of the MIPS32 Release 2
	  instruction set.
1362

1363 1364 1365
config CPU_LOONGSON1C
	bool "Loongson 1C"
	depends on SYS_HAS_CPU_LOONGSON1C
1366
	select CPU_LOONGSON32
1367 1368 1369
	select LEDS_GPIO_REGISTER
	help
	  The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1370 1371
	  Release 1 instruction set and part of the MIPS32 Release 2
	  instruction set.
1372

1373 1374
config CPU_MIPS32_R1
	bool "MIPS32 Release 1"
1375
	depends on SYS_HAS_CPU_MIPS32_R1
1376
	select CPU_HAS_PREFETCH
1377
	select CPU_SUPPORTS_32BIT_KERNEL
1378
	select CPU_SUPPORTS_HIGHMEM
Ralf Baechle's avatar
Ralf Baechle committed
1379
	help
1380
	  Choose this option to build a kernel for release 1 or later of the
Ralf Baechle's avatar
Ralf Baechle committed
1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391
	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
	  MIPS processor are based on a MIPS32 processor.  If you know the
	  specific type of processor in your system, choose those that one
	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
	  Release 2 of the MIPS32 architecture is available since several
	  years so chances are you even have a MIPS32 Release 2 processor
	  in which case you should choose CPU_MIPS32_R2 instead for better
	  performance.

config CPU_MIPS32_R2
	bool "MIPS32 Release 2"
1392
	depends on SYS_HAS_CPU_MIPS32_R2
Ralf Baechle's avatar
Ralf Baechle committed
1393
	select CPU_HAS_PREFETCH
1394
	select CPU_SUPPORTS_32BIT_KERNEL
1395
	select CPU_SUPPORTS_HIGHMEM
Paul Burton's avatar
Paul Burton committed
1396
	select CPU_SUPPORTS_MSA
1397
	select HAVE_KVM
1398
	help
1399
	  Choose this option to build a kernel for release 2 or later of the
1400 1401 1402 1403 1404
	  MIPS32 architecture.  Most modern embedded systems with a 32-bit
	  MIPS processor are based on a MIPS32 processor.  If you know the
	  specific type of processor in your system, choose those that one
	  otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.

1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419
config CPU_MIPS32_R5
	bool "MIPS32 Release 5"
	depends on SYS_HAS_CPU_MIPS32_R5
	select CPU_HAS_PREFETCH
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
	select CPU_SUPPORTS_MSA
	select HAVE_KVM
	select MIPS_O32_FP64_SUPPORT
	help
	  Choose this option to build a kernel for release 5 or later of the
	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
	  family, are based on a MIPS32r5 processor. If you own an older
	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.

1420
config CPU_MIPS32_R6
1421
	bool "MIPS32 Release 6"
1422 1423
	depends on SYS_HAS_CPU_MIPS32_R6
	select CPU_HAS_PREFETCH
1424
	select CPU_NO_LOAD_STORE_LR
1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
	select CPU_SUPPORTS_MSA
	select HAVE_KVM
	select MIPS_O32_FP64_SUPPORT
	help
	  Choose this option to build a kernel for release 6 or later of the
	  MIPS32 architecture.  New MIPS processors, starting with the Warrior
	  family, are based on a MIPS32r6 processor. If you own an older
	  processor, you probably need to select MIPS32r1 or MIPS32r2 instead.

1436 1437
config CPU_MIPS64_R1
	bool "MIPS64 Release 1"
1438
	depends on SYS_HAS_CPU_MIPS64_R1
1439
	select CPU_HAS_PREFETCH
1440 1441
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1442
	select CPU_SUPPORTS_HIGHMEM
1443
	select CPU_SUPPORTS_HUGEPAGES
1444 1445 1446 1447 1448 1449
	help
	  Choose this option to build a kernel for release 1 or later of the
	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
	  MIPS processor are based on a MIPS64 processor.  If you know the
	  specific type of processor in your system, choose those that one
	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
Ralf Baechle's avatar
Ralf Baechle committed
1450 1451 1452 1453 1454 1455 1456
	  Release 2 of the MIPS64 architecture is available since several
	  years so chances are you even have a MIPS64 Release 2 processor
	  in which case you should choose CPU_MIPS64_R2 instead for better
	  performance.

config CPU_MIPS64_R2
	bool "MIPS64 Release 2"
1457
	depends on SYS_HAS_CPU_MIPS64_R2
1458
	select CPU_HAS_PREFETCH
Ralf Baechle's avatar
Ralf Baechle committed
1459 1460
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1461
	select CPU_SUPPORTS_HIGHMEM
1462
	select CPU_SUPPORTS_HUGEPAGES
Paul Burton's avatar
Paul Burton committed
1463
	select CPU_SUPPORTS_MSA
1464
	select HAVE_KVM
Ralf Baechle's avatar
Ralf Baechle committed
1465 1466 1467 1468 1469 1470
	help
	  Choose this option to build a kernel for release 2 or later of the
	  MIPS64 architecture.  Many modern embedded systems with a 64-bit
	  MIPS processor are based on a MIPS64 processor.  If you know the
	  specific type of processor in your system, choose those that one
	  otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
Linus Torvalds's avatar
Linus Torvalds committed
1471

1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488
config CPU_MIPS64_R5
	bool "MIPS64 Release 5"
	depends on SYS_HAS_CPU_MIPS64_R5
	select CPU_HAS_PREFETCH
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
	select CPU_SUPPORTS_HUGEPAGES
	select CPU_SUPPORTS_MSA
	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
	select HAVE_KVM
	help
	  Choose this option to build a kernel for release 5 or later of the
	  MIPS64 architecture.  This is a intermediate MIPS architecture
	  release partly implementing release 6 features. Though there is no
	  any hardware known to be based on this release.

1489
config CPU_MIPS64_R6
1490
	bool "MIPS64 Release 6"
1491 1492
	depends on SYS_HAS_CPU_MIPS64_R6
	select CPU_HAS_PREFETCH
1493
	select CPU_NO_LOAD_STORE_LR
1494 1495 1496
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
1497
	select CPU_SUPPORTS_HUGEPAGES
1498
	select CPU_SUPPORTS_MSA
1499
	select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1500
	select HAVE_KVM
1501 1502 1503 1504 1505 1506
	help
	  Choose this option to build a kernel for release 6 or later of the
	  MIPS64 architecture.  New MIPS processors, starting with the Warrior
	  family, are based on a MIPS64r6 processor. If you own an older
	  processor, you probably need to select MIPS64r1 or MIPS64r2 instead.

1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527
config CPU_P5600
	bool "MIPS Warrior P5600"
	depends on SYS_HAS_CPU_P5600
	select CPU_HAS_PREFETCH
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
	select CPU_SUPPORTS_MSA
	select CPU_SUPPORTS_CPUFREQ
	select CPU_MIPSR2_IRQ_VI
	select CPU_MIPSR2_IRQ_EI
	select HAVE_KVM
	select MIPS_O32_FP64_SUPPORT
	help
	  Choose this option to build a kernel for MIPS Warrior P5600 CPU.
	  It's based on MIPS32r5 ISA with XPA, EVA, dual/quad issue exec pipes,
	  MMU with two-levels TLB, UCA, MSA, MDU core level features and system
	  level features like up to six P5600 calculation cores, CM2 with L2
	  cache, IOCU/IOMMU (though might be unused depending on the system-
	  specific IP core configuration), GIC, CPC, virtualisation module,
	  eJTAG and PDtrace.

Linus Torvalds's avatar
Linus Torvalds committed
1528 1529
config CPU_R3000
	bool "R3000"
1530
	depends on SYS_HAS_CPU_R3000
1531
	select CPU_HAS_WB
1532
	select CPU_R3K_TLB
1533
	select CPU_SUPPORTS_32BIT_KERNEL
1534
	select CPU_SUPPORTS_HIGHMEM
Linus Torvalds's avatar
Linus Torvalds committed
1535 1536 1537 1538 1539 1540 1541 1542
	help
	  Please make sure to pick the right CPU type. Linux/MIPS is not
	  designed to be generic, i.e. Kernels compiled for R3000 CPUs will
	  *not* work on R4000 machines and vice versa.  However, since most
	  of the supported machines have an R4000 (or similar) CPU, R4x00
	  might be a safe bet.  If the resulting kernel does not work,
	  try to recompile with R3000.

1543 1544 1545 1546 1547 1548 1549 1550
config CPU_R4300
	bool "R4300"
	depends on SYS_HAS_CPU_R4300
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
	help
	  MIPS Technologies R4300-series processors.

Linus Torvalds's avatar
Linus Torvalds committed
1551 1552
config CPU_R4X00
	bool "R4x00"
1553
	depends on SYS_HAS_CPU_R4X00
1554 1555
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1556
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1557 1558 1559 1560 1561 1562
	help
	  MIPS Technologies R4000-series processors other than 4300, including
	  the R4000, R4400, R4600, and 4700.

config CPU_TX49XX
	bool "R49XX"
1563
	depends on SYS_HAS_CPU_TX49XX
Atsushi Nemoto's avatar
Atsushi Nemoto committed
1564
	select CPU_HAS_PREFETCH
1565 1566
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1567
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1568 1569 1570

config CPU_R5000
	bool "R5000"
1571
	depends on SYS_HAS_CPU_R5000
1572 1573
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1574
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1575 1576 1577
	help
	  MIPS Technologies R5000-series processors other than the Nevada.

1578 1579 1580 1581 1582
config CPU_R5500
	bool "R5500"
	depends on SYS_HAS_CPU_R5500
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1583
	select CPU_SUPPORTS_HUGEPAGES
1584 1585 1586 1587
	help
	  NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
	  instruction set.

Linus Torvalds's avatar
Linus Torvalds committed
1588 1589
config CPU_NEVADA
	bool "RM52xx"
1590
	depends on SYS_HAS_CPU_NEVADA
1591 1592
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1593
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1594 1595 1596 1597 1598
	help
	  QED / PMC-Sierra RM52xx-series ("Nevada") processors.

config CPU_R10000
	bool "R10000"
1599
	depends on SYS_HAS_CPU_R10000
1600
	select CPU_HAS_PREFETCH
1601 1602
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1603
	select CPU_SUPPORTS_HIGHMEM
1604
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1605 1606 1607 1608 1609
	help
	  MIPS Technologies R10000-series processors.

config CPU_RM7000
	bool "RM7000"
1610
	depends on SYS_HAS_CPU_RM7000
1611
	select CPU_HAS_PREFETCH
1612 1613
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1614
	select CPU_SUPPORTS_HIGHMEM
1615
	select CPU_SUPPORTS_HUGEPAGES
Linus Torvalds's avatar
Linus Torvalds committed
1616 1617 1618

config CPU_SB1
	bool "SB1"
1619
	depends on SYS_HAS_CPU_SB1
1620 1621
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
1622
	select CPU_SUPPORTS_HIGHMEM
1623
	select CPU_SUPPORTS_HUGEPAGES
1624
	select WEAK_ORDERING
Linus Torvalds's avatar
Linus Torvalds committed
1625

1626 1627
config CPU_CAVIUM_OCTEON
	bool "Cavium Octeon processor"
1628
	depends on SYS_HAS_CPU_CAVIUM_OCTEON
1629 1630 1631 1632
	select CPU_HAS_PREFETCH
	select CPU_SUPPORTS_64BIT_KERNEL
	select WEAK_ORDERING
	select CPU_SUPPORTS_HIGHMEM
1633
	select CPU_SUPPORTS_HUGEPAGES
1634 1635
	select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
	select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1636
	select MIPS_L1_CACHE_SHIFT_7
1637
	select HAVE_KVM
1638 1639 1640 1641 1642 1643
	help
	  The Cavium Octeon processor is a highly integrated chip containing
	  many ethernet hardware widgets for networking tasks. The processor
	  can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
	  Full details can be found at http://www.caviumnetworks.com.

1644 1645 1646 1647
config CPU_BMIPS
	bool "Broadcom BMIPS"
	depends on SYS_HAS_CPU_BMIPS
	select CPU_MIPS32
1648
	select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1649 1650 1651 1652 1653
	select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
	select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
	select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
	select CPU_SUPPORTS_32BIT_KERNEL
	select DMA_NONCOHERENT
1654
	select IRQ_MIPS_CPU
1655 1656
	select SWAP_IO_SPACE
	select WEAK_ORDERING
1657
	select CPU_SUPPORTS_HIGHMEM
1658
	select CPU_HAS_PREFETCH
1659 1660
	select CPU_SUPPORTS_CPUFREQ
	select MIPS_EXTERNAL_TIMER
1661
	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
1662
	help
1663
	  Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1664

Linus Torvalds's avatar
Linus Torvalds committed
1665 1666
endchoice

1667 1668 1669
config CPU_MIPS32_3_5_FEATURES
	bool "MIPS32 Release 3.5 Features"
	depends on SYS_HAS_CPU_MIPS32_R3_5
1670 1671
	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_MIPS32_R6 || \
		   CPU_P5600
1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687
	help
	  Choose this option to build a kernel for release 2 or later of the
	  MIPS32 architecture including features from the 3.5 release such as
	  support for Enhanced Virtual Addressing (EVA).

config CPU_MIPS32_3_5_EVA
	bool "Enhanced Virtual Addressing (EVA)"
	depends on CPU_MIPS32_3_5_FEATURES
	select EVA
	default y
	help
	  Choose this option if you want to enable the Enhanced Virtual
	  Addressing (EVA) on your MIPS32 core (such as proAptiv).
	  One of its primary benefits is an increase in the maximum size
	  of lowmem (up to 3GB). If unsure, say 'N' here.

1688 1689 1690
config CPU_MIPS32_R5_FEATURES
	bool "MIPS32 Release 5 Features"
	depends on SYS_HAS_CPU_MIPS32_R5
1691
	depends on CPU_MIPS32_R2 || CPU_MIPS32_R5 || CPU_P5600
1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704
	help
	  Choose this option to build a kernel for release 2 or later of the
	  MIPS32 architecture including features from release 5 such as
	  support for Extended Physical Addressing (XPA).

config CPU_MIPS32_R5_XPA
	bool "Extended Physical Addressing (XPA)"
	depends on CPU_MIPS32_R5_FEATURES
	depends on !EVA
	depends on !PAGE_SIZE_4KB
	depends on SYS_SUPPORTS_HIGHMEM
	select XPA
	select HIGHMEM
1705
	select PHYS_ADDR_T_64BIT
1706 1707 1708 1709 1710 1711 1712 1713 1714
	default n
	help
	  Choose this option if you want to enable the Extended Physical
	  Addressing (XPA) on your MIPS32 core (such as P5600 series). The
	  benefit is to increase physical addressing equal to or greater
	  than 40 bits. Note that this has the side effect of turning on
	  64-bit addressing which in turn makes the PTEs 64-bit in size.
	  If unsure, say 'N' here.

1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741
if CPU_LOONGSON2F
config CPU_NOP_WORKAROUNDS
	bool

config CPU_JUMP_WORKAROUNDS
	bool

config CPU_LOONGSON2F_WORKAROUNDS
	bool "Loongson 2F Workarounds"
	default y
	select CPU_NOP_WORKAROUNDS
	select CPU_JUMP_WORKAROUNDS
	help
	  Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
	  require workarounds.  Without workarounds the system may hang
	  unexpectedly.  For more information please refer to the gas
	  -mfix-loongson2f-nop and -mfix-loongson2f-jump options.

	  Loongson 2F03 and later have fixed these issues and no workarounds
	  are needed.  The workarounds have no significant side effect on them
	  but may decrease the performance of the system so this option should
	  be disabled unless the kernel is intended to be run on 2F01 or 2F02
	  systems.

	  If unsure, please say Y.
endif # CPU_LOONGSON2F

1742 1743 1744 1745
config SYS_SUPPORTS_ZBOOT
	bool
	select HAVE_KERNEL_GZIP
	select HAVE_KERNEL_BZIP2
1746
	select HAVE_KERNEL_LZ4
1747
	select HAVE_KERNEL_LZMA
1748
	select HAVE_KERNEL_LZO
1749
	select HAVE_KERNEL_XZ
1750
	select HAVE_KERNEL_ZSTD
1751 1752 1753 1754 1755

config SYS_SUPPORTS_ZBOOT_UART16550
	bool
	select SYS_SUPPORTS_ZBOOT

1756 1757 1758 1759
config SYS_SUPPORTS_ZBOOT_UART_PROM
	bool
	select SYS_SUPPORTS_ZBOOT

1760
config CPU_LOONGSON2EF
1761 1762 1763 1764
	bool
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_64BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
1765
	select CPU_SUPPORTS_HUGEPAGES
1766

1767
config CPU_LOONGSON32
1768 1769
	bool
	select CPU_MIPS32
1770
	select CPU_MIPSR2
1771 1772 1773
	select CPU_HAS_PREFETCH
	select CPU_SUPPORTS_32BIT_KERNEL
	select CPU_SUPPORTS_HIGHMEM
1774
	select CPU_SUPPORTS_CPUFREQ
1775

1776
config CPU_BMIPS32_3300
1777
	select SMP_UP if SMP
1778
	bool
1779 1780 1781 1782 1783 1784 1785 1786

config CPU_BMIPS4350
	bool
	select SYS_SUPPORTS_SMP
	select SYS_SUPPORTS_HOTPLUG_CPU

config CPU_BMIPS4380
	bool
1787
	select MIPS_L1_CACHE_SHIFT_6
1788 1789
	select SYS_SUPPORTS_SMP
	select SYS_SUPPORTS_HOTPLUG_CPU
1790
	select CPU_HAS_RIXI
1791 1792 1793 1794

config CPU_BMIPS5000
	bool
	select MIPS_CPU_SCACHE
1795
	select MIPS_L1_CACHE_SHIFT_7
1796 1797
	select SYS_SUPPORTS_SMP
	select SYS_SUPPORTS_HOTPLUG_CPU
1798
	select CPU_HAS_RIXI
1799

1800
config SYS_HAS_CPU_LOONGSON64
1801 1802
	bool
	select CPU_SUPPORTS_CPUFREQ
1803
	select CPU_HAS_RIXI
1804

1805
config SYS_HAS_CPU_LOONGSON2E
1806 1807
	bool

1808 1809
config SYS_HAS_CPU_LOONGSON2F
	bool
1810 1811
	select CPU_SUPPORTS_CPUFREQ
	select CPU_SUPPORTS_ADDRWINCFG if 64BIT
1812

1813 1814 1815
config SYS_HAS_CPU_LOONGSON1B
	bool

1816 1817 1818
config SYS_HAS_CPU_LOONGSON1C
	bool

1819 1820 1821 1822 1823 1824
config SYS_HAS_CPU_MIPS32_R1
	bool

config SYS_HAS_CPU_MIPS32_R2
	bool

1825 1826 1827
config SYS_HAS_CPU_MIPS32_R3_5
	bool

1828 1829 1830
config SYS_HAS_CPU_MIPS32_R5
	bool

1831 1832 1833
config SYS_HAS_CPU_MIPS32_R6
	bool

1834 1835 1836 1837 1838 1839
config SYS_HAS_CPU_MIPS64_R1
	bool

config SYS_HAS_CPU_MIPS64_R2
	bool

1840 1841 1842
config SYS_HAS_CPU_MIPS64_R5
	bool

1843 1844 1845
config SYS_HAS_CPU_MIPS64_R6
	bool

1846 1847 1848
config SYS_HAS_CPU_P5600
	bool

1849 1850 1851
config SYS_HAS_CPU_R3000
	bool

1852 1853 1854
config SYS_HAS_CPU_R4300
	bool

1855 1856 1857 1858 1859 1860 1861 1862 1863
config SYS_HAS_CPU_R4X00
	bool

config SYS_HAS_CPU_TX49XX
	bool

config SYS_HAS_CPU_R5000
	bool

1864 1865 1866
config SYS_HAS_CPU_R5500
	bool

1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878
config SYS_HAS_CPU_NEVADA
	bool

config SYS_HAS_CPU_R10000
	bool

config SYS_HAS_CPU_RM7000
	bool

config SYS_HAS_CPU_SB1
	bool

1879 1880 1881
config SYS_HAS_CPU_CAVIUM_OCTEON
	bool

1882
config SYS_HAS_CPU_BMIPS
1883 1884
	bool

1885
config SYS_HAS_CPU_BMIPS32_3300
1886
	bool
1887
	select SYS_HAS_CPU_BMIPS
1888 1889 1890

config SYS_HAS_CPU_BMIPS4350
	bool
1891
	select SYS_HAS_CPU_BMIPS
1892 1893 1894

config SYS_HAS_CPU_BMIPS4380
	bool
1895
	select SYS_HAS_CPU_BMIPS
1896 1897 1898

config SYS_HAS_CPU_BMIPS5000
	bool
1899
	select SYS_HAS_CPU_BMIPS
1900

1901 1902 1903 1904
#
# CPU may reorder R->R, R->W, W->R, W->W
# Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
#
1905 1906
config WEAK_ORDERING
	bool
1907 1908 1909 1910 1911 1912 1913

#
# CPU may reorder reads and writes beyond LL/SC
# CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
#
config WEAK_REORDERING_BEYOND_LLSC
	bool
1914 1915 1916
endmenu

#
Chris Dearman's avatar
Chris Dearman committed
1917
# These two indicate any level of the MIPS32 and MIPS64 architecture
1918 1919 1920
#
config CPU_MIPS32
	bool
1921
	default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R5 || \
1922
		     CPU_MIPS32_R6 || CPU_P5600
1923 1924 1925

config CPU_MIPS64
	bool
1926
	default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R5 || \
1927
		     CPU_MIPS64_R6 || CPU_LOONGSON64 || CPU_CAVIUM_OCTEON
1928 1929

#
1930
# These indicate the revision of the architecture
1931 1932 1933 1934 1935 1936 1937
#
config CPU_MIPSR1
	bool
	default y if CPU_MIPS32_R1 || CPU_MIPS64_R1

config CPU_MIPSR2
	bool
1938
	default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
1939
	select CPU_HAS_RIXI
1940
	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1941
	select MIPS_SPRAM
1942

1943 1944
config CPU_MIPSR5
	bool
1945
	default y if CPU_MIPS32_R5 || CPU_MIPS64_R5 || CPU_P5600
1946 1947 1948 1949
	select CPU_HAS_RIXI
	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
	select MIPS_SPRAM

1950 1951 1952
config CPU_MIPSR6
	bool
	default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
1953
	select CPU_HAS_RIXI
1954
	select CPU_HAS_DIEI if !CPU_DIEI_BROKEN
1955
	select HAVE_ARCH_BITREVERSE
Paul Burton's avatar
Paul Burton committed
1956
	select MIPS_ASID_BITS_VARIABLE
1957
	select MIPS_CRC_SUPPORT
1958
	select MIPS_SPRAM
1959

1960 1961 1962 1963
config TARGET_ISA_REV
	int
	default 1 if CPU_MIPSR1
	default 2 if CPU_MIPSR2
1964
	default 5 if CPU_MIPSR5
1965 1966 1967 1968 1969 1970
	default 6 if CPU_MIPSR6
	default 0
	help
	  Reflects the ISA revision being targeted by the kernel build. This
	  is effectively the Kconfig equivalent of MIPS_ISA_REV.

1971 1972 1973
config EVA
	bool

1974 1975 1976
config XPA
	bool

1977 1978 1979 1980 1981 1982 1983 1984
config SYS_SUPPORTS_32BIT_KERNEL
	bool
config SYS_SUPPORTS_64BIT_KERNEL
	bool
config CPU_SUPPORTS_32BIT_KERNEL
	bool
config CPU_SUPPORTS_64BIT_KERNEL
	bool
1985 1986 1987 1988
config CPU_SUPPORTS_CPUFREQ
	bool
config CPU_SUPPORTS_ADDRWINCFG
	bool
1989 1990
config CPU_SUPPORTS_HUGEPAGES
	bool
1991
	depends on !(32BIT && (PHYS_ADDR_T_64BIT || EVA))
1992 1993
config MIPS_PGD_C0_CONTEXT
	bool
1994
	depends on 64BIT
1995
	default y if (CPU_MIPSR2 || CPU_MIPSR6)
1996

1997 1998 1999 2000
#
# Set to y for ptrace access to watch registers.
#
config HARDWARE_WATCHPOINTS
2001 2002
	bool
	default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
2003

2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019
menu "Kernel type"

choice
	prompt "Kernel code model"
	help
	  You should only select this option if you have a workload that
	  actually benefits from 64-bit processing or if your machine has
	  large memory.  You will only be presented a single option in this
	  menu if your system does not support both 32-bit and 64-bit kernels.

config 32BIT
	bool "32-bit kernel"
	depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
	select TRAD_SIGNALS
	help
	  Select this option if you want to build a 32-bit kernel.
2020

2021 2022 2023 2024 2025 2026 2027 2028
config 64BIT
	bool "64-bit kernel"
	depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
	help
	  Select this option if you want to build a 64-bit kernel.

endchoice

2029 2030 2031 2032
config MIPS_VA_BITS_48
	bool "48 bits virtual memory"
	depends on 64BIT
	help
2033 2034 2035 2036 2037 2038 2039
	  Support a maximum at least 48 bits of application virtual
	  memory.  Default is 40 bits or less, depending on the CPU.
	  For page sizes 16k and above, this option results in a small
	  memory overhead for page tables.  For 4k page size, a fourth
	  level of page tables is added which imposes both a memory
	  overhead as well as slower TLB fault handling.

2040 2041
	  If unsure, say N.

2042 2043 2044 2045 2046 2047 2048 2049 2050 2051
config ZBOOT_LOAD_ADDRESS
	hex "Compressed kernel load address"
	default 0xffffffff80400000 if BCM47XX
	default 0x0
	depends on SYS_SUPPORTS_ZBOOT
	help
	  The address to load compressed kernel, aka vmlinuz.

	  This is only used if non-zero.

Linus Torvalds's avatar
Linus Torvalds committed
2052 2053 2054 2055 2056 2057
choice
	prompt "Kernel page size"
	default PAGE_SIZE_4KB

config PAGE_SIZE_4KB
	bool "4kB"
2058
	depends on !CPU_LOONGSON2EF && !CPU_LOONGSON64
Linus Torvalds's avatar
Linus Torvalds committed
2059
	help
2060 2061 2062 2063
	  This option select the standard 4kB Linux page size.  On some
	  R3000-family processors this is the only available page size.  Using
	  4kB page size will minimize memory consumption and is therefore
	  recommended for low memory systems.
Linus Torvalds's avatar
Linus Torvalds committed
2064 2065 2066

config PAGE_SIZE_8KB
	bool "8kB"
2067
	depends on CPU_CAVIUM_OCTEON
2068
	depends on !MIPS_VA_BITS_48
Linus Torvalds's avatar
Linus Torvalds committed
2069 2070 2071
	help
	  Using 8kB page size will result in higher performance kernel at
	  the price of higher memory consumption.  This option is available
2072 2073
	  only on cnMIPS processors.  Note that you will need a suitable Linux
	  distribution to support this.
Linus Torvalds's avatar
Linus Torvalds committed
2074 2075 2076

config PAGE_SIZE_16KB
	bool "16kB"
2077
	depends on !CPU_R3000
Linus Torvalds's avatar
Linus Torvalds committed
2078 2079 2080
	help
	  Using 16kB page size will result in higher performance kernel at
	  the price of higher memory consumption.  This option is available on
2081 2082
	  all non-R3000 family processors.  Note that you will need a suitable
	  Linux distribution to support this.
Linus Torvalds's avatar
Linus Torvalds committed
2083

2084 2085 2086
config PAGE_SIZE_32KB
	bool "32kB"
	depends on CPU_CAVIUM_OCTEON
2087
	depends on !MIPS_VA_BITS_48
2088 2089 2090 2091 2092 2093
	help
	  Using 32kB page size will result in higher performance kernel at
	  the price of higher memory consumption.  This option is available
	  only on cnMIPS cores.  Note that you will need a suitable Linux
	  distribution to support this.

Linus Torvalds's avatar
Linus Torvalds committed
2094 2095
config PAGE_SIZE_64KB
	bool "64kB"
2096
	depends on !CPU_R3000
Linus Torvalds's avatar
Linus Torvalds committed
2097 2098 2099 2100
	help
	  Using 64kB page size will result in higher performance kernel at
	  the price of higher memory consumption.  This option is available on
	  all non-R3000 family processor.  Not that at the time of this
2101
	  writing this option is still high experimental.
Linus Torvalds's avatar
Linus Torvalds committed
2102 2103 2104

endchoice

2105
config ARCH_FORCE_MAX_ORDER
2106
	int "Maximum zone order"
2107 2108 2109 2110
	default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
	default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
	default "11" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
	default "10"
2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121
	help
	  The kernel memory allocator divides physically contiguous memory
	  blocks into "zones", where each zone is a power of two number of
	  pages.  This option selects the largest power of two that the kernel
	  keeps in the memory allocator.  If you need to allocate very large
	  blocks of physically contiguous memory, then you may need to
	  increase this value.

	  The page size is not necessarily 4KB.  Keep this in mind
	  when choosing a value for this option.

Linus Torvalds's avatar
Linus Torvalds committed
2122 2123 2124 2125 2126 2127 2128
config BOARD_SCACHE
	bool

config IP22_CPU_SCACHE
	bool
	select BOARD_SCACHE

2129 2130 2131 2132 2133 2134 2135
#
# Support for a MIPS32 / MIPS64 style S-caches
#
config MIPS_CPU_SCACHE
	bool
	select BOARD_SCACHE

Linus Torvalds's avatar
Linus Torvalds committed
2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152
config R5000_CPU_SCACHE
	bool
	select BOARD_SCACHE

config RM7000_CPU_SCACHE
	bool
	select BOARD_SCACHE

config SIBYTE_DMA_PAGEOPS
	bool "Use DMA to clear/copy pages"
	depends on CPU_SB1
	help
	  Instead of using the CPU to zero and copy pages, use a Data Mover
	  channel.  These DMA channels are otherwise unused by the standard
	  SiByte Linux port.  Seems to give a small performance benefit.

config CPU_HAS_PREFETCH
2153
	bool
Linus Torvalds's avatar
Linus Torvalds committed
2154

2155 2156
config CPU_GENERIC_DUMP_TLB
	bool
2157
	default y if !CPU_R3000
2158

2159
config MIPS_FP_SUPPORT
2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172
	bool "Floating Point support" if EXPERT
	default y
	help
	  Select y to include support for floating point in the kernel
	  including initialization of FPU hardware, FP context save & restore
	  and emulation of an FPU where necessary. Without this support any
	  userland program attempting to use floating point instructions will
	  receive a SIGILL.

	  If you know that your userland will not attempt to use floating point
	  instructions then you can say n here to shrink the kernel a little.

	  If unsure, say y.
2173

2174 2175
config CPU_R2300_FPU
	bool
2176
	depends on MIPS_FP_SUPPORT
2177
	default y if CPU_R3000
2178

2179 2180 2181
config CPU_R3K_TLB
	bool

2182 2183
config CPU_R4K_FPU
	bool
2184
	depends on MIPS_FP_SUPPORT
2185
	default y if !CPU_R2300_FPU
2186

2187 2188
config CPU_R4K_CACHE_TLB
	bool
2189
	default y if !(CPU_R3K_TLB || CPU_SB1 || CPU_CAVIUM_OCTEON)
2190

Ralf Baechle's avatar
Ralf Baechle committed
2191
config MIPS_MT_SMP
2192
	bool "MIPS MT SMP support (1 TC on each available VPE)"
2193
	default y
2194
	depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
2195
	select CPU_MIPSR2_IRQ_VI
2196
	select CPU_MIPSR2_IRQ_EI
2197
	select SYNC_R4K
2198
	select MIPS_MT
2199
	select SMP
2200
	select SMP_UP
2201 2202
	select SYS_SUPPORTS_SMP
	select SYS_SUPPORTS_SCHED_SMT
2203
	select MIPS_PERF_SHARED_TC_COUNTERS
2204
	help
2205 2206 2207 2208 2209
	  This is a kernel model which is known as SMVP. This is supported
	  on cores with the MT ASE and uses the available VPEs to implement
	  virtual processors which supports SMP. This is equivalent to the
	  Intel Hyperthreading feature. For further information go to
	  <http://www.imgtec.com/mips/mips-multithreading.asp>.
2210

2211 2212 2213
config MIPS_MT
	bool

2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225
config SCHED_SMT
	bool "SMT (multithreading) scheduler support"
	depends on SYS_SUPPORTS_SCHED_SMT
	default n
	help
	  SMT scheduler support improves the CPU scheduler's decision making
	  when dealing with MIPS MT enabled cores at a cost of slightly
	  increased overhead in some places. If unsure say N here.

config SYS_SUPPORTS_SCHED_SMT
	bool

2226 2227 2228
config SYS_SUPPORTS_MULTITHREADING
	bool

2229 2230 2231
config MIPS_MT_FPAFF
	bool "Dynamic FPU affinity for FP-intensive threads"
	default y
Ralf Baechle's avatar
Ralf Baechle committed
2232
	depends on MIPS_MT_SMP
2233

2234 2235
config MIPSR2_TO_R6_EMULATOR
	bool "MIPS R2-to-R6 emulator"
2236
	depends on CPU_MIPSR6
2237
	depends on MIPS_FP_SUPPORT
2238 2239 2240 2241
	default y
	help
	  Choose this option if you want to run non-R6 MIPS userland code.
	  Even if you say 'Y' here, the emulator will still be disabled by
2242
	  default. You can enable it using the 'mipsr2emu' kernel option.
2243 2244 2245
	  The only reason this is a build-time option is to save ~14K from the
	  final kernel image.

2246 2247 2248 2249 2250 2251 2252
config SYS_SUPPORTS_VPE_LOADER
	bool
	depends on SYS_SUPPORTS_MULTITHREADING
	help
	  Indicates that the platform supports the VPE loader, and provides
	  physical_memsize.

2253 2254
config MIPS_VPE_LOADER
	bool "VPE loader support."
2255
	depends on SYS_SUPPORTS_VPE_LOADER && MODULES
2256 2257 2258 2259 2260 2261
	select CPU_MIPSR2_IRQ_VI
	select CPU_MIPSR2_IRQ_EI
	select MIPS_MT
	help
	  Includes a loader for loading an elf relocatable object
	  onto another VPE and running it.
2262

2263 2264 2265
config MIPS_VPE_LOADER_MT
	bool
	default "y"
2266
	depends on MIPS_VPE_LOADER
2267

2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278
config MIPS_VPE_LOADER_TOM
	bool "Load VPE program into memory hidden from linux"
	depends on MIPS_VPE_LOADER
	default y
	help
	  The loader can use memory that is present but has been hidden from
	  Linux using the kernel command line option "mem=xxMB". It's up to
	  you to ensure the amount you put in the option and the space your
	  program requires is less or equal to the amount physically present.

config MIPS_VPE_APSP_API
2279 2280
	bool "Enable support for AP/SP API (RTLX)"
	depends on MIPS_VPE_LOADER
2281

2282 2283 2284
config MIPS_VPE_APSP_API_MT
	bool
	default "y"
2285
	depends on MIPS_VPE_APSP_API
2286

2287 2288
config MIPS_CPS
	bool "MIPS Coherent Processing System support"
2289
	depends on SYS_SUPPORTS_MIPS_CPS
2290
	select MIPS_CM
Paul Burton's avatar
Paul Burton committed
2291
	select MIPS_CPS_PM if HOTPLUG_CPU
2292
	select SMP
2293
	select HOTPLUG_CORE_SYNC_DEAD if HOTPLUG_CPU
2294
	select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
Paul Burton's avatar
Paul Burton committed
2295
	select SYS_SUPPORTS_HOTPLUG_CPU
2296
	select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
2297 2298
	select SYS_SUPPORTS_SMP
	select WEAK_ORDERING
2299
	select GENERIC_IRQ_MIGRATION if HOTPLUG_CPU
2300 2301 2302 2303 2304 2305 2306
	help
	  Select this if you wish to run an SMP kernel across multiple cores
	  within a MIPS Coherent Processing System. When this option is
	  enabled the kernel will probe for other cores and boot them with
	  no external assistance. It is safe to enable this when hardware
	  support is unavailable.

2307
config MIPS_CPS_PM
2308
	depends on MIPS_CPS
2309 2310
	bool

2311 2312
config MIPS_CM
	bool
2313
	select MIPS_CPC
2314

2315 2316
config MIPS_CPC
	bool
2317

Linus Torvalds's avatar
Linus Torvalds committed
2318 2319 2320 2321 2322 2323 2324 2325 2326 2327
config SB1_PASS_2_WORKAROUNDS
	bool
	depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
	default y

config SB1_PASS_2_1_WORKAROUNDS
	bool
	depends on CPU_SB1 && CPU_SB1_PASS_2
	default y

2328 2329 2330 2331 2332 2333 2334 2335
choice
	prompt "SmartMIPS or microMIPS ASE support"

config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
	bool "None"
	help
	  Select this if you want neither microMIPS nor SmartMIPS support

2336 2337
config CPU_HAS_SMARTMIPS
	depends on SYS_SUPPORTS_SMARTMIPS
2338
	bool "SmartMIPS"
2339 2340 2341 2342 2343 2344 2345 2346 2347
	help
	  SmartMIPS is a extension of the MIPS32 architecture aimed at
	  increased security at both hardware and software level for
	  smartcards.  Enabling this option will allow proper use of the
	  SmartMIPS instructions by Linux applications.  However a kernel with
	  this option will not work on a MIPS core without SmartMIPS core.  If
	  you don't know you probably don't have SmartMIPS and should say N
	  here.

2348
config CPU_MICROMIPS
2349
	depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
2350
	bool "microMIPS"
2351 2352 2353 2354
	help
	  When this option is enabled the kernel will be built using the
	  microMIPS ISA

2355 2356
endchoice

Paul Burton's avatar
Paul Burton committed
2357
config CPU_HAS_MSA
2358
	bool "Support for the MIPS SIMD Architecture"
Paul Burton's avatar
Paul Burton committed
2359
	depends on CPU_SUPPORTS_MSA
2360
	depends on MIPS_FP_SUPPORT
2361
	depends on 64BIT || MIPS_O32_FP64_SUPPORT
Paul Burton's avatar
Paul Burton committed
2362 2363 2364
	help
	  MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
	  and a set of SIMD instructions to operate on them. When this option
2365 2366 2367 2368 2369
	  is enabled the kernel will support allocating & switching MSA
	  vector register contexts. If you know that your kernel will only be
	  running on CPUs which do not support MSA or that your userland will
	  not be making use of it then you may wish to say N here to reduce
	  the size & complexity of your kernel.
Paul Burton's avatar
Paul Burton committed
2370 2371 2372

	  If unsure, say Y.

Linus Torvalds's avatar
Linus Torvalds committed
2373
config CPU_HAS_WB
2374
	bool
2375

2376 2377 2378
config XKS01
	bool

2379 2380 2381 2382 2383 2384 2385
config CPU_HAS_DIEI
	depends on !CPU_DIEI_BROKEN
	bool

config CPU_DIEI_BROKEN
	bool

2386 2387 2388
config CPU_HAS_RIXI
	bool

2389
config CPU_NO_LOAD_STORE_LR
2390 2391
	bool
	help
2392
	  CPU lacks support for unaligned load and store instructions:
2393
	  LWL, LWR, SWL, SWR (Load/store word left/right).
2394 2395
	  LDL, LDR, SDL, SDR (Load/store doubleword left/right, for 64bit
	  systems).
2396

2397 2398 2399
#
# Vectored interrupt mode is an R2 feature
#
2400
config CPU_MIPSR2_IRQ_VI
2401
	bool
2402

2403 2404 2405
#
# Extended interrupt mode is an R2 feature
#
2406
config CPU_MIPSR2_IRQ_EI
2407
	bool
2408

Linus Torvalds's avatar
Linus Torvalds committed
2409 2410 2411 2412 2413
config CPU_HAS_SYNC
	bool
	depends on !CPU_R3000
	default y

2414 2415 2416
#
# CPU non-features
#
2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430

# Work around the "daddi" and "daddiu" CPU errata:
#
# - The `daddi' instruction fails to trap on overflow.
#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
#   erratum #23
#
# - The `daddiu' instruction can produce an incorrect result.
#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
#   erratum #41
#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
#   #15
#   "MIPS R4400PC/SC Errata, Processor Revision 1.0", erratum #7
#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #5
2431 2432 2433
config CPU_DADDI_WORKAROUNDS
	bool

2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451
# Work around certain R4000 CPU errata (as implemented by GCC):
#
# - A double-word or a variable shift may give an incorrect result
#   if executed immediately after starting an integer division:
#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
#   erratum #28
#   "MIPS R4000MC Errata, Processor Revision 2.2 and 3.0", erratum
#   #19
#
# - A double-word or a variable shift may give an incorrect result
#   if executed while an integer multiplication is in progress:
#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
#   errata #16 & #28
#
# - An integer division may give an incorrect result if started in
#   a delay slot of a taken branch or a jump:
#   "MIPS R4000PC/SC Errata, Processor Revision 2.2 and 3.0",
#   erratum #52
2452 2453 2454 2455
config CPU_R4000_WORKAROUNDS
	bool
	select CPU_R4400_WORKAROUNDS

2456 2457 2458 2459 2460 2461
# Work around certain R4400 CPU errata (as implemented by GCC):
#
# - A double-word or a variable shift may give an incorrect result
#   if executed immediately after starting an integer division:
#   "MIPS R4400MC Errata, Processor Revision 1.0", erratum #10
#   "MIPS R4400MC Errata, Processor Revision 2.0 & 3.0", erratum #4
2462 2463 2464
config CPU_R4400_WORKAROUNDS
	bool

2465 2466 2467 2468
config CPU_R4X00_BUGS64
	bool
	default y if SYS_HAS_CPU_R4X00 && 64BIT && (TARGET_ISA_REV < 1)

2469 2470
config MIPS_ASID_SHIFT
	int
2471
	default 6 if CPU_R3000
2472 2473 2474 2475
	default 0

config MIPS_ASID_BITS
	int
Paul Burton's avatar
Paul Burton committed
2476
	default 0 if MIPS_ASID_BITS_VARIABLE
2477
	default 6 if CPU_R3000
2478 2479
	default 8

Paul Burton's avatar
Paul Burton committed
2480 2481 2482
config MIPS_ASID_BITS_VARIABLE
	bool

2483 2484 2485
config MIPS_CRC_SUPPORT
	bool

2486 2487 2488 2489 2490 2491 2492
# R4600 erratum.  Due to the lack of errata information the exact
# technical details aren't known.  I've experimentally found that disabling
# interrupts during indexed I-cache flushes seems to be sufficient to deal
# with the issue.
config WAR_R4600_V1_INDEX_ICACHEOP
	bool

2493 2494 2495 2496 2497
# Pleasures of the R4600 V1.x.  Cite from the IDT R4600 V1.7 errata:
#
#  18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
#      Hit_Invalidate_D and Create_Dirty_Excl_D should only be
#      executed if there is no other dcache activity. If the dcache is
2498
#      accessed for another instruction immediately preceding when these
2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519
#      cache instructions are executing, it is possible that the dcache
#      tag match outputs used by these cache instructions will be
#      incorrect. These cache instructions should be preceded by at least
#      four instructions that are not any kind of load or store
#      instruction.
#
#      This is not allowed:    lw
#                              nop
#                              nop
#                              nop
#                              cache       Hit_Writeback_Invalidate_D
#
#      This is allowed:        lw
#                              nop
#                              nop
#                              nop
#                              nop
#                              cache       Hit_Writeback_Invalidate_D
config WAR_R4600_V1_HIT_CACHEOP
	bool

2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531
# Writeback and invalidate the primary cache dcache before DMA.
#
# R4600 v2.0 bug: "The CACHE instructions Hit_Writeback_Inv_D,
# Hit_Writeback_D, Hit_Invalidate_D and Create_Dirty_Exclusive_D will only
# operate correctly if the internal data cache refill buffer is empty.  These
# CACHE instructions should be separated from any potential data cache miss
# by a load instruction to an uncached address to empty the response buffer."
# (Revision 2.0 device errata from IDT available on https://www.idt.com/
# in .pdf format.)
config WAR_R4600_V2_HIT_CACHEOP
	bool

2532 2533 2534 2535 2536 2537 2538 2539
# From TX49/H2 manual: "If the instruction (i.e. CACHE) is issued for
# the line which this instruction itself exists, the following
# operation is not guaranteed."
#
# Workaround: do two phase flushing for Index_Invalidate_I
config WAR_TX49XX_ICACHE_INDEX_INV
	bool

2540 2541 2542 2543 2544 2545 2546
# The RM7000 processors and the E9000 cores have a bug (though PMC-Sierra
# opposes it being called that) where invalid instructions in the same
# I-cache line worth of instructions being fetched may case spurious
# exceptions.
config WAR_ICACHE_REFILLS
	bool

2547 2548 2549 2550 2551
# On the R10000 up to version 2.6 (not sure about 2.7) there is a bug that
# may cause ll / sc and lld / scd sequences to execute non-atomically.
config WAR_R10000_LLSC
	bool

2552 2553 2554 2555
# 34K core erratum: "Problems Executing the TLBR Instruction"
config WAR_MIPS34K_MISSED_ITLB
	bool

Linus Torvalds's avatar
Linus Torvalds committed
2556 2557 2558 2559 2560 2561 2562 2563 2564
#
# - Highmem only makes sense for the 32-bit kernel.
# - The current highmem code will only work properly on physically indexed
#   caches such as R3000, SB1, R7000 or those that look like they're virtually
#   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
#   moment we protect the user and offer the highmem option only on machines
#   where it's known to be safe.  This will not offer highmem on a few systems
#   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
#   indexed CPUs but we're playing safe.
2565 2566 2567
# - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
#   know they might have memory configurations that could make use of highmem
#   support.
Linus Torvalds's avatar
Linus Torvalds committed
2568 2569 2570
#
config HIGHMEM
	bool "High Memory Support"
2571
	depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2572
	select KMAP_LOCAL
2573 2574 2575 2576 2577 2578

config CPU_SUPPORTS_HIGHMEM
	bool

config SYS_SUPPORTS_HIGHMEM
	bool
Linus Torvalds's avatar
Linus Torvalds committed
2579

2580 2581 2582
config SYS_SUPPORTS_SMARTMIPS
	bool

2583 2584 2585
config SYS_SUPPORTS_MICROMIPS
	bool

2586 2587 2588 2589 2590 2591 2592
config SYS_SUPPORTS_MIPS16
	bool
	help
	  This option must be set if a kernel might be executed on a MIPS16-
	  enabled CPU even if MIPS16 is not actually being used.  In other
	  words, it makes the kernel MIPS16-tolerant.

Paul Burton's avatar
Paul Burton committed
2593 2594 2595
config CPU_SUPPORTS_MSA
	bool

2596 2597
config ARCH_FLATMEM_ENABLE
	def_bool y
2598
	depends on !NUMA && !CPU_LOONGSON2EF
2599

2600 2601 2602
config ARCH_SPARSEMEM_ENABLE
	bool

2603 2604 2605
config NUMA
	bool "NUMA Support"
	depends on SYS_SUPPORTS_NUMA
2606
	select SMP
2607 2608
	select HAVE_SETUP_PER_CPU_AREA
	select NEED_PER_CPU_EMBED_FIRST_CHUNK
2609 2610 2611 2612
	help
	  Say Y to compile the kernel to support NUMA (Non-Uniform Memory
	  Access).  This option improves performance on systems with more
	  than two nodes; on two node systems it is generally better to
2613
	  leave it disabled; on single node systems leave this option
2614 2615 2616 2617 2618
	  disabled.

config SYS_SUPPORTS_NUMA
	bool

2619 2620 2621
config HAVE_ARCH_NODEDATA_EXTENSION
	bool

2622 2623
config RELOCATABLE
	bool "Relocatable kernel"
2624 2625 2626 2627
	depends on SYS_SUPPORTS_RELOCATABLE
	depends on CPU_MIPS32_R2 || CPU_MIPS64_R2 || \
		   CPU_MIPS32_R5 || CPU_MIPS64_R5 || \
		   CPU_MIPS32_R6 || CPU_MIPS64_R6 || \
2628 2629
		   CPU_P5600 || CAVIUM_OCTEON_SOC || \
		   CPU_LOONGSON64
2630 2631 2632 2633 2634 2635
	help
	  This builds a kernel image that retains relocation information
	  so it can be loaded someplace besides the default 1MB.
	  The relocations make the kernel binary about 15% larger,
	  but are discarded at runtime

2636 2637 2638 2639
config RELOCATION_TABLE_SIZE
	hex "Relocation table size"
	depends on RELOCATABLE
	range 0x0 0x01000000
2640
	default "0x00200000" if CPU_LOONGSON64
2641
	default "0x00100000"
2642
	help
2643 2644 2645 2646 2647 2648 2649 2650 2651 2652
	  A table of relocation data will be appended to the kernel binary
	  and parsed at boot to fix up the relocated kernel.

	  This option allows the amount of space reserved for the table to be
	  adjusted, although the default of 1Mb should be ok in most cases.

	  The build will fail and a valid size suggested if this is too small.

	  If unsure, leave at the default value.

2653 2654 2655
config RANDOMIZE_BASE
	bool "Randomize the address of the kernel image"
	depends on RELOCATABLE
2656
	help
2657 2658 2659 2660
	  Randomizes the physical and virtual address at which the
	  kernel image is loaded, as a security feature that
	  deters exploit attempts relying on knowledge of the location
	  of kernel internals.
2661

2662
	  Entropy is generated using any coprocessor 0 registers available.
2663

2664
	  The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2665

2666
	  If unsure, say N.
2667 2668 2669 2670 2671 2672 2673

config RANDOMIZE_BASE_MAX_OFFSET
	hex "Maximum kASLR offset" if EXPERT
	depends on RANDOMIZE_BASE
	range 0x0 0x40000000 if EVA || 64BIT
	range 0x0 0x08000000
	default "0x01000000"
2674
	help
2675 2676 2677 2678 2679 2680 2681 2682
	  When kASLR is active, this provides the maximum offset that will
	  be applied to the kernel image. It should be set according to the
	  amount of physical RAM available in the target system minus
	  PHYSICAL_START and must be a power of 2.

	  This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
	  EVA or 64-bit. The default is 16Mb.

2683 2684 2685
config NODES_SHIFT
	int
	default "6"
2686
	depends on NUMA
2687

2688 2689
config HW_PERF_EVENTS
	bool "Enable hardware performance counter support for perf events"
2690
	depends on PERF_EVENTS && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_LOONGSON64)
2691 2692 2693 2694 2695
	default y
	help
	  Enable hardware performance counter support for perf events. If
	  disabled, perf events will use software events only.

2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706
config DMI
	bool "Enable DMI scanning"
	depends on MACH_LOONGSON64
	select DMI_SCAN_MACHINE_NON_EFI_FALLBACK
	default y
	help
	  Enabled scanning of DMI to identify machine quirks. Say Y
	  here unless you have verified that your setup is not
	  affected by entries in the DMI blacklist. Required by PNP
	  BIOS code.

Linus Torvalds's avatar
Linus Torvalds committed
2707 2708
config SMP
	bool "Multi-Processing support"
2709 2710
	depends on SYS_SUPPORTS_SMP
	help
Linus Torvalds's avatar
Linus Torvalds committed
2711
	  This enables support for systems with more than one CPU. If you have
2712 2713
	  a system with only one CPU, say N. If you have a system with more
	  than one CPU, say Y.
Linus Torvalds's avatar
Linus Torvalds committed
2714

2715
	  If you say N here, the kernel will run on uni- and multiprocessor
Linus Torvalds's avatar
Linus Torvalds committed
2716 2717
	  machines, but will use only one CPU of a multiprocessor machine. If
	  you say Y here, the kernel will run on many, but not all,
2718
	  uniprocessor machines. On a uniprocessor machine, the kernel
Linus Torvalds's avatar
Linus Torvalds committed
2719 2720 2721 2722 2723
	  will run faster if you say N here.

	  People using multiprocessor machines who say Y here should also say
	  Y to "Enhanced Real Time Clock Support", below.

Adrian Bunk's avatar
Adrian Bunk committed
2724
	  See also the SMP-HOWTO available at
2725
	  <https://www.tldp.org/docs.html#howto>.
Linus Torvalds's avatar
Linus Torvalds committed
2726 2727 2728

	  If you don't know what to do here, say N.

2729 2730 2731 2732 2733 2734 2735 2736 2737 2738
config HOTPLUG_CPU
	bool "Support for hot-pluggable CPUs"
	depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
	help
	  Say Y here to allow turning CPUs off and on. CPUs can be
	  controlled through /sys/devices/system/cpu.
	  (Note: power management support will enable this option
	    automatically on SMP systems. )
	  Say N if you want to disable CPU hotplug.

2739 2740 2741
config SMP_UP
	bool

2742 2743 2744
config SYS_SUPPORTS_MIPS_CPS
	bool

2745 2746 2747
config SYS_SUPPORTS_SMP
	bool

2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762
config NR_CPUS_DEFAULT_4
	bool

config NR_CPUS_DEFAULT_8
	bool

config NR_CPUS_DEFAULT_16
	bool

config NR_CPUS_DEFAULT_32
	bool

config NR_CPUS_DEFAULT_64
	bool

Linus Torvalds's avatar
Linus Torvalds committed
2763
config NR_CPUS
Jayachandran C's avatar
Jayachandran C committed
2764 2765
	int "Maximum number of CPUs (2-256)"
	range 2 256
Linus Torvalds's avatar
Linus Torvalds committed
2766
	depends on SMP
2767 2768 2769 2770 2771
	default "4" if NR_CPUS_DEFAULT_4
	default "8" if NR_CPUS_DEFAULT_8
	default "16" if NR_CPUS_DEFAULT_16
	default "32" if NR_CPUS_DEFAULT_32
	default "64" if NR_CPUS_DEFAULT_64
Linus Torvalds's avatar
Linus Torvalds committed
2772 2773 2774 2775
	help
	  This allows you to specify the maximum number of CPUs which this
	  kernel will support.  The maximum supported value is 32 for 32-bit
	  kernel and 64 for 64-bit kernels; the minimum value which makes
2776 2777
	  sense is 1 for Qemu (useful only for kernel debugging purposes)
	  and 2 for all others.
Linus Torvalds's avatar
Linus Torvalds committed
2778 2779

	  This is purely to save memory - each supported CPU adds
2780 2781 2782
	  approximately eight kilobytes to the kernel image.  For best
	  performance should round up your number of processors to the next
	  power of two.
Linus Torvalds's avatar
Linus Torvalds committed
2783

2784 2785
config MIPS_PERF_SHARED_TC_COUNTERS
	bool
2786 2787 2788 2789 2790 2791 2792 2793 2794

config MIPS_NR_CPU_NR_MAP_1024
	bool

config MIPS_NR_CPU_NR_MAP
	int
	depends on SMP
	default 1024 if MIPS_NR_CPU_NR_MAP_1024
	default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
2795

2796 2797 2798 2799 2800 2801 2802 2803
#
# Timer Interrupt Frequency Configuration
#

choice
	prompt "Timer frequency"
	default HZ_250
	help
2804
	  Allows the configuration of the timer frequency.
2805

2806 2807 2808
	config HZ_24
		bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ

2809
	config HZ_48
2810
		bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831

	config HZ_100
		bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ

	config HZ_128
		bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ

	config HZ_250
		bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ

	config HZ_256
		bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ

	config HZ_1000
		bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ

	config HZ_1024
		bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ

endchoice

2832 2833 2834
config SYS_SUPPORTS_24HZ
	bool

2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857
config SYS_SUPPORTS_48HZ
	bool

config SYS_SUPPORTS_100HZ
	bool

config SYS_SUPPORTS_128HZ
	bool

config SYS_SUPPORTS_250HZ
	bool

config SYS_SUPPORTS_256HZ
	bool

config SYS_SUPPORTS_1000HZ
	bool

config SYS_SUPPORTS_1024HZ
	bool

config SYS_SUPPORTS_ARBIT_HZ
	bool
2858 2859 2860 2861 2862 2863 2864
	default y if !SYS_SUPPORTS_24HZ && \
		     !SYS_SUPPORTS_48HZ && \
		     !SYS_SUPPORTS_100HZ && \
		     !SYS_SUPPORTS_128HZ && \
		     !SYS_SUPPORTS_250HZ && \
		     !SYS_SUPPORTS_256HZ && \
		     !SYS_SUPPORTS_1000HZ && \
2865 2866 2867 2868
		     !SYS_SUPPORTS_1024HZ

config HZ
	int
2869
	default 24 if HZ_24
2870 2871 2872 2873 2874 2875 2876 2877
	default 48 if HZ_48
	default 100 if HZ_100
	default 128 if HZ_128
	default 250 if HZ_250
	default 256 if HZ_256
	default 1000 if HZ_1000
	default 1024 if HZ_1024

2878 2879 2880
config SCHED_HRTICK
	def_bool HIGH_RES_TIMERS

2881
config KEXEC
2882
	bool "Kexec system call"
2883
	select KEXEC_CORE
2884 2885 2886
	help
	  kexec is a system call that implements the ability to shutdown your
	  current kernel, and to start another kernel.  It is like a reboot
2887
	  but it is independent of the system firmware.   And like a reboot
2888 2889
	  you can start any kernel with it, not just Linux.

Matt LaPlante's avatar
Matt LaPlante committed
2890
	  The name comes from the similarity to the exec system call.
2891 2892 2893

	  It is an ongoing process to be certain the hardware in a machine
	  is properly shutdown, so do not be surprised if this code does not
2894 2895 2896
	  initially work for you.  As of this writing the exact hardware
	  interface is strongly in flux, so no good recommendation can be
	  made.
2897

Ralf Baechle's avatar
Ralf Baechle committed
2898
config CRASH_DUMP
2899 2900
	bool "Kernel crash dumps"
	help
Ralf Baechle's avatar
Ralf Baechle committed
2901 2902 2903 2904 2905 2906 2907 2908 2909
	  Generate crash dump after being started by kexec.
	  This should be normally only set in special crash dump kernels
	  which are loaded in the main kernel with kexec-tools into
	  a specially reserved region and then later executed after
	  a crash by kdump/kexec. The crash dump kernel must be compiled
	  to a memory address not used by the main kernel or firmware using
	  PHYSICAL_START.

config PHYSICAL_START
2910
	hex "Physical address where the kernel is loaded"
2911
	default "0xffffffff84000000"
2912 2913
	depends on CRASH_DUMP
	help
Ralf Baechle's avatar
Ralf Baechle committed
2914 2915 2916 2917 2918 2919
	  This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
	  If you plan to use kernel for capturing the crash dump change
	  this value to start of the reserved region (the "X" value as
	  specified in the "crashkernel=YM@XM" command line boot parameter
	  passed to the panic-ed kernel).

2920
config MIPS_O32_FP64_SUPPORT
2921
	bool "Support for O32 binaries using 64-bit FP" if !CPU_MIPSR6
2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933
	depends on 32BIT || MIPS32_O32
	help
	  When this is enabled, the kernel will support use of 64-bit floating
	  point registers with binaries using the O32 ABI along with the
	  EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
	  32-bit MIPS systems this support is at the cost of increasing the
	  size and complexity of the compiled FPU emulator. Thus if you are
	  running a MIPS32 system and know that none of your userland binaries
	  will require 64-bit floating point, you may wish to reduce the size
	  of your kernel & potentially improve FP emulation performance by
	  saying N here.

2934 2935
	  Although binutils currently supports use of this flag the details
	  concerning its effect upon the O32 ABI in userland are still being
2936
	  worked on. In order to avoid userland becoming dependent upon current
2937 2938 2939 2940 2941
	  behaviour before the details have been finalised, this option should
	  be considered experimental and only enabled by those working upon
	  said details.

	  If unsure, say N.
2942

2943
config USE_OF
2944
	bool
2945
	select OF
2946
	select OF_EARLY_FLATTREE
2947
	select IRQ_DOMAIN
2948

2949 2950 2951
config UHI_BOOT
	bool

2952 2953 2954
config BUILTIN_DTB
	bool

2955
choice
2956
	prompt "Kernel appended dtb support" if USE_OF
2957 2958 2959 2960 2961 2962 2963
	default MIPS_NO_APPENDED_DTB

	config MIPS_NO_APPENDED_DTB
		bool "None"
		help
		  Do not enable appended dtb support.

2964 2965 2966 2967 2968 2969 2970 2971 2972 2973
	config MIPS_ELF_APPENDED_DTB
		bool "vmlinux"
		help
		  With this option, the boot code will look for a device tree binary
		  DTB) included in the vmlinux ELF section .appended_dtb. By default
		  it is empty and the DTB can be appended using binutils command
		  objcopy:

		    objcopy --update-section .appended_dtb=<filename>.dtb vmlinux

2974
		  This is meant as a backward compatibility convenience for those
2975 2976 2977
		  systems with a bootloader that can't be upgraded to accommodate
		  the documented boot protocol using a device tree.

2978
	config MIPS_RAW_APPENDED_DTB
2979
		bool "vmlinux.bin or vmlinuz.bin"
2980 2981
		help
		  With this option, the boot code will look for a device tree binary
2982
		  DTB) appended to raw vmlinux.bin or vmlinuz.bin.
2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995
		  (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).

		  This is meant as a backward compatibility convenience for those
		  systems with a bootloader that can't be upgraded to accommodate
		  the documented boot protocol using a device tree.

		  Beware that there is very little in terms of protection against
		  this option being confused by leftover garbage in memory that might
		  look like a DTB header after a reboot if no actual DTB is appended
		  to vmlinux.bin.  Do not leave this option active in a production kernel
		  if you don't intend to always append a DTB.
endchoice

2996 2997
choice
	prompt "Kernel command line type" if !CMDLINE_OVERRIDE
2998
	default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
2999
					 !MACH_LOONGSON64 && !MIPS_MALTA && \
3000
					 !CAVIUM_OCTEON_SOC
3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012
	default MIPS_CMDLINE_FROM_BOOTLOADER

	config MIPS_CMDLINE_FROM_DTB
		depends on USE_OF
		bool "Dtb kernel arguments if available"

	config MIPS_CMDLINE_DTB_EXTEND
		depends on USE_OF
		bool "Extend dtb kernel arguments with bootloader arguments"

	config MIPS_CMDLINE_FROM_BOOTLOADER
		bool "Bootloader kernel arguments if available"
3013 3014 3015 3016

	config MIPS_CMDLINE_BUILTIN_EXTEND
		depends on CMDLINE_BOOL
		bool "Extend builtin kernel arguments with bootloader arguments"
3017 3018
endchoice

3019 3020
endmenu

3021 3022 3023 3024 3025 3026 3027 3028
config LOCKDEP_SUPPORT
	bool
	default y

config STACKTRACE_SUPPORT
	bool
	default y

3029 3030
config PGTABLE_LEVELS
	int
3031
	default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
3032
	default 3 if 64BIT && (!PAGE_SIZE_64KB || MIPS_VA_BITS_48)
3033 3034
	default 2

3035 3036 3037
config MIPS_AUTO_PFN_OFFSET
	bool

Linus Torvalds's avatar
Linus Torvalds committed
3038 3039
menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"

3040
config PCI_DRIVERS_GENERIC
3041
	select PCI_DOMAINS_GENERIC if PCI
3042 3043 3044 3045 3046
	bool

config PCI_DRIVERS_LEGACY
	def_bool !PCI_DRIVERS_GENERIC
	select NO_GENERIC_PCI_IOPORT_MAP
3047
	select PCI_DOMAINS if PCI
Linus Torvalds's avatar
Linus Torvalds committed
3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060

#
# ISA support is now enabled via select.  Too many systems still have the one
# or other ISA chip on the board that users don't know about so don't expect
# users to choose the right thing ...
#
config ISA
	bool

config TC
	bool "TURBOchannel support"
	depends on MACH_DECSTATION
	help
3061 3062 3063 3064 3065 3066 3067 3068
	  TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
	  processors.  TURBOchannel programming specifications are available
	  at:
	  <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
	  and:
	  <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
	  Linux driver support status is documented at:
	  <http://www.linux-mips.org/wiki/DECstation>
Linus Torvalds's avatar
Linus Torvalds committed
3069 3070 3071 3072 3073

config MMU
	bool
	default y

3074 3075 3076 3077 3078 3079 3080 3081 3082
config ARCH_MMAP_RND_BITS_MIN
	default 12 if 64BIT
	default 8

config ARCH_MMAP_RND_BITS_MAX
	default 18 if 64BIT
	default 15

config ARCH_MMAP_RND_COMPAT_BITS_MIN
3083
	default 8
3084 3085

config ARCH_MMAP_RND_COMPAT_BITS_MAX
3086
	default 15
3087

3088 3089
config I8253
	bool
3090
	select CLKSRC_I8253
3091
	select CLKEVT_I8253
3092
	select MIPS_EXTERNAL_TIMER
Linus Torvalds's avatar
Linus Torvalds committed
3093 3094 3095 3096 3097 3098
endmenu

config TRAD_SIGNALS
	bool

config MIPS32_COMPAT
3099
	bool
Linus Torvalds's avatar
Linus Torvalds committed
3100 3101 3102 3103 3104 3105

config COMPAT
	bool

config MIPS32_O32
	bool "Kernel support for o32 binaries"
3106 3107 3108 3109
	depends on 64BIT
	select ARCH_WANT_OLD_COMPAT_IPC
	select COMPAT
	select MIPS32_COMPAT
Linus Torvalds's avatar
Linus Torvalds committed
3110 3111 3112 3113 3114 3115 3116 3117 3118
	help
	  Select this option if you want to run o32 binaries.  These are pure
	  32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
	  existing binaries are in this format.

	  If unsure, say Y.

config MIPS32_N32
	bool "Kernel support for n32 binaries"
3119
	depends on 64BIT
3120
	select ARCH_WANT_COMPAT_IPC_PARSE_VERSION
3121 3122
	select COMPAT
	select MIPS32_COMPAT
Linus Torvalds's avatar
Linus Torvalds committed
3123 3124 3125 3126 3127 3128 3129 3130
	help
	  Select this option if you want to run n32 binaries.  These are
	  64-bit binaries using 32-bit quantities for addressing and certain
	  data that would normally be 64-bit.  They are used in special
	  cases.

	  If unsure, say N.

3131 3132 3133 3134
config CC_HAS_MNO_BRANCH_LIKELY
	def_bool y
	depends on $(cc-option,-mno-branch-likely)

3135 3136 3137 3138
# https://github.com/llvm/llvm-project/issues/61045
config CC_HAS_BROKEN_INLINE_COMPAT_BRANCH
	def_bool y if CC_IS_CLANG

3139 3140
menu "Power management options"

Wu Zhangjin's avatar
Wu Zhangjin committed
3141 3142
config ARCH_HIBERNATION_POSSIBLE
	def_bool y
3143
	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
Wu Zhangjin's avatar
Wu Zhangjin committed
3144

3145 3146
config ARCH_SUSPEND_POSSIBLE
	def_bool y
3147
	depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3148

3149
source "kernel/power/Kconfig"
Rodolfo Giometti's avatar
Rodolfo Giometti committed
3150

Linus Torvalds's avatar
Linus Torvalds committed
3151 3152
endmenu

3153 3154 3155 3156
config MIPS_EXTERNAL_TIMER
	bool

menu "CPU Power Management"
3157 3158

if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
3159
source "drivers/cpufreq/Kconfig"
3160
endif # CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
3161

3162 3163 3164 3165
source "drivers/cpuidle/Kconfig"

endmenu

3166
source "arch/mips/kvm/Kconfig"
3167 3168

source "arch/mips/vdso/Kconfig"