diff options
author | Stefan Roese <sr@denx.de> | 2016-04-07 10:48:14 +0200 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2016-04-12 11:13:40 +0200 |
commit | 28226b9a2ccdc8181d1887e03e9fc7501b885e40 (patch) | |
tree | ffde0db2d1b8140c3b46bf8653eceb76c8e2fe94 | |
parent | ced0d849d8c9614981961ca028207acdcfa2b39c (diff) | |
download | u-boot-imx-28226b9a2ccdc8181d1887e03e9fc7501b885e40.zip u-boot-imx-28226b9a2ccdc8181d1887e03e9fc7501b885e40.tar.gz u-boot-imx-28226b9a2ccdc8181d1887e03e9fc7501b885e40.tar.bz2 |
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>
-rw-r--r-- | include/configs/theadorable.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |