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