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