From: York Sun Date: Thu, 26 May 2016 19:19:03 +0000 (-0700) Subject: drivers/ddr/fsl: Disabling data init if ECC is not enabled X-Git-Tag: v2016.07-rc1~26^2~13 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b06f6f2f0347b6010943fa2ca2f26d1786fdba78;p=u-boot drivers/ddr/fsl: Disabling data init if ECC is not enabled If ECC is not enabled, data init can be disabled to speed up booting. Signed-off-by: York Sun --- diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c index d0075ff1fd..793d12aabb 100644 --- a/drivers/ddr/fsl/options.c +++ b/drivers/ddr/fsl/options.c @@ -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