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