summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Burton <paul.burton@mips.com>2019-07-22 17:59:43 -0400
committerPaul Burton <paul.burton@mips.com>2019-07-23 17:33:23 -0400
commitf9065b54d437c4660e3d974ad9ce5188c068cd76 (patch)
tree32622164fa84225b50db05fcea98c830d431d7b1
parentf23478f6ea2ed6c8dccc6f7b902c2362ebc197ef (diff)
MIPS: Remove unused R4300 CPU support
Our R4300 CPU support can only be included if a system selects CONFIG_SYS_HAS_CPU_R4300. No system does, making all R4300-related CPU support dead code. Remove it. Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org
-rw-r--r--arch/mips/Kconfig12
-rw-r--r--arch/mips/Makefile1
-rw-r--r--arch/mips/include/asm/cpu-type.h5
-rw-r--r--arch/mips/include/asm/cpu.h2
-rw-r--r--arch/mips/include/asm/module.h2
-rw-r--r--arch/mips/kernel/cpu-probe.c9
-rw-r--r--arch/mips/kernel/idle.c1
-rw-r--r--arch/mips/mm/c-r4k.c1
-rw-r--r--arch/mips/mm/tlbex.c1
9 files changed, 1 insertions, 33 deletions
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index ac9ed08a7fff..ce8d5e4640a1 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1601,15 +1601,6 @@ config CPU_VR41XX
1601 kernel built with this option will not run on any other type of 1601 kernel built with this option will not run on any other type of
1602 processor or vice versa. 1602 processor or vice versa.
1603 1603
1604config CPU_R4300
1605 bool "R4300"
1606 depends on SYS_HAS_CPU_R4300
1607 select CPU_SUPPORTS_32BIT_KERNEL
1608 select CPU_SUPPORTS_64BIT_KERNEL
1609 select CPU_HAS_LOAD_STORE_LR
1610 help
1611 MIPS Technologies R4300-series processors.
1612
1613config CPU_R4X00 1604config CPU_R4X00
1614 bool "R4x00" 1605 bool "R4x00"
1615 depends on SYS_HAS_CPU_R4X00 1606 depends on SYS_HAS_CPU_R4X00
@@ -1971,9 +1962,6 @@ config SYS_HAS_CPU_TX39XX
1971config SYS_HAS_CPU_VR41XX 1962config SYS_HAS_CPU_VR41XX
1972 bool 1963 bool
1973 1964
1974config SYS_HAS_CPU_R4300
1975 bool
1976
1977config SYS_HAS_CPU_R4X00 1965config SYS_HAS_CPU_R4X00
1978 bool 1966 bool
1979 1967
diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index eceff9b75b22..e728d0555466 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -163,7 +163,6 @@ cflags-y += -fno-stack-check
163# 163#
164cflags-$(CONFIG_CPU_R3000) += -march=r3000 164cflags-$(CONFIG_CPU_R3000) += -march=r3000
165cflags-$(CONFIG_CPU_TX39XX) += -march=r3900 165cflags-$(CONFIG_CPU_TX39XX) += -march=r3900
166cflags-$(CONFIG_CPU_R4300) += -march=r4300 -Wa,--trap
167cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap 166cflags-$(CONFIG_CPU_VR41XX) += -march=r4100 -Wa,--trap
168cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap 167cflags-$(CONFIG_CPU_R4X00) += -march=r4600 -Wa,--trap
169cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap 168cflags-$(CONFIG_CPU_TX49XX) += -march=r4600 -Wa,--trap
diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h
index 518659694112..a6c4114e3aa7 100644
--- a/arch/mips/include/asm/cpu-type.h
+++ b/arch/mips/include/asm/cpu-type.h
@@ -116,11 +116,6 @@ static inline int __pure __get_cpu_type(const int cpu_type)
116 case CPU_VR4181A: 116 case CPU_VR4181A:
117#endif 117#endif
118 118
119#ifdef CONFIG_SYS_HAS_CPU_R4300
120 case CPU_R4300:
121 case CPU_R4310:
122#endif
123
124#ifdef CONFIG_SYS_HAS_CPU_R4X00 119#ifdef CONFIG_SYS_HAS_CPU_R4X00
125 case CPU_R4000PC: 120 case CPU_R4000PC:
126 case CPU_R4000SC: 121 case CPU_R4000SC:
diff --git a/arch/mips/include/asm/cpu.h b/arch/mips/include/asm/cpu.h
index f843959f38e2..babc602862bd 100644
--- a/arch/mips/include/asm/cpu.h
+++ b/arch/mips/include/asm/cpu.h
@@ -293,7 +293,7 @@ enum cpu_type_enum {
293 /* 293 /*
294 * R4000 class processors 294 * R4000 class processors
295 */ 295 */
296 CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200, CPU_R4300, CPU_R4310, 296 CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200,
297 CPU_R4400PC, CPU_R4400SC, CPU_R4400MC, CPU_R4600, CPU_R4640, CPU_R4650, 297 CPU_R4400PC, CPU_R4400SC, CPU_R4400MC, CPU_R4600, CPU_R4640, CPU_R4650,
298 CPU_R4700, CPU_R5000, CPU_R5500, CPU_NEVADA, CPU_R5432, CPU_R10000, 298 CPU_R4700, CPU_R5000, CPU_R5500, CPU_NEVADA, CPU_R5432, CPU_R10000,
299 CPU_R12000, CPU_R14000, CPU_R16000, CPU_VR41XX, CPU_VR4111, CPU_VR4121, 299 CPU_R12000, CPU_R14000, CPU_R16000, CPU_VR41XX, CPU_VR4111, CPU_VR4121,
diff --git a/arch/mips/include/asm/module.h b/arch/mips/include/asm/module.h
index 6dc0b21b8acd..eaf3f37ed583 100644
--- a/arch/mips/include/asm/module.h
+++ b/arch/mips/include/asm/module.h
@@ -103,8 +103,6 @@ search_module_dbetables(unsigned long addr)
103#define MODULE_PROC_FAMILY "TX39XX " 103#define MODULE_PROC_FAMILY "TX39XX "
104#elif defined CONFIG_CPU_VR41XX 104#elif defined CONFIG_CPU_VR41XX
105#define MODULE_PROC_FAMILY "VR41XX " 105#define MODULE_PROC_FAMILY "VR41XX "
106#elif defined CONFIG_CPU_R4300
107#define MODULE_PROC_FAMILY "R4300 "
108#elif defined CONFIG_CPU_R4X00 106#elif defined CONFIG_CPU_R4X00
109#define MODULE_PROC_FAMILY "R4X00 " 107#define MODULE_PROC_FAMILY "R4X00 "
110#elif defined CONFIG_CPU_TX49XX 108#elif defined CONFIG_CPU_TX49XX
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index a9c82338396a..7e6b693bff0a 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -1384,15 +1384,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
1384 break; 1384 break;
1385 } 1385 }
1386 break; 1386 break;
1387 case PRID_IMP_R4300:
1388 c->cputype = CPU_R4300;
1389 __cpu_name[cpu] = "R4300";
1390 set_isa(c, MIPS_CPU_ISA_III);
1391 c->fpu_msk31 |= FPU_CSR_CONDX;
1392 c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
1393 MIPS_CPU_LLSC;
1394 c->tlbsize = 32;
1395 break;
1396 case PRID_IMP_R4600: 1387 case PRID_IMP_R4600:
1397 c->cputype = CPU_R4600; 1388 c->cputype = CPU_R4600;
1398 __cpu_name[cpu] = "R4600"; 1389 __cpu_name[cpu] = "R4600";
diff --git a/arch/mips/kernel/idle.c b/arch/mips/kernel/idle.c
index feaf9bbb82f2..eb2afc0b8db1 100644
--- a/arch/mips/kernel/idle.c
+++ b/arch/mips/kernel/idle.c
@@ -151,7 +151,6 @@ void __init check_wait(void)
151 cpu_wait = r39xx_wait; 151 cpu_wait = r39xx_wait;
152 break; 152 break;
153 case CPU_R4200: 153 case CPU_R4200:
154/* case CPU_R4300: */
155 case CPU_R4600: 154 case CPU_R4600:
156 case CPU_R4640: 155 case CPU_R4640:
157 case CPU_R4650: 156 case CPU_R4650:
diff --git a/arch/mips/mm/c-r4k.c b/arch/mips/mm/c-r4k.c
index 5166e38cd1c6..07d9aa4f7491 100644
--- a/arch/mips/mm/c-r4k.c
+++ b/arch/mips/mm/c-r4k.c
@@ -1134,7 +1134,6 @@ static void probe_pcache(void)
1134 case CPU_R4400PC: 1134 case CPU_R4400PC:
1135 case CPU_R4400SC: 1135 case CPU_R4400SC:
1136 case CPU_R4400MC: 1136 case CPU_R4400MC:
1137 case CPU_R4300:
1138 icache_size = 1 << (12 + ((config & CONF_IC) >> 9)); 1137 icache_size = 1 << (12 + ((config & CONF_IC) >> 9));
1139 c->icache.linesz = 16 << ((config & CONF_IB) >> 5); 1138 c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
1140 c->icache.ways = 1; 1139 c->icache.ways = 1;
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index efffeae7f789..35471a2a3528 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -545,7 +545,6 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l,
545 tlbw(p); 545 tlbw(p);
546 break; 546 break;
547 547
548 case CPU_R4300:
549 case CPU_5KC: 548 case CPU_5KC:
550 case CPU_TX49XX: 549 case CPU_TX49XX:
551 case CPU_PR4450: 550 case CPU_PR4450: