aboutsummaryrefslogtreecommitdiff
path: root/src/lib/spd_bin.c
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@chromium.org>2017-06-08 13:28:59 -0700
committerAaron Durbin <adurbin@chromium.org>2017-06-09 23:57:38 +0200
commita26f9da6ba42b4fa45fd0d4d7e8e3cd5fb574903 (patch)
tree84f950a8650c443b4b829e2f5b1bd88228d71430 /src/lib/spd_bin.c
parent66fe0c43be7d886bec8c8aef55c406a53e65642e (diff)
lib/spd_bin: Print out correct SMBus SPD address in dump_spd_info
With change dd82edc388 (lib/spd_bin: make SMBus SPD addresses an input), SMBus SPD addresses are accepted from the mainboard and not calculated within the spd_bin library routines. Use the addr_map values to print correct address in dump_spd_info. Change-Id: Iff37e382aeac9704f74bafc2ecb27f14c478723f Signed-off-by: Furquan Shaikh <furquan@chromium.org> Reviewed-on: https://review.coreboot.org/20118 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Shelley Chen <shchen@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/spd_bin.c')
-rw-r--r--src/lib/spd_bin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 3e26004a63..a9f6a36045 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -29,7 +29,7 @@ void dump_spd_info(struct spd_block *blk)
for (i = 0; i < CONFIG_DIMM_MAX; i++)
if (blk->spd_array[i] != NULL && blk->spd_array[i][0] != 0) {
- printk(BIOS_DEBUG, "SPD @ 0x%02X\n", 0xA0|(i << 1));
+ printk(BIOS_DEBUG, "SPD @ 0x%02X\n", blk->addr_map[i]);
print_spd_info(blk->spd_array[i]);
}
}