diff --git a/src/device/dram/ddr4.c b/src/device/dram/ddr4.c index a66ee86fd1..53b3d25b07 100644 --- a/src/device/dram/ddr4.c +++ b/src/device/dram/ddr4.c @@ -250,6 +250,8 @@ int spd_decode_ddr4(struct dimm_attr_ddr4_st *dimm, spd_raw_data spd) /* calculate size */ dimm->size_mb = cap_per_die_mbit / 8 * bus_width / sdram_width * dimm->ranks; + dimm->ecc_extension = spd[SPD_PRIMARY_SDRAM_WIDTH] & SPD_ECC_8BIT; + /* make sure we have the manufacturing information block */ if (spd_bytes_used > 320) { dimm->manufacturer_id = (spd[351] << 8) | spd[350];