summaryrefslogtreecommitdiff
path: root/src/device/dram
diff options
context:
space:
mode:
authorPatrick Rudolph <siro@das-labor.org>2018-08-17 15:24:56 +0200
committerFelix Held <felix-coreboot@felixheld.de>2018-08-20 09:51:22 +0000
commit15e6469ef9ef76678aae0a5244bda1d9cbb3ee72 (patch)
treef7266b0eef1ef1cffb14dd14148f51d335d9477d /src/device/dram
parenteac84ca35c9b8052d198a7ab3593ae8f5bbb1aa8 (diff)
downloadcoreboot-15e6469ef9ef76678aae0a5244bda1d9cbb3ee72.tar.xz
nb/intel/sandybridge: Fill in DIMM serial number
Fill in SMBIOS type 17 DIMM serial number, read from SPD. Fixes FWTS SMBIOS type 17 test. Change-Id: Id6e818bfdf4af0fd34af56dc23df052a3f8c348d Signed-off-by: Patrick Rudolph <siro@das-labor.org> Reviewed-on: https://review.coreboot.org/28191 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/device/dram')
-rw-r--r--src/device/dram/ddr3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index a084ca06e0..7655b32012 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -398,6 +398,8 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
memcpy(dimm->part_number, &spd[128], 16);
printram(" Part number : %s\n", dimm->part_number);
+ memcpy(dimm->serial, &spd[SPD_DIMM_SERIAL_NUM], SPD_DIMM_SERIAL_LEN);
+
return ret;
}