Some more DIMM0 related cleanups and deduplication.
[coreboot.git] / src / southbridge / via / vt8235 / vt8235_early_smbus.c
index 7b9d55dced65e182927cf531161871cc5c919160..d091099fdbd0e82747014d88f10b7a61a6db3558 100644 (file)
@@ -174,7 +174,7 @@ static unsigned char smbus_read_byte(unsigned char devAdr,
        outb(bIndex, SMBUS_IO_BASE+3);
 
        /* set slave address */
-       outb(devAdr | 0x01, SMBUS_IO_BASE+4);
+       outb((devAdr << 1) | 0x01, SMBUS_IO_BASE+4);
 
        /* start */
        outb(0x48, SMBUS_IO_BASE+2);