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