diff options
author | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2013-12-17 13:08:01 -0500 |
---|---|---|
committer | Alexandru Gagniuc <mr.nuke.me@gmail.com> | 2013-12-17 19:59:22 +0100 |
commit | 4c37e58ea5afcda9779ac5ea410e84c168461f21 (patch) | |
tree | faf308cd732a01fa7c4b9de6f40e1ec340ef7455 /src/include/device | |
parent | d7813436b325551604b13f8cefc30a6f92be4534 (diff) | |
download | coreboot-4c37e58ea5afcda9779ac5ea410e84c168461f21.tar.xz |
device/dram/ddr3: Move CRC calculation in a separate function
Calculating the CRC of a SPD may be useful by itself, so split that
part of the code in a separate function.
Change-Id: I6c20d3db380551865126fd890e89de6b06359207
Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
Reviewed-on: http://review.coreboot.org/4537
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/include/device')
-rw-r--r-- | src/include/device/dram/ddr3.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h index 53a42ee6b2..b19c51c15b 100644 --- a/src/include/device/dram/ddr3.h +++ b/src/include/device/dram/ddr3.h @@ -170,6 +170,7 @@ enum spd_status { typedef u8 spd_raw_data[256]; +u16 spd_ddr3_calc_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); |