Fix stupid thinko in the Winbond detection code which prevented some
[coreboot.git] / util / superiotool / winbond.c
index 44fac47f6568423416b185c6e80bc21a75bde133..b55088c5f410c3c824174fddf9f3294880bf6f91 100644 (file)
@@ -291,7 +291,7 @@ void probe_idregs_winbond_helper(const char *init, uint16_t port)
 
        if (devid == 0x52)
                id = devid;                              /* ID only */
-       else if ((devid == 0x97) && ((rev & 0xf0) == 7))
+       else if ((devid == 0x97) && ((rev & 0xf0) == 0x70))
                id = (devid << 8) | rev;                 /* ID and rev */
        else
                id = (devid << 4) | ((rev & 0xf0) >> 4); /* ID and rev[3..0] */