device/dram/ddr4.c: fill missing ECC info from SPD
Change-Id: I80fccfa6d108b68d6f33a3d47766205b423a41ff Signed-off-by: Krystian Hebel <krystian.hebel@3mdeb.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/67058 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com>
This commit is contained in:
parent
af4bad167d
commit
ed9f562ca8
|
@ -250,6 +250,8 @@ int spd_decode_ddr4(struct dimm_attr_ddr4_st *dimm, spd_raw_data spd)
|
||||||
/* calculate size */
|
/* calculate size */
|
||||||
dimm->size_mb = cap_per_die_mbit / 8 * bus_width / sdram_width * dimm->ranks;
|
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 */
|
/* make sure we have the manufacturing information block */
|
||||||
if (spd_bytes_used > 320) {
|
if (spd_bytes_used > 320) {
|
||||||
dimm->manufacturer_id = (spd[351] << 8) | spd[350];
|
dimm->manufacturer_id = (spd[351] << 8) | spd[350];
|
||||||
|
|
Loading…
Reference in New Issue