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