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