summaryrefslogtreecommitdiff
path: root/drivers/ddr
diff options
context:
space:
mode:
authorYork Sun <york.sun@nxp.com>2016-05-26 19:19:03 (GMT)
committerYork Sun <york.sun@nxp.com>2016-06-03 21:12:48 (GMT)
commitb06f6f2f0347b6010943fa2ca2f26d1786fdba78 (patch)
tree02c4df7be0361b26c43f532d6410802ac208348d /drivers/ddr
parent931e8751af8ca9ff4395c3f033c5217d48f5698f (diff)
downloadu-boot-fsl-qoriq-b06f6f2f0347b6010943fa2ca2f26d1786fdba78.tar.xz
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 <york.sun@nxp.com>
Diffstat (limited to 'drivers/ddr')
-rw-r--r--drivers/ddr/fsl/options.c3
1 files changed, 2 insertions, 1 deletions
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