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