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