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:
Arthur Heymans 2017-09-25 12:47:41 +02:00 committed by Martin Roth
parent e07e39098a
commit b5d4dd132c
2 changed files with 2 additions and 0 deletions

View File

@ -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;
return SPD_STATUS_CRC_ERROR;
}
dimm->checksum = spd[63];
reg8 = spd[62];
if ((reg8 & 0xf0) != 0x10) {

View File

@ -186,6 +186,7 @@ struct dimm_attr_st {
u32 tPLL;
u32 tRR;
u8 checksum;
/* Manufacturer ID */
u32 manufacturer_id;
/* ASCII part number - NULL terminated */