mb/google/fatcat: config GPP_F23 as ISH gpio pin
[coreboot2.git] / src / drivers / i2c / tpm / chip.h
blob156f8dddc0fd1d47874751b1da4f6702a4f6b281
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__ */