diff options
author | Patrick Delaunay <patrick.delaunay@st.com> | 2019-04-18 17:32:45 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2019-05-23 11:36:47 +0200 |
commit | 3419982bc39f667a4b364fad6a36c1b5e7e9115b (patch) | |
tree | 78d00623c61a2db869c8b71704df1da8e90c1085 /arch/arm/mach-stm32mp/include/mach/stm32.h | |
parent | 8099e3db6092ab122bdd50272e9fb4a2a931c327 (diff) |
stm32mp1: add bootcount support
Activate bootcount and use TAMP register to store the count value.
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'arch/arm/mach-stm32mp/include/mach/stm32.h')
-rw-r--r-- | arch/arm/mach-stm32mp/include/mach/stm32.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-stm32mp/include/mach/stm32.h b/arch/arm/mach-stm32mp/include/mach/stm32.h index c526c88e3e..6795352044 100644 --- a/arch/arm/mach-stm32mp/include/mach/stm32.h +++ b/arch/arm/mach-stm32mp/include/mach/stm32.h @@ -88,6 +88,7 @@ enum boot_device { #define TAMP_BACKUP_MAGIC_NUMBER TAMP_BACKUP_REGISTER(4) #define TAMP_BACKUP_BRANCH_ADDRESS TAMP_BACKUP_REGISTER(5) #define TAMP_BOOT_CONTEXT TAMP_BACKUP_REGISTER(20) +#define TAMP_BOOTCOUNT TAMP_BACKUP_REGISTER(21) #define TAMP_BOOT_MODE_MASK GENMASK(15, 8) #define TAMP_BOOT_MODE_SHIFT 8 |