]> git.sur5r.net Git - u-boot/commitdiff
drivers/ddr/fsl: Disabling data init if ECC is not enabled
authorYork Sun <york.sun@nxp.com>
Thu, 26 May 2016 19:19:03 +0000 (12:19 -0700)
committerYork Sun <york.sun@nxp.com>
Fri, 3 Jun 2016 21:12:48 +0000 (14:12 -0700)
If ECC is not enabled, data init can be disabled to speed up booting.

Signed-off-by: York Sun <york.sun@nxp.com>
drivers/ddr/fsl/options.c

index d0075ff1fd2b3fb96e8fee513ceb5b276d529cb3..793d12aabb0a4a06b97386e1b690b2d99c5720d9 100644 (file)
@@ -886,7 +886,8 @@ unsigned int populate_memctl_options(const common_timing_params_t *common_dimm,
        } else
                popts->ecc_mode = 1;
 #endif
-       popts->ecc_init_using_memctl = 1; /* 0 = use DMA, 1 = use memctl */
+       /* 1 = use memory controler to init data */
+       popts->ecc_init_using_memctl = popts->ecc_mode ? 1 : 0;
 
        /*
         * Choose DQS config