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