]> git.dujemihanovic.xyz Git - u-boot.git/commit
ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot
authorTony Dinh <mibodhi@gmail.com>
Mon, 3 Apr 2023 04:42:33 +0000 (21:42 -0700)
committerStefan Roese <sr@denx.de>
Thu, 13 Apr 2023 09:34:47 +0000 (11:34 +0200)
commit6add83991b2887619d0b25e4068b4c0082a4596a
tree15c3bc3a53853419b21597d337447f457c85f69a
parentc62af15393b34dff4350d37e678707ad70e288a7
ddr: marvell: a38x: Perform DDR training sequence again for 2nd boot

- DDR Training sequence happens very fast. The speedup in boot time is
negligible by skipping the training sequence during 2nd boot or after.
So remove the check and skip.
- This change improves the robustness of DDR training. If u-boot crashed
during DDR training, the training could be left in a limbo state, where
the BootROM has recorded that it is already in a 2nd boot. The training
must be repeated in this scenario to get out of this limbo state, but due
to the check it cannot be performed.

Signed-off-by: Tony Dinh <mibodhi@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/ddr/marvell/a38x/mv_ddr_plat.c