| To: | linux-mips@linux-mips.org |
|---|---|
| Subject: | [PATCH 10/16] make cpu_probe recognize Loongson2 |
| From: | tiansm@lemote.com |
| Date: | Sun, 15 Apr 2007 23:25:59 +0800 |
| Cc: | Fuxin Zhang <zhangfx@lemote.com> |
| In-reply-to: | <1176650766907-git-send-email-tiansm@lemote.com> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <11766507651736-git-send-email-tiansm@lemote.com> <11766507661317-git-send-email-tiansm@lemote.com> <11766507661726-git-send-email-tiansm@lemote.com> <11766507662638-git-send-email-tiansm@lemote.com> <11766507661133-git-send-email-tiansm@lemote.com> <11766507661526-git-send-email-tiansm@lemote.com> <11766507662650-git-send-email-tiansm@lemote.com> <11766507661684-git-send-email-tiansm@lemote.com> <117665076617-git-send-email-tiansm@lemote.com> <1176650766907-git-send-email-tiansm@lemote.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
From: Fuxin Zhang <zhangfx@lemote.com>
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..c9e3637 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.1
|
| Previous by Date: | [PATCH 12/16] cheat for support of more than 256MB memory, tiansm |
|---|---|
| Next by Date: | [PATCH 14/16] tlb handling support for Loongson2 processor, tiansm |
| Previous by Thread: | [PATCH 9/16] add serial port definition for lemote fulong, tiansm |
| Next by Thread: | [PATCH 11/16] add Loongson support to /proc/cpuinfo, tiansm |
| Indexes: | [Date] [Thread] [Top] [All Lists] |