device/dram/ddr2.c: Store the checksum in the decoded SPD struct
Change-Id: I53f4a3e4030ea19e10c0fe11a99a3480644f5fae Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/21676 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
parent
e07e39098a
commit
b5d4dd132c
|
@ -322,6 +322,7 @@ int spd_decode_ddr2(struct dimm_attr_st *dimm, u8 spd[SPD_SIZE_MAX_DDR2])
|
||||||
dimm->dram_type = SPD_MEMORY_TYPE_UNDEFINED;
|
dimm->dram_type = SPD_MEMORY_TYPE_UNDEFINED;
|
||||||
return SPD_STATUS_CRC_ERROR;
|
return SPD_STATUS_CRC_ERROR;
|
||||||
}
|
}
|
||||||
|
dimm->checksum = spd[63];
|
||||||
|
|
||||||
reg8 = spd[62];
|
reg8 = spd[62];
|
||||||
if ((reg8 & 0xf0) != 0x10) {
|
if ((reg8 & 0xf0) != 0x10) {
|
||||||
|
|
|
@ -186,6 +186,7 @@ struct dimm_attr_st {
|
||||||
u32 tPLL;
|
u32 tPLL;
|
||||||
u32 tRR;
|
u32 tRR;
|
||||||
|
|
||||||
|
u8 checksum;
|
||||||
/* Manufacturer ID */
|
/* Manufacturer ID */
|
||||||
u32 manufacturer_id;
|
u32 manufacturer_id;
|
||||||
/* ASCII part number - NULL terminated */
|
/* ASCII part number - NULL terminated */
|
||||||
|
|
Loading…
Reference in New Issue