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