[MIPS] Implement clockevents for R4000-style cp0 count/compare interrupt
[safe/jmp/linux-2.6] / arch / mips / Kconfig
1 config MIPS
2         bool
3         default y
4         # Horrible source of confusion.  Die, die, die ...
5         select EMBEDDED
6         select RTC_LIB
7
8 mainmenu "Linux/MIPS Kernel Configuration"
9
10 menu "Machine selection"
11
12 config ZONE_DMA
13         bool
14
15 choice
16         prompt "System type"
17         default SGI_IP22
18
19 config MACH_ALCHEMY
20         bool "Alchemy processor based machines"
21
22 config BASLER_EXCITE
23         bool "Basler eXcite smart camera"
24         select DMA_COHERENT
25         select HW_HAS_PCI
26         select IRQ_CPU
27         select IRQ_CPU_RM7K
28         select IRQ_CPU_RM9K
29         select MIPS_RM9122
30         select SYS_HAS_CPU_RM9000
31         select SYS_SUPPORTS_32BIT_KERNEL
32         select SYS_SUPPORTS_BIG_ENDIAN
33         select SYS_SUPPORTS_KGDB
34         help
35           The eXcite is a smart camera platform manufactured by
36           Basler Vision Technologies AG.
37
38 config BASLER_EXCITE_PROTOTYPE
39         bool "Support for pre-release units"
40         depends on BASLER_EXCITE
41         default n
42         help
43           Pre-series (prototype) units are different from later ones in
44           some ways. Select this option if you have one of these. Please
45           note that a kernel built with this option selected will not be
46           able to run on normal units.
47
48 config BCM47XX
49         bool "BCM47XX based boards"
50         select DMA_NONCOHERENT
51         select HW_HAS_PCI
52         select IRQ_CPU
53         select SYS_HAS_CPU_MIPS32_R1
54         select SYS_SUPPORTS_32BIT_KERNEL
55         select SYS_SUPPORTS_LITTLE_ENDIAN
56         select SSB
57         select SSB_DRIVER_MIPS
58         select GENERIC_GPIO
59         select SYS_HAS_EARLY_PRINTK
60         select CFE
61         help
62          Support for BCM47XX based boards
63
64 config MIPS_COBALT
65         bool "Cobalt Server"
66         select DMA_NONCOHERENT
67         select HW_HAS_PCI
68         select I8259
69         select IRQ_CPU
70         select IRQ_GT641XX
71         select PCI_GT64XXX_PCI0
72         select SYS_HAS_CPU_NEVADA
73         select SYS_HAS_EARLY_PRINTK
74         select SYS_SUPPORTS_32BIT_KERNEL
75         select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
76         select SYS_SUPPORTS_LITTLE_ENDIAN
77         select GENERIC_HARDIRQS_NO__DO_IRQ
78
79 config MACH_DECSTATION
80         bool "DECstations"
81         select BOOT_ELF32
82         select DMA_NONCOHERENT
83         select NO_IOPORT
84         select IRQ_CPU
85         select SYS_HAS_CPU_R3000
86         select SYS_HAS_CPU_R4X00
87         select SYS_SUPPORTS_32BIT_KERNEL
88         select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
89         select SYS_SUPPORTS_LITTLE_ENDIAN
90         select SYS_SUPPORTS_128HZ
91         select SYS_SUPPORTS_256HZ
92         select SYS_SUPPORTS_1024HZ
93         help
94           This enables support for DEC's MIPS based workstations.  For details
95           see the Linux/MIPS FAQ on <http://www.linux-mips.org/> and the
96           DECstation porting pages on <http://decstation.unix-ag.org/>.
97
98           If you have one of the following DECstation Models you definitely
99           want to choose R4xx0 for the CPU Type:
100
101                 DECstation 5000/50
102                 DECstation 5000/150
103                 DECstation 5000/260
104                 DECsystem 5900/260
105
106           otherwise choose R3000.
107
108 config MACH_JAZZ
109         bool "Jazz family of machines"
110         select ARC
111         select ARC32
112         select ARCH_MAY_HAVE_PC_FDC
113         select GENERIC_ISA_DMA
114         select IRQ_CPU
115         select I8259
116         select ISA
117         select PCSPEAKER
118         select SYS_HAS_CPU_R4X00
119         select SYS_SUPPORTS_32BIT_KERNEL
120         select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
121         select SYS_SUPPORTS_100HZ
122         select GENERIC_HARDIRQS_NO__DO_IRQ
123         help
124          This a family of machines based on the MIPS R4030 chipset which was
125          used by several vendors to build RISC/os and Windows NT workstations.
126          Members include the Acer PICA, MIPS Magnum 4000, MIPS Millenium and
127          Olivetti M700-10 workstations.
128
129 config LASAT
130         bool "LASAT Networks platforms"
131         select DMA_NONCOHERENT
132         select SYS_HAS_EARLY_PRINTK
133         select HW_HAS_PCI
134         select PCI_GT64XXX_PCI0
135         select MIPS_NILE4
136         select R5000_CPU_SCACHE
137         select SYS_HAS_CPU_R5000
138         select SYS_SUPPORTS_32BIT_KERNEL
139         select SYS_SUPPORTS_64BIT_KERNEL if BROKEN
140         select SYS_SUPPORTS_LITTLE_ENDIAN
141         select GENERIC_HARDIRQS_NO__DO_IRQ
142
143 config LEMOTE_FULONG
144         bool "Lemote Fulong mini-PC"
145         select ARCH_SPARSEMEM_ENABLE
146         select SYS_HAS_CPU_LOONGSON2
147         select DMA_NONCOHERENT
148         select BOOT_ELF32
149         select BOARD_SCACHE
150         select HAVE_STD_PC_SERIAL_PORT
151         select HW_HAS_PCI
152         select I8259
153         select ISA
154         select IRQ_CPU
155         select SYS_SUPPORTS_32BIT_KERNEL
156         select SYS_SUPPORTS_64BIT_KERNEL
157         select SYS_SUPPORTS_LITTLE_ENDIAN
158         select SYS_SUPPORTS_HIGHMEM
159         select SYS_HAS_EARLY_PRINTK
160         select GENERIC_HARDIRQS_NO__DO_IRQ
161         select GENERIC_ISA_DMA_SUPPORT_BROKEN
162         select CPU_HAS_WB
163         help
164           Lemote Fulong mini-PC board based on the Chinese Loongson-2E CPU and
165           an FPGA northbridge
166
167 config MIPS_ATLAS
168         bool "MIPS Atlas board"
169         select BOOT_ELF32
170         select DMA_NONCOHERENT
171         select SYS_HAS_EARLY_PRINTK
172         select IRQ_CPU
173         select HW_HAS_PCI
174         select MIPS_BOARDS_GEN
175         select MIPS_BONITO64
176         select PCI_GT64XXX_PCI0
177         select MIPS_MSC
178         select RM7000_CPU_SCACHE
179         select SWAP_IO_SPACE
180         select SYS_HAS_CPU_MIPS32_R1
181         select SYS_HAS_CPU_MIPS32_R2
182         select SYS_HAS_CPU_MIPS64_R1
183         select SYS_HAS_CPU_NEVADA
184         select SYS_HAS_CPU_RM7000
185         select SYS_SUPPORTS_32BIT_KERNEL
186         select SYS_SUPPORTS_64BIT_KERNEL
187         select SYS_SUPPORTS_BIG_ENDIAN
188         select SYS_SUPPORTS_LITTLE_ENDIAN
189         select SYS_SUPPORTS_MULTITHREADING if EXPERIMENTAL
190         select SYS_SUPPORTS_SMARTMIPS
191         select GENERIC_HARDIRQS_NO__DO_IRQ
192         help
193           This enables support for the MIPS Technologies Atlas evaluation
194           board.
195
196 config MIPS_MALTA
197         bool "MIPS Malta board"
198         select ARCH_MAY_HAVE_PC_FDC
199         select BOOT_ELF32
200         select DMA_NONCOHERENT
201         select GENERIC_ISA_DMA
202         select IRQ_CPU
203         select HW_HAS_PCI
204         select I8259
205         select MIPS_BOARDS_GEN
206         select MIPS_BONITO64
207         select MIPS_CPU_SCACHE
208         select PCI_GT64XXX_PCI0
209         select MIPS_MSC
210         select SWAP_IO_SPACE
211         select SYS_HAS_CPU_MIPS32_R1
212         select SYS_HAS_CPU_MIPS32_R2
213         select SYS_HAS_CPU_MIPS64_R1
214         select SYS_HAS_CPU_NEVADA
215         select SYS_HAS_CPU_RM7000
216         select SYS_HAS_EARLY_PRINTK
217         select SYS_SUPPORTS_32BIT_KERNEL
218         select SYS_SUPPORTS_64BIT_KERNEL
219         select SYS_SUPPORTS_BIG_ENDIAN
220         select SYS_SUPPORTS_LITTLE_ENDIAN
221         select SYS_SUPPORTS_MULTITHREADING
222         select SYS_SUPPORTS_SMARTMIPS
223         help
224           This enables support for the MIPS Technologies Malta evaluation
225           board.
226
227 config MIPS_SEAD
228         bool "MIPS SEAD board"
229         select IRQ_CPU
230         select DMA_NONCOHERENT
231         select SYS_HAS_EARLY_PRINTK
232         select MIPS_BOARDS_GEN
233         select SYS_HAS_CPU_MIPS32_R1
234         select SYS_HAS_CPU_MIPS32_R2
235         select SYS_HAS_CPU_MIPS64_R1
236         select SYS_SUPPORTS_32BIT_KERNEL
237         select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
238         select SYS_SUPPORTS_BIG_ENDIAN
239         select SYS_SUPPORTS_LITTLE_ENDIAN
240         select SYS_SUPPORTS_SMARTMIPS
241         help
242           This enables support for the MIPS Technologies SEAD evaluation
243           board.
244
245 config MIPS_SIM
246         bool 'MIPS simulator (MIPSsim)'
247         select DMA_NONCOHERENT
248         select SYS_HAS_EARLY_PRINTK
249         select IRQ_CPU
250         select BOOT_RAW
251         select SYS_HAS_CPU_MIPS32_R1
252         select SYS_HAS_CPU_MIPS32_R2
253         select SYS_HAS_EARLY_PRINTK
254         select SYS_SUPPORTS_32BIT_KERNEL
255         select SYS_SUPPORTS_BIG_ENDIAN
256         select SYS_SUPPORTS_MULTITHREADING
257         select SYS_SUPPORTS_LITTLE_ENDIAN
258         help
259           This option enables support for MIPS Technologies MIPSsim software
260           emulator.
261
262 config MARKEINS
263         bool "NEC EMMA2RH Mark-eins"
264         select DMA_NONCOHERENT
265         select HW_HAS_PCI
266         select IRQ_CPU
267         select SWAP_IO_SPACE
268         select SYS_SUPPORTS_32BIT_KERNEL
269         select SYS_SUPPORTS_BIG_ENDIAN
270         select SYS_SUPPORTS_LITTLE_ENDIAN
271         select SYS_HAS_CPU_R5000
272         help
273           This enables support for the R5432-based NEC Mark-eins
274           boards with R5500 CPU.
275
276 config MACH_VR41XX
277         bool "NEC VR4100 series based machines"
278         select SYS_HAS_CPU_VR41XX
279         select GENERIC_HARDIRQS_NO__DO_IRQ
280
281 config PNX8550_JBS
282         bool "Philips PNX8550 based JBS board"
283         select PNX8550
284         select SYS_SUPPORTS_LITTLE_ENDIAN
285
286 config PNX8550_STB810
287         bool "Philips PNX8550 based STB810 board"
288         select PNX8550
289         select SYS_SUPPORTS_LITTLE_ENDIAN
290
291 config PMC_MSP
292         bool "PMC-Sierra MSP chipsets"
293         depends on EXPERIMENTAL
294         select DMA_NONCOHERENT
295         select SWAP_IO_SPACE
296         select NO_EXCEPT_FILL
297         select BOOT_RAW
298         select SYS_HAS_CPU_MIPS32_R1
299         select SYS_HAS_CPU_MIPS32_R2
300         select SYS_SUPPORTS_32BIT_KERNEL
301         select SYS_SUPPORTS_BIG_ENDIAN
302         select SYS_SUPPORTS_KGDB
303         select IRQ_CPU
304         select SERIAL_8250
305         select SERIAL_8250_CONSOLE
306         help
307           This adds support for the PMC-Sierra family of Multi-Service
308           Processor System-On-A-Chips.  These parts include a number
309           of integrated peripherals, interfaces and DSPs in addition to
310           a variety of MIPS cores.
311
312 config PMC_YOSEMITE
313         bool "PMC-Sierra Yosemite eval board"
314         select DMA_COHERENT
315         select HW_HAS_PCI
316         select IRQ_CPU
317         select IRQ_CPU_RM7K
318         select IRQ_CPU_RM9K
319         select SWAP_IO_SPACE
320         select SYS_HAS_CPU_RM9000
321         select SYS_HAS_EARLY_PRINTK
322         select SYS_SUPPORTS_32BIT_KERNEL
323         select SYS_SUPPORTS_64BIT_KERNEL
324         select SYS_SUPPORTS_BIG_ENDIAN
325         select SYS_SUPPORTS_HIGHMEM
326         select SYS_SUPPORTS_KGDB
327         select SYS_SUPPORTS_SMP
328         help
329           Yosemite is an evaluation board for the RM9000x2 processor
330           manufactured by PMC-Sierra.
331
332 config QEMU
333         bool "Qemu"
334         select DMA_COHERENT
335         select GENERIC_ISA_DMA
336         select HAVE_STD_PC_SERIAL_PORT
337         select I8259
338         select IRQ_CPU
339         select ISA
340         select PCSPEAKER
341         select SWAP_IO_SPACE
342         select SYS_HAS_CPU_MIPS32_R1
343         select SYS_SUPPORTS_32BIT_KERNEL
344         select SYS_SUPPORTS_BIG_ENDIAN
345         select SYS_SUPPORTS_LITTLE_ENDIAN
346         select ARCH_SPARSEMEM_ENABLE
347         select GENERIC_HARDIRQS_NO__DO_IRQ
348         select NR_CPUS_DEFAULT_1
349         select SYS_SUPPORTS_SMP
350         help
351           Qemu is a software emulator which among other architectures also
352           can simulate a MIPS32 4Kc system.  This patch adds support for the
353           system architecture that currently is being simulated by Qemu.  It
354           will eventually be removed again when Qemu has the capability to
355           simulate actual MIPS hardware platforms.  More information on Qemu
356           can be found at http://www.linux-mips.org/wiki/Qemu.
357
358 config SGI_IP22
359         bool "SGI IP22 (Indy/Indigo2)"
360         select ARC
361         select ARC32
362         select BOOT_ELF32
363         select DMA_NONCOHERENT
364         select HW_HAS_EISA
365         select IP22_CPU_SCACHE
366         select IRQ_CPU
367         select GENERIC_ISA_DMA_SUPPORT_BROKEN
368         select SWAP_IO_SPACE
369         select SYS_HAS_CPU_R4X00
370         select SYS_HAS_CPU_R5000
371         select SYS_HAS_EARLY_PRINTK
372         select SYS_SUPPORTS_32BIT_KERNEL
373         select SYS_SUPPORTS_64BIT_KERNEL
374         select SYS_SUPPORTS_BIG_ENDIAN
375         help
376           This are the SGI Indy, Challenge S and Indigo2, as well as certain
377           OEM variants like the Tandem CMN B006S. To compile a Linux kernel
378           that runs on these, say Y here.
379
380 config SGI_IP27
381         bool "SGI IP27 (Origin200/2000)"
382         select ARC
383         select ARC64
384         select BOOT_ELF64
385         select DMA_IP27
386         select SYS_HAS_EARLY_PRINTK
387         select HW_HAS_PCI
388         select NR_CPUS_DEFAULT_64
389         select SYS_HAS_CPU_R10000
390         select SYS_SUPPORTS_64BIT_KERNEL
391         select SYS_SUPPORTS_BIG_ENDIAN
392         select SYS_SUPPORTS_KGDB
393         select SYS_SUPPORTS_NUMA
394         select SYS_SUPPORTS_SMP
395         select GENERIC_HARDIRQS_NO__DO_IRQ
396         help
397           This are the SGI Origin 200, Origin 2000 and Onyx 2 Graphics
398           workstations.  To compile a Linux kernel that runs on these, say Y
399           here.
400
401 config SGI_IP32
402         bool "SGI IP32 (O2)"
403         select ARC
404         select ARC32
405         select BOOT_ELF32
406         select DMA_NONCOHERENT
407         select HW_HAS_PCI
408         select R5000_CPU_SCACHE
409         select RM7000_CPU_SCACHE
410         select SYS_HAS_CPU_R5000
411         select SYS_HAS_CPU_R10000 if BROKEN
412         select SYS_HAS_CPU_RM7000
413         select SYS_HAS_CPU_NEVADA
414         select SYS_SUPPORTS_64BIT_KERNEL
415         select SYS_SUPPORTS_BIG_ENDIAN
416         help
417           If you want this kernel to run on SGI O2 workstation, say Y here.
418
419 config SIBYTE_CRHINE
420         bool "Sibyte BCM91120C-CRhine"
421         depends on EXPERIMENTAL
422         select BOOT_ELF32
423         select DMA_COHERENT
424         select SIBYTE_BCM1120
425         select SWAP_IO_SPACE
426         select SYS_HAS_CPU_SB1
427         select SYS_SUPPORTS_BIG_ENDIAN
428         select SYS_SUPPORTS_LITTLE_ENDIAN
429
430 config SIBYTE_CARMEL
431         bool "Sibyte BCM91120x-Carmel"
432         depends on EXPERIMENTAL
433         select BOOT_ELF32
434         select DMA_COHERENT
435         select SIBYTE_BCM1120
436         select SWAP_IO_SPACE
437         select SYS_HAS_CPU_SB1
438         select SYS_SUPPORTS_BIG_ENDIAN
439         select SYS_SUPPORTS_LITTLE_ENDIAN
440
441 config SIBYTE_CRHONE
442         bool "Sibyte BCM91125C-CRhone"
443         depends on EXPERIMENTAL
444         select BOOT_ELF32
445         select DMA_COHERENT
446         select SIBYTE_BCM1125
447         select SWAP_IO_SPACE
448         select SYS_HAS_CPU_SB1
449         select SYS_SUPPORTS_BIG_ENDIAN
450         select SYS_SUPPORTS_HIGHMEM
451         select SYS_SUPPORTS_LITTLE_ENDIAN
452
453 config SIBYTE_RHONE
454         bool "Sibyte BCM91125E-Rhone"
455         depends on EXPERIMENTAL
456         select BOOT_ELF32
457         select DMA_COHERENT
458         select SIBYTE_BCM1125H
459         select SWAP_IO_SPACE
460         select SYS_HAS_CPU_SB1
461         select SYS_SUPPORTS_BIG_ENDIAN
462         select SYS_SUPPORTS_LITTLE_ENDIAN
463
464 config SIBYTE_SWARM
465         bool "Sibyte BCM91250A-SWARM"
466         select BOOT_ELF32
467         select DMA_COHERENT
468         select NR_CPUS_DEFAULT_2
469         select SIBYTE_SB1250
470         select SWAP_IO_SPACE
471         select SYS_HAS_CPU_SB1
472         select SYS_SUPPORTS_BIG_ENDIAN
473         select SYS_SUPPORTS_HIGHMEM
474         select SYS_SUPPORTS_KGDB
475         select SYS_SUPPORTS_LITTLE_ENDIAN
476
477 config SIBYTE_LITTLESUR
478         bool "Sibyte BCM91250C2-LittleSur"
479         depends on EXPERIMENTAL
480         select BOOT_ELF32
481         select DMA_COHERENT
482         select NR_CPUS_DEFAULT_2
483         select SIBYTE_SB1250
484         select SWAP_IO_SPACE
485         select SYS_HAS_CPU_SB1
486         select SYS_SUPPORTS_BIG_ENDIAN
487         select SYS_SUPPORTS_HIGHMEM
488         select SYS_SUPPORTS_LITTLE_ENDIAN
489
490 config SIBYTE_SENTOSA
491         bool "Sibyte BCM91250E-Sentosa"
492         depends on EXPERIMENTAL
493         select BOOT_ELF32
494         select DMA_COHERENT
495         select NR_CPUS_DEFAULT_2
496         select SIBYTE_SB1250
497         select SWAP_IO_SPACE
498         select SYS_HAS_CPU_SB1
499         select SYS_SUPPORTS_BIG_ENDIAN
500         select SYS_SUPPORTS_LITTLE_ENDIAN
501
502 config SIBYTE_PTSWARM
503         bool "Sibyte BCM91250PT-PTSWARM"
504         depends on EXPERIMENTAL
505         select BOOT_ELF32
506         select DMA_COHERENT
507         select NR_CPUS_DEFAULT_2
508         select SIBYTE_SB1250
509         select SWAP_IO_SPACE
510         select SYS_HAS_CPU_SB1
511         select SYS_SUPPORTS_BIG_ENDIAN
512         select SYS_SUPPORTS_HIGHMEM
513         select SYS_SUPPORTS_LITTLE_ENDIAN
514
515 config SIBYTE_BIGSUR
516         bool "Sibyte BCM91480B-BigSur"
517         select BOOT_ELF32
518         select DMA_COHERENT
519         select NR_CPUS_DEFAULT_4
520         select SIBYTE_BCM1x80
521         select SWAP_IO_SPACE
522         select SYS_HAS_CPU_SB1
523         select SYS_SUPPORTS_BIG_ENDIAN
524         select SYS_SUPPORTS_LITTLE_ENDIAN
525
526 config SNI_RM
527         bool "SNI RM200/300/400"
528         select ARC if CPU_LITTLE_ENDIAN
529         select ARC32 if CPU_LITTLE_ENDIAN
530         select ARCH_MAY_HAVE_PC_FDC
531         select BOOT_ELF32
532         select DMA_NONCOHERENT
533         select GENERIC_ISA_DMA
534         select HW_HAS_EISA
535         select HW_HAS_PCI
536         select IRQ_CPU
537         select I8259
538         select ISA
539         select PCSPEAKER
540         select SWAP_IO_SPACE if CPU_BIG_ENDIAN
541         select SYS_HAS_CPU_R4X00
542         select SYS_HAS_CPU_R5000
543         select SYS_HAS_CPU_R10000
544         select R5000_CPU_SCACHE
545         select SYS_HAS_EARLY_PRINTK
546         select SYS_SUPPORTS_32BIT_KERNEL
547         select SYS_SUPPORTS_64BIT_KERNEL if EXPERIMENTAL
548         select SYS_SUPPORTS_BIG_ENDIAN
549         select SYS_SUPPORTS_HIGHMEM
550         select SYS_SUPPORTS_LITTLE_ENDIAN
551         help
552           The SNI RM200/300/400 are MIPS-based machines manufactured by
553           Siemens Nixdorf Informationssysteme (SNI), parent company of Pyramid
554           Technology and now in turn merged with Fujitsu.  Say Y here to
555           support this machine type.
556
557 config TOSHIBA_JMR3927
558         bool "Toshiba JMR-TX3927 board"
559         select DMA_NONCOHERENT
560         select HW_HAS_PCI
561         select MIPS_TX3927
562         select IRQ_TXX9
563         select SWAP_IO_SPACE
564         select SYS_HAS_CPU_TX39XX
565         select SYS_SUPPORTS_32BIT_KERNEL
566         select SYS_SUPPORTS_LITTLE_ENDIAN
567         select SYS_SUPPORTS_BIG_ENDIAN
568         select GENERIC_HARDIRQS_NO__DO_IRQ
569
570 config TOSHIBA_RBTX4927
571         bool "Toshiba RBTX49[23]7 board"
572         select DMA_NONCOHERENT
573         select HAS_TXX9_SERIAL
574         select HW_HAS_PCI
575         select IRQ_CPU
576         select IRQ_TXX9
577         select I8259 if TOSHIBA_FPCIB0
578         select SWAP_IO_SPACE
579         select SYS_HAS_CPU_TX49XX
580         select SYS_SUPPORTS_32BIT_KERNEL
581         select SYS_SUPPORTS_64BIT_KERNEL
582         select SYS_SUPPORTS_LITTLE_ENDIAN
583         select SYS_SUPPORTS_BIG_ENDIAN
584         select SYS_SUPPORTS_KGDB
585         select GENERIC_HARDIRQS_NO__DO_IRQ
586         help
587           This Toshiba board is based on the TX4927 processor. Say Y here to
588           support this machine type
589
590 config TOSHIBA_RBTX4938
591         bool "Toshiba RBTX4938 board"
592         select DMA_NONCOHERENT
593         select HAS_TXX9_SERIAL
594         select HW_HAS_PCI
595         select IRQ_CPU
596         select IRQ_TXX9
597         select SWAP_IO_SPACE
598         select SYS_HAS_CPU_TX49XX
599         select SYS_SUPPORTS_32BIT_KERNEL
600         select SYS_SUPPORTS_LITTLE_ENDIAN
601         select SYS_SUPPORTS_BIG_ENDIAN
602         select SYS_SUPPORTS_KGDB
603         select GENERIC_HARDIRQS_NO__DO_IRQ
604         select GENERIC_GPIO
605         help
606           This Toshiba board is based on the TX4938 processor. Say Y here to
607           support this machine type
608
609 config WR_PPMC
610         bool "Wind River PPMC board"
611         select IRQ_CPU
612         select BOOT_ELF32
613         select DMA_NONCOHERENT
614         select HW_HAS_PCI
615         select PCI_GT64XXX_PCI0
616         select SWAP_IO_SPACE
617         select SYS_HAS_CPU_MIPS32_R1
618         select SYS_HAS_CPU_MIPS32_R2
619         select SYS_HAS_CPU_MIPS64_R1
620         select SYS_HAS_CPU_NEVADA
621         select SYS_HAS_CPU_RM7000
622         select SYS_SUPPORTS_32BIT_KERNEL
623         select SYS_SUPPORTS_64BIT_KERNEL
624         select SYS_SUPPORTS_BIG_ENDIAN
625         select SYS_SUPPORTS_LITTLE_ENDIAN
626         help
627           This enables support for the Wind River MIPS32 4KC PPMC evaluation
628           board, which is based on GT64120 bridge chip.
629
630 endchoice
631
632 source "arch/mips/au1000/Kconfig"
633 source "arch/mips/jazz/Kconfig"
634 source "arch/mips/lasat/Kconfig"
635 source "arch/mips/pmc-sierra/Kconfig"
636 source "arch/mips/sgi-ip27/Kconfig"
637 source "arch/mips/sibyte/Kconfig"
638 source "arch/mips/tx4927/Kconfig"
639 source "arch/mips/tx4938/Kconfig"
640 source "arch/mips/vr41xx/Kconfig"
641
642 endmenu
643
644 config RWSEM_GENERIC_SPINLOCK
645         bool
646         default y
647
648 config RWSEM_XCHGADD_ALGORITHM
649         bool
650
651 config ARCH_HAS_ILOG2_U32
652         bool
653         default n
654
655 config ARCH_HAS_ILOG2_U64
656         bool
657         default n
658
659 config GENERIC_FIND_NEXT_BIT
660         bool
661         default y
662
663 config GENERIC_HWEIGHT
664         bool
665         default y
666
667 config GENERIC_CALIBRATE_DELAY
668         bool
669         default y
670
671 config GENERIC_CLOCKEVENTS
672         bool
673         default y
674
675 config GENERIC_TIME
676         bool
677         default y
678
679 config GENERIC_CMOS_UPDATE
680         bool
681         default y
682
683 config SCHED_NO_NO_OMIT_FRAME_POINTER
684         bool
685         default y
686
687 config GENERIC_HARDIRQS_NO__DO_IRQ
688         bool
689         default n
690
691 #
692 # Select some configuration options automatically based on user selections.
693 #
694 config ARC
695         bool
696
697 config ARCH_MAY_HAVE_PC_FDC
698         bool
699
700 config BOOT_RAW
701         bool
702
703 config CFE
704         bool
705
706 config DMA_COHERENT
707         bool
708
709 config DMA_IP27
710         bool
711
712 config DMA_IP32
713         bool
714         select DMA_NEED_PCI_MAP_STATE
715
716 config DMA_NONCOHERENT
717         bool
718         select DMA_NEED_PCI_MAP_STATE
719
720 config DMA_NEED_PCI_MAP_STATE
721         bool
722
723 config EARLY_PRINTK
724         bool "Early printk" if EMBEDDED && DEBUG_KERNEL
725         depends on SYS_HAS_EARLY_PRINTK
726         default y
727         help
728           This option enables special console drivers which allow the kernel
729           to print messages very early in the bootup process.
730
731           This is useful for kernel debugging when your machine crashes very
732           early before the console code is initialized. For normal operation,
733           it is not recommended because it looks ugly on some machines and
734           doesn't cooperate with an X server. You should normally say N here,
735           unless you want to debug such a crash.
736
737 config SYS_HAS_EARLY_PRINTK
738         bool
739
740 config HOTPLUG_CPU
741         bool
742         default n
743
744 config I8259
745         bool
746
747 config MIPS_BONITO64
748         bool
749
750 config MIPS_MSC
751         bool
752
753 config MIPS_NILE4
754         bool
755
756 config MIPS_DISABLE_OBSOLETE_IDE
757         bool
758
759 config NO_IOPORT
760         def_bool n
761
762 config GENERIC_ISA_DMA
763         bool
764         select ZONE_DMA if GENERIC_ISA_DMA_SUPPORT_BROKEN=n
765
766 config GENERIC_ISA_DMA_SUPPORT_BROKEN
767         bool
768         select GENERIC_ISA_DMA
769
770 config GENERIC_GPIO
771         bool
772
773 #
774 # Endianess selection.  Sufficiently obscure so many users don't know what to
775 # answer,so we try hard to limit the available choices.  Also the use of a
776 # choice statement should be more obvious to the user.
777 #
778 choice
779         prompt "Endianess selection"
780         help
781           Some MIPS machines can be configured for either little or big endian
782           byte order. These modes require different kernels and a different
783           Linux distribution.  In general there is one preferred byteorder for a
784           particular system but some systems are just as commonly used in the
785           one or the other endianness.
786
787 config CPU_BIG_ENDIAN
788         bool "Big endian"
789         depends on SYS_SUPPORTS_BIG_ENDIAN
790
791 config CPU_LITTLE_ENDIAN
792         bool "Little endian"
793         depends on SYS_SUPPORTS_LITTLE_ENDIAN
794         help
795
796 endchoice
797
798 config SYS_SUPPORTS_APM_EMULATION
799         bool
800
801 config SYS_SUPPORTS_BIG_ENDIAN
802         bool
803
804 config SYS_SUPPORTS_LITTLE_ENDIAN
805         bool
806
807 config IRQ_CPU
808         bool
809
810 config IRQ_CPU_RM7K
811         bool
812
813 config IRQ_CPU_RM9K
814         bool
815
816 config IRQ_MSP_SLP
817         bool
818
819 config IRQ_MSP_CIC
820         bool
821
822 config IRQ_TXX9
823         bool
824
825 config IRQ_GT641XX
826         bool
827
828 config MIPS_BOARDS_GEN
829         bool
830
831 config PCI_GT64XXX_PCI0
832         bool
833
834 config NO_EXCEPT_FILL
835         bool
836
837 config MIPS_TX3927
838         bool
839         select HAS_TXX9_SERIAL
840
841 config MIPS_RM9122
842         bool
843         select SERIAL_RM9000
844
845 config PNX8550
846         bool
847         select SOC_PNX8550
848
849 config SOC_PNX8550
850         bool
851         select DMA_NONCOHERENT
852         select HW_HAS_PCI
853         select SYS_HAS_CPU_MIPS32_R1
854         select SYS_HAS_EARLY_PRINTK
855         select SYS_SUPPORTS_32BIT_KERNEL
856         select GENERIC_HARDIRQS_NO__DO_IRQ
857         select SYS_SUPPORTS_KGDB
858         select GENERIC_GPIO
859
860 config SWAP_IO_SPACE
861         bool
862
863 config EMMA2RH
864         bool
865         depends on MARKEINS
866         default y
867
868 config SERIAL_RM9000
869         bool
870
871 config ARC32
872         bool
873
874 config BOOT_ELF32
875         bool
876
877 config MIPS_L1_CACHE_SHIFT
878         int
879         default "4" if MACH_DECSTATION
880         default "7" if SGI_IP27 || SNI_RM
881         default "4" if PMC_MSP4200_EVAL
882         default "5"
883
884 config HAVE_STD_PC_SERIAL_PORT
885         bool
886
887 config ARC_CONSOLE
888         bool "ARC console support"
889         depends on SGI_IP22 || (SNI_RM && CPU_LITTLE_ENDIAN)
890
891 config ARC_MEMORY
892         bool
893         depends on MACH_JAZZ || SNI_RM || SGI_IP32
894         default y
895
896 config ARC_PROMLIB
897         bool
898         depends on MACH_JAZZ || SNI_RM || SGI_IP22 || SGI_IP32
899         default y
900
901 config ARC64
902         bool
903
904 config BOOT_ELF64
905         bool
906
907 menu "CPU selection"
908
909 source "kernel/time/Kconfig"
910
911 choice
912         prompt "CPU type"
913         default CPU_R4X00
914
915 config CPU_LOONGSON2
916         bool "Loongson 2"
917         depends on SYS_HAS_CPU_LOONGSON2
918         select CPU_SUPPORTS_32BIT_KERNEL
919         select CPU_SUPPORTS_64BIT_KERNEL
920         select CPU_SUPPORTS_HIGHMEM
921         help
922           The Loongson 2E processor implements the MIPS III instruction set
923           with many extensions.
924
925 config CPU_MIPS32_R1
926         bool "MIPS32 Release 1"
927         depends on SYS_HAS_CPU_MIPS32_R1
928         select CPU_HAS_LLSC
929         select CPU_HAS_PREFETCH
930         select CPU_SUPPORTS_32BIT_KERNEL
931         select CPU_SUPPORTS_HIGHMEM
932         help
933           Choose this option to build a kernel for release 1 or later of the
934           MIPS32 architecture.  Most modern embedded systems with a 32-bit
935           MIPS processor are based on a MIPS32 processor.  If you know the
936           specific type of processor in your system, choose those that one
937           otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
938           Release 2 of the MIPS32 architecture is available since several
939           years so chances are you even have a MIPS32 Release 2 processor
940           in which case you should choose CPU_MIPS32_R2 instead for better
941           performance.
942
943 config CPU_MIPS32_R2
944         bool "MIPS32 Release 2"
945         depends on SYS_HAS_CPU_MIPS32_R2
946         select CPU_HAS_LLSC
947         select CPU_HAS_PREFETCH
948         select CPU_SUPPORTS_32BIT_KERNEL
949         select CPU_SUPPORTS_HIGHMEM
950         help
951           Choose this option to build a kernel for release 2 or later of the
952           MIPS32 architecture.  Most modern embedded systems with a 32-bit
953           MIPS processor are based on a MIPS32 processor.  If you know the
954           specific type of processor in your system, choose those that one
955           otherwise CPU_MIPS32_R1 is a safe bet for any MIPS32 system.
956
957 config CPU_MIPS64_R1
958         bool "MIPS64 Release 1"
959         depends on SYS_HAS_CPU_MIPS64_R1
960         select CPU_HAS_LLSC
961         select CPU_HAS_PREFETCH
962         select CPU_SUPPORTS_32BIT_KERNEL
963         select CPU_SUPPORTS_64BIT_KERNEL
964         select CPU_SUPPORTS_HIGHMEM
965         help
966           Choose this option to build a kernel for release 1 or later of the
967           MIPS64 architecture.  Many modern embedded systems with a 64-bit
968           MIPS processor are based on a MIPS64 processor.  If you know the
969           specific type of processor in your system, choose those that one
970           otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
971           Release 2 of the MIPS64 architecture is available since several
972           years so chances are you even have a MIPS64 Release 2 processor
973           in which case you should choose CPU_MIPS64_R2 instead for better
974           performance.
975
976 config CPU_MIPS64_R2
977         bool "MIPS64 Release 2"
978         depends on SYS_HAS_CPU_MIPS64_R2
979         select CPU_HAS_LLSC
980         select CPU_HAS_PREFETCH
981         select CPU_SUPPORTS_32BIT_KERNEL
982         select CPU_SUPPORTS_64BIT_KERNEL
983         select CPU_SUPPORTS_HIGHMEM
984         help
985           Choose this option to build a kernel for release 2 or later of the
986           MIPS64 architecture.  Many modern embedded systems with a 64-bit
987           MIPS processor are based on a MIPS64 processor.  If you know the
988           specific type of processor in your system, choose those that one
989           otherwise CPU_MIPS64_R1 is a safe bet for any MIPS64 system.
990
991 config CPU_R3000
992         bool "R3000"
993         depends on SYS_HAS_CPU_R3000
994         select CPU_HAS_WB
995         select CPU_SUPPORTS_32BIT_KERNEL
996         select CPU_SUPPORTS_HIGHMEM
997         help
998           Please make sure to pick the right CPU type. Linux/MIPS is not
999           designed to be generic, i.e. Kernels compiled for R3000 CPUs will
1000           *not* work on R4000 machines and vice versa.  However, since most
1001           of the supported machines have an R4000 (or similar) CPU, R4x00
1002           might be a safe bet.  If the resulting kernel does not work,
1003           try to recompile with R3000.
1004
1005 config CPU_TX39XX
1006         bool "R39XX"
1007         depends on SYS_HAS_CPU_TX39XX
1008         select CPU_SUPPORTS_32BIT_KERNEL
1009
1010 config CPU_VR41XX
1011         bool "R41xx"
1012         depends on SYS_HAS_CPU_VR41XX
1013         select CPU_SUPPORTS_32BIT_KERNEL
1014         select CPU_SUPPORTS_64BIT_KERNEL
1015         help
1016           The options selects support for the NEC VR4100 series of processors.
1017           Only choose this option if you have one of these processors as a
1018           kernel built with this option will not run on any other type of
1019           processor or vice versa.
1020
1021 config CPU_R4300
1022         bool "R4300"
1023         depends on SYS_HAS_CPU_R4300
1024         select CPU_HAS_LLSC
1025         select CPU_SUPPORTS_32BIT_KERNEL
1026         select CPU_SUPPORTS_64BIT_KERNEL
1027         help
1028           MIPS Technologies R4300-series processors.
1029
1030 config CPU_R4X00
1031         bool "R4x00"
1032         depends on SYS_HAS_CPU_R4X00
1033         select CPU_HAS_LLSC
1034         select CPU_SUPPORTS_32BIT_KERNEL
1035         select CPU_SUPPORTS_64BIT_KERNEL
1036         help
1037           MIPS Technologies R4000-series processors other than 4300, including
1038           the R4000, R4400, R4600, and 4700.
1039
1040 config CPU_TX49XX
1041         bool "R49XX"
1042         depends on SYS_HAS_CPU_TX49XX
1043         select CPU_HAS_LLSC
1044         select CPU_HAS_PREFETCH
1045         select CPU_SUPPORTS_32BIT_KERNEL
1046         select CPU_SUPPORTS_64BIT_KERNEL
1047
1048 config CPU_R5000
1049         bool "R5000"
1050         depends on SYS_HAS_CPU_R5000
1051         select CPU_HAS_LLSC
1052         select CPU_SUPPORTS_32BIT_KERNEL
1053         select CPU_SUPPORTS_64BIT_KERNEL
1054         help
1055           MIPS Technologies R5000-series processors other than the Nevada.
1056
1057 config CPU_R5432
1058         bool "R5432"
1059         depends on SYS_HAS_CPU_R5432
1060         select CPU_HAS_LLSC
1061         select CPU_SUPPORTS_32BIT_KERNEL
1062         select CPU_SUPPORTS_64BIT_KERNEL
1063
1064 config CPU_R6000
1065         bool "R6000"
1066         depends on EXPERIMENTAL
1067         select CPU_HAS_LLSC
1068         depends on SYS_HAS_CPU_R6000
1069         select CPU_SUPPORTS_32BIT_KERNEL
1070         help
1071           MIPS Technologies R6000 and R6000A series processors.  Note these
1072           processors are extremely rare and the support for them is incomplete.
1073
1074 config CPU_NEVADA
1075         bool "RM52xx"
1076         depends on SYS_HAS_CPU_NEVADA
1077         select CPU_HAS_LLSC
1078         select CPU_SUPPORTS_32BIT_KERNEL
1079         select CPU_SUPPORTS_64BIT_KERNEL
1080         help
1081           QED / PMC-Sierra RM52xx-series ("Nevada") processors.
1082
1083 config CPU_R8000
1084         bool "R8000"
1085         depends on EXPERIMENTAL
1086         depends on SYS_HAS_CPU_R8000
1087         select CPU_HAS_LLSC
1088         select CPU_HAS_PREFETCH
1089         select CPU_SUPPORTS_64BIT_KERNEL
1090         help
1091           MIPS Technologies R8000 processors.  Note these processors are
1092           uncommon and the support for them is incomplete.
1093
1094 config CPU_R10000
1095         bool "R10000"
1096         depends on SYS_HAS_CPU_R10000
1097         select CPU_HAS_LLSC
1098         select CPU_HAS_PREFETCH
1099         select CPU_SUPPORTS_32BIT_KERNEL
1100         select CPU_SUPPORTS_64BIT_KERNEL
1101         select CPU_SUPPORTS_HIGHMEM
1102         help
1103           MIPS Technologies R10000-series processors.
1104
1105 config CPU_RM7000
1106         bool "RM7000"
1107         depends on SYS_HAS_CPU_RM7000
1108         select CPU_HAS_LLSC
1109         select CPU_HAS_PREFETCH
1110         select CPU_SUPPORTS_32BIT_KERNEL
1111         select CPU_SUPPORTS_64BIT_KERNEL
1112         select CPU_SUPPORTS_HIGHMEM
1113
1114 config CPU_RM9000
1115         bool "RM9000"
1116         depends on SYS_HAS_CPU_RM9000
1117         select CPU_HAS_LLSC
1118         select CPU_HAS_PREFETCH
1119         select CPU_SUPPORTS_32BIT_KERNEL
1120         select CPU_SUPPORTS_64BIT_KERNEL
1121         select CPU_SUPPORTS_HIGHMEM
1122         select WEAK_ORDERING
1123
1124 config CPU_SB1
1125         bool "SB1"
1126         depends on SYS_HAS_CPU_SB1
1127         select CPU_HAS_LLSC
1128         select CPU_SUPPORTS_32BIT_KERNEL
1129         select CPU_SUPPORTS_64BIT_KERNEL
1130         select CPU_SUPPORTS_HIGHMEM
1131         select WEAK_ORDERING
1132
1133 endchoice
1134
1135 config SYS_HAS_CPU_LOONGSON2
1136         bool
1137
1138 config SYS_HAS_CPU_MIPS32_R1
1139         bool
1140
1141 config SYS_HAS_CPU_MIPS32_R2
1142         bool
1143
1144 config SYS_HAS_CPU_MIPS64_R1
1145         bool
1146
1147 config SYS_HAS_CPU_MIPS64_R2
1148         bool
1149
1150 config SYS_HAS_CPU_R3000
1151         bool
1152
1153 config SYS_HAS_CPU_TX39XX
1154         bool
1155
1156 config SYS_HAS_CPU_VR41XX
1157         bool
1158
1159 config SYS_HAS_CPU_R4300
1160         bool
1161
1162 config SYS_HAS_CPU_R4X00
1163         bool
1164
1165 config SYS_HAS_CPU_TX49XX
1166         bool
1167
1168 config SYS_HAS_CPU_R5000
1169         bool
1170
1171 config SYS_HAS_CPU_R5432
1172         bool
1173
1174 config SYS_HAS_CPU_R6000
1175         bool
1176
1177 config SYS_HAS_CPU_NEVADA
1178         bool
1179
1180 config SYS_HAS_CPU_R8000
1181         bool
1182
1183 config SYS_HAS_CPU_R10000
1184         bool
1185
1186 config SYS_HAS_CPU_RM7000
1187         bool
1188
1189 config SYS_HAS_CPU_RM9000
1190         bool
1191
1192 config SYS_HAS_CPU_SB1
1193         bool
1194
1195 #
1196 # CPU may reorder R->R, R->W, W->R, W->W
1197 # Reordering beyond LL and SC is handled in WEAK_REORDERING_BEYOND_LLSC
1198 #
1199 config WEAK_ORDERING
1200         bool
1201
1202 #
1203 # CPU may reorder reads and writes beyond LL/SC
1204 # CPU may reorder R->LL, R->LL, W->LL, W->LL, R->SC, R->SC, W->SC, W->SC
1205 #
1206 config WEAK_REORDERING_BEYOND_LLSC
1207         bool
1208 endmenu
1209
1210 #
1211 # These two indicate any level of the MIPS32 and MIPS64 architecture
1212 #
1213 config CPU_MIPS32
1214         bool
1215         default y if CPU_MIPS32_R1 || CPU_MIPS32_R2
1216
1217 config CPU_MIPS64
1218         bool
1219         default y if CPU_MIPS64_R1 || CPU_MIPS64_R2
1220
1221 #
1222 # These two indicate the revision of the architecture, either Release 1 or Release 2
1223 #
1224 config CPU_MIPSR1
1225         bool
1226         default y if CPU_MIPS32_R1 || CPU_MIPS64_R1
1227
1228 config CPU_MIPSR2
1229         bool
1230         default y if CPU_MIPS32_R2 || CPU_MIPS64_R2
1231
1232 config SYS_SUPPORTS_32BIT_KERNEL
1233         bool
1234 config SYS_SUPPORTS_64BIT_KERNEL
1235         bool
1236 config CPU_SUPPORTS_32BIT_KERNEL
1237         bool
1238 config CPU_SUPPORTS_64BIT_KERNEL
1239         bool
1240
1241 menu "Kernel type"
1242
1243 choice
1244
1245         prompt "Kernel code model"
1246         help
1247           You should only select this option if you have a workload that
1248           actually benefits from 64-bit processing or if your machine has
1249           large memory.  You will only be presented a single option in this
1250           menu if your system does not support both 32-bit and 64-bit kernels.
1251
1252 config 32BIT
1253         bool "32-bit kernel"
1254         depends on CPU_SUPPORTS_32BIT_KERNEL && SYS_SUPPORTS_32BIT_KERNEL
1255         select TRAD_SIGNALS
1256         help
1257           Select this option if you want to build a 32-bit kernel.
1258 config 64BIT
1259         bool "64-bit kernel"
1260         depends on CPU_SUPPORTS_64BIT_KERNEL && SYS_SUPPORTS_64BIT_KERNEL
1261         help
1262           Select this option if you want to build a 64-bit kernel.
1263
1264 endchoice
1265
1266 choice
1267         prompt "Kernel page size"
1268         default PAGE_SIZE_4KB
1269
1270 config PAGE_SIZE_4KB
1271         bool "4kB"
1272         help
1273          This option select the standard 4kB Linux page size.  On some
1274          R3000-family processors this is the only available page size.  Using
1275          4kB page size will minimize memory consumption and is therefore
1276          recommended for low memory systems.
1277
1278 config PAGE_SIZE_8KB
1279         bool "8kB"
1280         depends on EXPERIMENTAL && CPU_R8000
1281         help
1282           Using 8kB page size will result in higher performance kernel at
1283           the price of higher memory consumption.  This option is available
1284           only on the R8000 processor.  Not that at the time of this writing
1285           this option is still high experimental; there are also issues with
1286           compatibility of user applications.
1287
1288 config PAGE_SIZE_16KB
1289         bool "16kB"
1290         depends on !CPU_R3000 && !CPU_TX39XX
1291         help
1292           Using 16kB page size will result in higher performance kernel at
1293           the price of higher memory consumption.  This option is available on
1294           all non-R3000 family processors.  Note that you will need a suitable
1295           Linux distribution to support this.
1296
1297 config PAGE_SIZE_64KB
1298         bool "64kB"
1299         depends on EXPERIMENTAL && !CPU_R3000 && !CPU_TX39XX
1300         help
1301           Using 64kB page size will result in higher performance kernel at
1302           the price of higher memory consumption.  This option is available on
1303           all non-R3000 family processor.  Not that at the time of this
1304           writing this option is still high experimental.
1305
1306 endchoice
1307
1308 config BOARD_SCACHE
1309         bool
1310
1311 config IP22_CPU_SCACHE
1312         bool
1313         select BOARD_SCACHE
1314
1315 #
1316 # Support for a MIPS32 / MIPS64 style S-caches
1317 #
1318 config MIPS_CPU_SCACHE
1319         bool
1320         select BOARD_SCACHE
1321
1322 config R5000_CPU_SCACHE
1323         bool
1324         select BOARD_SCACHE
1325
1326 config RM7000_CPU_SCACHE
1327         bool
1328         select BOARD_SCACHE
1329
1330 config SIBYTE_DMA_PAGEOPS
1331         bool "Use DMA to clear/copy pages"
1332         depends on CPU_SB1
1333         help
1334           Instead of using the CPU to zero and copy pages, use a Data Mover
1335           channel.  These DMA channels are otherwise unused by the standard
1336           SiByte Linux port.  Seems to give a small performance benefit.
1337
1338 config CPU_HAS_PREFETCH
1339         bool
1340
1341 choice
1342         prompt "MIPS MT options"
1343
1344 config MIPS_MT_DISABLED
1345         bool "Disable multithreading support."
1346         help
1347           Use this option if your workload can't take advantage of
1348           MIPS hardware multithreading support.  On systems that don't have
1349           the option of an MT-enabled processor this option will be the only
1350           option in this menu.
1351
1352 config MIPS_MT_SMP
1353         bool "Use 1 TC on each available VPE for SMP"
1354         depends on SYS_SUPPORTS_MULTITHREADING
1355         select CPU_MIPSR2_IRQ_VI
1356         select CPU_MIPSR2_IRQ_EI
1357         select CPU_MIPSR2_SRS
1358         select MIPS_MT
1359         select NR_CPUS_DEFAULT_2
1360         select SMP
1361         select SYS_SUPPORTS_SMP
1362         help
1363           This is a kernel model which is also known a VSMP or lately
1364           has been marketesed into SMVP.
1365
1366 config MIPS_MT_SMTC
1367         bool "SMTC: Use all TCs on all VPEs for SMP"
1368         depends on CPU_MIPS32_R2
1369         #depends on CPU_MIPS64_R2               # once there is hardware ...
1370         depends on SYS_SUPPORTS_MULTITHREADING
1371         select CPU_MIPSR2_IRQ_VI
1372         select CPU_MIPSR2_IRQ_EI
1373         select CPU_MIPSR2_SRS
1374         select MIPS_MT
1375         select NR_CPUS_DEFAULT_8
1376         select SMP
1377         select SYS_SUPPORTS_SMP
1378         help
1379           This is a kernel model which is known a SMTC or lately has been
1380           marketesed into SMVP.
1381
1382 endchoice
1383
1384 config MIPS_MT
1385         bool
1386
1387 config SYS_SUPPORTS_MULTITHREADING
1388         bool
1389
1390 config MIPS_MT_FPAFF
1391         bool "Dynamic FPU affinity for FP-intensive threads"
1392         default y
1393         depends on MIPS_MT_SMP || MIPS_MT_SMTC
1394
1395 config MIPS_VPE_LOADER
1396         bool "VPE loader support."
1397         depends on SYS_SUPPORTS_MULTITHREADING
1398         select CPU_MIPSR2_IRQ_VI
1399         select CPU_MIPSR2_IRQ_EI
1400         select CPU_MIPSR2_SRS
1401         select MIPS_MT
1402         help
1403           Includes a loader for loading an elf relocatable object
1404           onto another VPE and running it.
1405
1406 config MIPS_MT_SMTC_INSTANT_REPLAY
1407         bool "Low-latency Dispatch of Deferred SMTC IPIs"
1408         depends on MIPS_MT_SMTC && !PREEMPT
1409         default y
1410         help
1411           SMTC pseudo-interrupts between TCs are deferred and queued
1412           if the target TC is interrupt-inhibited (IXMT). In the first
1413           SMTC prototypes, these queued IPIs were serviced on return
1414           to user mode, or on entry into the kernel idle loop. The
1415           INSTANT_REPLAY option dispatches them as part of local_irq_restore()
1416           processing, which adds runtime overhead (hence the option to turn
1417           it off), but ensures that IPIs are handled promptly even under
1418           heavy I/O interrupt load.
1419
1420 config MIPS_MT_SMTC_IM_BACKSTOP
1421         bool "Use per-TC register bits as backstop for inhibited IM bits"
1422         depends on MIPS_MT_SMTC
1423         default y
1424         help
1425           To support multiple TC microthreads acting as "CPUs" within
1426           a VPE, VPE-wide interrupt mask bits must be specially manipulated
1427           during interrupt handling. To support legacy drivers and interrupt
1428           controller management code, SMTC has a "backstop" to track and
1429           if necessary restore the interrupt mask. This has some performance
1430           impact on interrupt service overhead. Disable it only if you know
1431           what you are doing.
1432
1433 config MIPS_MT_SMTC_IRQAFF
1434         bool "Support IRQ affinity API"
1435         depends on MIPS_MT_SMTC
1436         default n
1437         help
1438           Enables SMP IRQ affinity API (/proc/irq/*/smp_affinity, etc.)
1439           for SMTC Linux kernel. Requires platform support, of which
1440           an example can be found in the MIPS kernel i8259 and Malta
1441           platform code.  It is recommended that MIPS_MT_SMTC_INSTANT_REPLAY
1442           be enabled if MIPS_MT_SMTC_IRQAFF is used. Adds overhead to
1443           interrupt dispatch, and should be used only if you know what
1444           you are doing.
1445
1446 config MIPS_VPE_LOADER_TOM
1447         bool "Load VPE program into memory hidden from linux"
1448         depends on MIPS_VPE_LOADER
1449         default y
1450         help
1451           The loader can use memory that is present but has been hidden from
1452           Linux using the kernel command line option "mem=xxMB". It's up to
1453           you to ensure the amount you put in the option and the space your
1454           program requires is less or equal to the amount physically present.
1455
1456 # this should possibly be in drivers/char, but it is rather cpu related. Hmmm
1457 config MIPS_VPE_APSP_API
1458         bool "Enable support for AP/SP API (RTLX)"
1459         depends on MIPS_VPE_LOADER
1460         help
1461
1462 config MIPS_APSP_KSPD
1463         bool "Enable KSPD"
1464         depends on MIPS_VPE_APSP_API
1465         default y
1466         help
1467           KSPD is a kernel daemon that accepts syscall requests from the SP
1468           side, actions them and returns the results. It also handles the
1469           "exit" syscall notifying other kernel modules the SP program is
1470           exiting.  You probably want to say yes here.
1471
1472 config SB1_PASS_1_WORKAROUNDS
1473         bool
1474         depends on CPU_SB1_PASS_1
1475         default y
1476
1477 config SB1_PASS_2_WORKAROUNDS
1478         bool
1479         depends on CPU_SB1 && (CPU_SB1_PASS_2_2 || CPU_SB1_PASS_2)
1480         default y
1481
1482 config SB1_PASS_2_1_WORKAROUNDS
1483         bool
1484         depends on CPU_SB1 && CPU_SB1_PASS_2
1485         default y
1486
1487 config 64BIT_PHYS_ADDR
1488         bool
1489
1490 config CPU_HAS_LLSC
1491         bool
1492
1493 config CPU_HAS_SMARTMIPS
1494         depends on SYS_SUPPORTS_SMARTMIPS
1495         bool "Support for the SmartMIPS ASE"
1496         help
1497           SmartMIPS is a extension of the MIPS32 architecture aimed at
1498           increased security at both hardware and software level for
1499           smartcards.  Enabling this option will allow proper use of the
1500           SmartMIPS instructions by Linux applications.  However a kernel with
1501           this option will not work on a MIPS core without SmartMIPS core.  If
1502           you don't know you probably don't have SmartMIPS and should say N
1503           here.
1504
1505 config CPU_HAS_WB
1506         bool
1507
1508 config 64BIT_CONTEXT
1509         bool "Save 64bit integer registers"
1510         depends on 32BIT && CPU_LOONGSON2
1511         help
1512           Loongson2 CPU is 64bit , when used in 32BIT mode, its integer
1513           registers can still be accessed as 64bit, mainly for multimedia
1514           instructions. We must have all 64bit save/restored to make sure
1515           those instructions to get correct result.
1516
1517 #
1518 # Vectored interrupt mode is an R2 feature
1519 #
1520 config CPU_MIPSR2_IRQ_VI
1521         bool
1522
1523 #
1524 # Extended interrupt mode is an R2 feature
1525 #
1526 config CPU_MIPSR2_IRQ_EI
1527         bool
1528
1529 #
1530 # Shadow registers are an R2 feature
1531 #
1532 config CPU_MIPSR2_SRS
1533         bool
1534
1535 config CPU_HAS_SYNC
1536         bool
1537         depends on !CPU_R3000
1538         default y
1539
1540 #
1541 # Use the generic interrupt handling code in kernel/irq/:
1542 #
1543 config GENERIC_HARDIRQS
1544         bool
1545         default y
1546
1547 config GENERIC_IRQ_PROBE
1548         bool
1549         default y
1550
1551 config IRQ_PER_CPU
1552         bool
1553
1554 #
1555 # - Highmem only makes sense for the 32-bit kernel.
1556 # - The current highmem code will only work properly on physically indexed
1557 #   caches such as R3000, SB1, R7000 or those that look like they're virtually
1558 #   indexed such as R4000/R4400 SC and MC versions or R10000.  So for the
1559 #   moment we protect the user and offer the highmem option only on machines
1560 #   where it's known to be safe.  This will not offer highmem on a few systems
1561 #   such as MIPS32 and MIPS64 CPUs which may have virtual and physically
1562 #   indexed CPUs but we're playing safe.
1563 # - We use SYS_SUPPORTS_HIGHMEM to offer highmem only for systems where we
1564 #   know they might have memory configurations that could make use of highmem
1565 #   support.
1566 #
1567 config HIGHMEM
1568         bool "High Memory Support"
1569         depends on 32BIT && CPU_SUPPORTS_HIGHMEM && SYS_SUPPORTS_HIGHMEM
1570
1571 config CPU_SUPPORTS_HIGHMEM
1572         bool
1573
1574 config SYS_SUPPORTS_HIGHMEM
1575         bool
1576
1577 config SYS_SUPPORTS_SMARTMIPS
1578         bool
1579
1580 config ARCH_FLATMEM_ENABLE
1581         def_bool y
1582         depends on !NUMA
1583
1584 config ARCH_DISCONTIGMEM_ENABLE
1585         bool
1586         default y if SGI_IP27
1587         help
1588           Say Y to support efficient handling of discontiguous physical memory,
1589           for architectures which are either NUMA (Non-Uniform Memory Access)
1590           or have huge holes in the physical address space for other reasons.
1591           See <file:Documentation/vm/numa> for more.
1592
1593 config ARCH_SPARSEMEM_ENABLE
1594         bool
1595         select SPARSEMEM_STATIC
1596
1597 config NUMA
1598         bool "NUMA Support"
1599         depends on SYS_SUPPORTS_NUMA
1600         help
1601           Say Y to compile the kernel to support NUMA (Non-Uniform Memory
1602           Access).  This option improves performance on systems with more
1603           than two nodes; on two node systems it is generally better to
1604           leave it disabled; on single node systems disable this option
1605           disabled.
1606
1607 config SYS_SUPPORTS_NUMA
1608         bool
1609
1610 config NODES_SHIFT
1611         int
1612         default "6"
1613         depends on NEED_MULTIPLE_NODES
1614
1615 source "mm/Kconfig"
1616
1617 config SMP
1618         bool "Multi-Processing support"
1619         depends on SYS_SUPPORTS_SMP
1620         select IRQ_PER_CPU
1621         help
1622           This enables support for systems with more than one CPU. If you have
1623           a system with only one CPU, like most personal computers, say N. If
1624           you have a system with more than one CPU, say Y.
1625
1626           If you say N here, the kernel will run on single and multiprocessor
1627           machines, but will use only one CPU of a multiprocessor machine. If
1628           you say Y here, the kernel will run on many, but not all,
1629           singleprocessor machines. On a singleprocessor machine, the kernel
1630           will run faster if you say N here.
1631
1632           People using multiprocessor machines who say Y here should also say
1633           Y to "Enhanced Real Time Clock Support", below.
1634
1635           See also the <file:Documentation/smp.txt> and the SMP-HOWTO
1636           available at <http://www.tldp.org/docs.html#howto>.
1637
1638           If you don't know what to do here, say N.
1639
1640 config SYS_SUPPORTS_SMP
1641         bool
1642
1643 config NR_CPUS_DEFAULT_1
1644         bool
1645
1646 config NR_CPUS_DEFAULT_2
1647         bool
1648
1649 config NR_CPUS_DEFAULT_4
1650         bool
1651
1652 config NR_CPUS_DEFAULT_8
1653         bool
1654
1655 config NR_CPUS_DEFAULT_16
1656         bool
1657
1658 config NR_CPUS_DEFAULT_32
1659         bool
1660
1661 config NR_CPUS_DEFAULT_64
1662         bool
1663
1664 config NR_CPUS
1665         int "Maximum number of CPUs (2-64)"
1666         range 1 64 if NR_CPUS_DEFAULT_1
1667         depends on SMP
1668         default "1" if NR_CPUS_DEFAULT_1
1669         default "2" if NR_CPUS_DEFAULT_2
1670         default "4" if NR_CPUS_DEFAULT_4
1671         default "8" if NR_CPUS_DEFAULT_8
1672         default "16" if NR_CPUS_DEFAULT_16
1673         default "32" if NR_CPUS_DEFAULT_32
1674         default "64" if NR_CPUS_DEFAULT_64
1675         help
1676           This allows you to specify the maximum number of CPUs which this
1677           kernel will support.  The maximum supported value is 32 for 32-bit
1678           kernel and 64 for 64-bit kernels; the minimum value which makes
1679           sense is 1 for Qemu (useful only for kernel debugging purposes)
1680           and 2 for all others.
1681
1682           This is purely to save memory - each supported CPU adds
1683           approximately eight kilobytes to the kernel image.  For best
1684           performance should round up your number of processors to the next
1685           power of two.
1686
1687 #
1688 # Timer Interrupt Frequency Configuration
1689 #
1690
1691 choice
1692         prompt "Timer frequency"
1693         default HZ_250
1694         help
1695          Allows the configuration of the timer frequency.
1696
1697         config HZ_48
1698                 bool "48 HZ" if SYS_SUPPORTS_48HZ
1699
1700         config HZ_100
1701                 bool "100 HZ" if SYS_SUPPORTS_100HZ || SYS_SUPPORTS_ARBIT_HZ
1702
1703         config HZ_128
1704                 bool "128 HZ" if SYS_SUPPORTS_128HZ || SYS_SUPPORTS_ARBIT_HZ
1705
1706         config HZ_250
1707                 bool "250 HZ" if SYS_SUPPORTS_250HZ || SYS_SUPPORTS_ARBIT_HZ
1708
1709         config HZ_256
1710                 bool "256 HZ" if SYS_SUPPORTS_256HZ || SYS_SUPPORTS_ARBIT_HZ
1711
1712         config HZ_1000
1713                 bool "1000 HZ" if SYS_SUPPORTS_1000HZ || SYS_SUPPORTS_ARBIT_HZ
1714
1715         config HZ_1024
1716                 bool "1024 HZ" if SYS_SUPPORTS_1024HZ || SYS_SUPPORTS_ARBIT_HZ
1717
1718 endchoice
1719
1720 config SYS_SUPPORTS_48HZ
1721         bool
1722
1723 config SYS_SUPPORTS_100HZ
1724         bool
1725
1726 config SYS_SUPPORTS_128HZ
1727         bool
1728
1729 config SYS_SUPPORTS_250HZ
1730         bool
1731
1732 config SYS_SUPPORTS_256HZ
1733         bool
1734
1735 config SYS_SUPPORTS_1000HZ
1736         bool
1737
1738 config SYS_SUPPORTS_1024HZ
1739         bool
1740
1741 config SYS_SUPPORTS_ARBIT_HZ
1742         bool
1743         default y if !SYS_SUPPORTS_48HZ && !SYS_SUPPORTS_100HZ && \
1744                      !SYS_SUPPORTS_128HZ && !SYS_SUPPORTS_250HZ && \
1745                      !SYS_SUPPORTS_256HZ && !SYS_SUPPORTS_1000HZ && \
1746                      !SYS_SUPPORTS_1024HZ
1747
1748 config HZ
1749         int
1750         default 48 if HZ_48
1751         default 100 if HZ_100
1752         default 128 if HZ_128
1753         default 250 if HZ_250
1754         default 256 if HZ_256
1755         default 1000 if HZ_1000
1756         default 1024 if HZ_1024
1757
1758 source "kernel/Kconfig.preempt"
1759
1760 config MIPS_INSANE_LARGE
1761         bool "Support for large 64-bit configurations"
1762         depends on CPU_R10000 && 64BIT
1763         help
1764           MIPS R10000 does support a 44 bit / 16TB address space as opposed to
1765           previous 64-bit processors which only supported 40 bit / 1TB. If you
1766           need processes of more than 1TB virtual address space, say Y here.
1767           This will result in additional memory usage, so it is not
1768           recommended for normal users.
1769
1770 config KEXEC
1771         bool "Kexec system call (EXPERIMENTAL)"
1772         depends on EXPERIMENTAL
1773         help
1774           kexec is a system call that implements the ability to shutdown your
1775           current kernel, and to start another kernel.  It is like a reboot
1776           but it is independent of the system firmware.   And like a reboot
1777           you can start any kernel with it, not just Linux.
1778
1779           The name comes from the similiarity to the exec system call.
1780
1781           It is an ongoing process to be certain the hardware in a machine
1782           is properly shutdown, so do not be surprised if this code does not
1783           initially work for you.  It may help to enable device hotplugging
1784           support.  As of this writing the exact hardware interface is
1785           strongly in flux, so no good recommendation can be made.
1786
1787 config SECCOMP
1788         bool "Enable seccomp to safely compute untrusted bytecode"
1789         depends on PROC_FS
1790         default y
1791         help
1792           This kernel feature is useful for number crunching applications
1793           that may need to compute untrusted bytecode during their
1794           execution. By using pipes or other transports made available to
1795           the process as file descriptors supporting the read/write
1796           syscalls, it's possible to isolate those applications in
1797           their own address space using seccomp. Once seccomp is
1798           enabled via /proc/<pid>/seccomp, it cannot be disabled
1799           and the task is only allowed to execute a few safe syscalls
1800           defined by each seccomp mode.
1801
1802           If unsure, say Y. Only embedded should say N here.
1803
1804 endmenu
1805
1806 config RWSEM_GENERIC_SPINLOCK
1807         bool
1808         default y
1809
1810 config LOCKDEP_SUPPORT
1811         bool
1812         default y
1813
1814 config STACKTRACE_SUPPORT
1815         bool
1816         default y
1817
1818 source "init/Kconfig"
1819
1820 menu "Bus options (PCI, PCMCIA, EISA, ISA, TC)"
1821
1822 config HW_HAS_EISA
1823         bool
1824 config HW_HAS_PCI
1825         bool
1826
1827 config PCI
1828         bool "Support for PCI controller"
1829         depends on HW_HAS_PCI
1830         select PCI_DOMAINS
1831         help
1832           Find out whether you have a PCI motherboard. PCI is the name of a
1833           bus system, i.e. the way the CPU talks to the other stuff inside
1834           your box. Other bus systems are ISA, EISA, or VESA. If you have PCI,
1835           say Y, otherwise N.
1836
1837           The PCI-HOWTO, available from
1838           <http://www.tldp.org/docs.html#howto>, contains valuable
1839           information about which PCI hardware does work under Linux and which
1840           doesn't.
1841
1842 config PCI_DOMAINS
1843         bool
1844
1845 source "drivers/pci/Kconfig"
1846
1847 #
1848 # ISA support is now enabled via select.  Too many systems still have the one
1849 # or other ISA chip on the board that users don't know about so don't expect
1850 # users to choose the right thing ...
1851 #
1852 config ISA
1853         bool
1854
1855 config EISA
1856         bool "EISA support"
1857         depends on HW_HAS_EISA
1858         select ISA
1859         select GENERIC_ISA_DMA
1860         ---help---
1861           The Extended Industry Standard Architecture (EISA) bus was
1862           developed as an open alternative to the IBM MicroChannel bus.
1863
1864           The EISA bus provided some of the features of the IBM MicroChannel
1865           bus while maintaining backward compatibility with cards made for
1866           the older ISA bus.  The EISA bus saw limited use between 1988 and
1867           1995 when it was made obsolete by the PCI bus.
1868
1869           Say Y here if you are building a kernel for an EISA-based machine.
1870
1871           Otherwise, say N.
1872
1873 source "drivers/eisa/Kconfig"
1874
1875 config TC
1876         bool "TURBOchannel support"
1877         depends on MACH_DECSTATION
1878         help
1879           TurboChannel is a DEC (now Compaq (now HP)) bus for Alpha and MIPS
1880           processors.  Documentation on writing device drivers for TurboChannel
1881           is available at:
1882           <http://www.cs.arizona.edu/computer.help/policy/DIGITAL_unix/AA-PS3HD-TET1_html/TITLE.html>.
1883
1884 #config ACCESSBUS
1885 #       bool "Access.Bus support"
1886 #       depends on TC
1887
1888 config MMU
1889         bool
1890         default y
1891
1892 config PCSPEAKER
1893         bool
1894
1895 source "drivers/pcmcia/Kconfig"
1896
1897 source "drivers/pci/hotplug/Kconfig"
1898
1899 endmenu
1900
1901 menu "Executable file formats"
1902
1903 source "fs/Kconfig.binfmt"
1904
1905 config TRAD_SIGNALS
1906         bool
1907
1908 config BINFMT_IRIX
1909         bool "Include IRIX binary compatibility"
1910         depends on CPU_BIG_ENDIAN && 32BIT && BROKEN
1911
1912 config MIPS32_COMPAT
1913         bool "Kernel support for Linux/MIPS 32-bit binary compatibility"
1914         depends on 64BIT
1915         help
1916           Select this option if you want Linux/MIPS 32-bit binary
1917           compatibility. Since all software available for Linux/MIPS is
1918           currently 32-bit you should say Y here.
1919
1920 config COMPAT
1921         bool
1922         depends on MIPS32_COMPAT
1923         default y
1924
1925 config SYSVIPC_COMPAT
1926         bool
1927         depends on COMPAT && SYSVIPC
1928         default y
1929
1930 config MIPS32_O32
1931         bool "Kernel support for o32 binaries"
1932         depends on MIPS32_COMPAT
1933         help
1934           Select this option if you want to run o32 binaries.  These are pure
1935           32-bit binaries as used by the 32-bit Linux/MIPS port.  Most of
1936           existing binaries are in this format.
1937
1938           If unsure, say Y.
1939
1940 config MIPS32_N32
1941         bool "Kernel support for n32 binaries"
1942         depends on MIPS32_COMPAT
1943         help
1944           Select this option if you want to run n32 binaries.  These are
1945           64-bit binaries using 32-bit quantities for addressing and certain
1946           data that would normally be 64-bit.  They are used in special
1947           cases.
1948
1949           If unsure, say N.
1950
1951 config BINFMT_ELF32
1952         bool
1953         default y if MIPS32_O32 || MIPS32_N32
1954
1955 endmenu
1956
1957 menu "Power management options"
1958
1959 source "kernel/power/Kconfig"
1960
1961 endmenu
1962
1963 source "net/Kconfig"
1964
1965 source "drivers/Kconfig"
1966
1967 source "fs/Kconfig"
1968
1969 source "arch/mips/oprofile/Kconfig"
1970
1971 source "arch/mips/Kconfig.debug"
1972
1973 source "security/Kconfig"
1974
1975 source "crypto/Kconfig"
1976
1977 source "lib/Kconfig"