From b5d4dd132cbf241b5721897053f802807578c168 Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Mon, 25 Sep 2017 12:47:41 +0200 Subject: [PATCH] device/dram/ddr2.c: Store the checksum in the decoded SPD struct Change-Id: I53f4a3e4030ea19e10c0fe11a99a3480644f5fae Signed-off-by: Arthur Heymans Reviewed-on: https://review.coreboot.org/21676 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Patrick Rudolph --- src/device/dram/ddr2.c | 1 + src/include/device/dram/ddr2.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c index e06e3423a8..0117b93d06 100644 --- a/src/device/dram/ddr2.c +++ b/src/device/dram/ddr2.c @@ -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) { diff --git a/src/include/device/dram/ddr2.h b/src/include/device/dram/ddr2.h index 288c10298a..7322b122a7 100644 --- a/src/include/device/dram/ddr2.h +++ b/src/include/device/dram/ddr2.h @@ -186,6 +186,7 @@ struct dimm_attr_st { u32 tPLL; u32 tRR; + u8 checksum; /* Manufacturer ID */ u32 manufacturer_id; /* ASCII part number - NULL terminated */