1 /*
2  * Copyright (c) 2022, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdbool.h>
8 #include <stddef.h>
9 #include <stdint.h>
10 
11 #include <drivers/measured_boot/event_log/event_log.h>
12 #include <plat/common/platform.h>
13 
14 #include <platform_def.h>
15 
16 /* DRTM TPM Features */
17 static const plat_drtm_tpm_features_t tpm_features = {
18 	/* No TPM-based hashing supported. */
19 	.tpm_based_hash_support = false,
20 
21 	/* Set to decided algorithm by Event Log driver */
22 	.firmware_hash_algorithm = TPM_ALG_ID
23 
24 };
25 
plat_drtm_get_tpm_features(void)26 const plat_drtm_tpm_features_t *plat_drtm_get_tpm_features(void)
27 {
28 	return &tpm_features;
29 }
30