]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: stm32: Increment boot counter in SPL on DHSOM
authorMarek Vasut <marex@denx.de>
Tue, 6 Dec 2022 02:35:14 +0000 (03:35 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Wed, 7 Dec 2022 16:09:19 +0000 (17:09 +0100)
Increment the boot counter already in U-Boot SPL instead of incrementing
it only later in U-Boot proper. This can be used by SPL to boot either of
two U-Boot copies and improve redundancy of software on the platform, e.g.
in case of full A/B update strategy.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
configs/stm32mp15_dhcom_basic_defconfig
configs/stm32mp15_dhcor_basic_defconfig

index 92ccbb70939ca54037ca09e0e367c480ddce4d36..f1eb022bc66cf92170f8328e3de636ec72852d3c 100644 (file)
@@ -36,6 +36,7 @@ CONFIG_CONSOLE_MUX=y
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_FOOTPRINT_LIMIT=y
 CONFIG_SPL_MAX_FOOTPRINT=0x3db00
+CONFIG_SPL_BOOTCOUNT_LIMIT=y
 CONFIG_SPL_LEGACY_IMAGE_FORMAT=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SPL_STACK=0x30000000
index 306221404df092b419b285a819c52d3ccedc2ced..2e9f204978419788b26465edb4243957d95e87cb 100644 (file)
@@ -34,6 +34,7 @@ CONFIG_CONSOLE_MUX=y
 CONFIG_BOARD_EARLY_INIT_F=y
 CONFIG_SPL_FOOTPRINT_LIMIT=y
 CONFIG_SPL_MAX_FOOTPRINT=0x3db00
+CONFIG_SPL_BOOTCOUNT_LIMIT=y
 CONFIG_SPL_LEGACY_IMAGE_FORMAT=y
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
 CONFIG_SPL_STACK=0x30000000