summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8751.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/tcpm/ps8751.h')
-rw-r--r--driver/tcpm/ps8751.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/driver/tcpm/ps8751.h b/driver/tcpm/ps8751.h
index e0abb491ba..71325a7d4b 100644
--- a/driver/tcpm/ps8751.h
+++ b/driver/tcpm/ps8751.h
@@ -13,11 +13,18 @@
#define PS8751_PRODUCT_ID 0x8751
#define PS8751_REG_VERSION 0x90
+#define PS8751_REG_VENDOR_ID_L 0x00
+#define PS8751_REG_VENDOR_ID_H 0x01
#define PS8751_REG_CTRL_1 0xD0
#define PS8751_REG_CTRL_1_HPD (1 << 0)
#define PS8751_REG_CTRL_1_IRQ (1 << 1)
void ps8751_tcpc_update_hpd_status(int port, int hpd_lvl, int hpd_irq);
int ps8751_tcpc_get_fw_version(int port, int *version);
+
+#ifdef CONFIG_CMD_I2C_STRESS_TEST_TCPC
+extern struct i2c_stress_test_dev ps8751_i2c_stress_test_dev;
+#endif
+
#endif /* __CROS_EC_USB_PD_TCPM_PS8751_H */