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