ARM: imx: Add support for switching primary/secondary boot mode to bmode
authorMarek Vasut <marex@denx.de>
Wed, 5 Aug 2020 13:34:05 +0000 (15:34 +0200)
committerStefano Babic <sbabic@denx.de>
Mon, 17 Aug 2020 15:54:01 +0000 (17:54 +0200)
commit5ec83561c42cddd0f78a1e183b937f44902a18e4
tree88bdcc2187ad28c8898ac65c01d251a1ddf44826
parentc72372d38cb9d625f32f32e95e8fe821e5e2734b
ARM: imx: Add support for switching primary/secondary boot mode to bmode

The i.MX6/i.MX7 is capable of booting a secondary "redundant" system
image in case the primary one is corrupted. The user can force this
boot mode as well by explicitly setting SRC GPR10 bit 30. This can be
potentially useful when upgrading the bootloader itself. Expose this
functionality to 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/include/asm/mach-imx/boot_mode.h
arch/arm/include/asm/mach-imx/sys_proto.h
arch/arm/mach-imx/init.c
arch/arm/mach-imx/mx7/soc.c