diff options
author | David Vincze <david.vincze@arm.com> | 2019-06-28 14:28:20 +0200 |
---|---|---|
committer | David Vincze <david.vincze@arm.com> | 2019-08-28 16:51:21 +0200 |
commit | 0b41ee240b9eb70e7d928a074aae002dcc9d2c40 (patch) | |
tree | 8d7233441801c17e0b75caecbcab302f44386129 /bl2/src | |
parent | d8fbe0e87f52cf84646c000b7c062b2740fa8efa (diff) | |
download | trusted-firmware-m-0b41ee240b9eb70e7d928a074aae002dcc9d2c40.tar.gz |
Platform: Add new NV counter due to multiple image boot
Add new NV counter to the NV counter flash area to be used
by the bootloader as a separate second security counter
for another firmware image to enable multiple image boot.
Change-Id: I6cd3bf675317240e40cd0bc31a714070885791aa
Signed-off-by: David Vincze <david.vincze@arm.com>
Diffstat (limited to 'bl2/src')
-rw-r--r-- | bl2/src/security_cnt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bl2/src/security_cnt.c b/bl2/src/security_cnt.c index 03c438c3e5..825a2d67d0 100644 --- a/bl2/src/security_cnt.c +++ b/bl2/src/security_cnt.c @@ -11,6 +11,7 @@ #include <stdint.h> #define TFM_BOOT_NV_COUNTER_0 PLAT_NV_COUNTER_3 /* NV counter of Image 0 */ +#define TFM_BOOT_NV_COUNTER_1 PLAT_NV_COUNTER 4 /* NV counter of Image 1 */ #define TFM_BOOT_NV_COUNTER_MAX PLAT_NV_COUNTER_MAX static enum tfm_nv_counter_t get_nv_counter_from_image_id(uint32_t image_id) |