]> git.sur5r.net Git - u-boot/commitdiff
armv7: ls1021aqds: Set cpo_sample for erratum A-009942
authorYork Sun <york.sun@nxp.com>
Wed, 25 Jan 2017 21:26:50 +0000 (13:26 -0800)
committerYork Sun <york.sun@nxp.com>
Tue, 31 Jan 2017 17:25:22 +0000 (09:25 -0800)
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>
board/freescale/ls1021aqds/ddr.c

index 6435bf9ad18f2db0da555004f3ca7808f47edf32..2f66ba9e7f8c0c1f5f8808638fe8b87329737a03 100644 (file)
@@ -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);