aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorGalanakis, Minos <minos.galanakis@arm.com>2020-01-21 15:27:14 +0000
committerMinos Galanakis <minos.galanakis@arm.com>2020-05-04 15:22:16 +0000
commitef5118b39700eb98bed37405a7b5a55aefa0fc88 (patch)
tree78c25a24641046b463039bb927afa856c73558e6 /platform
parent94d424a508d8b75befa9dc1c14a7e399dc120ba4 (diff)
downloadtrusted-firmware-m-ef5118b39700eb98bed37405a7b5a55aefa0fc88.tar.gz
Platform: Added a Non-Volatile counters service
This patch introduces a new platform service exposing the non-volatile counters. Secure partitions can use this secure API to access the initialisation, increment and read operations on the nv counters, by setting "TFM_SP_PLATFORM_NV_COUNTER" as a dependency. Change-Id: Ia564e24417dfd9bb95cc61634dbbea17caa5974c Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
Diffstat (limited to 'platform')
-rw-r--r--platform/include/tfm_plat_nv_counters.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/platform/include/tfm_plat_nv_counters.h b/platform/include/tfm_plat_nv_counters.h
index 5d63399ae6..3588929e21 100644
--- a/platform/include/tfm_plat_nv_counters.h
+++ b/platform/include/tfm_plat_nv_counters.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2019, Arm Limited. All rights reserved.
+ * Copyright (c) 2018-2020, Arm Limited. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*
@@ -34,7 +34,9 @@ enum tfm_nv_counter_t {
PLAT_NV_COUNTER_3, /* Used by bootloader */
PLAT_NV_COUNTER_4, /* Used by bootloader */
#endif
- PLAT_NV_COUNTER_MAX
+ PLAT_NV_COUNTER_MAX,
+ PLAT_NV_COUNTER_BOUNDARY = UINT32_MAX /* Fix tfm_nv_counter_t size
+ to 4 bytes */
};
#ifdef __cplusplus