summaryrefslogtreecommitdiffstats
path: root/src/lib/spd_bin.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-11-20 19:55:27 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-29 09:09:19 +0000
commitf0664cfc7b305aed1726dc30d0940d5d7339e2c2 (patch)
tree9c80306153e04e27563f03693e4d20c2e1b96847 /src/lib/spd_bin.c
parent1a71163675b7f0f06dcb6a95b2f411ac5cac3381 (diff)
downloadcoreboot-f0664cfc7b305aed1726dc30d0940d5d7339e2c2.tar.gz
coreboot-f0664cfc7b305aed1726dc30d0940d5d7339e2c2.tar.bz2
coreboot-f0664cfc7b305aed1726dc30d0940d5d7339e2c2.zip
lib/spd_bin.c: Drop CAR_GLOBAL_MIGRATION support
Change-Id: I1c307e1d5532929de6d876ce9215515ab1cf4652 Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37031 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/lib/spd_bin.c')
-rw-r--r--src/lib/spd_bin.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 62e600b2c83c..71fe036ef76f 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -20,7 +20,7 @@
#include <device/early_smbus.h>
#include <device/dram/ddr3.h>
-static u8 spd_data[CONFIG_DIMM_MAX * CONFIG_DIMM_SPD_SIZE] CAR_GLOBAL;
+static u8 spd_data[CONFIG_DIMM_MAX * CONFIG_DIMM_SPD_SIZE];
void dump_spd_info(struct spd_block *blk)
{
@@ -258,12 +258,10 @@ static void get_spd(u8 *spd, u8 addr)
void get_spd_smbus(struct spd_block *blk)
{
u8 i;
- unsigned char *spd_data_ptr = car_get_var_ptr(&spd_data);
-
for (i = 0 ; i < CONFIG_DIMM_MAX; i++) {
- get_spd(spd_data_ptr + i * CONFIG_DIMM_SPD_SIZE,
+ get_spd(&spd_data[i * CONFIG_DIMM_SPD_SIZE],
blk->addr_map[i]);
- blk->spd_array[i] = spd_data_ptr + i * CONFIG_DIMM_SPD_SIZE;
+ blk->spd_array[i] = &spd_data[i * CONFIG_DIMM_SPD_SIZE];
}
update_spd_len(blk);