ソースを参照

arm: mvebu: theadorable: Add bootcounter support

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>
Stefan Roese 9 年 前
コミット
28226b9a2c
1 ファイル変更8 行追加0 行削除
  1. 8 0
      include/configs/theadorable.h

+ 8 - 0
include/configs/theadorable.h

@@ -119,6 +119,14 @@
 #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