From 7dc4b84d8c61f233cb33f2adb7962f2f8a95badb Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Fri, 18 Nov 2016 18:41:17 +0200 Subject: device/dram/ddr3: Calculate CRC16 of SPD unique identifier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Specification allows for the unique identifier bytes 117..125 to be excluded of CRC calculation. For such SPD, the CRC would not identify replacement between two identical DIMM parts, while memory training needs to be redone. Change-Id: I8e830018b15c344d9f72f921ab84893f633f7654 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/17486 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph Reviewed-by: Aaron Durbin --- src/include/device/dram/ddr3.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h index 7388012f86..905aa8407a 100644 --- a/src/include/device/dram/ddr3.h +++ b/src/include/device/dram/ddr3.h @@ -199,6 +199,7 @@ enum ddr3_xmp_profile { typedef u8 spd_raw_data[256]; u16 spd_ddr3_calc_crc(u8 *spd, int len); +u16 spd_ddr3_calc_unique_crc(u8 *spd, int len); int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd_data); int dimm_is_registered(enum spd_dimm_type type); void dram_print_spd_ddr3(const dimm_attr * dimm); -- cgit v1.2.3