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