MIPS: Loongson: Add Loongson-3A R2.1 basic support
[sfrench/cifs-2.6.git] / drivers / platform / mips / cpu_hwmon.c
index f66521c7f8462b3ec438f1b07beae4f0efd487cc..42efcb850722cc72182432578383f0a8256f97f7 100644 (file)
@@ -25,9 +25,10 @@ int loongson3_cpu_temp(int cpu)
        case PRID_REV_LOONGSON3A_R1:
                reg = (reg >> 8) & 0xff;
                break;
-       case PRID_REV_LOONGSON3A_R2:
        case PRID_REV_LOONGSON3B_R1:
        case PRID_REV_LOONGSON3B_R2:
+       case PRID_REV_LOONGSON3A_R2_0:
+       case PRID_REV_LOONGSON3A_R2_1:
                reg = ((reg >> 8) & 0xff) - 100;
                break;
        case PRID_REV_LOONGSON3A_R3_0: