Skip to contentSkip to conversation

MIPS: Loongson: Probe Loongson 1C & Loongson 1

PATCH New 谢致邦 (XIE Zhibang) 1 participant 1 message Jan 4, 2017 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Loongson: Probe Loongson 1C & Loongson 1

Loongson 1 is a 32-bit MIPS CPU family with PRID 0x4220.

---
 arch/mips/kernel/cpu-probe.c | 6 ++++++
 1 file changed, 6 insertions(+)
arch/mips/kernel/cpu-probe.c +6 -0
index 06f690eb..62946f7b 100644
@@ -1503,7 +1503,13 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
 
 		switch (c->processor_id & PRID_REV_MASK) {
 		case PRID_REV_LOONGSON1:
+#if defined(CONFIG_CPU_LOONGSON1B)
 			__cpu_name[cpu] = "Loongson 1B";
+#elif defined(CONFIG_CPU_LOONGSON1C)
+			__cpu_name[cpu] = "Loongson 1C";
+#else
+			__cpu_name[cpu] = "Loongson 1";
+#endif
 			break;
 		}
 
Signature · 1 line
2.11.0