From dd82edc388fe070fe35f862cf6ceeb86a62e1259 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 25 May 2017 09:36:06 -0500 Subject: lib/spd_bin: make SMBus SPD addresses an input Instead of assuming the mapping of dimm number to SPD SMBus address, allow the mainboard to provide its own mapping. That way, global resources of empty SPD contents aren't wasted in order to address a dimm on a mainboard that doesn't meet the current assumption. Change-Id: Id0e79231dc2303373badaae003038a1ac06a5635 Signed-off-by: Aaron Durbin Reviewed-on: https://review.coreboot.org/19915 Tested-by: build bot (Jenkins) Reviewed-by: Furquan Shaikh Reviewed-by: Naresh Solanki --- src/lib/spd_bin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib') diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c index 5c4f09f858..3e26004a63 100644 --- a/src/lib/spd_bin.c +++ b/src/lib/spd_bin.c @@ -159,7 +159,7 @@ void get_spd_smbus(struct spd_block *blk) for (i = 0 ; i < CONFIG_DIMM_MAX; i++) { get_spd(spd_data_ptr + i * CONFIG_DIMM_SPD_SIZE, - 0xA0 + (i << 1)); + blk->addr_map[i]); blk->spd_array[i] = spd_data_ptr + i * CONFIG_DIMM_SPD_SIZE; } -- cgit v1.2.3