diff mbox series

[v5,03/14] smegw01: Select bootcount support

Message ID 20230426160501.1199085-3-festevam@gmail.com
State Accepted
Commit 3bb2b48ed25cf10f0e2470d7cb5968ffb3978753
Delegated to: Stefano Babic
Headers show
Series [v5,01/14] smegw01: Enable setting additional boot params | expand

Commit Message

Fabio Estevam April 26, 2023, 4:04 p.m. UTC
From: Eduard Strehlau <eduard@lionizers.com>

Add automatic boot counter that increases after every
reset. After a power-on reset, it will be initialized with 1,
and each reboot will increment the value by 1. By default it is
disabled if bootlimit isn't set.

Signed-off-by: Eduard Strehlau <eduard@lionizers.com>
Signed-off-by: Fabio Estevam <festevam@denx.de>
---
Changes since v4:
- None

 configs/smegw01_defconfig | 2 ++
 1 file changed, 2 insertions(+)

Comments

Stefano Babic May 2, 2023, 12:46 p.m. UTC | #1
> From: Eduard Strehlau <eduard@lionizers.com>
> Add automatic boot counter that increases after every
> reset. After a power-on reset, it will be initialized with 1,
> and each reboot will increment the value by 1. By default it is
> disabled if bootlimit isn't set.
> Signed-off-by: Eduard Strehlau <eduard@lionizers.com>
> Signed-off-by: Fabio Estevam <festevam@denx.de>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/configs/smegw01_defconfig b/configs/smegw01_defconfig
index f15291f1dd04..5d9d4194639d 100644
--- a/configs/smegw01_defconfig
+++ b/configs/smegw01_defconfig
@@ -46,6 +46,8 @@  CONFIG_SYS_REDUNDAND_ENVIRONMENT=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_NET_RANDOM_ETHADDR=y
 CONFIG_BOUNCE_BUFFER=y
+CONFIG_BOOTCOUNT_LIMIT=y
+CONFIG_BOOTCOUNT_ENV=y
 CONFIG_DFU_MMC=y
 CONFIG_DM_I2C=y
 CONFIG_SUPPORT_EMMC_BOOT=y