aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2006-05-02 09:08:46 -0400
committerRalf Baechle <ralf@linux-mips.org>2006-05-31 19:28:30 -0400
commitc620953c32d301c2a7bc73f9f780301e110b7d7c (patch)
tree68be959e79ba34ca4704f1e2ad421eb404b34aa2
parent98a41de99a4e4febe99b22c3a28d434caeb3165c (diff)
[MIPS] Fix detection and handling of the 74K processor.
Nothing exciting; Linux just didn't know it yet so this is most adding a value to a case statement. Signed-off-by: Chris Dearman <chris@mips.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/kernel/cpu-probe.c4
-rw-r--r--arch/mips/kernel/proc.c1
-rw-r--r--arch/mips/mm/tlbex.c1
-rw-r--r--arch/mips/oprofile/common.c1
-rw-r--r--arch/mips/oprofile/op_model_mipsxx.c4
-rw-r--r--include/asm-mips/cpu.h4
6 files changed, 14 insertions, 1 deletions
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index 58b3b14873cb..17184921b71d 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -121,6 +121,7 @@ static inline void check_wait(void)
121 case CPU_24K: 121 case CPU_24K:
122 case CPU_25KF: 122 case CPU_25KF:
123 case CPU_34K: 123 case CPU_34K:
124 case CPU_74K:
124 case CPU_PR4450: 125 case CPU_PR4450:
125 cpu_wait = r4k_wait; 126 cpu_wait = r4k_wait;
126 printk(" available.\n"); 127 printk(" available.\n");
@@ -593,6 +594,9 @@ static inline void cpu_probe_mips(struct cpuinfo_mips *c)
593 case PRID_IMP_34K: 594 case PRID_IMP_34K:
594 c->cputype = CPU_34K; 595 c->cputype = CPU_34K;
595 break; 596 break;
597 case PRID_IMP_74K:
598 c->cputype = CPU_74K;
599 break;
596 } 600 }
597} 601}
598 602
diff --git a/arch/mips/kernel/proc.c b/arch/mips/kernel/proc.c
index 84ab959f924a..197952c44467 100644
--- a/arch/mips/kernel/proc.c
+++ b/arch/mips/kernel/proc.c
@@ -74,6 +74,7 @@ static const char *cpu_name[] = {
74 [CPU_24K] = "MIPS 24K", 74 [CPU_24K] = "MIPS 24K",
75 [CPU_25KF] = "MIPS 25Kf", 75 [CPU_25KF] = "MIPS 25Kf",
76 [CPU_34K] = "MIPS 34K", 76 [CPU_34K] = "MIPS 34K",
77 [CPU_74K] = "MIPS 74K",
77 [CPU_VR4111] = "NEC VR4111", 78 [CPU_VR4111] = "NEC VR4111",
78 [CPU_VR4121] = "NEC VR4121", 79 [CPU_VR4121] = "NEC VR4121",
79 [CPU_VR4122] = "NEC VR4122", 80 [CPU_VR4122] = "NEC VR4122",
diff --git a/arch/mips/mm/tlbex.c b/arch/mips/mm/tlbex.c
index 053dbacac56b..4ff07e2efcb3 100644
--- a/arch/mips/mm/tlbex.c
+++ b/arch/mips/mm/tlbex.c
@@ -906,6 +906,7 @@ static __init void build_tlb_write_entry(u32 **p, struct label **l,
906 case CPU_4KEC: 906 case CPU_4KEC:
907 case CPU_24K: 907 case CPU_24K:
908 case CPU_34K: 908 case CPU_34K:
909 case CPU_74K:
909 i_ehb(p); 910 i_ehb(p);
910 tlbw(p); 911 tlbw(p);
911 break; 912 break;
diff --git a/arch/mips/oprofile/common.c b/arch/mips/oprofile/common.c
index f2b4862aaae5..91b799d2cd88 100644
--- a/arch/mips/oprofile/common.c
+++ b/arch/mips/oprofile/common.c
@@ -80,6 +80,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
80 case CPU_24K: 80 case CPU_24K:
81 case CPU_25KF: 81 case CPU_25KF:
82 case CPU_34K: 82 case CPU_34K:
83 case CPU_74K:
83 case CPU_SB1: 84 case CPU_SB1:
84 case CPU_SB1A: 85 case CPU_SB1A:
85 lmodel = &op_model_mipsxx; 86 lmodel = &op_model_mipsxx;
diff --git a/arch/mips/oprofile/op_model_mipsxx.c b/arch/mips/oprofile/op_model_mipsxx.c
index 95d488ca0754..e7ce92391303 100644
--- a/arch/mips/oprofile/op_model_mipsxx.c
+++ b/arch/mips/oprofile/op_model_mipsxx.c
@@ -205,6 +205,10 @@ static int __init mipsxx_init(void)
205 case CPU_34K: 205 case CPU_34K:
206 op_model_mipsxx.cpu_type = "mips/34K"; 206 op_model_mipsxx.cpu_type = "mips/34K";
207 break; 207 break;
208
209 case CPU_74K:
210 op_model_mipsxx.cpu_type = "mips/74K";
211 break;
208#endif 212#endif
209 213
210 case CPU_5KC: 214 case CPU_5KC:
diff --git a/include/asm-mips/cpu.h b/include/asm-mips/cpu.h
index 818b9a97e214..0117138149bc 100644
--- a/include/asm-mips/cpu.h
+++ b/include/asm-mips/cpu.h
@@ -87,6 +87,7 @@
87#define PRID_IMP_24K 0x9300 87#define PRID_IMP_24K 0x9300
88#define PRID_IMP_34K 0x9500 88#define PRID_IMP_34K 0x9500
89#define PRID_IMP_24KE 0x9600 89#define PRID_IMP_24KE 0x9600
90#define PRID_IMP_74K 0x9700
90 91
91/* 92/*
92 * These are the PRID's for when 23:16 == PRID_COMP_SIBYTE 93 * These are the PRID's for when 23:16 == PRID_COMP_SIBYTE
@@ -196,7 +197,8 @@
196#define CPU_34K 60 197#define CPU_34K 60
197#define CPU_PR4450 61 198#define CPU_PR4450 61
198#define CPU_SB1A 62 199#define CPU_SB1A 62
199#define CPU_LAST 62 200#define CPU_74K 63
201#define CPU_LAST 63
200 202
201/* 203/*
202 * ISA Level encodings 204 * ISA Level encodings