From: Stefan Roese Date: Thu, 7 Apr 2016 08:48:14 +0000 (+0200) Subject: arm: mvebu: theadorable: Add bootcounter support X-Git-Tag: v2016.05-rc2~67^2~4 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=28226b9a2ccdc8181d1887e03e9fc7501b885e40;p=u-boot 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 --- diff --git a/include/configs/theadorable.h b/include/configs/theadorable.h index a4bcf21210..20a44c9349 100644 --- a/include/configs/theadorable.h +++ b/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