aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorYork Sun2017-01-25 13:26:50 -0800
committerYork Sun2017-01-31 09:25:22 -0800
commite9866cf759f2f0184607024be30e7f78a65cb614 (patch)
tree5ab8d5fd69571ec51bc268cf262fc3e7588bce51 /board
parent5707dfb02e0886ab69d51bfc161cd80b3e33a864 (diff)
armv7: ls1021aqds: Set cpo_sample for erratum A-009942
Set cpo_sample as suggested by the driver "WARN: pls set popts->cpo_sample = 0x58 in <board>/ddr.c to optimize cpo". Signed-off-by: York Sun <york.sun@nxp.com> CC: Shengzhou Liu <Shengzhou.Liu@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/freescale/ls1021aqds/ddr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/board/freescale/ls1021aqds/ddr.c b/board/freescale/ls1021aqds/ddr.c
index 6435bf9ad18..2f66ba9e7f8 100644
--- a/board/freescale/ls1021aqds/ddr.c
+++ b/board/freescale/ls1021aqds/ddr.c
@@ -96,6 +96,9 @@ found:
#else
popts->cswl_override = DDR_CSWL_CS0;
+ /* optimize cpo for erratum A-009942 */
+ popts->cpo_sample = 0x58;
+
/* DHC_EN =1, ODT = 75 Ohm */
popts->ddr_cdr1 = DDR_CDR1_DHC_EN | DDR_CDR1_ODT(DDR_CDR_ODT_75ohm);
popts->ddr_cdr2 = DDR_CDR2_ODT(DDR_CDR_ODT_75ohm);