]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ppc/syslib/ibm440gx_common.c
[PATCH] ppc64: SMU driver update & i2c support
[linux-2.6-omap-h63xx.git] / arch / ppc / syslib / ibm440gx_common.c
index d4776af6a3ca210a49b519d98bd28ec72e071181..0bb919859b8be862b8cee9dcbba2994fd1caba53 100644 (file)
@@ -236,9 +236,10 @@ void __init ibm440gx_l2c_setup(struct ibm44x_clocks* p)
        /* Disable L2C on rev.A, rev.B and 800MHz version of rev.C,
           enable it on all other revisions
         */
-       u32 pvr = mfspr(SPRN_PVR);
-       if (pvr == PVR_440GX_RA || pvr == PVR_440GX_RB ||
-           (pvr == PVR_440GX_RC && p->cpu > 667000000))
+       if (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. A") == 0 ||
+                       strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. B") == 0
+                       || (strcmp(cur_cpu_spec[0]->cpu_name, "440GX Rev. C")
+                               == 0 && p->cpu > 667000000))
                ibm440gx_l2c_disable();
        else
                ibm440gx_l2c_enable();