summaryrefslogtreecommitdiff
path: root/src/lib/spd_bin.c
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-01 18:11:24 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2020-01-03 04:30:30 +0000
commit6af55e583d5f65c82dbe40c505846a099e6341a9 (patch)
treec7c7c8e6a7465633b5ec273fb580ff962e0a3baf /src/lib/spd_bin.c
parent22d2604c46a0bb66a4912bad58500b8118d6547e (diff)
device/early_smbus: Drop unused function parameter
Change-Id: I2d62c470c5389af3b10e47ca5e721b78ff16bc79 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/38051 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/lib/spd_bin.c')
-rw-r--r--src/lib/spd_bin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 71fe036ef7..b02220022c 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -227,15 +227,15 @@ static void smbus_read_spd(u8 *spd, u8 addr)
for (i = 0; i < SPD_PAGE_LEN; i += step) {
if (CONFIG(SPD_READ_BY_WORD))
((u16*)spd)[i / sizeof(uint16_t)] =
- smbus_read_word(0, addr, i);
+ smbus_read_word(addr, i);
else
- spd[i] = smbus_read_byte(0, addr, i);
+ spd[i] = smbus_read_byte(addr, i);
}
}
static void get_spd(u8 *spd, u8 addr)
{
- if (smbus_read_byte(0, addr, 0) == 0xff) {
+ if (smbus_read_byte(addr, 0) == 0xff) {
printk(BIOS_INFO, "No memory dimm at address %02X\n",
addr << 1);
/* Make sure spd is zeroed if dimm doesn't exist. */
@@ -248,10 +248,10 @@ static void get_spd(u8 *spd, u8 addr)
if (spd[SPD_DRAM_TYPE] == SPD_DRAM_DDR4 &&
CONFIG_DIMM_SPD_SIZE > SPD_PAGE_LEN) {
/* Switch to page 1 */
- smbus_write_byte(0, SPD_PAGE_1, 0, 0);
+ smbus_write_byte(SPD_PAGE_1, 0, 0);
smbus_read_spd(spd + SPD_PAGE_LEN, addr);
/* Restore to page 0 */
- smbus_write_byte(0, SPD_PAGE_0, 0, 0);
+ smbus_write_byte(SPD_PAGE_0, 0, 0);
}
}