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