ddr: altera: Repair DQ window centering code
authorMarek Vasut <marex@denx.de>
Tue, 5 Apr 2016 21:17:35 +0000 (23:17 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 20 Apr 2016 09:28:45 +0000 (11:28 +0200)
commite026b984e68cac45a8e18fc55dd48f1b75f91298
treed66773bd01c44a03326beb5a77cf5c273ae6058a
parent85f76628a05539699a4aeb0a511109d322293033
ddr: altera: Repair DQ window centering code

The code uses a lot of signed numbers, which ended up in variables
of unsigned type, which resulted in all sorts of underflows. This
in turn caused incorrect calibration on certain boards. Moreover,
repair the readout of the DQ delay, which was being pulled from
wrong register.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
Cc: Chin Liang See <clsee@altera.com>
drivers/ddr/altera/sequencer.c