]> git.sur5r.net Git - u-boot/commitdiff
arm: mvebu: theadorable: Add bootcounter support
authorStefan Roese <sr@denx.de>
Thu, 7 Apr 2016 08:48:14 +0000 (10:48 +0200)
committerStefan Roese <sr@denx.de>
Tue, 12 Apr 2016 09:13:40 +0000 (11:13 +0200)
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@denx.de>
include/configs/theadorable.h

index a4bcf212108ed7b4d0d111bc07ffe850717b5576..20a44c9349a090e5eab7eca7d484e915df2f7870 100644 (file)
 #define CONFIG_FPGA_ALTERA
 #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