summaryrefslogtreecommitdiff
path: root/drivers/tpm/tpm_tis_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tpm/tpm_tis_i2c.h')
-rw-r--r--drivers/tpm/tpm_tis_i2c.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/tpm/tpm_tis_i2c.h b/drivers/tpm/tpm_tis_i2c.h
index 426c519811..2a4ad77429 100644
--- a/drivers/tpm/tpm_tis_i2c.h
+++ b/drivers/tpm/tpm_tis_i2c.h
@@ -35,21 +35,17 @@ enum tpm_timeout {
struct tpm_chip;
-struct tpm_vendor_specific {
- const u8 req_complete_mask;
- const u8 req_complete_val;
- const u8 req_canceled;
+struct tpm_chip {
+ int is_open;
+ u8 req_complete_mask;
+ u8 req_complete_val;
+ u8 req_canceled;
int irq;
int locality;
unsigned long timeout_a, timeout_b, timeout_c, timeout_d; /* msec */
unsigned long duration[3]; /* msec */
};
-struct tpm_chip {
- int is_open;
- struct tpm_vendor_specific vendor;
-};
-
struct tpm_input_header {
__be16 tag;
__be32 length;
@@ -106,8 +102,6 @@ struct tpm_cmd_t {
union tpm_cmd_params params;
} __packed;
-struct tpm_chip *tpm_register_hardware(const struct tpm_vendor_specific *);
-
struct udevice;
int tpm_vendor_init(struct udevice *dev);