xref: /rk3399_ARM-atf/plat/arm/board/fvp/fvp_drtm_measurement.c (revision b73aa414e4ab919c3a57373235072f3401364d80)
12a1cdee4Sjohpow01 /*
2*b67e9846SHarrison Mutai  * Copyright (c) 2022-2025, Arm Limited. All rights reserved.
32a1cdee4Sjohpow01  *
42a1cdee4Sjohpow01  * SPDX-License-Identifier: BSD-3-Clause
52a1cdee4Sjohpow01  */
62a1cdee4Sjohpow01 
72a1cdee4Sjohpow01 #include <stdbool.h>
82a1cdee4Sjohpow01 #include <stddef.h>
92a1cdee4Sjohpow01 #include <stdint.h>
102a1cdee4Sjohpow01 
112a1cdee4Sjohpow01 #include <plat/common/platform.h>
122a1cdee4Sjohpow01 #include <platform_def.h>
132a1cdee4Sjohpow01 
14*b67e9846SHarrison Mutai #include <event_measure.h>
15*b67e9846SHarrison Mutai #include <event_print.h>
16*b67e9846SHarrison Mutai 
172a1cdee4Sjohpow01 /* DRTM TPM Features */
182a1cdee4Sjohpow01 static const plat_drtm_tpm_features_t tpm_features = {
192a1cdee4Sjohpow01 	/* No TPM-based hashing supported. */
202a1cdee4Sjohpow01 	.tpm_based_hash_support = false,
212a1cdee4Sjohpow01 
222a1cdee4Sjohpow01 	/* Set to decided algorithm by Event Log driver */
232a1cdee4Sjohpow01 	.firmware_hash_algorithm = TPM_ALG_ID
242a1cdee4Sjohpow01 
252a1cdee4Sjohpow01 };
262a1cdee4Sjohpow01 
plat_drtm_get_tpm_features(void)272a1cdee4Sjohpow01 const plat_drtm_tpm_features_t *plat_drtm_get_tpm_features(void)
282a1cdee4Sjohpow01 {
292a1cdee4Sjohpow01 	return &tpm_features;
302a1cdee4Sjohpow01 }
31