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