]> git.dujemihanovic.xyz Git - u-boot.git/commit
ARM: imx: Add support for reading out the primary/secondary bmode to MX7
authorMarek Vasut <marex@denx.de>
Wed, 5 Aug 2020 13:34:07 +0000 (15:34 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 17 Aug 2020 15:55:31 +0000 (17:55 +0200)
commit4b44bea701a67e3b83cb82f44fa40485b111d394
treeecff81bb0a6ea41d6cf52baeb2fbd4b615eaddef
parent3c0fbbfd9572cd8c9fa562c4ebfe69d3d962f2f5
ARM: imx: Add support for reading out the primary/secondary bmode to MX7

Implement the 'getprisec' subcommand of 'bmode' command for i.MX7 by
reading out the SRC GPR10 bit 30. This bit is either set by the BootROM
if it switched to the secondary copy due to primary copy being corrupted
OR it can be overridden by the user.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP i.MX U-Boot Team <uboot-imx@nxp.com>
Cc: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Reviewed-by: Stefano Babic <sbabic@denx.de>
arch/arm/mach-imx/mx7/soc.c