public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/ddr/fsl: Disabling data init if ECC is not enabled
@ 2016-05-26 19:19 York Sun
  2016-06-04  5:06 ` York Sun
  0 siblings, 1 reply; 2+ messages in thread
From: York Sun @ 2016-05-26 19:19 UTC (permalink / raw)
  To: u-boot

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(-)

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
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [PATCH] drivers/ddr/fsl: Disabling data init if ECC is not enabled
  2016-05-26 19:19 [U-Boot] [PATCH] drivers/ddr/fsl: Disabling data init if ECC is not enabled York Sun
@ 2016-06-04  5:06 ` York Sun
  0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2016-06-04  5:06 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-04  5:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-26 19:19 [U-Boot] [PATCH] drivers/ddr/fsl: Disabling data init if ECC is not enabled York Sun
2016-06-04  5:06 ` York Sun

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox