1 # SPDX-License-Identifier: GPL-2.0
5 select ARCH_BINFMT_ELF_STATE
6 select ARCH_CLOCKSOURCE_DATA
7 select ARCH_DISCARD_MEMBLOCK
8 select ARCH_HAS_ELF_RANDOMIZE
9 select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
10 select ARCH_MIGHT_HAVE_PC_PARPORT
11 select ARCH_MIGHT_HAVE_PC_SERIO
12 select ARCH_SUPPORTS_UPROBES
13 select ARCH_USE_BUILTIN_BSWAP
14 select ARCH_USE_CMPXCHG_LOCKREF if 64BIT
15 select ARCH_USE_QUEUED_RWLOCKS
16 select ARCH_USE_QUEUED_SPINLOCKS
17 select ARCH_WANT_IPC_PARSE_VERSION
18 select BUILDTIME_EXTABLE_SORT
19 select CLONE_BACKWARDS
20 select CPU_PM if CPU_IDLE
21 select GENERIC_ATOMIC64 if !64BIT
22 select GENERIC_CLOCKEVENTS
23 select GENERIC_CMOS_UPDATE
24 select GENERIC_CPU_AUTOPROBE
25 select GENERIC_IRQ_PROBE
26 select GENERIC_IRQ_SHOW
27 select GENERIC_PCI_IOMAP
28 select GENERIC_SCHED_CLOCK if !CAVIUM_OCTEON_SOC
29 select GENERIC_SMP_IDLE_THREAD
30 select GENERIC_TIME_VSYSCALL
31 select HANDLE_DOMAIN_IRQ
32 select HAVE_ARCH_JUMP_LABEL
34 select HAVE_ARCH_MMAP_RND_BITS if MMU
35 select HAVE_ARCH_MMAP_RND_COMPAT_BITS if MMU && COMPAT
36 select HAVE_ARCH_SECCOMP_FILTER
37 select HAVE_ARCH_TRACEHOOK
38 select HAVE_ARCH_TRANSPARENT_HUGEPAGE if CPU_SUPPORTS_HUGEPAGES && 64BIT
39 select HAVE_CBPF_JIT if (!64BIT && !CPU_MICROMIPS)
40 select HAVE_EBPF_JIT if (64BIT && !CPU_MICROMIPS)
41 select HAVE_CC_STACKPROTECTOR
42 select HAVE_CONTEXT_TRACKING
43 select HAVE_COPY_THREAD_TLS
44 select HAVE_C_RECORDMCOUNT
45 select HAVE_DEBUG_KMEMLEAK
46 select HAVE_DEBUG_STACKOVERFLOW
47 select HAVE_DMA_API_DEBUG
48 select HAVE_DMA_CONTIGUOUS
49 select HAVE_DYNAMIC_FTRACE
50 select HAVE_EXIT_THREAD
51 select HAVE_FTRACE_MCOUNT_RECORD
52 select HAVE_FUNCTION_GRAPH_TRACER
53 select HAVE_FUNCTION_TRACER
54 select HAVE_GENERIC_DMA_COHERENT
56 select HAVE_IRQ_EXIT_ON_IRQ_STACK
57 select HAVE_IRQ_TIME_ACCOUNTING
59 select HAVE_KRETPROBES
61 select HAVE_MEMBLOCK_NODE_MAP
62 select HAVE_MOD_ARCH_SPECIFIC
65 select HAVE_PERF_EVENTS
66 select HAVE_REGS_AND_STACK_ACCESS_API
67 select HAVE_SYSCALL_TRACEPOINTS
68 select HAVE_VIRT_CPU_ACCOUNTING_GEN if 64BIT || !SMP
69 select IRQ_FORCED_THREADING
70 select MODULES_USE_ELF_RELA if MODULES && 64BIT
71 select MODULES_USE_ELF_REL if MODULES
72 select PERF_USE_VMALLOC
73 select RTC_LIB if !MACH_LOONGSON64
74 select SYSCTL_EXCEPTION_TRACE
77 menu "Machine selection"
84 bool "Generic board-agnostic MIPS kernel"
88 select CLKSRC_MIPS_GIC
90 select CPU_MIPSR2_IRQ_VI
91 select CPU_MIPSR2_IRQ_EI
93 select DMA_PERDEV_COHERENT
97 select MIPS_CPU_SCACHE
99 select MIPS_L1_CACHE_SHIFT_7
100 select NO_EXCEPT_FILL
101 select PCI_DRIVERS_GENERIC
105 select SYS_HAS_CPU_MIPS32_R1
106 select SYS_HAS_CPU_MIPS32_R2
107 select SYS_HAS_CPU_MIPS32_R6
108 select SYS_HAS_CPU_MIPS64_R1
109 select SYS_HAS_CPU_MIPS64_R2
110 select SYS_HAS_CPU_MIPS64_R6
111 select SYS_SUPPORTS_32BIT_KERNEL
112 select SYS_SUPPORTS_64BIT_KERNEL
113 select SYS_SUPPORTS_BIG_ENDIAN
114 select SYS_SUPPORTS_HIGHMEM
115 select SYS_SUPPORTS_LITTLE_ENDIAN
116 select SYS_SUPPORTS_MICROMIPS
117 select SYS_SUPPORTS_MIPS_CPS
118 select SYS_SUPPORTS_MIPS16
119 select SYS_SUPPORTS_MULTITHREADING
120 select SYS_SUPPORTS_RELOCATABLE
121 select SYS_SUPPORTS_SMARTMIPS
122 select USB_EHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
123 select USB_EHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
124 select USB_OHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
125 select USB_OHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
126 select USB_UHCI_BIG_ENDIAN_DESC if BIG_ENDIAN
127 select USB_UHCI_BIG_ENDIAN_MMIO if BIG_ENDIAN
130 Select this to build a kernel which aims to support multiple boards,
131 generally using a flattened device tree passed from the bootloader
132 using the boot protocol defined in the UHI (Unified Hosting
133 Interface) specification.
136 bool "Alchemy processor based machines"
137 select ARCH_PHYS_ADDR_T_64BIT
141 select DMA_MAYBE_COHERENT # Au1000,1500,1100 aren't, rest is
142 select SYS_HAS_CPU_MIPS32_R1
143 select SYS_SUPPORTS_32BIT_KERNEL
144 select SYS_SUPPORTS_APM_EMULATION
146 select SYS_SUPPORTS_ZBOOT
150 bool "Texas Instruments AR7"
152 select DMA_NONCOHERENT
156 select NO_EXCEPT_FILL
158 select SYS_HAS_CPU_MIPS32_R1
159 select SYS_HAS_EARLY_PRINTK
160 select SYS_SUPPORTS_32BIT_KERNEL
161 select SYS_SUPPORTS_LITTLE_ENDIAN
162 select SYS_SUPPORTS_MIPS16
163 select SYS_SUPPORTS_ZBOOT_UART16550
168 Support for the Texas Instruments AR7 System-on-a-Chip
169 family: TNETD7100, 7200 and 7300.
172 bool "Atheros AR231x/AR531x SoC support"
175 select DMA_NONCOHERENT
178 select SYS_HAS_CPU_MIPS32_R1
179 select SYS_SUPPORTS_BIG_ENDIAN
180 select SYS_SUPPORTS_32BIT_KERNEL
181 select SYS_HAS_EARLY_PRINTK
183 Support for Atheros AR231x and Atheros AR531x based boards
186 bool "Atheros AR71XX/AR724X/AR913X based boards"
187 select ARCH_HAS_RESET_CONTROLLER
191 select DMA_NONCOHERENT
198 select SYS_HAS_CPU_MIPS32_R2
199 select SYS_HAS_EARLY_PRINTK
200 select SYS_SUPPORTS_32BIT_KERNEL
201 select SYS_SUPPORTS_BIG_ENDIAN
202 select SYS_SUPPORTS_MIPS16
203 select SYS_SUPPORTS_ZBOOT_UART_PROM
206 Support for the Atheros AR71XX/AR724X/AR913X SoCs.
209 bool "Broadcom Generic BMIPS kernel"
211 select NO_EXCEPT_FILL
217 select BCM6345_L1_IRQ
218 select BCM7038_L1_IRQ
219 select BCM7120_L2_IRQ
220 select BRCMSTB_L2_IRQ
222 select DMA_NONCOHERENT
223 select SYS_SUPPORTS_32BIT_KERNEL
224 select SYS_SUPPORTS_LITTLE_ENDIAN
225 select SYS_SUPPORTS_BIG_ENDIAN
226 select SYS_SUPPORTS_HIGHMEM
227 select SYS_HAS_CPU_BMIPS32_3300
228 select SYS_HAS_CPU_BMIPS4350
229 select SYS_HAS_CPU_BMIPS4380
230 select SYS_HAS_CPU_BMIPS5000
232 select USB_EHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
233 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
234 select USB_OHCI_BIG_ENDIAN_DESC if CPU_BIG_ENDIAN
235 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
236 select HARDIRQS_SW_RESEND
238 Build a generic DT-based kernel image that boots on select
239 BCM33xx cable modem chips, BCM63xx DSL chips, and BCM7xxx set-top
240 box chips. Note that CONFIG_CPU_BIG_ENDIAN/CONFIG_CPU_LITTLE_ENDIAN
241 must be set appropriately for your board.
244 bool "Broadcom BCM47XX based boards"
248 select DMA_NONCOHERENT
251 select SYS_HAS_CPU_MIPS32_R1
252 select NO_EXCEPT_FILL
253 select SYS_SUPPORTS_32BIT_KERNEL
254 select SYS_SUPPORTS_LITTLE_ENDIAN
255 select SYS_SUPPORTS_MIPS16
256 select SYS_HAS_EARLY_PRINTK
257 select USE_GENERIC_EARLY_PRINTK_8250
259 select LEDS_GPIO_REGISTER
263 Support for BCM47XX based boards
266 bool "Broadcom BCM63XX based boards"
271 select DMA_NONCOHERENT
273 select SYS_SUPPORTS_32BIT_KERNEL
274 select SYS_SUPPORTS_BIG_ENDIAN
275 select SYS_HAS_EARLY_PRINTK
279 select MIPS_L1_CACHE_SHIFT_4
282 Support for BCM63XX based boards
289 select DMA_NONCOHERENT
295 select PCI_GT64XXX_PCI0
297 select SYS_HAS_CPU_NEVADA
298 select SYS_HAS_EARLY_PRINTK
299 select SYS_SUPPORTS_32BIT_KERNEL
300 select SYS_SUPPORTS_64BIT_KERNEL
301 select SYS_SUPPORTS_LITTLE_ENDIAN
302 select USE_GENERIC_EARLY_PRINTK_8250
304 config MACH_DECSTATION
308 select CEVT_R4K if CPU_R4X00
310 select CSRC_R4K if CPU_R4X00
311 select CPU_DADDI_WORKAROUNDS if 64BIT
312 select CPU_R4000_WORKAROUNDS if 64BIT
313 select CPU_R4400_WORKAROUNDS if 64BIT
314 select DMA_NONCOHERENT
317 select SYS_HAS_CPU_R3000
318 select SYS_HAS_CPU_R4X00
319 select SYS_SUPPORTS_32BIT_KERNEL
320 select SYS_SUPPORTS_64BIT_KERNEL
321 select SYS_SUPPORTS_LITTLE_ENDIAN
322 select SYS_SUPPORTS_128HZ
323 select SYS_SUPPORTS_256HZ
324 select SYS_SUPPORTS_1024HZ
325 select MIPS_L1_CACHE_SHIFT_4
327 This enables support for DEC's MIPS based workstations. For details
328 see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
329 DECstation porting pages on <http://decstation.unix-ag.org/>.
331 If you have one of the following DECstation Models you definitely
332 want to choose R4xx0 for the CPU Type:
339 otherwise choose R3000.
342 bool "Jazz family of machines"
345 select ARCH_MAY_HAVE_PC_FDC
348 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
349 select GENERIC_ISA_DMA
350 select HAVE_PCSPKR_PLATFORM
355 select SYS_HAS_CPU_R4X00
356 select SYS_SUPPORTS_32BIT_KERNEL
357 select SYS_SUPPORTS_64BIT_KERNEL
358 select SYS_SUPPORTS_100HZ
360 This a family of machines based on the MIPS R4030 chipset which was
361 used by several vendors to build RISC/os and Windows NT workstations.
362 Members include the Acer PICA, MIPS Magnum 4000, MIPS Millennium and
363 Olivetti M700-10 workstations.
366 bool "Ingenic SoC based machines"
367 select SYS_SUPPORTS_32BIT_KERNEL
368 select SYS_SUPPORTS_LITTLE_ENDIAN
369 select SYS_SUPPORTS_ZBOOT_UART16550
370 select DMA_NONCOHERENT
375 select GENERIC_IRQ_CHIP
381 bool "Lantiq based platforms"
382 select DMA_NONCOHERENT
386 select SYS_HAS_CPU_MIPS32_R1
387 select SYS_HAS_CPU_MIPS32_R2
388 select SYS_SUPPORTS_BIG_ENDIAN
389 select SYS_SUPPORTS_32BIT_KERNEL
390 select SYS_SUPPORTS_MIPS16
391 select SYS_SUPPORTS_MULTITHREADING
392 select SYS_HAS_EARLY_PRINTK
399 select PINCTRL_LANTIQ
400 select ARCH_HAS_RESET_CONTROLLER
401 select RESET_CONTROLLER
404 bool "LASAT Networks platforms"
408 select DMA_NONCOHERENT
409 select SYS_HAS_EARLY_PRINTK
412 select PCI_GT64XXX_PCI0
414 select R5000_CPU_SCACHE
415 select SYS_HAS_CPU_R5000
416 select SYS_SUPPORTS_32BIT_KERNEL
417 select SYS_SUPPORTS_64BIT_KERNEL if BROKEN
418 select SYS_SUPPORTS_LITTLE_ENDIAN
420 config MACH_LOONGSON32
421 bool "Loongson-1 family of machines"
422 select SYS_SUPPORTS_ZBOOT
424 This enables support for the Loongson-1 family of machines.
426 Loongson-1 is a family of 32-bit MIPS-compatible SoCs developed by
427 the Institute of Computing Technology (ICT), Chinese Academy of
430 config MACH_LOONGSON64
431 bool "Loongson-2/3 family of machines"
432 select SYS_SUPPORTS_ZBOOT
434 This enables the support of Loongson-2/3 family of machines.
436 Loongson-2 is a family of single-core CPUs and Loongson-3 is a
437 family of multi-core CPUs. They are both 64-bit general-purpose
438 MIPS-compatible CPUs. Loongson-2/3 are developed by the Institute
439 of Computing Technology (ICT), Chinese Academy of Sciences (CAS)
440 in the People's Republic of China. The chief architect is Professor
443 config MACH_PISTACHIO
444 bool "IMG Pistachio SoC based boards"
448 select CLKSRC_MIPS_GIC
451 select DMA_NONCOHERENT
456 select MIPS_CPU_SCACHE
460 select SYS_HAS_CPU_MIPS32_R2
461 select SYS_SUPPORTS_32BIT_KERNEL
462 select SYS_SUPPORTS_LITTLE_ENDIAN
463 select SYS_SUPPORTS_MIPS_CPS
464 select SYS_SUPPORTS_MULTITHREADING
465 select SYS_SUPPORTS_RELOCATABLE
466 select SYS_SUPPORTS_ZBOOT
467 select SYS_HAS_EARLY_PRINTK
468 select USE_GENERIC_EARLY_PRINTK_8250
471 This enables support for the IMG Pistachio SoC platform.
474 bool "MIPS Malta board"
475 select ARCH_MAY_HAVE_PC_FDC
481 select CLKSRC_MIPS_GIC
483 select DMA_MAYBE_COHERENT
484 select GENERIC_ISA_DMA
485 select HAVE_PCSPKR_PLATFORM
492 select MIPS_CPU_SCACHE
493 select MIPS_L1_CACHE_SHIFT_6
494 select PCI_GT64XXX_PCI0
498 select SYS_HAS_CPU_MIPS32_R1
499 select SYS_HAS_CPU_MIPS32_R2
500 select SYS_HAS_CPU_MIPS32_R3_5
501 select SYS_HAS_CPU_MIPS32_R5
502 select SYS_HAS_CPU_MIPS32_R6
503 select SYS_HAS_CPU_MIPS64_R1
504 select SYS_HAS_CPU_MIPS64_R2
505 select SYS_HAS_CPU_MIPS64_R6
506 select SYS_HAS_CPU_NEVADA
507 select SYS_HAS_CPU_RM7000
508 select SYS_SUPPORTS_32BIT_KERNEL
509 select SYS_SUPPORTS_64BIT_KERNEL
510 select SYS_SUPPORTS_BIG_ENDIAN
511 select SYS_SUPPORTS_HIGHMEM
512 select SYS_SUPPORTS_LITTLE_ENDIAN
513 select SYS_SUPPORTS_MICROMIPS
514 select SYS_SUPPORTS_MIPS_CMP
515 select SYS_SUPPORTS_MIPS_CPS
516 select SYS_SUPPORTS_MIPS16
517 select SYS_SUPPORTS_MULTITHREADING
518 select SYS_SUPPORTS_SMARTMIPS
519 select SYS_SUPPORTS_ZBOOT
520 select SYS_SUPPORTS_RELOCATABLE
523 select ZONE_DMA32 if 64BIT
527 This enables support for the MIPS Technologies Malta evaluation
531 bool "Microchip PIC32 Family"
533 This enables support for the Microchip PIC32 family of platforms.
535 Microchip PIC32 is a family of general-purpose 32 bit MIPS core
539 bool "NEC EMMA2RH Mark-eins board"
543 This enables support for the NEC Electronics Mark-eins boards.
546 bool "NEC VR4100 series based machines"
549 select SYS_HAS_CPU_VR41XX
550 select SYS_SUPPORTS_MIPS16
554 bool "NXP STB220 board"
557 Support for NXP Semiconductors STB220 Development Board.
564 Support for NXP Semiconductors STB225 Development Board.
567 bool "PMC-Sierra MSP chipsets"
570 select DMA_NONCOHERENT
572 select NO_EXCEPT_FILL
574 select SYS_HAS_CPU_MIPS32_R1
575 select SYS_HAS_CPU_MIPS32_R2
576 select SYS_SUPPORTS_32BIT_KERNEL
577 select SYS_SUPPORTS_BIG_ENDIAN
578 select SYS_SUPPORTS_MIPS16
581 select SERIAL_8250_CONSOLE
582 select USB_EHCI_BIG_ENDIAN_MMIO
583 select USB_EHCI_BIG_ENDIAN_DESC
585 This adds support for the PMC-Sierra family of Multi-Service
586 Processor System-On-A-Chips. These parts include a number
587 of integrated peripherals, interfaces and DSPs in addition to
588 a variety of MIPS cores.
591 bool "Ralink based machines"
595 select DMA_NONCOHERENT
598 select SYS_HAS_CPU_MIPS32_R1
599 select SYS_HAS_CPU_MIPS32_R2
600 select SYS_SUPPORTS_32BIT_KERNEL
601 select SYS_SUPPORTS_LITTLE_ENDIAN
602 select SYS_SUPPORTS_MIPS16
603 select SYS_HAS_EARLY_PRINTK
605 select ARCH_HAS_RESET_CONTROLLER
606 select RESET_CONTROLLER
609 bool "SGI IP22 (Indy/Indigo2)"
615 select DEFAULT_SGI_PARTITION
616 select DMA_NONCOHERENT
620 select IP22_CPU_SCACHE
622 select GENERIC_ISA_DMA_SUPPORT_BROKEN
624 select SGI_HAS_INDYDOG
630 select SYS_HAS_CPU_R4X00
631 select SYS_HAS_CPU_R5000
633 # Disable EARLY_PRINTK for now since it leads to overwritten prom
634 # memory during early boot on some machines.
636 # See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
637 # for a more details discussion
639 # select SYS_HAS_EARLY_PRINTK
640 select SYS_SUPPORTS_32BIT_KERNEL
641 select SYS_SUPPORTS_64BIT_KERNEL
642 select SYS_SUPPORTS_BIG_ENDIAN
643 select MIPS_L1_CACHE_SHIFT_7
645 This are the SGI Indy, Challenge S and Indigo2, as well as certain
646 OEM variants like the Tandem CMN B006S. To compile a Linux kernel
647 that runs on these, say Y here.
650 bool "SGI IP27 (Origin200/2000)"
654 select DEFAULT_SGI_PARTITION
656 select SYS_HAS_EARLY_PRINTK
658 select NR_CPUS_DEFAULT_64
659 select SYS_HAS_CPU_R10000
660 select SYS_SUPPORTS_64BIT_KERNEL
661 select SYS_SUPPORTS_BIG_ENDIAN
662 select SYS_SUPPORTS_NUMA
663 select SYS_SUPPORTS_SMP
664 select MIPS_L1_CACHE_SHIFT_7
666 This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
667 workstations. To compile a Linux kernel that runs on these, say Y
671 bool "SGI IP28 (Indigo2 R10k)"
677 select DEFAULT_SGI_PARTITION
678 select DMA_NONCOHERENT
679 select GENERIC_ISA_DMA_SUPPORT_BROKEN
685 select SGI_HAS_INDYDOG
691 select SYS_HAS_CPU_R10000
693 # Disable EARLY_PRINTK for now since it leads to overwritten prom
694 # memory during early boot on some machines.
696 # See http://www.linux-mips.org/cgi-bin/mesg.cgi?a=linux-mips&i=20091119164009.GA15038%40deprecation.cyrius.com
697 # for a more details discussion
699 # select SYS_HAS_EARLY_PRINTK
700 select SYS_SUPPORTS_64BIT_KERNEL
701 select SYS_SUPPORTS_BIG_ENDIAN
702 select MIPS_L1_CACHE_SHIFT_7
704 This is the SGI Indigo2 with R10000 processor. To compile a Linux
705 kernel that runs on these, say Y here.
714 select DMA_NONCOHERENT
717 select R5000_CPU_SCACHE
718 select RM7000_CPU_SCACHE
719 select SYS_HAS_CPU_R5000
720 select SYS_HAS_CPU_R10000 if BROKEN
721 select SYS_HAS_CPU_RM7000
722 select SYS_HAS_CPU_NEVADA
723 select SYS_SUPPORTS_64BIT_KERNEL
724 select SYS_SUPPORTS_BIG_ENDIAN
726 If you want this kernel to run on SGI O2 workstation, say Y here.
729 bool "Sibyte BCM91120C-CRhine"
732 select SIBYTE_BCM1120
734 select SYS_HAS_CPU_SB1
735 select SYS_SUPPORTS_BIG_ENDIAN
736 select SYS_SUPPORTS_LITTLE_ENDIAN
739 bool "Sibyte BCM91120x-Carmel"
742 select SIBYTE_BCM1120
744 select SYS_HAS_CPU_SB1
745 select SYS_SUPPORTS_BIG_ENDIAN
746 select SYS_SUPPORTS_LITTLE_ENDIAN
749 bool "Sibyte BCM91125C-CRhone"
752 select SIBYTE_BCM1125
754 select SYS_HAS_CPU_SB1
755 select SYS_SUPPORTS_BIG_ENDIAN
756 select SYS_SUPPORTS_HIGHMEM
757 select SYS_SUPPORTS_LITTLE_ENDIAN
760 bool "Sibyte BCM91125E-Rhone"
763 select SIBYTE_BCM1125H
765 select SYS_HAS_CPU_SB1
766 select SYS_SUPPORTS_BIG_ENDIAN
767 select SYS_SUPPORTS_LITTLE_ENDIAN
770 bool "Sibyte BCM91250A-SWARM"
773 select HAVE_PATA_PLATFORM
776 select SYS_HAS_CPU_SB1
777 select SYS_SUPPORTS_BIG_ENDIAN
778 select SYS_SUPPORTS_HIGHMEM
779 select SYS_SUPPORTS_LITTLE_ENDIAN
780 select ZONE_DMA32 if 64BIT
782 config SIBYTE_LITTLESUR
783 bool "Sibyte BCM91250C2-LittleSur"
786 select HAVE_PATA_PLATFORM
789 select SYS_HAS_CPU_SB1
790 select SYS_SUPPORTS_BIG_ENDIAN
791 select SYS_SUPPORTS_HIGHMEM
792 select SYS_SUPPORTS_LITTLE_ENDIAN
794 config SIBYTE_SENTOSA
795 bool "Sibyte BCM91250E-Sentosa"
800 select SYS_HAS_CPU_SB1
801 select SYS_SUPPORTS_BIG_ENDIAN
802 select SYS_SUPPORTS_LITTLE_ENDIAN
805 bool "Sibyte BCM91480B-BigSur"
808 select NR_CPUS_DEFAULT_4
809 select SIBYTE_BCM1x80
811 select SYS_HAS_CPU_SB1
812 select SYS_SUPPORTS_BIG_ENDIAN
813 select SYS_SUPPORTS_HIGHMEM
814 select SYS_SUPPORTS_LITTLE_ENDIAN
815 select ZONE_DMA32 if 64BIT
818 bool "SNI RM200/300/400"
819 select FW_ARC if CPU_LITTLE_ENDIAN
820 select FW_ARC32 if CPU_LITTLE_ENDIAN
821 select FW_SNIPROM if CPU_BIG_ENDIAN
822 select ARCH_MAY_HAVE_PC_FDC
826 select DEFAULT_SGI_PARTITION if CPU_BIG_ENDIAN
827 select DMA_NONCOHERENT
828 select GENERIC_ISA_DMA
829 select HAVE_PCSPKR_PLATFORM
836 select SWAP_IO_SPACE if CPU_BIG_ENDIAN
837 select SYS_HAS_CPU_R4X00
838 select SYS_HAS_CPU_R5000
839 select SYS_HAS_CPU_R10000
840 select R5000_CPU_SCACHE
841 select SYS_HAS_EARLY_PRINTK
842 select SYS_SUPPORTS_32BIT_KERNEL
843 select SYS_SUPPORTS_64BIT_KERNEL
844 select SYS_SUPPORTS_BIG_ENDIAN
845 select SYS_SUPPORTS_HIGHMEM
846 select SYS_SUPPORTS_LITTLE_ENDIAN
848 The SNI RM200/300/400 are MIPS-based machines manufactured by
849 Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
850 Technology and now in turn merged with Fujitsu. Say Y here to
851 support this machine type.
854 bool "Toshiba TX39 series based machines"
857 bool "Toshiba TX49 series based machines"
859 config MIKROTIK_RB532
860 bool "Mikrotik RB532 boards"
863 select DMA_NONCOHERENT
866 select SYS_HAS_CPU_MIPS32_R1
867 select SYS_SUPPORTS_32BIT_KERNEL
868 select SYS_SUPPORTS_LITTLE_ENDIAN
872 select MIPS_L1_CACHE_SHIFT_4
874 Support the Mikrotik(tm) RouterBoard 532 series,
875 based on the IDT RC32434 SoC.
877 config CAVIUM_OCTEON_SOC
878 bool "Cavium Networks Octeon SoC based boards"
880 select ARCH_PHYS_ADDR_T_64BIT
882 select SYS_SUPPORTS_64BIT_KERNEL
883 select SYS_SUPPORTS_BIG_ENDIAN
885 select EDAC_ATOMIC_SCRUB
886 select SYS_SUPPORTS_LITTLE_ENDIAN
887 select SYS_SUPPORTS_HOTPLUG_CPU if CPU_BIG_ENDIAN
888 select SYS_HAS_EARLY_PRINTK
889 select SYS_HAS_CPU_CAVIUM_OCTEON
896 select ARCH_SPARSEMEM_ENABLE
897 select SYS_SUPPORTS_SMP
898 select NR_CPUS_DEFAULT_64
899 select MIPS_NR_CPU_NR_MAP_1024
901 select MTD_COMPLEX_MAPPINGS
902 select SYS_SUPPORTS_RELOCATABLE
904 This option supports all of the Octeon reference boards from Cavium
905 Networks. It builds a kernel that dynamically determines the Octeon
906 CPU type and supports all known board reference implementations.
907 Some of the supported boards are:
914 Say Y here for most Octeon reference boards.
917 bool "Netlogic XLR/XLS based systems"
920 select SYS_HAS_CPU_XLR
921 select SYS_SUPPORTS_SMP
924 select SYS_SUPPORTS_32BIT_KERNEL
925 select SYS_SUPPORTS_64BIT_KERNEL
926 select ARCH_PHYS_ADDR_T_64BIT
927 select SYS_SUPPORTS_BIG_ENDIAN
928 select SYS_SUPPORTS_HIGHMEM
930 select NR_CPUS_DEFAULT_32
934 select ZONE_DMA32 if 64BIT
936 select SYS_HAS_EARLY_PRINTK
937 select SYS_SUPPORTS_ZBOOT
938 select SYS_SUPPORTS_ZBOOT_UART16550
940 Support for systems based on Netlogic XLR and XLS processors.
941 Say Y here if you have a XLR or XLS based board.
944 bool "Netlogic XLP based systems"
947 select SYS_HAS_CPU_XLP
948 select SYS_SUPPORTS_SMP
950 select SYS_SUPPORTS_32BIT_KERNEL
951 select SYS_SUPPORTS_64BIT_KERNEL
952 select ARCH_PHYS_ADDR_T_64BIT
954 select SYS_SUPPORTS_BIG_ENDIAN
955 select SYS_SUPPORTS_LITTLE_ENDIAN
956 select SYS_SUPPORTS_HIGHMEM
958 select NR_CPUS_DEFAULT_32
962 select ZONE_DMA32 if 64BIT
964 select SYS_HAS_EARLY_PRINTK
966 select SYS_SUPPORTS_ZBOOT
967 select SYS_SUPPORTS_ZBOOT_UART16550
969 This board is based on Netlogic XLP Processor.
970 Say Y here if you have a XLP based board.
973 bool "Para-Virtualized guest system"
977 select SYS_SUPPORTS_64BIT_KERNEL
978 select SYS_SUPPORTS_32BIT_KERNEL
979 select SYS_SUPPORTS_BIG_ENDIAN
980 select SYS_SUPPORTS_SMP
981 select NR_CPUS_DEFAULT_4
982 select SYS_HAS_EARLY_PRINTK
983 select SYS_HAS_CPU_MIPS32_R2
984 select SYS_HAS_CPU_MIPS64_R2
985 select SYS_HAS_CPU_CAVIUM_OCTEON
989 This option supports guest running under ????
993 source "arch/mips/alchemy/Kconfig"
994 source "arch/mips/ath25/Kconfig"
995 source "arch/mips/ath79/Kconfig"
996 source "arch/mips/bcm47xx/Kconfig"
997 source "arch/mips/bcm63xx/Kconfig"
998 source "arch/mips/bmips/Kconfig"
999 source "arch/mips/generic/Kconfig"
1000 source "arch/mips/jazz/Kconfig"
1001 source "arch/mips/jz4740/Kconfig"
1002 source "arch/mips/lantiq/Kconfig"
1003 source "arch/mips/lasat/Kconfig"
1004 source "arch/mips/pic32/Kconfig"
1005 source "arch/mips/pistachio/Kconfig"
1006 source "arch/mips/pmcs-msp71xx/Kconfig"
1007 source "arch/mips/ralink/Kconfig"
1008 source "arch/mips/sgi-ip27/Kconfig"
1009 source "arch/mips/sibyte/Kconfig"
1010 source "arch/mips/txx9/Kconfig"
1011 source "arch/mips/vr41xx/Kconfig"
1012 source "arch/mips/cavium-octeon/Kconfig"
1013 source "arch/mips/loongson32/Kconfig"
1014 source "arch/mips/loongson64/Kconfig"
1015 source "arch/mips/netlogic/Kconfig"
1016 source "arch/mips/paravirt/Kconfig"
1020 config RWSEM_GENERIC_SPINLOCK
1024 config RWSEM_XCHGADD_ALGORITHM
1027 config GENERIC_HWEIGHT
1031 config GENERIC_CALIBRATE_DELAY
1035 config SCHED_OMIT_FRAME_POINTER
1040 # Select some configuration options automatically based on user selections.
1045 config ARCH_MAY_HAVE_PC_FDC
1081 config MIPS_CLOCK_VSYSCALL
1082 def_bool CSRC_R4K || CLKSRC_MIPS_GIC
1091 config ARCH_DMA_ADDR_T_64BIT
1092 def_bool (HIGHMEM && ARCH_PHYS_ADDR_T_64BIT) || 64BIT
1094 config ARCH_SUPPORTS_UPROBES
1097 config DMA_MAYBE_COHERENT
1098 select DMA_NONCOHERENT
1101 config DMA_PERDEV_COHERENT
1103 select DMA_MAYBE_COHERENT
1108 config DMA_NONCOHERENT
1110 select NEED_DMA_MAP_STATE
1112 config NEED_DMA_MAP_STATE
1115 config SYS_HAS_EARLY_PRINTK
1118 config SYS_SUPPORTS_HOTPLUG_CPU
1121 config MIPS_BONITO64
1136 config NO_IOPORT_MAP
1142 config GENERIC_ISA_DMA
1144 select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
1147 config GENERIC_ISA_DMA_SUPPORT_BROKEN
1149 select GENERIC_ISA_DMA
1154 config HOLES_IN_ZONE
1157 config SYS_SUPPORTS_RELOCATABLE
1160 Selected if the platform supports relocating the kernel.
1161 The platform must provide plat_get_fdt() if it selects CONFIG_USE_OF
1162 to allow access to command line and entropy sources.
1164 config MIPS_CBPF_JIT
1166 depends on BPF_JIT && HAVE_CBPF_JIT
1168 config MIPS_EBPF_JIT
1170 depends on BPF_JIT && HAVE_EBPF_JIT
1174 # Endianness selection. Sufficiently obscure so many users don't know what to
1175 # answer,so we try hard to limit the available choices. Also the use of a
1176 # choice statement should be more obvious to the user.
1179 prompt "Endianness selection"
1181 Some MIPS machines can be configured for either little or big endian
1182 byte order. These modes require different kernels and a different
1183 Linux distribution. In general there is one preferred byteorder for a
1184 particular system but some systems are just as commonly used in the
1185 one or the other endianness.
1187 config CPU_BIG_ENDIAN
1189 depends on SYS_SUPPORTS_BIG_ENDIAN
1191 config CPU_LITTLE_ENDIAN
1192 bool "Little endian"
1193 depends on SYS_SUPPORTS_LITTLE_ENDIAN
1200 config SYS_SUPPORTS_APM_EMULATION
1203 config SYS_SUPPORTS_BIG_ENDIAN
1206 config SYS_SUPPORTS_LITTLE_ENDIAN
1209 config SYS_SUPPORTS_HUGETLBFS
1211 depends on CPU_SUPPORTS_HUGEPAGES && 64BIT
1214 config MIPS_HUGE_TLB_SUPPORT
1215 def_bool HUGETLB_PAGE || TRANSPARENT_HUGEPAGE
1232 config PCI_GT64XXX_PCI0
1235 config NO_EXCEPT_FILL
1242 select DMA_NONCOHERENT
1244 select SWAP_IO_SPACE
1245 select SYS_HAS_CPU_R5500
1246 select SYS_SUPPORTS_32BIT_KERNEL
1247 select SYS_SUPPORTS_64BIT_KERNEL
1248 select SYS_SUPPORTS_BIG_ENDIAN
1255 select DMA_NONCOHERENT
1256 select SYS_HAS_CPU_MIPS32_R2
1257 select SYS_SUPPORTS_32BIT_KERNEL
1258 select SYS_SUPPORTS_LITTLE_ENDIAN
1259 select SYS_SUPPORTS_BIG_ENDIAN
1260 select SYS_SUPPORTS_MIPS16
1261 select CPU_MIPSR2_IRQ_VI
1270 config SWAP_IO_SPACE
1273 config SGI_HAS_INDYDOG
1285 config SGI_HAS_ZILOG
1288 config SGI_HAS_I8042
1291 config DEFAULT_SGI_PARTITION
1303 config MIPS_L1_CACHE_SHIFT_4
1306 config MIPS_L1_CACHE_SHIFT_5
1309 config MIPS_L1_CACHE_SHIFT_6
1312 config MIPS_L1_CACHE_SHIFT_7
1315 config MIPS_L1_CACHE_SHIFT
1317 default "7" if MIPS_L1_CACHE_SHIFT_7
1318 default "6" if MIPS_L1_CACHE_SHIFT_6
1319 default "5" if MIPS_L1_CACHE_SHIFT_5
1320 default "4" if MIPS_L1_CACHE_SHIFT_4
1323 config HAVE_STD_PC_SERIAL_PORT
1327 bool "ARC console support"
1328 depends on SGI_IP22 || SGI_IP28 || (SNI_RM && CPU_LITTLE_ENDIAN)
1332 depends on MACH_JAZZ || SNI_RM || SGI_IP32
1337 depends on MACH_JAZZ || SNI_RM || SGI_IP22 || SGI_IP28 || SGI_IP32
1346 menu "CPU selection"
1352 config CPU_LOONGSON3
1353 bool "Loongson 3 CPU"
1354 depends on SYS_HAS_CPU_LOONGSON3
1355 select CPU_SUPPORTS_64BIT_KERNEL
1356 select CPU_SUPPORTS_HIGHMEM
1357 select CPU_SUPPORTS_HUGEPAGES
1358 select WEAK_ORDERING
1359 select WEAK_REORDERING_BEYOND_LLSC
1360 select MIPS_PGD_C0_CONTEXT
1361 select MIPS_L1_CACHE_SHIFT_6
1364 The Loongson 3 processor implements the MIPS64R2 instruction
1365 set with many extensions.
1367 config LOONGSON3_ENHANCEMENT
1368 bool "New Loongson 3 CPU Enhancements"
1371 select CPU_HAS_PREFETCH
1372 depends on CPU_LOONGSON3
1374 New Loongson 3 CPU (since Loongson-3A R2, as opposed to Loongson-3A
1375 R1, Loongson-3B R1 and Loongson-3B R2) has many enhancements, such as
1376 FTLB, L1-VCache, EI/DI/Wait/Prefetch instruction, DSP/DSPv2 ASE, User
1377 Local register, Read-Inhibit/Execute-Inhibit, SFB (Store Fill Buffer),
1378 Fast TLB refill support, etc.
1380 This option enable those enhancements which are not probed at run
1381 time. If you want a generic kernel to run on all Loongson 3 machines,
1382 please say 'N' here. If you want a high-performance kernel to run on
1383 new Loongson 3 machines only, please say 'Y' here.
1385 config CPU_LOONGSON2E
1387 depends on SYS_HAS_CPU_LOONGSON2E
1388 select CPU_LOONGSON2
1390 The Loongson 2E processor implements the MIPS III instruction set
1391 with many extensions.
1393 It has an internal FPGA northbridge, which is compatible to
1396 config CPU_LOONGSON2F
1398 depends on SYS_HAS_CPU_LOONGSON2F
1399 select CPU_LOONGSON2
1402 The Loongson 2F processor implements the MIPS III instruction set
1403 with many extensions.
1405 Loongson2F have built-in DDR2 and PCIX controller. The PCIX controller
1406 have a similar programming interface with FPGA northbridge used in
1409 config CPU_LOONGSON1B
1411 depends on SYS_HAS_CPU_LOONGSON1B
1412 select CPU_LOONGSON1
1413 select LEDS_GPIO_REGISTER
1415 The Loongson 1B is a 32-bit SoC, which implements the MIPS32
1416 release 2 instruction set.
1418 config CPU_LOONGSON1C
1420 depends on SYS_HAS_CPU_LOONGSON1C
1421 select CPU_LOONGSON1
1422 select LEDS_GPIO_REGISTER
1424 The Loongson 1C is a 32-bit SoC, which implements the MIPS32
1425 release 2 instruction set.
1427 config CPU_MIPS32_R1
1428 bool "MIPS32 Release 1"
1429 depends on SYS_HAS_CPU_MIPS32_R1
1430 select CPU_HAS_PREFETCH
1431 select CPU_SUPPORTS_32BIT_KERNEL
1432 select CPU_SUPPORTS_HIGHMEM
1434 Choose this option to build a kernel for release 1 or later of the
1435 MIPS32 architecture. Most modern embedded systems with a 32-bit
1436 MIPS processor are based on a MIPS32 processor. If you know the
1437 specific type of processor in your system, choose those that one
1438 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
1439 Release 2 of the MIPS32 architecture is available since several
1440 years so chances are you even have a MIPS32 Release 2 processor
1441 in which case you should choose CPU_MIPS32_R2 instead for better
1444 config CPU_MIPS32_R2
1445 bool "MIPS32 Release 2"
1446 depends on SYS_HAS_CPU_MIPS32_R2
1447 select CPU_HAS_PREFETCH
1448 select CPU_SUPPORTS_32BIT_KERNEL
1449 select CPU_SUPPORTS_HIGHMEM
1450 select CPU_SUPPORTS_MSA
1453 Choose this option to build a kernel for release 2 or later of the
1454 MIPS32 architecture. Most modern embedded systems with a 32-bit
1455 MIPS processor are based on a MIPS32 processor. If you know the
1456 specific type of processor in your system, choose those that one
1457 otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
1459 config CPU_MIPS32_R6
1460 bool "MIPS32 Release 6"
1461 depends on SYS_HAS_CPU_MIPS32_R6
1462 select CPU_HAS_PREFETCH
1463 select CPU_SUPPORTS_32BIT_KERNEL
1464 select CPU_SUPPORTS_HIGHMEM
1465 select CPU_SUPPORTS_MSA
1468 select MIPS_O32_FP64_SUPPORT
1470 Choose this option to build a kernel for release 6 or later of the
1471 MIPS32 architecture. New MIPS processors, starting with the Warrior
1472 family, are based on a MIPS32r6 processor. If you own an older
1473 processor, you probably need to select MIPS32r1 or MIPS32r2 instead.
1475 config CPU_MIPS64_R1
1476 bool "MIPS64 Release 1"
1477 depends on SYS_HAS_CPU_MIPS64_R1
1478 select CPU_HAS_PREFETCH
1479 select CPU_SUPPORTS_32BIT_KERNEL
1480 select CPU_SUPPORTS_64BIT_KERNEL
1481 select CPU_SUPPORTS_HIGHMEM
1482 select CPU_SUPPORTS_HUGEPAGES
1484 Choose this option to build a kernel for release 1 or later of the
1485 MIPS64 architecture. Many modern embedded systems with a 64-bit
1486 MIPS processor are based on a MIPS64 processor. If you know the
1487 specific type of processor in your system, choose those that one
1488 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
1489 Release 2 of the MIPS64 architecture is available since several
1490 years so chances are you even have a MIPS64 Release 2 processor
1491 in which case you should choose CPU_MIPS64_R2 instead for better
1494 config CPU_MIPS64_R2
1495 bool "MIPS64 Release 2"
1496 depends on SYS_HAS_CPU_MIPS64_R2
1497 select CPU_HAS_PREFETCH
1498 select CPU_SUPPORTS_32BIT_KERNEL
1499 select CPU_SUPPORTS_64BIT_KERNEL
1500 select CPU_SUPPORTS_HIGHMEM
1501 select CPU_SUPPORTS_HUGEPAGES
1502 select CPU_SUPPORTS_MSA
1505 Choose this option to build a kernel for release 2 or later of the
1506 MIPS64 architecture. Many modern embedded systems with a 64-bit
1507 MIPS processor are based on a MIPS64 processor. If you know the
1508 specific type of processor in your system, choose those that one
1509 otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
1511 config CPU_MIPS64_R6
1512 bool "MIPS64 Release 6"
1513 depends on SYS_HAS_CPU_MIPS64_R6
1514 select CPU_HAS_PREFETCH
1515 select CPU_SUPPORTS_32BIT_KERNEL
1516 select CPU_SUPPORTS_64BIT_KERNEL
1517 select CPU_SUPPORTS_HIGHMEM
1518 select CPU_SUPPORTS_MSA
1520 select MIPS_O32_FP64_SUPPORT if 32BIT || MIPS32_O32
1523 Choose this option to build a kernel for release 6 or later of the
1524 MIPS64 architecture. New MIPS processors, starting with the Warrior
1525 family, are based on a MIPS64r6 processor. If you own an older
1526 processor, you probably need to select MIPS64r1 or MIPS64r2 instead.
1530 depends on SYS_HAS_CPU_R3000
1532 select CPU_SUPPORTS_32BIT_KERNEL
1533 select CPU_SUPPORTS_HIGHMEM
1535 Please make sure to pick the right CPU type. Linux/MIPS is not
1536 designed to be generic, i.e. Kernels compiled for R3000 CPUs will
1537 *not* work on R4000 machines and vice versa. However, since most
1538 of the supported machines have an R4000 (or similar) CPU, R4x00
1539 might be a safe bet. If the resulting kernel does not work,
1540 try to recompile with R3000.
1544 depends on SYS_HAS_CPU_TX39XX
1545 select CPU_SUPPORTS_32BIT_KERNEL
1549 depends on SYS_HAS_CPU_VR41XX
1550 select CPU_SUPPORTS_32BIT_KERNEL
1551 select CPU_SUPPORTS_64BIT_KERNEL
1553 The options selects support for the NEC VR4100 series of processors.
1554 Only choose this option if you have one of these processors as a
1555 kernel built with this option will not run on any other type of
1556 processor or vice versa.
1560 depends on SYS_HAS_CPU_R4300
1561 select CPU_SUPPORTS_32BIT_KERNEL
1562 select CPU_SUPPORTS_64BIT_KERNEL
1564 MIPS Technologies R4300-series processors.
1568 depends on SYS_HAS_CPU_R4X00
1569 select CPU_SUPPORTS_32BIT_KERNEL
1570 select CPU_SUPPORTS_64BIT_KERNEL
1571 select CPU_SUPPORTS_HUGEPAGES
1573 MIPS Technologies R4000-series processors other than 4300, including
1574 the R4000, R4400, R4600, and 4700.
1578 depends on SYS_HAS_CPU_TX49XX
1579 select CPU_HAS_PREFETCH
1580 select CPU_SUPPORTS_32BIT_KERNEL
1581 select CPU_SUPPORTS_64BIT_KERNEL
1582 select CPU_SUPPORTS_HUGEPAGES
1586 depends on SYS_HAS_CPU_R5000
1587 select CPU_SUPPORTS_32BIT_KERNEL
1588 select CPU_SUPPORTS_64BIT_KERNEL
1589 select CPU_SUPPORTS_HUGEPAGES
1591 MIPS Technologies R5000-series processors other than the Nevada.
1595 depends on SYS_HAS_CPU_R5432
1596 select CPU_SUPPORTS_32BIT_KERNEL
1597 select CPU_SUPPORTS_64BIT_KERNEL
1598 select CPU_SUPPORTS_HUGEPAGES
1602 depends on SYS_HAS_CPU_R5500
1603 select CPU_SUPPORTS_32BIT_KERNEL
1604 select CPU_SUPPORTS_64BIT_KERNEL
1605 select CPU_SUPPORTS_HUGEPAGES
1607 NEC VR5500 and VR5500A series processors implement 64-bit MIPS IV
1612 depends on SYS_HAS_CPU_NEVADA
1613 select CPU_SUPPORTS_32BIT_KERNEL
1614 select CPU_SUPPORTS_64BIT_KERNEL
1615 select CPU_SUPPORTS_HUGEPAGES
1617 QED / PMC-Sierra RM52xx-series ("Nevada") processors.
1621 depends on SYS_HAS_CPU_R8000
1622 select CPU_HAS_PREFETCH
1623 select CPU_SUPPORTS_64BIT_KERNEL
1625 MIPS Technologies R8000 processors. Note these processors are
1626 uncommon and the support for them is incomplete.
1630 depends on SYS_HAS_CPU_R10000
1631 select CPU_HAS_PREFETCH
1632 select CPU_SUPPORTS_32BIT_KERNEL
1633 select CPU_SUPPORTS_64BIT_KERNEL
1634 select CPU_SUPPORTS_HIGHMEM
1635 select CPU_SUPPORTS_HUGEPAGES
1637 MIPS Technologies R10000-series processors.
1641 depends on SYS_HAS_CPU_RM7000
1642 select CPU_HAS_PREFETCH
1643 select CPU_SUPPORTS_32BIT_KERNEL
1644 select CPU_SUPPORTS_64BIT_KERNEL
1645 select CPU_SUPPORTS_HIGHMEM
1646 select CPU_SUPPORTS_HUGEPAGES
1650 depends on SYS_HAS_CPU_SB1
1651 select CPU_SUPPORTS_32BIT_KERNEL
1652 select CPU_SUPPORTS_64BIT_KERNEL
1653 select CPU_SUPPORTS_HIGHMEM
1654 select CPU_SUPPORTS_HUGEPAGES
1655 select WEAK_ORDERING
1657 config CPU_CAVIUM_OCTEON
1658 bool "Cavium Octeon processor"
1659 depends on SYS_HAS_CPU_CAVIUM_OCTEON
1660 select CPU_HAS_PREFETCH
1661 select CPU_SUPPORTS_64BIT_KERNEL
1662 select WEAK_ORDERING
1663 select CPU_SUPPORTS_HIGHMEM
1664 select CPU_SUPPORTS_HUGEPAGES
1665 select USB_EHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1666 select USB_OHCI_BIG_ENDIAN_MMIO if CPU_BIG_ENDIAN
1667 select MIPS_L1_CACHE_SHIFT_7
1670 The Cavium Octeon processor is a highly integrated chip containing
1671 many ethernet hardware widgets for networking tasks. The processor
1672 can have up to 16 Mips64v2 cores and 8 integrated gigabit ethernets.
1673 Full details can be found at http://www.caviumnetworks.com.
1676 bool "Broadcom BMIPS"
1677 depends on SYS_HAS_CPU_BMIPS
1679 select CPU_BMIPS32_3300 if SYS_HAS_CPU_BMIPS32_3300
1680 select CPU_BMIPS4350 if SYS_HAS_CPU_BMIPS4350
1681 select CPU_BMIPS4380 if SYS_HAS_CPU_BMIPS4380
1682 select CPU_BMIPS5000 if SYS_HAS_CPU_BMIPS5000
1683 select CPU_SUPPORTS_32BIT_KERNEL
1684 select DMA_NONCOHERENT
1686 select SWAP_IO_SPACE
1687 select WEAK_ORDERING
1688 select CPU_SUPPORTS_HIGHMEM
1689 select CPU_HAS_PREFETCH
1690 select CPU_SUPPORTS_CPUFREQ
1691 select MIPS_EXTERNAL_TIMER
1693 Support for BMIPS32/3300/4350/4380 and BMIPS5000 processors.
1696 bool "Netlogic XLR SoC"
1697 depends on SYS_HAS_CPU_XLR
1698 select CPU_SUPPORTS_32BIT_KERNEL
1699 select CPU_SUPPORTS_64BIT_KERNEL
1700 select CPU_SUPPORTS_HIGHMEM
1701 select CPU_SUPPORTS_HUGEPAGES
1702 select WEAK_ORDERING
1703 select WEAK_REORDERING_BEYOND_LLSC
1705 Netlogic Microsystems XLR/XLS processors.
1708 bool "Netlogic XLP SoC"
1709 depends on SYS_HAS_CPU_XLP
1710 select CPU_SUPPORTS_32BIT_KERNEL
1711 select CPU_SUPPORTS_64BIT_KERNEL
1712 select CPU_SUPPORTS_HIGHMEM
1713 select WEAK_ORDERING
1714 select WEAK_REORDERING_BEYOND_LLSC
1715 select CPU_HAS_PREFETCH
1717 select CPU_SUPPORTS_HUGEPAGES
1718 select MIPS_ASID_BITS_VARIABLE
1720 Netlogic Microsystems XLP processors.
1723 config CPU_MIPS32_3_5_FEATURES
1724 bool "MIPS32 Release 3.5 Features"
1725 depends on SYS_HAS_CPU_MIPS32_R3_5
1726 depends on CPU_MIPS32_R2 || CPU_MIPS32_R6
1728 Choose this option to build a kernel for release 2 or later of the
1729 MIPS32 architecture including features from the 3.5 release such as
1730 support for Enhanced Virtual Addressing (EVA).
1732 config CPU_MIPS32_3_5_EVA
1733 bool "Enhanced Virtual Addressing (EVA)"
1734 depends on CPU_MIPS32_3_5_FEATURES
1738 Choose this option if you want to enable the Enhanced Virtual
1739 Addressing (EVA) on your MIPS32 core (such as proAptiv).
1740 One of its primary benefits is an increase in the maximum size
1741 of lowmem (up to 3GB). If unsure, say 'N' here.
1743 config CPU_MIPS32_R5_FEATURES
1744 bool "MIPS32 Release 5 Features"
1745 depends on SYS_HAS_CPU_MIPS32_R5
1746 depends on CPU_MIPS32_R2
1748 Choose this option to build a kernel for release 2 or later of the
1749 MIPS32 architecture including features from release 5 such as
1750 support for Extended Physical Addressing (XPA).
1752 config CPU_MIPS32_R5_XPA
1753 bool "Extended Physical Addressing (XPA)"
1754 depends on CPU_MIPS32_R5_FEATURES
1756 depends on !PAGE_SIZE_4KB
1757 depends on SYS_SUPPORTS_HIGHMEM
1760 select ARCH_PHYS_ADDR_T_64BIT
1763 Choose this option if you want to enable the Extended Physical
1764 Addressing (XPA) on your MIPS32 core (such as P5600 series). The
1765 benefit is to increase physical addressing equal to or greater
1766 than 40 bits. Note that this has the side effect of turning on
1767 64-bit addressing which in turn makes the PTEs 64-bit in size.
1768 If unsure, say 'N' here.
1771 config CPU_NOP_WORKAROUNDS
1774 config CPU_JUMP_WORKAROUNDS
1777 config CPU_LOONGSON2F_WORKAROUNDS
1778 bool "Loongson 2F Workarounds"
1780 select CPU_NOP_WORKAROUNDS
1781 select CPU_JUMP_WORKAROUNDS
1783 Loongson 2F01 / 2F02 processors have the NOP & JUMP issues which
1784 require workarounds. Without workarounds the system may hang
1785 unexpectedly. For more information please refer to the gas
1786 -mfix-loongson2f-nop and -mfix-loongson2f-jump options.
1788 Loongson 2F03 and later have fixed these issues and no workarounds
1789 are needed. The workarounds have no significant side effect on them
1790 but may decrease the performance of the system so this option should
1791 be disabled unless the kernel is intended to be run on 2F01 or 2F02
1794 If unsure, please say Y.
1795 endif # CPU_LOONGSON2F
1797 config SYS_SUPPORTS_ZBOOT
1799 select HAVE_KERNEL_GZIP
1800 select HAVE_KERNEL_BZIP2
1801 select HAVE_KERNEL_LZ4
1802 select HAVE_KERNEL_LZMA
1803 select HAVE_KERNEL_LZO
1804 select HAVE_KERNEL_XZ
1806 config SYS_SUPPORTS_ZBOOT_UART16550
1808 select SYS_SUPPORTS_ZBOOT
1810 config SYS_SUPPORTS_ZBOOT_UART_PROM
1812 select SYS_SUPPORTS_ZBOOT
1814 config CPU_LOONGSON2
1816 select CPU_SUPPORTS_32BIT_KERNEL
1817 select CPU_SUPPORTS_64BIT_KERNEL
1818 select CPU_SUPPORTS_HIGHMEM
1819 select CPU_SUPPORTS_HUGEPAGES
1821 config CPU_LOONGSON1
1825 select CPU_HAS_PREFETCH
1826 select CPU_SUPPORTS_32BIT_KERNEL
1827 select CPU_SUPPORTS_HIGHMEM
1828 select CPU_SUPPORTS_CPUFREQ
1830 config CPU_BMIPS32_3300
1831 select SMP_UP if SMP
1834 config CPU_BMIPS4350
1836 select SYS_SUPPORTS_SMP
1837 select SYS_SUPPORTS_HOTPLUG_CPU
1839 config CPU_BMIPS4380
1841 select MIPS_L1_CACHE_SHIFT_6
1842 select SYS_SUPPORTS_SMP
1843 select SYS_SUPPORTS_HOTPLUG_CPU
1846 config CPU_BMIPS5000
1848 select MIPS_CPU_SCACHE
1849 select MIPS_L1_CACHE_SHIFT_7
1850 select SYS_SUPPORTS_SMP
1851 select SYS_SUPPORTS_HOTPLUG_CPU
1854 config SYS_HAS_CPU_LOONGSON3
1856 select CPU_SUPPORTS_CPUFREQ
1859 config SYS_HAS_CPU_LOONGSON2E
1862 config SYS_HAS_CPU_LOONGSON2F
1864 select CPU_SUPPORTS_CPUFREQ
1865 select CPU_SUPPORTS_ADDRWINCFG if 64BIT
1866 select CPU_SUPPORTS_UNCACHED_ACCELERATED
1868 config SYS_HAS_CPU_LOONGSON1B
1871 config SYS_HAS_CPU_LOONGSON1C
1874 config SYS_HAS_CPU_MIPS32_R1
1877 config SYS_HAS_CPU_MIPS32_R2
1880 config SYS_HAS_CPU_MIPS32_R3_5
1883 config SYS_HAS_CPU_MIPS32_R5
1886 config SYS_HAS_CPU_MIPS32_R6
1889 config SYS_HAS_CPU_MIPS64_R1
1892 config SYS_HAS_CPU_MIPS64_R2
1895 config SYS_HAS_CPU_MIPS64_R6
1898 config SYS_HAS_CPU_R3000
1901 config SYS_HAS_CPU_TX39XX
1904 config SYS_HAS_CPU_VR41XX
1907 config SYS_HAS_CPU_R4300
1910 config SYS_HAS_CPU_R4X00
1913 config SYS_HAS_CPU_TX49XX
1916 config SYS_HAS_CPU_R5000
1919 config SYS_HAS_CPU_R5432
1922 config SYS_HAS_CPU_R5500
1925 config SYS_HAS_CPU_NEVADA
1928 config SYS_HAS_CPU_R8000
1931 config SYS_HAS_CPU_R10000
1934 config SYS_HAS_CPU_RM7000
1937 config SYS_HAS_CPU_SB1
1940 config SYS_HAS_CPU_CAVIUM_OCTEON
1943 config SYS_HAS_CPU_BMIPS
1946 config SYS_HAS_CPU_BMIPS32_3300
1948 select SYS_HAS_CPU_BMIPS
1950 config SYS_HAS_CPU_BMIPS4350
1952 select SYS_HAS_CPU_BMIPS
1954 config SYS_HAS_CPU_BMIPS4380
1956 select SYS_HAS_CPU_BMIPS
1958 config SYS_HAS_CPU_BMIPS5000
1960 select SYS_HAS_CPU_BMIPS
1962 config SYS_HAS_CPU_XLR
1965 config SYS_HAS_CPU_XLP
1968 config MIPS_MALTA_PM
1969 depends on MIPS_MALTA
1975 # CPU may reorder R->R, R->W, W->R, W->W
1976 # Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
1978 config WEAK_ORDERING
1982 # CPU may reorder reads and writes beyond LL/SC
1983 # CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
1985 config WEAK_REORDERING_BEYOND_LLSC
1990 # These two indicate any level of the MIPS32 and MIPS64 architecture
1994 default y if CPU_MIPS32_R1 || CPU_MIPS32_R2 || CPU_MIPS32_R6
1998 default y if CPU_MIPS64_R1 || CPU_MIPS64_R2 || CPU_MIPS64_R6
2001 # These two indicate the revision of the architecture, either Release 1 or Release 2
2005 default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
2009 default y if CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_CAVIUM_OCTEON
2015 default y if CPU_MIPS32_R6 || CPU_MIPS64_R6
2017 select HAVE_ARCH_BITREVERSE
2018 select MIPS_ASID_BITS_VARIABLE
2027 config SYS_SUPPORTS_32BIT_KERNEL
2029 config SYS_SUPPORTS_64BIT_KERNEL
2031 config CPU_SUPPORTS_32BIT_KERNEL
2033 config CPU_SUPPORTS_64BIT_KERNEL
2035 config CPU_SUPPORTS_CPUFREQ
2037 config CPU_SUPPORTS_ADDRWINCFG
2039 config CPU_SUPPORTS_HUGEPAGES
2041 config CPU_SUPPORTS_UNCACHED_ACCELERATED
2043 config MIPS_PGD_C0_CONTEXT
2045 default y if 64BIT && (CPU_MIPSR2 || CPU_MIPSR6) && !CPU_XLP
2048 # Set to y for ptrace access to watch registers.
2050 config HARDWARE_WATCHPOINTS
2052 default y if CPU_MIPSR1 || CPU_MIPSR2 || CPU_MIPSR6
2057 prompt "Kernel code model"
2059 You should only select this option if you have a workload that
2060 actually benefits from 64-bit processing or if your machine has
2061 large memory. You will only be presented a single option in this
2062 menu if your system does not support both 32-bit and 64-bit kernels.
2065 bool "32-bit kernel"
2066 depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
2069 Select this option if you want to build a 32-bit kernel.
2072 bool "64-bit kernel"
2073 depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
2075 Select this option if you want to build a 64-bit kernel.
2080 bool "KVM Guest Kernel"
2081 depends on BROKEN_ON_SMP
2083 Select this option if building a guest kernel for KVM (Trap & Emulate)
2086 config KVM_GUEST_TIMER_FREQ
2087 int "Count/Compare Timer Frequency (MHz)"
2088 depends on KVM_GUEST
2091 Set this to non-zero if building a guest kernel for KVM to skip RTC
2092 emulation when determining guest CPU Frequency. Instead, the guest's
2093 timer frequency is specified directly.
2095 config MIPS_VA_BITS_48
2096 bool "48 bits virtual memory"
2099 Support a maximum at least 48 bits of application virtual
2100 memory. Default is 40 bits or less, depending on the CPU.
2101 For page sizes 16k and above, this option results in a small
2102 memory overhead for page tables. For 4k page size, a fourth
2103 level of page tables is added which imposes both a memory
2104 overhead as well as slower TLB fault handling.
2109 prompt "Kernel page size"
2110 default PAGE_SIZE_4KB
2112 config PAGE_SIZE_4KB
2114 depends on !CPU_LOONGSON2 && !CPU_LOONGSON3
2116 This option select the standard 4kB Linux page size. On some
2117 R3000-family processors this is the only available page size. Using
2118 4kB page size will minimize memory consumption and is therefore
2119 recommended for low memory systems.
2121 config PAGE_SIZE_8KB
2123 depends on CPU_R8000 || CPU_CAVIUM_OCTEON
2124 depends on !MIPS_VA_BITS_48
2126 Using 8kB page size will result in higher performance kernel at
2127 the price of higher memory consumption. This option is available
2128 only on R8000 and cnMIPS processors. Note that you will need a
2129 suitable Linux distribution to support this.
2131 config PAGE_SIZE_16KB
2133 depends on !CPU_R3000 && !CPU_TX39XX
2135 Using 16kB page size will result in higher performance kernel at
2136 the price of higher memory consumption. This option is available on
2137 all non-R3000 family processors. Note that you will need a suitable
2138 Linux distribution to support this.
2140 config PAGE_SIZE_32KB
2142 depends on CPU_CAVIUM_OCTEON
2143 depends on !MIPS_VA_BITS_48
2145 Using 32kB page size will result in higher performance kernel at
2146 the price of higher memory consumption. This option is available
2147 only on cnMIPS cores. Note that you will need a suitable Linux
2148 distribution to support this.
2150 config PAGE_SIZE_64KB
2152 depends on !CPU_R3000 && !CPU_TX39XX
2154 Using 64kB page size will result in higher performance kernel at
2155 the price of higher memory consumption. This option is available on
2156 all non-R3000 family processor. Not that at the time of this
2157 writing this option is still high experimental.
2161 config FORCE_MAX_ZONEORDER
2162 int "Maximum zone order"
2163 range 14 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2164 default "14" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_64KB
2165 range 13 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2166 default "13" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_32KB
2167 range 12 64 if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2168 default "12" if MIPS_HUGE_TLB_SUPPORT && PAGE_SIZE_16KB
2172 The kernel memory allocator divides physically contiguous memory
2173 blocks into "zones", where each zone is a power of two number of
2174 pages. This option selects the largest power of two that the kernel
2175 keeps in the memory allocator. If you need to allocate very large
2176 blocks of physically contiguous memory, then you may need to
2177 increase this value.
2179 This config option is actually maximum order plus one. For example,
2180 a value of 11 means that the largest free memory block is 2^10 pages.
2182 The page size is not necessarily 4KB. Keep this in mind
2183 when choosing a value for this option.
2188 config IP22_CPU_SCACHE
2193 # Support for a MIPS32 / MIPS64 style S-caches
2195 config MIPS_CPU_SCACHE
2199 config R5000_CPU_SCACHE
2203 config RM7000_CPU_SCACHE
2207 config SIBYTE_DMA_PAGEOPS
2208 bool "Use DMA to clear/copy pages"
2211 Instead of using the CPU to zero and copy pages, use a Data Mover
2212 channel. These DMA channels are otherwise unused by the standard
2213 SiByte Linux port. Seems to give a small performance benefit.
2215 config CPU_HAS_PREFETCH
2218 config CPU_GENERIC_DUMP_TLB
2220 default y if !(CPU_R3000 || CPU_R8000 || CPU_TX39XX)
2224 default y if !(CPU_R3000 || CPU_TX39XX)
2226 config CPU_R4K_CACHE_TLB
2228 default y if !(CPU_R3000 || CPU_R8000 || CPU_SB1 || CPU_TX39XX || CPU_CAVIUM_OCTEON)
2231 bool "MIPS MT SMP support (1 TC on each available VPE)"
2233 depends on SYS_SUPPORTS_MULTITHREADING && !CPU_MIPSR6 && !CPU_MICROMIPS
2234 select CPU_MIPSR2_IRQ_VI
2235 select CPU_MIPSR2_IRQ_EI
2240 select SYS_SUPPORTS_SMP
2241 select SYS_SUPPORTS_SCHED_SMT
2242 select MIPS_PERF_SHARED_TC_COUNTERS
2244 This is a kernel model which is known as SMVP. This is supported
2245 on cores with the MT ASE and uses the available VPEs to implement
2246 virtual processors which supports SMP. This is equivalent to the
2247 Intel Hyperthreading feature. For further information go to
2248 <http://www.imgtec.com/mips/mips-multithreading.asp>.
2254 bool "SMT (multithreading) scheduler support"
2255 depends on SYS_SUPPORTS_SCHED_SMT
2258 SMT scheduler support improves the CPU scheduler's decision making
2259 when dealing with MIPS MT enabled cores at a cost of slightly
2260 increased overhead in some places. If unsure say N here.
2262 config SYS_SUPPORTS_SCHED_SMT
2265 config SYS_SUPPORTS_MULTITHREADING
2268 config MIPS_MT_FPAFF
2269 bool "Dynamic FPU affinity for FP-intensive threads"
2271 depends on MIPS_MT_SMP
2273 config MIPSR2_TO_R6_EMULATOR
2274 bool "MIPS R2-to-R6 emulator"
2275 depends on CPU_MIPSR6
2278 Choose this option if you want to run non-R6 MIPS userland code.
2279 Even if you say 'Y' here, the emulator will still be disabled by
2280 default. You can enable it using the 'mipsr2emu' kernel option.
2281 The only reason this is a build-time option is to save ~14K from the
2284 config MIPS_VPE_LOADER
2285 bool "VPE loader support."
2286 depends on SYS_SUPPORTS_MULTITHREADING && MODULES
2287 select CPU_MIPSR2_IRQ_VI
2288 select CPU_MIPSR2_IRQ_EI
2291 Includes a loader for loading an elf relocatable object
2292 onto another VPE and running it.
2294 config MIPS_VPE_LOADER_CMP
2297 depends on MIPS_VPE_LOADER && MIPS_CMP
2299 config MIPS_VPE_LOADER_MT
2302 depends on MIPS_VPE_LOADER && !MIPS_CMP
2304 config MIPS_VPE_LOADER_TOM
2305 bool "Load VPE program into memory hidden from linux"
2306 depends on MIPS_VPE_LOADER
2309 The loader can use memory that is present but has been hidden from
2310 Linux using the kernel command line option "mem=xxMB". It's up to
2311 you to ensure the amount you put in the option and the space your
2312 program requires is less or equal to the amount physically present.
2314 config MIPS_VPE_APSP_API
2315 bool "Enable support for AP/SP API (RTLX)"
2316 depends on MIPS_VPE_LOADER
2319 config MIPS_VPE_APSP_API_CMP
2322 depends on MIPS_VPE_APSP_API && MIPS_CMP
2324 config MIPS_VPE_APSP_API_MT
2327 depends on MIPS_VPE_APSP_API && !MIPS_CMP
2330 bool "MIPS CMP framework support (DEPRECATED)"
2331 depends on SYS_SUPPORTS_MIPS_CMP && !CPU_MIPSR6
2334 select SYS_SUPPORTS_SMP
2335 select WEAK_ORDERING
2338 Select this if you are using a bootloader which implements the "CMP
2339 framework" protocol (ie. YAMON) and want your kernel to make use of
2340 its ability to start secondary CPUs.
2342 Unless you have a specific need, you should use CONFIG_MIPS_CPS
2346 bool "MIPS Coherent Processing System support"
2347 depends on SYS_SUPPORTS_MIPS_CPS
2349 select MIPS_CPS_PM if HOTPLUG_CPU
2351 select SYNC_R4K if (CEVT_R4K || CSRC_R4K)
2352 select SYS_SUPPORTS_HOTPLUG_CPU
2353 select SYS_SUPPORTS_SCHED_SMT if CPU_MIPSR6
2354 select SYS_SUPPORTS_SMP
2355 select WEAK_ORDERING
2357 Select this if you wish to run an SMP kernel across multiple cores
2358 within a MIPS Coherent Processing System. When this option is
2359 enabled the kernel will probe for other cores and boot them with
2360 no external assistance. It is safe to enable this when hardware
2361 support is unavailable.
2374 config SB1_PASS_2_WORKAROUNDS
2376 depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
2379 config SB1_PASS_2_1_WORKAROUNDS
2381 depends on CPU_SB1 && CPU_SB1_PASS_2
2385 config ARCH_PHYS_ADDR_T_64BIT
2389 prompt "SmartMIPS or microMIPS ASE support"
2391 config CPU_NEEDS_NO_SMARTMIPS_OR_MICROMIPS
2394 Select this if you want neither microMIPS nor SmartMIPS support
2396 config CPU_HAS_SMARTMIPS
2397 depends on SYS_SUPPORTS_SMARTMIPS
2400 SmartMIPS is a extension of the MIPS32 architecture aimed at
2401 increased security at both hardware and software level for
2402 smartcards. Enabling this option will allow proper use of the
2403 SmartMIPS instructions by Linux applications. However a kernel with
2404 this option will not work on a MIPS core without SmartMIPS core. If
2405 you don't know you probably don't have SmartMIPS and should say N
2408 config CPU_MICROMIPS
2409 depends on 32BIT && SYS_SUPPORTS_MICROMIPS && !CPU_MIPSR6
2412 When this option is enabled the kernel will be built using the
2418 bool "Support for the MIPS SIMD Architecture"
2419 depends on CPU_SUPPORTS_MSA
2420 depends on 64BIT || MIPS_O32_FP64_SUPPORT
2422 MIPS SIMD Architecture (MSA) introduces 128 bit wide vector registers
2423 and a set of SIMD instructions to operate on them. When this option
2424 is enabled the kernel will support allocating & switching MSA
2425 vector register contexts. If you know that your kernel will only be
2426 running on CPUs which do not support MSA or that your userland will
2427 not be making use of it then you may wish to say N here to reduce
2428 the size & complexity of your kernel.
2442 # Vectored interrupt mode is an R2 feature
2444 config CPU_MIPSR2_IRQ_VI
2448 # Extended interrupt mode is an R2 feature
2450 config CPU_MIPSR2_IRQ_EI
2455 depends on !CPU_R3000
2461 config CPU_DADDI_WORKAROUNDS
2464 config CPU_R4000_WORKAROUNDS
2466 select CPU_R4400_WORKAROUNDS
2468 config CPU_R4400_WORKAROUNDS
2471 config MIPS_ASID_SHIFT
2473 default 6 if CPU_R3000 || CPU_TX39XX
2474 default 4 if CPU_R8000
2477 config MIPS_ASID_BITS
2479 default 0 if MIPS_ASID_BITS_VARIABLE
2480 default 6 if CPU_R3000 || CPU_TX39XX
2483 config MIPS_ASID_BITS_VARIABLE
2487 # - Highmem only makes sense for the 32-bit kernel.
2488 # - The current highmem code will only work properly on physically indexed
2489 # caches such as R3000, SB1, R7000 or those that look like they're virtually
2490 # indexed such as R4000/R4400 SC and MC versions or R10000. So for the
2491 # moment we protect the user and offer the highmem option only on machines
2492 # where it's known to be safe. This will not offer highmem on a few systems
2493 # such as MIPS32 and MIPS64 CPUs which may have virtual and physically
2494 # indexed CPUs but we're playing safe.
2495 # - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
2496 # know they might have memory configurations that could make use of highmem
2500 bool "High Memory Support"
2501 depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM && !CPU_MIPS32_3_5_EVA
2503 config CPU_SUPPORTS_HIGHMEM
2506 config SYS_SUPPORTS_HIGHMEM
2509 config SYS_SUPPORTS_SMARTMIPS
2512 config SYS_SUPPORTS_MICROMIPS
2515 config SYS_SUPPORTS_MIPS16
2518 This option must be set if a kernel might be executed on a MIPS16-
2519 enabled CPU even if MIPS16 is not actually being used. In other
2520 words, it makes the kernel MIPS16-tolerant.
2522 config CPU_SUPPORTS_MSA
2525 config ARCH_FLATMEM_ENABLE
2527 depends on !NUMA && !CPU_LOONGSON2
2529 config ARCH_DISCONTIGMEM_ENABLE
2531 default y if SGI_IP27
2533 Say Y to support efficient handling of discontiguous physical memory,
2534 for architectures which are either NUMA (Non-Uniform Memory Access)
2535 or have huge holes in the physical address space for other reasons.
2536 See <file:Documentation/vm/numa> for more.
2538 config ARCH_SPARSEMEM_ENABLE
2540 select SPARSEMEM_STATIC
2544 depends on SYS_SUPPORTS_NUMA
2546 Say Y to compile the kernel to support NUMA (Non-Uniform Memory
2547 Access). This option improves performance on systems with more
2548 than two nodes; on two node systems it is generally better to
2549 leave it disabled; on single node systems disable this option
2552 config SYS_SUPPORTS_NUMA
2556 bool "Relocatable kernel"
2557 depends on SYS_SUPPORTS_RELOCATABLE && (CPU_MIPS32_R2 || CPU_MIPS64_R2 || CPU_MIPS32_R6 || CPU_MIPS64_R6 || CAVIUM_OCTEON_SOC)
2559 This builds a kernel image that retains relocation information
2560 so it can be loaded someplace besides the default 1MB.
2561 The relocations make the kernel binary about 15% larger,
2562 but are discarded at runtime
2564 config RELOCATION_TABLE_SIZE
2565 hex "Relocation table size"
2566 depends on RELOCATABLE
2567 range 0x0 0x01000000
2568 default "0x00100000"
2570 A table of relocation data will be appended to the kernel binary
2571 and parsed at boot to fix up the relocated kernel.
2573 This option allows the amount of space reserved for the table to be
2574 adjusted, although the default of 1Mb should be ok in most cases.
2576 The build will fail and a valid size suggested if this is too small.
2578 If unsure, leave at the default value.
2580 config RANDOMIZE_BASE
2581 bool "Randomize the address of the kernel image"
2582 depends on RELOCATABLE
2584 Randomizes the physical and virtual address at which the
2585 kernel image is loaded, as a security feature that
2586 deters exploit attempts relying on knowledge of the location
2587 of kernel internals.
2589 Entropy is generated using any coprocessor 0 registers available.
2591 The kernel will be offset by up to RANDOMIZE_BASE_MAX_OFFSET.
2595 config RANDOMIZE_BASE_MAX_OFFSET
2596 hex "Maximum kASLR offset" if EXPERT
2597 depends on RANDOMIZE_BASE
2598 range 0x0 0x40000000 if EVA || 64BIT
2599 range 0x0 0x08000000
2600 default "0x01000000"
2602 When kASLR is active, this provides the maximum offset that will
2603 be applied to the kernel image. It should be set according to the
2604 amount of physical RAM available in the target system minus
2605 PHYSICAL_START and must be a power of 2.
2607 This is limited by the size of KSEG0, 256Mb on 32-bit or 1Gb with
2608 EVA or 64-bit. The default is 16Mb.
2613 depends on NEED_MULTIPLE_NODES
2615 config HW_PERF_EVENTS
2616 bool "Enable hardware performance counter support for perf events"
2617 depends on PERF_EVENTS && !OPROFILE && (CPU_MIPS32 || CPU_MIPS64 || CPU_R10000 || CPU_SB1 || CPU_CAVIUM_OCTEON || CPU_XLP || CPU_LOONGSON3)
2620 Enable hardware performance counter support for perf events. If
2621 disabled, perf events will use software events only.
2626 bool "Multi-Processing support"
2627 depends on SYS_SUPPORTS_SMP
2629 This enables support for systems with more than one CPU. If you have
2630 a system with only one CPU, say N. If you have a system with more
2631 than one CPU, say Y.
2633 If you say N here, the kernel will run on uni- and multiprocessor
2634 machines, but will use only one CPU of a multiprocessor machine. If
2635 you say Y here, the kernel will run on many, but not all,
2636 uniprocessor machines. On a uniprocessor machine, the kernel
2637 will run faster if you say N here.
2639 People using multiprocessor machines who say Y here should also say
2640 Y to "Enhanced Real Time Clock Support", below.
2642 See also the SMP-HOWTO available at
2643 <http://www.tldp.org/docs.html#howto>.
2645 If you don't know what to do here, say N.
2648 bool "Support for hot-pluggable CPUs"
2649 depends on SMP && SYS_SUPPORTS_HOTPLUG_CPU
2651 Say Y here to allow turning CPUs off and on. CPUs can be
2652 controlled through /sys/devices/system/cpu.
2653 (Note: power management support will enable this option
2654 automatically on SMP systems. )
2655 Say N if you want to disable CPU hotplug.
2660 config SYS_SUPPORTS_MIPS_CMP
2663 config SYS_SUPPORTS_MIPS_CPS
2666 config SYS_SUPPORTS_SMP
2669 config NR_CPUS_DEFAULT_4
2672 config NR_CPUS_DEFAULT_8
2675 config NR_CPUS_DEFAULT_16
2678 config NR_CPUS_DEFAULT_32
2681 config NR_CPUS_DEFAULT_64
2685 int "Maximum number of CPUs (2-256)"
2688 default "4" if NR_CPUS_DEFAULT_4
2689 default "8" if NR_CPUS_DEFAULT_8
2690 default "16" if NR_CPUS_DEFAULT_16
2691 default "32" if NR_CPUS_DEFAULT_32
2692 default "64" if NR_CPUS_DEFAULT_64
2694 This allows you to specify the maximum number of CPUs which this
2695 kernel will support. The maximum supported value is 32 for 32-bit
2696 kernel and 64 for 64-bit kernels; the minimum value which makes
2697 sense is 1 for Qemu (useful only for kernel debugging purposes)
2698 and 2 for all others.
2700 This is purely to save memory - each supported CPU adds
2701 approximately eight kilobytes to the kernel image. For best
2702 performance should round up your number of processors to the next
2705 config MIPS_PERF_SHARED_TC_COUNTERS
2708 config MIPS_NR_CPU_NR_MAP_1024
2711 config MIPS_NR_CPU_NR_MAP
2714 default 1024 if MIPS_NR_CPU_NR_MAP_1024
2715 default NR_CPUS if !MIPS_NR_CPU_NR_MAP_1024
2718 # Timer Interrupt Frequency Configuration
2722 prompt "Timer frequency"
2725 Allows the configuration of the timer frequency.
2728 bool "24 HZ" if SYS_SUPPORTS_24HZ || SYS_SUPPORTS_ARBIT_HZ
2731 bool "48 HZ" if SYS_SUPPORTS_48HZ || SYS_SUPPORTS_ARBIT_HZ
2734 bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
2737 bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
2740 bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
2743 bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
2746 bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
2749 bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
2753 config SYS_SUPPORTS_24HZ
2756 config SYS_SUPPORTS_48HZ
2759 config SYS_SUPPORTS_100HZ
2762 config SYS_SUPPORTS_128HZ
2765 config SYS_SUPPORTS_250HZ
2768 config SYS_SUPPORTS_256HZ
2771 config SYS_SUPPORTS_1000HZ
2774 config SYS_SUPPORTS_1024HZ
2777 config SYS_SUPPORTS_ARBIT_HZ
2779 default y if !SYS_SUPPORTS_24HZ && \
2780 !SYS_SUPPORTS_48HZ && \
2781 !SYS_SUPPORTS_100HZ && \
2782 !SYS_SUPPORTS_128HZ && \
2783 !SYS_SUPPORTS_250HZ && \
2784 !SYS_SUPPORTS_256HZ && \
2785 !SYS_SUPPORTS_1000HZ && \
2786 !SYS_SUPPORTS_1024HZ
2792 default 100 if HZ_100
2793 default 128 if HZ_128
2794 default 250 if HZ_250
2795 default 256 if HZ_256
2796 default 1000 if HZ_1000
2797 default 1024 if HZ_1024
2800 def_bool HIGH_RES_TIMERS
2802 source "kernel/Kconfig.preempt"
2805 bool "Kexec system call"
2808 kexec is a system call that implements the ability to shutdown your
2809 current kernel, and to start another kernel. It is like a reboot
2810 but it is independent of the system firmware. And like a reboot
2811 you can start any kernel with it, not just Linux.
2813 The name comes from the similarity to the exec system call.
2815 It is an ongoing process to be certain the hardware in a machine
2816 is properly shutdown, so do not be surprised if this code does not
2817 initially work for you. As of this writing the exact hardware
2818 interface is strongly in flux, so no good recommendation can be
2822 bool "Kernel crash dumps"
2824 Generate crash dump after being started by kexec.
2825 This should be normally only set in special crash dump kernels
2826 which are loaded in the main kernel with kexec-tools into
2827 a specially reserved region and then later executed after
2828 a crash by kdump/kexec. The crash dump kernel must be compiled
2829 to a memory address not used by the main kernel or firmware using
2832 config PHYSICAL_START
2833 hex "Physical address where the kernel is loaded"
2834 default "0xffffffff84000000" if 64BIT
2835 default "0x84000000" if 32BIT
2836 depends on CRASH_DUMP
2838 This gives the CKSEG0 or KSEG0 address where the kernel is loaded.
2839 If you plan to use kernel for capturing the crash dump change
2840 this value to start of the reserved region (the "X" value as
2841 specified in the "crashkernel=YM@XM" command line boot parameter
2842 passed to the panic-ed kernel).
2845 bool "Enable seccomp to safely compute untrusted bytecode"
2849 This kernel feature is useful for number crunching applications
2850 that may need to compute untrusted bytecode during their
2851 execution. By using pipes or other transports made available to
2852 the process as file descriptors supporting the read/write
2853 syscalls, it's possible to isolate those applications in
2854 their own address space using seccomp. Once seccomp is
2855 enabled via /proc/<pid>/seccomp, it cannot be disabled
2856 and the task is only allowed to execute a few safe syscalls
2857 defined by each seccomp mode.
2859 If unsure, say Y. Only embedded should say N here.
2861 config MIPS_O32_FP64_SUPPORT
2862 bool "Support for O32 binaries using 64-bit FP"
2863 depends on 32BIT || MIPS32_O32
2865 When this is enabled, the kernel will support use of 64-bit floating
2866 point registers with binaries using the O32 ABI along with the
2867 EF_MIPS_FP64 ELF header flag (typically built with -mfp64). On
2868 32-bit MIPS systems this support is at the cost of increasing the
2869 size and complexity of the compiled FPU emulator. Thus if you are
2870 running a MIPS32 system and know that none of your userland binaries
2871 will require 64-bit floating point, you may wish to reduce the size
2872 of your kernel & potentially improve FP emulation performance by
2875 Although binutils currently supports use of this flag the details
2876 concerning its effect upon the O32 ABI in userland are still being
2877 worked on. In order to avoid userland becoming dependant upon current
2878 behaviour before the details have been finalised, this option should
2879 be considered experimental and only enabled by those working upon
2887 select OF_EARLY_FLATTREE
2894 prompt "Kernel appended dtb support" if USE_OF
2895 default MIPS_NO_APPENDED_DTB
2897 config MIPS_NO_APPENDED_DTB
2900 Do not enable appended dtb support.
2902 config MIPS_ELF_APPENDED_DTB
2905 With this option, the boot code will look for a device tree binary
2906 DTB) included in the vmlinux ELF section .appended_dtb. By default
2907 it is empty and the DTB can be appended using binutils command
2910 objcopy --update-section .appended_dtb=<filename>.dtb vmlinux
2912 This is meant as a backward compatiblity convenience for those
2913 systems with a bootloader that can't be upgraded to accommodate
2914 the documented boot protocol using a device tree.
2916 config MIPS_RAW_APPENDED_DTB
2917 bool "vmlinux.bin or vmlinuz.bin"
2919 With this option, the boot code will look for a device tree binary
2920 DTB) appended to raw vmlinux.bin or vmlinuz.bin.
2921 (e.g. cat vmlinux.bin <filename>.dtb > vmlinux_w_dtb).
2923 This is meant as a backward compatibility convenience for those
2924 systems with a bootloader that can't be upgraded to accommodate
2925 the documented boot protocol using a device tree.
2927 Beware that there is very little in terms of protection against
2928 this option being confused by leftover garbage in memory that might
2929 look like a DTB header after a reboot if no actual DTB is appended
2930 to vmlinux.bin. Do not leave this option active in a production kernel
2931 if you don't intend to always append a DTB.
2935 prompt "Kernel command line type" if !CMDLINE_OVERRIDE
2936 default MIPS_CMDLINE_FROM_DTB if USE_OF && !ATH79 && !MACH_INGENIC && \
2939 default MIPS_CMDLINE_FROM_BOOTLOADER
2941 config MIPS_CMDLINE_FROM_DTB
2943 bool "Dtb kernel arguments if available"
2945 config MIPS_CMDLINE_DTB_EXTEND
2947 bool "Extend dtb kernel arguments with bootloader arguments"
2949 config MIPS_CMDLINE_FROM_BOOTLOADER
2950 bool "Bootloader kernel arguments if available"
2952 config MIPS_CMDLINE_BUILTIN_EXTEND
2953 depends on CMDLINE_BOOL
2954 bool "Extend builtin kernel arguments with bootloader arguments"
2959 config LOCKDEP_SUPPORT
2963 config STACKTRACE_SUPPORT
2967 config HAVE_LATENCYTOP_SUPPORT
2971 config PGTABLE_LEVELS
2973 default 4 if PAGE_SIZE_4KB && MIPS_VA_BITS_48
2974 default 3 if 64BIT && !PAGE_SIZE_64KB
2977 source "init/Kconfig"
2979 source "kernel/Kconfig.freezer"
2981 menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
2989 bool "Support for PCI controller"
2990 depends on HW_HAS_PCI
2993 Find out whether you have a PCI motherboard. PCI is the name of a
2994 bus system, i.e. the way the CPU talks to the other stuff inside
2995 your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
2999 bool "Support for HT-linked PCI"
3001 depends on CPU_LOONGSON3
3005 Loongson family machines use Hyper-Transport bus for inter-core
3006 connection and device connection. The PCI bus is a subordinate
3007 linked at HT. Choose Y for Loongson-3 based machines.
3012 config PCI_DOMAINS_GENERIC
3015 config PCI_DRIVERS_GENERIC
3016 select PCI_DOMAINS_GENERIC if PCI_DOMAINS
3019 config PCI_DRIVERS_LEGACY
3020 def_bool !PCI_DRIVERS_GENERIC
3021 select NO_GENERIC_PCI_IOPORT_MAP
3023 source "drivers/pci/Kconfig"
3026 # ISA support is now enabled via select. Too many systems still have the one
3027 # or other ISA chip on the board that users don't know about so don't expect
3028 # users to choose the right thing ...
3035 depends on HW_HAS_EISA
3037 select GENERIC_ISA_DMA
3039 The Extended Industry Standard Architecture (EISA) bus was
3040 developed as an open alternative to the IBM MicroChannel bus.
3042 The EISA bus provided some of the features of the IBM MicroChannel
3043 bus while maintaining backward compatibility with cards made for
3044 the older ISA bus. The EISA bus saw limited use between 1988 and
3045 1995 when it was made obsolete by the PCI bus.
3047 Say Y here if you are building a kernel for an EISA-based machine.
3051 source "drivers/eisa/Kconfig"
3054 bool "TURBOchannel support"
3055 depends on MACH_DECSTATION
3057 TURBOchannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
3058 processors. TURBOchannel programming specifications are available
3060 <ftp://ftp.hp.com/pub/alphaserver/archive/triadd/>
3062 <http://www.computer-refuge.org/classiccmp/ftp.digital.com/pub/DEC/TriAdd/>
3063 Linux driver support status is documented at:
3064 <http://www.linux-mips.org/wiki/DECstation>
3070 config ARCH_MMAP_RND_BITS_MIN
3074 config ARCH_MMAP_RND_BITS_MAX
3078 config ARCH_MMAP_RND_COMPAT_BITS_MIN
3081 config ARCH_MMAP_RND_COMPAT_BITS_MAX
3088 select MIPS_EXTERNAL_TIMER
3096 source "drivers/pcmcia/Kconfig"
3099 tristate "RapidIO support"
3103 If you say Y here, the kernel will include drivers and
3104 infrastructure code to support RapidIO interconnect devices.
3106 source "drivers/rapidio/Kconfig"
3110 menu "Executable file formats"
3112 source "fs/Kconfig.binfmt"
3117 config MIPS32_COMPAT
3123 config SYSVIPC_COMPAT
3127 bool "Kernel support for o32 binaries"
3129 select ARCH_WANT_OLD_COMPAT_IPC
3131 select MIPS32_COMPAT
3132 select SYSVIPC_COMPAT if SYSVIPC
3134 Select this option if you want to run o32 binaries. These are pure
3135 32-bit binaries as used by the 32-bit Linux/MIPS port. Most of
3136 existing binaries are in this format.
3141 bool "Kernel support for n32 binaries"
3144 select MIPS32_COMPAT
3145 select SYSVIPC_COMPAT if SYSVIPC
3147 Select this option if you want to run n32 binaries. These are
3148 64-bit binaries using 32-bit quantities for addressing and certain
3149 data that would normally be 64-bit. They are used in special
3156 default y if MIPS32_O32 || MIPS32_N32
3161 menu "Power management options"
3163 config ARCH_HIBERNATION_POSSIBLE
3165 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3167 config ARCH_SUSPEND_POSSIBLE
3169 depends on SYS_SUPPORTS_HOTPLUG_CPU || !SMP
3171 source "kernel/power/Kconfig"
3175 config MIPS_EXTERNAL_TIMER
3178 menu "CPU Power Management"
3180 if CPU_SUPPORTS_CPUFREQ && MIPS_EXTERNAL_TIMER
3181 source "drivers/cpufreq/Kconfig"
3184 source "drivers/cpuidle/Kconfig"
3188 source "net/Kconfig"
3190 source "drivers/Kconfig"
3192 source "drivers/firmware/Kconfig"
3196 source "arch/mips/Kconfig.debug"
3198 source "security/Kconfig"
3200 source "crypto/Kconfig"
3202 source "lib/Kconfig"
3204 source "arch/mips/kvm/Kconfig"