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