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