OSDN Git Service

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