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