| To: | "linux-mips@linux-mips.org" <linux-mips@linux-mips.org> |
|---|---|
| Subject: | [PATCH 10/16] make cpu_probe recognize Loongson2 |
| From: | "zhangfx@lemote.com" <zhangfx@lemote.com> |
| Date: | Wed, 4 Apr 2007 14:38:19 +0000 |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
Signed-off-by: Fuxin Zhang <zhangfx@lemote.com>
---
arch/mips/kernel/cpu-probe.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/arch/mips/kernel/cpu-probe.c b/arch/mips/kernel/cpu-probe.c
index ab755ea..125c72c 100644
--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -464,6 +464,14 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c)
MIPS_CPU_LLSC;
c->tlbsize = 64;
break;
+ case PRID_IMP_LOONGSON2:
+ c->cputype = CPU_LOONGSON2;
+ c->isa_level = MIPS_CPU_ISA_III;
+ c->options = R4K_OPTS |
+ MIPS_CPU_FPU | MIPS_CPU_LLSC |
+ MIPS_CPU_32FPR;
+ c->tlbsize = 64;
+ break;
}
}
--
1.4.4.4
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 9/16] add serial port definition for lemote fulong, zhangfx@lemote.com |
|---|---|
| Next by Date: | [PATCH 4/16] TO_PHYS_MASK for loongson2, zhangfx@lemote.com |
| Previous by Thread: | [PATCH 9/16] add serial port definition for lemote fulong, zhangfx@lemote.com |
| Next by Thread: | [PATCH 4/16] TO_PHYS_MASK for loongson2, zhangfx@lemote.com |
| Indexes: | [Date] [Thread] [Top] [All Lists] |