aboutsummaryrefslogtreecommitdiff
path: root/src/device/dram
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2014-12-07 13:56:48 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2014-12-07 15:18:41 +0100
commit0e675f72da2a00607da59cff9adee538fdecdc98 (patch)
treeed06858e122190ac36ba157b8484fcf3a714b3ea /src/device/dram
parent76c256134fb263c31ed40a839a3e7ec6368d3533 (diff)
ddr3: Plumber DIMM type to parsed structure.
Useful for distinguishing registered modules. Change-Id: Ibf4a0f2cde6d50a1c5c1da0f50e3022a2bc7ccd7 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: http://review.coreboot.org/7686 Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com> Tested-by: build bot (Jenkins)
Diffstat (limited to 'src/device/dram')
-rw-r--r--src/device/dram/ddr3.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/device/dram/ddr3.c b/src/device/dram/ddr3.c
index 00f2ba9009..86abea81a7 100644
--- a/src/device/dram/ddr3.c
+++ b/src/device/dram/ddr3.c
@@ -126,6 +126,7 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd)
return SPD_STATUS_INVALID;
}
dimm->dram_type = SPD_MEMORY_TYPE_SDRAM_DDR3;
+ dimm->dimm_type = spd[3] & 0xf;
crc = spd_ddr3_calc_crc(spd, sizeof(*spd));
/* Compare with the CRC in the SPD */