mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-11 07:04:22 +00:00

Add tpm2 drivers to tf-a with adequate framework -implement a fifo spi interface that works with discrete tpm chip. -implement tpm command layer interfaces that are used to initialize, start and make measurements and close the interface. -tpm drivers are built using their own make file to allow for ease in porting across platforms, and across different interfaces. Signed-off-by: Tushar Khandelwal <tushar.khandelwal@arm.com> Signed-off-by: Abhi Singh <abhi.singh@arm.com> Change-Id: Ie1a189f45c80f26f4dea16c3bd71b1503709e0ea
24 lines
441 B
C
24 lines
441 B
C
/*
|
|
* Copyright (c) 2025, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#ifndef TPM2_CHIP_H
|
|
#define TPM2_CHIP_H
|
|
|
|
#define BYTE U(0x1)
|
|
#define WORD U(0x2)
|
|
#define DWORD U(0x4)
|
|
|
|
struct tpm_chip_data {
|
|
uint8_t locality;
|
|
unsigned long timeout_msec_a, timeout_msec_b;
|
|
unsigned long timeout_msec_c, timeout_msec_d;
|
|
uint16_t address;
|
|
};
|
|
|
|
#endif /* TPM2_CHIP_H */
|