提交 f7062ddb 编写于 作者: R Ralf Baechle

[MIPS] Get rid of CONFIG_ADVANCED.

    
It's been a horrible source of confusion and let users to shoot themselves
into both feet with uzis to no end.
Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 3763120a
...@@ -1067,6 +1067,7 @@ choice ...@@ -1067,6 +1067,7 @@ choice
config CPU_MIPS32_R1 config CPU_MIPS32_R1
bool "MIPS32 Release 1" bool "MIPS32 Release 1"
depends on SYS_HAS_CPU_MIPS32_R1 depends on SYS_HAS_CPU_MIPS32_R1
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_HIGHMEM
...@@ -1084,6 +1085,7 @@ config CPU_MIPS32_R1 ...@@ -1084,6 +1085,7 @@ config CPU_MIPS32_R1
config CPU_MIPS32_R2 config CPU_MIPS32_R2
bool "MIPS32 Release 2" bool "MIPS32 Release 2"
depends on SYS_HAS_CPU_MIPS32_R2 depends on SYS_HAS_CPU_MIPS32_R2
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_HIGHMEM
...@@ -1097,6 +1099,7 @@ config CPU_MIPS32_R2 ...@@ -1097,6 +1099,7 @@ config CPU_MIPS32_R2
config CPU_MIPS64_R1 config CPU_MIPS64_R1
bool "MIPS64 Release 1" bool "MIPS64 Release 1"
depends on SYS_HAS_CPU_MIPS64_R1 depends on SYS_HAS_CPU_MIPS64_R1
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1115,6 +1118,7 @@ config CPU_MIPS64_R1 ...@@ -1115,6 +1118,7 @@ config CPU_MIPS64_R1
config CPU_MIPS64_R2 config CPU_MIPS64_R2
bool "MIPS64 Release 2" bool "MIPS64 Release 2"
depends on SYS_HAS_CPU_MIPS64_R2 depends on SYS_HAS_CPU_MIPS64_R2
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1129,6 +1133,7 @@ config CPU_MIPS64_R2 ...@@ -1129,6 +1133,7 @@ config CPU_MIPS64_R2
config CPU_R3000 config CPU_R3000
bool "R3000" bool "R3000"
depends on SYS_HAS_CPU_R3000 depends on SYS_HAS_CPU_R3000
select CPU_HAS_WB
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_HIGHMEM
help help
...@@ -1158,6 +1163,7 @@ config CPU_VR41XX ...@@ -1158,6 +1163,7 @@ config CPU_VR41XX
config CPU_R4300 config CPU_R4300
bool "R4300" bool "R4300"
depends on SYS_HAS_CPU_R4300 depends on SYS_HAS_CPU_R4300
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
help help
...@@ -1166,6 +1172,7 @@ config CPU_R4300 ...@@ -1166,6 +1172,7 @@ config CPU_R4300
config CPU_R4X00 config CPU_R4X00
bool "R4x00" bool "R4x00"
depends on SYS_HAS_CPU_R4X00 depends on SYS_HAS_CPU_R4X00
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
help help
...@@ -1175,6 +1182,7 @@ config CPU_R4X00 ...@@ -1175,6 +1182,7 @@ config CPU_R4X00
config CPU_TX49XX config CPU_TX49XX
bool "R49XX" bool "R49XX"
depends on SYS_HAS_CPU_TX49XX depends on SYS_HAS_CPU_TX49XX
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1182,6 +1190,7 @@ config CPU_TX49XX ...@@ -1182,6 +1190,7 @@ config CPU_TX49XX
config CPU_R5000 config CPU_R5000
bool "R5000" bool "R5000"
depends on SYS_HAS_CPU_R5000 depends on SYS_HAS_CPU_R5000
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
help help
...@@ -1190,12 +1199,14 @@ config CPU_R5000 ...@@ -1190,12 +1199,14 @@ config CPU_R5000
config CPU_R5432 config CPU_R5432
bool "R5432" bool "R5432"
depends on SYS_HAS_CPU_R5432 depends on SYS_HAS_CPU_R5432
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
config CPU_R6000 config CPU_R6000
bool "R6000" bool "R6000"
depends on EXPERIMENTAL depends on EXPERIMENTAL
select CPU_HAS_LLSC
depends on SYS_HAS_CPU_R6000 depends on SYS_HAS_CPU_R6000
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
help help
...@@ -1205,6 +1216,7 @@ config CPU_R6000 ...@@ -1205,6 +1216,7 @@ config CPU_R6000
config CPU_NEVADA config CPU_NEVADA
bool "RM52xx" bool "RM52xx"
depends on SYS_HAS_CPU_NEVADA depends on SYS_HAS_CPU_NEVADA
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
help help
...@@ -1214,6 +1226,7 @@ config CPU_R8000 ...@@ -1214,6 +1226,7 @@ config CPU_R8000
bool "R8000" bool "R8000"
depends on EXPERIMENTAL depends on EXPERIMENTAL
depends on SYS_HAS_CPU_R8000 depends on SYS_HAS_CPU_R8000
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
help help
...@@ -1223,6 +1236,7 @@ config CPU_R8000 ...@@ -1223,6 +1236,7 @@ config CPU_R8000
config CPU_R10000 config CPU_R10000
bool "R10000" bool "R10000"
depends on SYS_HAS_CPU_R10000 depends on SYS_HAS_CPU_R10000
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1233,6 +1247,7 @@ config CPU_R10000 ...@@ -1233,6 +1247,7 @@ config CPU_R10000
config CPU_RM7000 config CPU_RM7000
bool "RM7000" bool "RM7000"
depends on SYS_HAS_CPU_RM7000 depends on SYS_HAS_CPU_RM7000
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1241,6 +1256,7 @@ config CPU_RM7000 ...@@ -1241,6 +1256,7 @@ config CPU_RM7000
config CPU_RM9000 config CPU_RM9000
bool "RM9000" bool "RM9000"
depends on SYS_HAS_CPU_RM9000 depends on SYS_HAS_CPU_RM9000
select CPU_HAS_LLSC
select CPU_HAS_PREFETCH select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
...@@ -1249,6 +1265,7 @@ config CPU_RM9000 ...@@ -1249,6 +1265,7 @@ config CPU_RM9000
config CPU_SB1 config CPU_SB1
bool "SB1" bool "SB1"
depends on SYS_HAS_CPU_SB1 depends on SYS_HAS_CPU_SB1
select CPU_HAS_LLSC
select CPU_SUPPORTS_32BIT_KERNEL select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL select CPU_SUPPORTS_64BIT_KERNEL
select CPU_SUPPORTS_HIGHMEM select CPU_SUPPORTS_HIGHMEM
...@@ -1449,6 +1466,8 @@ choice ...@@ -1449,6 +1466,8 @@ choice
config MIPS_MT_SMTC config MIPS_MT_SMTC
bool "SMTC: Use all TCs on all VPEs for SMP" bool "SMTC: Use all TCs on all VPEs for SMP"
select CPU_MIPSR2_IRQ_VI
select CPU_MIPSR2_SRS
select SMP select SMP
config MIPS_MT_SMP config MIPS_MT_SMP
...@@ -1514,38 +1533,15 @@ config 64BIT_PHYS_ADDR ...@@ -1514,38 +1533,15 @@ config 64BIT_PHYS_ADDR
bool "Support for 64-bit physical address space" bool "Support for 64-bit physical address space"
depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT depends on (CPU_R4X00 || CPU_R5000 || CPU_RM7000 || CPU_RM9000 || CPU_R10000 || CPU_SB1 || CPU_MIPS32 || CPU_MIPS64) && 32BIT
config CPU_ADVANCED
bool "Override CPU Options"
depends on 32BIT
help
Saying yes here allows you to select support for various features
your CPU may or may not have. Most people should say N here.
config CPU_HAS_LLSC config CPU_HAS_LLSC
bool "ll/sc Instructions available" if CPU_ADVANCED bool
default y if !CPU_ADVANCED && !CPU_R3000 && !CPU_VR41XX && !CPU_TX39XX
help
MIPS R4000 series and later provide the Load Linked (ll)
and Store Conditional (sc) instructions. More information is
available at <http://www.go-ecs.com/mips/miptek1.htm>.
Say Y here if your CPU has the ll and sc instructions. Say Y here
for better performance, N if you don't know. You must say Y here
for multiprocessor machines.
config CPU_HAS_WB config CPU_HAS_WB
bool "Writeback Buffer available" if CPU_ADVANCED bool
default y if !CPU_ADVANCED && CPU_R3000 && MACH_DECSTATION
help
Say N here for slightly better performance. You must say Y here for
machines which require flushing of write buffers in software. Saying
Y is the safe option; N may result in kernel malfunction and crashes.
menu "MIPSR2 Interrupt handling"
depends on CPU_MIPSR2 && CPU_ADVANCED
config CPU_MIPSR2_IRQ_VI config CPU_MIPSR2_IRQ_VI
bool "Vectored interrupt mode" bool "Vectored interrupt mode"
depends on CPU_MIPSR2
help help
Vectored interrupt mode allowing faster dispatching of interrupts. Vectored interrupt mode allowing faster dispatching of interrupts.
The board support code needs to be written to take advantage of this The board support code needs to be written to take advantage of this
...@@ -1555,6 +1551,7 @@ config CPU_MIPSR2_IRQ_VI ...@@ -1555,6 +1551,7 @@ config CPU_MIPSR2_IRQ_VI
config CPU_MIPSR2_IRQ_EI config CPU_MIPSR2_IRQ_EI
bool "External interrupt controller mode" bool "External interrupt controller mode"
depends on CPU_MIPSR2
help help
Extended interrupt mode takes advantage of an external interrupt Extended interrupt mode takes advantage of an external interrupt
controller to allow fast dispatching from many possible interrupt controller to allow fast dispatching from many possible interrupt
...@@ -1568,7 +1565,6 @@ config CPU_MIPSR2_SRS ...@@ -1568,7 +1565,6 @@ config CPU_MIPSR2_SRS
Allow the kernel to use shadow register sets for fast interrupts. Allow the kernel to use shadow register sets for fast interrupts.
Interrupt handlers must be specially written to use shadow sets. Interrupt handlers must be specially written to use shadow sets.
Say N unless you know that shadow register set upport is needed. Say N unless you know that shadow register set upport is needed.
endmenu
config CPU_HAS_SYNC config CPU_HAS_SYNC
bool bool
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册