[U-Boot] [PATCH 2/2] arm: mvebu: theadorable: Add bootcounter support

Stefan Roese sr at denx.de
Thu Apr 7 10:48:14 CEST 2016


This patch adds bootcount support to the MVEBU theadorable board. Since
no reset-safe registers seem to be available, it uses the last 4KiB
of SDRAM for the bootcounter location.

Signed-off-by: Stefan Roese <sr at denx.de>
---
 include/configs/theadorable.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h
index a4bcf21..20a44c9 100644
--- a/include/configs/theadorable.h
+++ b/include/configs/theadorable.h
@@ -120,6 +120,14 @@
 #define CONFIG_FPGA_STRATIX_V
 
 /*
+ * Bootcounter
+ */
+#define CONFIG_BOOTCOUNT_LIMIT
+#define CONFIG_BOOTCOUNT_RAM
+/* Max size of RAM minus BOOTCOUNT_ADDR is the bootcounter address */
+#define BOOTCOUNT_ADDR			0x1000
+
+/*
  * mv-common.h should be defined after CMD configs since it used them
  * to enable certain macros
  */
-- 
2.8.1



More information about the U-Boot mailing list