[U-Boot] [PATCH] drivers/ddr/fsl: Disabling data init if ECC is not enabled
York Sun
york.sun at nxp.com
Thu May 26 21:19:03 CEST 2016
If ECC is not enabled, data init can be disabled to speed up booting.
Signed-off-by: York Sun <york.sun at 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
More information about the U-Boot
mailing list