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