device/smbus_host: Declare common early SMBus prototypes
Change-Id: I1157cf391178a27db437d1d08ef5cb9333e976d0 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38233 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
This commit is contained in:
committed by
Patrick Georgi
parent
fc57d6c4c2
commit
1a1b04ea51
@ -89,10 +89,10 @@ void read_spd(spd_raw_data * spd, u8 addr, bool id_only)
|
||||
int j;
|
||||
if (id_only) {
|
||||
for (j = 117; j < 128; j++)
|
||||
(*spd)[j] = do_smbus_read_byte(SMBUS_IO_BASE, addr, j);
|
||||
(*spd)[j] = smbus_read_byte(addr, j);
|
||||
} else {
|
||||
for (j = 0; j < 256; j++)
|
||||
(*spd)[j] = do_smbus_read_byte(SMBUS_IO_BASE, addr, j);
|
||||
(*spd)[j] = smbus_read_byte(addr, j);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user