aboutsummaryrefslogtreecommitdiff
path: root/platform/include
diff options
context:
space:
mode:
authorChris Brand <chris.brand@cypress.com>2020-03-24 15:10:54 -0700
committerDavid Hu <david.hu@arm.com>2020-04-17 02:01:40 +0000
commitf28dd4150059e4dda7d85d8914d9e8851ab8a9f4 (patch)
tree91c431cfbec421eaba457ddc9197761f2467a11a /platform/include
parentaa416b3a94928f5a2b6f6e37344da41555a8b1ee (diff)
downloadtrusted-firmware-m-f28dd4150059e4dda7d85d8914d9e8851ab8a9f4.tar.gz
Platform: Make some NV counter enums conditional
The two NV counters used by the bootloader, PLAT_NV_COUNTER_3 and PLAT_NV_COUNTER_4 are only used if BL2 is #defined, and making them conditional on that #define adjusts PLAT_NV_COUNTER_MAX, effectively freeing those NV counters for use elsewhere. Change-Id: I15982c1ad085273cd2b26e66cde936f972f661a0 Signed-off-by: Chris Brand <chris.brand@cypress.com>
Diffstat (limited to 'platform/include')
-rw-r--r--platform/include/tfm_plat_nv_counters.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/include/tfm_plat_nv_counters.h b/platform/include/tfm_plat_nv_counters.h
index ff34a91fc5..5d63399ae6 100644
--- a/platform/include/tfm_plat_nv_counters.h
+++ b/platform/include/tfm_plat_nv_counters.h
@@ -30,8 +30,10 @@ enum tfm_nv_counter_t {
PLAT_NV_COUNTER_0 = 0, /* Used by SST service */
PLAT_NV_COUNTER_1, /* Used by SST service */
PLAT_NV_COUNTER_2, /* Used by SST service */
+#ifdef BL2
PLAT_NV_COUNTER_3, /* Used by bootloader */
PLAT_NV_COUNTER_4, /* Used by bootloader */
+#endif
PLAT_NV_COUNTER_MAX
};