diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-05 20:00:18 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2020-01-09 18:47:28 +0000 |
commit | bd65985a637ef75cf68c53b6c32e676b43b2aa2c (patch) | |
tree | 09b9112079889a9eed68dac5ac097d58707308ed /src/northbridge/intel/x4x | |
parent | 65f5de2bc44baaa88c7ce1c7525f0a0b9f6bc6e8 (diff) |
nb/intel/{i945,x4x,pineview}: Remove wrapper spd_read_byte()
Change-Id: Ic9554ad2813ee70d0da16857d534aab5e17d808f
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/38213
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'src/northbridge/intel/x4x')
-rw-r--r-- | src/northbridge/intel/x4x/raminit.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/northbridge/intel/x4x/raminit.c b/src/northbridge/intel/x4x/raminit.c index 8013af9d51..df2d31ede9 100644 --- a/src/northbridge/intel/x4x/raminit.c +++ b/src/northbridge/intel/x4x/raminit.c @@ -39,11 +39,6 @@ #define MRC_CACHE_VERSION 0 -static inline int spd_read_byte(unsigned int device, unsigned int address) -{ - return smbus_read_byte(device, address); -} - static u16 ddr2_get_crc(u8 device, u8 len) { u8 raw_spd[128] = {}; @@ -514,7 +509,7 @@ static void decode_spd_select_timings(struct sysinfo *s) s->dimms[i].card_type = RAW_CARD_UNPOPULATED; continue; } - switch (spd_read_byte(s->spd_map[i], SPD_MEMORY_TYPE)) { + switch (smbus_read_byte(s->spd_map[i], SPD_MEMORY_TYPE)) { case DDR2SPD: dram_type_mask &= 1 << DDR2; s->spd_type = DDR2; @@ -535,7 +530,7 @@ static void decode_spd_select_timings(struct sysinfo *s) printk(BIOS_DEBUG, "i2c block operation failed," " trying smbus byte operation.\n"); for (j = 0; j < 128; j++) - raw_spd[j] = spd_read_byte(device, j); + raw_spd[j] = smbus_read_byte(device, j); } if (s->spd_type == DDR2){ |