1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #ifndef __DRIVERS_I2C_TPM_CHIP_H__
4 #define __DRIVERS_I2C_TPM_CHIP_H__
6 #include <acpi/acpi_device.h>
7 #include <device/i2c_simple.h>
9 enum tpm_power_managed_mode
{
10 TPM_DEFAULT_POWER_MANAGED
= 0,
11 TPM_FIRMWARE_POWER_MANAGED
,
12 TPM_KERNEL_POWER_MANAGED
,
15 struct drivers_i2c_tpm_config
{
16 const char *hid
; /* ACPI _HID (required) */
17 const char *desc
; /* Device Description */
18 unsigned int uid
; /* ACPI _UID */
19 enum i2c_speed speed
; /* Bus speed in Hz, default is I2C_SPEED_FAST */
20 struct acpi_irq irq
; /* Interrupt */
21 struct acpi_gpio irq_gpio
; /* GPIO interrupt */
22 enum tpm_power_managed_mode power_managed_mode
; /* TPM power managed mode */
25 #endif /* __DRIVERS_I2C_TPM_CHIP_H__ */