summaryrefslogtreecommitdiff
path: root/driver/tcpm/ps8xxx.h
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2020-11-16 15:08:47 -0700
committerCommit Bot <commit-bot@chromium.org>2020-11-18 00:13:25 +0000
commit867fe225cbd2321bf07241213c43692b7bf122c4 (patch)
tree3c2197c63d10275fcc1ef0b32ef4db85cc0318b5 /driver/tcpm/ps8xxx.h
parentef1ebb6ee64a3e070057c50d87046a095971ccc5 (diff)
downloadchrome-ec-867fe225cbd2321bf07241213c43692b7bf122c4.tar.gz
ps8815: Add a delay after writes to ROLE_CONTROL
The PS8815 can corrupt the transmit buffer. Add a delay following writes to the ROLE_CONTROL register to workaround the corruption until a new revision of the chip is available. BUG=b:171430855 BRANCH=firmware-volteer-13521.B-master TEST=make buildalls TEST=Connect DP+USB monitor to Delbin. Perform repeated power role swaps and verify no corrupted PS_RDY packets. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: If887af58b0a7c3f27df879156e0f234f88db14ed Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2544803 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'driver/tcpm/ps8xxx.h')
-rw-r--r--driver/tcpm/ps8xxx.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/driver/tcpm/ps8xxx.h b/driver/tcpm/ps8xxx.h
index 788e2f2655..6ef1cd9d90 100644
--- a/driver/tcpm/ps8xxx.h
+++ b/driver/tcpm/ps8xxx.h
@@ -89,12 +89,9 @@
#define PS8751_REG_MUX_USB_DCI_CFG 0xED
#endif
-#if defined(CONFIG_USB_PD_TCPM_PS8815)
/* Vendor defined registers */
#define PS8815_P1_REG_HW_REVISION 0xF0
-#endif
-
extern const struct tcpm_drv ps8xxx_tcpm_drv;
/**