mv_ddr: ddr3: Update {min,max}_read_sample calculation
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Wed, 27 May 2020 01:31:30 +0000 (13:31 +1200)
committerStefan Roese <sr@denx.de>
Thu, 9 Jul 2020 04:49:44 +0000 (06:49 +0200)
commit485dbd3f1088c091c32138845f2f645d51d00667
treef441f1c0d40303fd780d2f2b2ceed2c629337ad2
parent40ed88529c6ad73c20908c2c5cdbdcc01da3d476
mv_ddr: ddr3: Update {min,max}_read_sample calculation

Measurements on actual hardware shown that the read ODT is early by 3
clocks. Adjust the calculation to avoid this.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
[upstream https://github.com/MarvellEmbeddedProcessors/mv-ddr-marvell/pull/22]
Signed-off-by: Chris Packham <judge.packham@gmail.com>
Tested-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/ddr/marvell/a38x/ddr3_training_hw_algo.c