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