Skip to contentSkip to conversation

drivers/ddr/fsl: Disabling data init if ECC is not enabled

PATCH New York Sun 1 participant 2 messages May 26, 2016 – Jun 4, 2016

lore
Share & tools
lore

York Sun

author
#0 lore raw

PATCH 1/1 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.

---

 drivers/ddr/fsl/options.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/ddr/fsl/options.c +2 -1
index d0075ff..793d12a 100644
@@ -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
Signature · 1 line
1.7.9.5
author Applied
#1 lore raw

PATCH 1/1 drivers/ddr/fsl: Disabling data init if ECC is not enabled

Quoted 9 lines · york sun

If ECC is not enabled, data init can be disabled to speed up booting.

---

 drivers/ddr/fsl/options.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Applied to fsl-qoriq master branch. Awaiting upstream.

York