From ec19354b9aee8c12a8e9728c33b6b47230359960 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Sun, 11 Mar 2018 18:34:53 +0100 Subject: src/device/dram/ddr2: Fix supported burst lengths Supported burst lengths are described at byte 16 Change-Id: I502710bdac7eec715b29febefd64be88e5a1b80a Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/25098 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- src/device/dram/ddr2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/device/dram/ddr2.c') diff --git a/src/device/dram/ddr2.c b/src/device/dram/ddr2.c index eefb569b25..921679c584 100644 --- a/src/device/dram/ddr2.c +++ b/src/device/dram/ddr2.c @@ -572,11 +572,11 @@ int spd_decode_ddr2(struct dimm_attr_ddr2_st *dimm, u8 spd[SPD_SIZE_MAX_DDR2]) /* SDRAM Supported Burst length */ printram(" Burst length :"); - if (spd[16] & 0x06) { + if (spd[16] & 0x08) { dimm->flags.bl8 = 1; printram(" BL8"); } - if (spd[22] & 0x04) { + if (spd[16] & 0x04) { dimm->flags.bl4 = 1; printram(" BL4"); } -- cgit v1.2.3