mx6: ddr: allow 32 cycles for DQS gating calibration
authorEric Nelson <eric@nelint.com>
Sun, 30 Oct 2016 23:33:47 +0000 (16:33 -0700)
committerStefano Babic <sbabic@denx.de>
Tue, 29 Nov 2016 15:39:58 +0000 (16:39 +0100)
commitb33f74ead4dfd1ec0b500dc3d1cfef0e308b45c3
tree81f90fbf651d0892767e820aae05c5dbd719161e
parentc8c35155082d11deb7a2f9ccb99b11216cbd9d55
mx6: ddr: allow 32 cycles for DQS gating calibration

The DDR calibration code is only setting flag DG_CMP_CYC (DQS gating sample
cycle) for the first PHY.

Set the 32-cycle flag for both PHYs and clear when done so the MPDGCTRL0
output value isn't polluted with calibration artifacts.

Signed-off-by: Eric Nelson <eric@nelint.com>
Reviewed-by: Marek Vasut <marex@denx.de>
arch/arm/cpu/armv7/mx6/ddr.c