diff mbox series

[U-Boot,13/16] configs: ge_bx50v3: enable bootcount

Message ID 1510156790-26463-14-git-send-email-martyn.welch@collabora.co.uk
State Changes Requested
Delegated to: Stefano Babic
Headers show
Series Updates / improvements to bx50v3 support | expand

Commit Message

Martyn Welch Nov. 8, 2017, 3:59 p.m. UTC
From: Ian Ray <ian.ray@ge.com>

Enable bootcount using an EXT file.

Signed-off-by: Ian Ray <ian.ray@ge.com>
Signed-off-by: Martyn Welch <martyn.welch@collabora.co.uk>
---
 include/configs/ge_bx50v3.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx50v3.h
index ac69e85..ee5f6ab 100644
--- a/include/configs/ge_bx50v3.h
+++ b/include/configs/ge_bx50v3.h
@@ -112,6 +112,7 @@ 
 
 #define CONFIG_EXTRA_ENV_SETTINGS \
 	"script=boot.scr\0" \
+	"bootlimit=10\0" \
 	"image=/boot/fitImage\0" \
 	"console=" CONSOLE_DEV "\0" \
 	"fdt_high=0xffffffff\0"	  \
@@ -244,4 +245,11 @@ 
 
 #define CONFIG_BCH
 
+#define CONFIG_BOOTCOUNT_LIMIT
+#define CONFIG_BOOTCOUNT_EXT
+#define CONFIG_SYS_BOOTCOUNT_EXT_INTERFACE	"mmc"
+#define CONFIG_SYS_BOOTCOUNT_EXT_DEVPART	"1:5"
+#define CONFIG_SYS_BOOTCOUNT_EXT_NAME		"/boot/failures"
+#define CONFIG_SYS_BOOTCOUNT_ADDR		0x7000A000
+
 #endif	/* __GE_BX50V3_CONFIG_H */