driver/ddr/fsl: Fix printing unspecified module info for DDR4
authorYork Sun <yorksun@freescale.com>
Thu, 5 Jun 2014 19:32:15 +0000 (12:32 -0700)
committerYork Sun <yorksun@freescale.com>
Thu, 5 Jun 2014 20:45:07 +0000 (13:45 -0700)
The offset of module information is at 128, different from DDR3.

Signed-off-by: York Sun <yorksun@freescale.com>
drivers/ddr/fsl/interactive.c

index c9f86302d776343f3fbfe5cbe56b11f15805d140..7fb418744e0a32c55355f18c20fd6dbabd8501dc 100644 (file)
@@ -1579,7 +1579,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;
        }