[U-Boot] [PATCH] driver/ddr/fsl: Fix printing unspecified module info for DDR4

York Sun yorksun at freescale.com
Thu Jun 5 21:32:15 CEST 2014


The offset of module information is at 128, different from DDR3.

Signed-off-by: York Sun <yorksun at freescale.com>
---
 drivers/ddr/fsl/interactive.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ddr/fsl/interactive.c b/drivers/ddr/fsl/interactive.c
index cfe1e1f..0681933 100644
--- a/drivers/ddr/fsl/interactive.c
+++ b/drivers/ddr/fsl/interactive.c
@@ -1578,7 +1578,7 @@ void ddr4_spd_dump(const struct ddr4_spd_eeprom_s *spd)
 		printf("%-3d-%3d: ", 128, 255);
 
 		for (i = 128; i <= 255; i++)
-			printf("%02x", spd->mod_section.uc[i - 60]);
+			printf("%02x", spd->mod_section.uc[i - 128]);
 
 		break;
 	}
-- 
1.7.9.5



More information about the U-Boot mailing list