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