]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: imx: Add support for detecting primary/secondary bmode on MX8M
authorFedor Ross <fedor.ross@ifm.com>
Mon, 16 Oct 2023 16:16:15 +0000 (18:16 +0200)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Oct 2023 21:55:10 +0000 (23:55 +0200)
commita41c9ddb30913fc581c0395916d127788936763c
tree3aaf4bd0fe894c647a983a1fc2042b2902205be2
parent71c2faeca74cfc1ad7e14c15105fe7c54c89aa96
ARM: imx: Add support for detecting primary/secondary bmode on MX8M

Implement the 'getprisec' subcommand of 'bmode' command for i.MX8M by
reading out the ROM log events. This event is set by the BootROM if it
switched to the secondary copy due to primary copy being corrupted.

Signed-off-by: Fedor Ross <fedor.ross@ifm.com>
Signed-off-by: Marek Vasut <marex@denx.de>
arch/arm/mach-imx/Kconfig
arch/arm/mach-imx/cmd_bmode.c
arch/arm/mach-imx/imx8m/soc.c