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