summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authortongjian <tongjian@huaqin.corp-partner.google.com>2021-04-23 15:07:58 +0800
committerCommit Bot <commit-bot@chromium.org>2021-04-27 02:40:21 +0000
commit9b660a8b90ad7f9f133a2ea56bc1593765286ce9 (patch)
tree5e0a11e1a2ad91b8426cbb90bf7471346ec6a2d4 /include
parenta019f80fe9042331d897a23bd5476ecfde92478f (diff)
downloadchrome-ec-9b660a8b90ad7f9f133a2ea56bc1593765286ce9.tar.gz
Coachz:PS8XXX: Add 5ms delay to make CC being judged corrently
This may be a PS8XXX firmware issue, Parade is still trying. BUG=b:185202064 TEST=emerge-strongbad chromeos-ec 0. Insert the Dock to the typeC ports and shutdown the devices; 2. Press powerbutton and poweron the unit; 3. Use lsusb command, list can not find the Dock information; 4. Can find the Dock. BRANCH=Trogdor Signed-off-by: tongjian <tongjian@huaqin.corp-partner.google.com> Change-Id: Ib667df88549fc9e4f0e4603574af5d70ef326e11 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2847867 Reviewed-by: Rock Chiu <rock.chiu@paradetech.corp-partner.google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/driver/tcpm/ps8xxx_public.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/driver/tcpm/ps8xxx_public.h b/include/driver/tcpm/ps8xxx_public.h
index d84b63eb9a..690d96c2ba 100644
--- a/include/driver/tcpm/ps8xxx_public.h
+++ b/include/driver/tcpm/ps8xxx_public.h
@@ -28,6 +28,15 @@ struct usb_mux;
/* Delay from power on to reset de-asserted */
#define PS8815_PWR_H_RST_H_DELAY_MS 20
+
+/*
+ * Add delay of writing TCPC_REG_POWER_CTRL makes
+ * CC status being judged correctly when disable VCONN.
+ * This may be a PS8XXX firmware issue, Parade is still trying.
+ * https://partnerissuetracker.corp.google.com/issues/185202064
+ */
+#define PS8XXX_VCONN_TURN_OFF_DELAY_US 5
+
/*
* Delay between releasing reset and the first I2C read
*