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