src/device/dram/ddr2: Fix supported burst lengths

Supported burst lengths are described at byte 16

Change-Id: I502710bdac7eec715b29febefd64be88e5a1b80a
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/25098
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Elyes HAOUAS 2018-03-11 18:34:53 +01:00 committed by Patrick Georgi
parent 6575306663
commit ec19354b9a
1 changed files with 2 additions and 2 deletions

View File

@ -572,11 +572,11 @@ int spd_decode_ddr2(struct dimm_attr_ddr2_st *dimm, u8 spd[SPD_SIZE_MAX_DDR2])
/* SDRAM Supported Burst length */ /* SDRAM Supported Burst length */
printram(" Burst length :"); printram(" Burst length :");
if (spd[16] & 0x06) { if (spd[16] & 0x08) {
dimm->flags.bl8 = 1; dimm->flags.bl8 = 1;
printram(" BL8"); printram(" BL8");
} }
if (spd[22] & 0x04) { if (spd[16] & 0x04) {
dimm->flags.bl4 = 1; dimm->flags.bl4 = 1;
printram(" BL4"); printram(" BL4");
} }