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