blob: 4fbedd8bc1c3db51467f742206547cefda4f9afd [file] [log] [blame]
johpow01baa3e6c2022-03-11 17:50:58 -06001/*
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 */
17static 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
26const plat_drtm_tpm_features_t *plat_drtm_get_tpm_features(void)
27{
28 return &tpm_features;
29}