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