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