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