diff mbox

[U-Boot] drivers/ddr/fsl: Disabling data init if ECC is not enabled

Message ID 1464290343-1961-1-git-send-email-york.sun@nxp.com
State Accepted
Commit b06f6f2f0347b6010943fa2ca2f26d1786fdba78
Delegated to: York Sun
Headers show

Commit Message

York Sun May 26, 2016, 7:19 p.m. UTC
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 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

York Sun June 4, 2016, 5:06 a.m. UTC | #1
On 05/26/2016 12:19 PM, york sun wrote:
> 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 |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 

Applied to fsl-qoriq master branch. Awaiting upstream.

York
diff mbox

Patch

diff --git a/drivers/ddr/fsl/options.c b/drivers/ddr/fsl/options.c
index d0075ff..793d12a 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