ARM: imx: mx5: Add altbootcmd and resets to M53Menlo
authorMarek Vasut <marex@denx.de>
Sat, 11 Sep 2021 22:40:00 +0000 (00:40 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 19 Oct 2021 10:36:51 +0000 (12:36 +0200)
commitabc6eee0e76f5418f64f8a95878ac2bd6d2b2e69
tree60c6d83f63b48bebdd313906ceaff3fa00af3ab7
parent521418daee7a1a78503d763c756df424b8fde821
ARM: imx: mx5: Add altbootcmd and resets to M53Menlo

Bulletproof the default boot command with reset statements in case
any command in the chain would fail. In case a failure were to happen,
the board will reset, increment boot counter and retry the procedure.
In case the failures persist and the boot counter reaches the bootlimit,
U-Boot starts altbootcmd instead of the default bootcmd boot command.

The altbootcmd swaps the default boot partition for the other boot
partition, which is an identical copy or an older copy, and tries
booting from that one instead.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Stefano Babic <sbabic@denx.de>
include/configs/m53menlo.h