diff --git a/src/include/spd_bin.h b/src/include/spd_bin.h index 6552d7a66bb..4714b92d0b7 100644 --- a/src/include/spd_bin.h +++ b/src/include/spd_bin.h @@ -8,6 +8,7 @@ #define SPD_PAGE_LEN 256 #define SPD_PAGE_LEN_DDR4 512 +#define SPD_LEN_DDR5 1024 #define SPD_PAGE_0 (0x6C >> 1) #define SPD_PAGE_1 (0x6E >> 1) #define SPD_DRAM_TYPE 2 diff --git a/src/lib/spd_cache.c b/src/lib/spd_cache.c index adb5ade06e8..1398da6fb78 100644 --- a/src/lib/spd_cache.c +++ b/src/lib/spd_cache.c @@ -210,7 +210,7 @@ enum cb_err spd_fill_from_cache(uint8_t *spd_cache, struct spd_block *blk) dram_type = *(spd_cache + SC_SPD_OFFSET(i) + SPD_DRAM_TYPE); if (dram_type == SPD_DRAM_DDR5) - blk->len = CONFIG_DIMM_SPD_SIZE; + blk->len = SPD_LEN_DDR5; else if (dram_type == SPD_DRAM_DDR4) blk->len = SPD_PAGE_LEN_DDR4; else diff --git a/src/soc/intel/common/block/smbus/smbuslib.c b/src/soc/intel/common/block/smbus/smbuslib.c index 750a3669ae7..0040c148976 100644 --- a/src/soc/intel/common/block/smbus/smbuslib.c +++ b/src/soc/intel/common/block/smbus/smbuslib.c @@ -15,7 +15,7 @@ static void update_spd_len(struct spd_block *blk) /* If spd used is DDR5, then its length is 1024 byte. */ if (j == SPD_DRAM_DDR5) - blk->len = CONFIG_DIMM_SPD_SIZE; + blk->len = SPD_LEN_DDR5; /* If spd used is DDR4, then its length is 512 byte. */ else if (j == SPD_DRAM_DDR4) blk->len = SPD_PAGE_LEN_DDR4;