diff options
author | Keith Short <keithshort@chromium.org> | 2020-06-12 16:08:03 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-06-13 02:02:26 +0000 |
commit | e315e561f9047481ca4f776de90130182fc23311 (patch) | |
tree | cebdef56d0700a0a6a5fb5fe9faf7db1f2e01142 /include | |
parent | 9f1e60d0d7b1c1b680144cd0e7345df64b4a9202 (diff) | |
download | chrome-ec-e315e561f9047481ca4f776de90130182fc23311.tar.gz |
tcpci: Add workaround for devices with broken vSafe0V
Add a flag to override checking the vSafe0V bit directly if this
capability is not functional on a TCPC revision 2.0 device.
BUG=b:158520242
BRANCH=none
TEST=make buildall
TEST=Volteer, confirm that SNK devices can be detected with TCPMv2
stack.
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: Ia6f3a28970f240fb022cbef9d286761266224f6f
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2244017
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_pd_tcpm.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/usb_pd_tcpm.h b/include/usb_pd_tcpm.h index 0e686d35d4..0816149464 100644 --- a/include/usb_pd_tcpm.h +++ b/include/usb_pd_tcpm.h @@ -442,11 +442,14 @@ struct tcpm_drv { * Bit 1 --> Set to 1 if TCPC alert line is open-drain instead of push-pull. * Bit 2 --> Polarity for TCPC reset. Set to 1 if reset line is active high. * Bit 3 --> Set to 1 if TCPC is using TCPCI Revision 2.0 + * Bit 4 --> Set to 1 if TCPC is using TCPCI Revision 2.0 but does not support + * the vSafe0V bit in the EXTENDED_STATUS_REGISTER */ #define TCPC_FLAGS_ALERT_ACTIVE_HIGH BIT(0) #define TCPC_FLAGS_ALERT_OD BIT(1) #define TCPC_FLAGS_RESET_ACTIVE_HIGH BIT(2) #define TCPC_FLAGS_TCPCI_REV2_0 BIT(3) +#define TCPC_FLAGS_TCPCI_REV2_0_NO_VSAFE0V BIT(4) struct tcpc_config_t { enum ec_bus_type bus_type; /* enum ec_bus_type */ |