colibri_imx6: fix RALAT and WALAT values
authorStefan Eichenberger <stefan.eichenberger@toradex.com>
Wed, 14 Jun 2023 09:01:37 +0000 (11:01 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 13 Jul 2023 09:29:40 +0000 (11:29 +0200)
commit44103cf331eeb83e7b41391526c074b1432f8dba
treec1594348495ede3ee26397b9c0c8da3495bfbe80
parent8a81326d79031843d714daf854d07762f8d560f0
colibri_imx6: fix RALAT and WALAT values

Running a memtest in U-Boot and Linux shows that some Colibri iMX6
produce bitflips at temperatures above 60°C. This happens because the
RALAT and WALAT values on the Colibri iMX6 are too low. The problems
were introduced by commit 09dbac8174c4 ("mx6: ddr: Restore ralat/walat
in write level calibration") before the calibration process overwrote
the values and set them to the maximum value. With this commit, we make
sure that the RALAT and WALAT values are set to the maximum values
again. This has been proven to work for years.

Fixes: 09dbac8174c4 ("mx6: ddr: Restore ralat/walat in write level calibration")
Signed-off-by: Stefan Eichenberger <stefan.eichenberger@toradex.com>
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
board/toradex/colibri_imx6/colibri_imx6.c