]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
powerpc/mpc8xxx DDR: Fall back to raw timing for first controller only
authorYork Sun <yorksun@freescale.com>
Fri, 17 Aug 2012 08:22:42 +0000 (08:22 +0000)
committerAndy Fleming <afleming@freescale.com>
Thu, 23 Aug 2012 17:16:56 +0000 (12:16 -0500)
Only the first DIMM of first controller should fall back to raw timing
parameters if SPD is missing or corrupted.

Signed-off-by: York Sun <yorksun@freescale.com>
Signed-off-by: Andy Fleming <afleming@freescale.com>
arch/powerpc/cpu/mpc8xxx/ddr/main.c

index 4fd4f8fc33067ed8152498738739257866fd02b0..b47268c20eacc22e31fe1314e3c18999b24ab9e4 100644 (file)
@@ -383,7 +383,7 @@ fsl_ddr_compute(fsl_ddr_info_t *pinfo, unsigned int start_step,
 
                                retval = compute_dimm_parameters(spd, pdimm, i);
 #ifdef CONFIG_SYS_DDR_RAW_TIMING
-                               if (retval != 0) {
+                               if (!i && !j && retval) {
                                        printf("SPD error on controller %d! "
                                        "Trying fallback to raw timing "
                                        "calculation\n", i);