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>
This commit is contained in:
parent
1a71163675
commit
f0664cfc7b
|
@ -16,7 +16,6 @@
|
||||||
#ifndef SPD_BIN_H
|
#ifndef SPD_BIN_H
|
||||||
#define SPD_BIN_H
|
#define SPD_BIN_H
|
||||||
|
|
||||||
#include <arch/early_variables.h>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <commonlib/region.h>
|
#include <commonlib/region.h>
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
#include <device/early_smbus.h>
|
#include <device/early_smbus.h>
|
||||||
#include <device/dram/ddr3.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)
|
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)
|
void get_spd_smbus(struct spd_block *blk)
|
||||||
{
|
{
|
||||||
u8 i;
|
u8 i;
|
||||||
unsigned char *spd_data_ptr = car_get_var_ptr(&spd_data);
|
|
||||||
|
|
||||||
for (i = 0 ; i < CONFIG_DIMM_MAX; i++) {
|
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->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);
|
update_spd_len(blk);
|
||||||
|
|
Loading…
Reference in New Issue