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