From: Stefan Roese Date: Thu, 7 Apr 2016 10:48:14 +0200 Subject: [U-Boot] [PATCH 2/2] arm: mvebu: theadorable: Add bootcounter support In-Reply-To: <1460018894-22689-1-git-send-email-sr@denx.de> References: <1460018894-22689-1-git-send-email-sr@denx.de> Message-ID: <1460018894-22689-2-git-send-email-sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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