coreboot-kgpe-d16/src/drivers/i2c/tpm/chip.h
Jan Samek edda0f94e5 treewide: Add missing include guards to chip.h
Some of the chip.h files in the tree are missing the include guards.

This patch adds them in order to avoid potential redefinions of symbols
contained in these headers, when they are included multiple times in
static.c generated by sconfig.

Change-Id: I550a514e72a8dd4db602e7ceffccd81aa36446e3
Signed-off-by: Jan Samek <jan.samek@siemens.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74749
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
2023-04-28 13:38:33 +00:00

25 lines
737 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
#ifndef __DRIVERS_I2C_TPM_CHIP_H__
#define __DRIVERS_I2C_TPM_CHIP_H__
#include <acpi/acpi_device.h>
#include <device/i2c_simple.h>
enum tpm_power_managed_mode {
TPM_DEFAULT_POWER_MANAGED = 0,
TPM_FIRMWARE_POWER_MANAGED,
TPM_KERNEL_POWER_MANAGED,
};
struct drivers_i2c_tpm_config {
const char *hid; /* ACPI _HID (required) */
const char *desc; /* Device Description */
unsigned int uid; /* ACPI _UID */
enum i2c_speed speed; /* Bus speed in Hz, default is I2C_SPEED_FAST */
struct acpi_irq irq; /* Interrupt */
struct acpi_gpio irq_gpio; /* GPIO interrupt */
enum tpm_power_managed_mode power_managed_mode; /* TPM power managed mode */
};
#endif /* __DRIVERS_I2C_TPM_CHIP_H__ */