xref: /rk3399_ARM-atf/include/drivers/tpm/tpm2_chip.h (revision 10ecd58093a34e95e2dfad65b1180610f29397cc)
1 /*
2  * Copyright (c) 2025, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <stdbool.h>
8 #include <stdint.h>
9 
10 #ifndef TPM2_CHIP_H
11 #define TPM2_CHIP_H
12 
13 #define BYTE		U(0x1)
14 #define WORD		U(0x2)
15 #define DWORD		U(0x4)
16 
17 struct tpm_chip_data {
18 	uint8_t locality;
19 	unsigned long timeout_msec_a, timeout_msec_b;
20 	unsigned long timeout_msec_c, timeout_msec_d;
21 	uint16_t address;
22 };
23 
24 #endif /* TPM2_CHIP_H */
25