summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2020-11-18 16:48:39 -0800
committerCommit Bot <commit-bot@chromium.org>2020-11-20 20:43:29 +0000
commit33836f429071522699ca0ab4279b678522843408 (patch)
tree6a1ed3a3b1ad1983d3a42c462d9453c88270390b
parent4e1da5433feb066465bf49df13c1ec0995941e3f (diff)
downloadchrome-ec-33836f429071522699ca0ab4279b678522843408.tar.gz
waddledoo: Fix VBUS and VCONN timings
VBUS and VCONN transition times were measured therefore this commit is simply updating these values. BUG=b:147314141 BRANCH=dedede TEST=Build and flash waddledoo, verify that PD peripherals still work ok including power role swaps. Signed-off-by: Aseda Aboagye <aaboagye@google.com> Change-Id: I86654981e0a44345c273efce3d50068d8419432b Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2548690 Reviewed-by: Diana Z <dzigterman@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Tested-by: Aseda Aboagye <aaboagye@chromium.org>
-rw-r--r--board/waddledoo/board.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/waddledoo/board.h b/board/waddledoo/board.h
index 78d8e4b7d6..fa2e39a453 100644
--- a/board/waddledoo/board.h
+++ b/board/waddledoo/board.h
@@ -79,6 +79,15 @@
/* Variant references the TCPCs to determine Vbus sourcing */
#define CONFIG_USB_PD_5V_EN_CUSTOM
+#undef PD_POWER_SUPPLY_TURN_ON_DELAY
+#undef PD_POWER_SUPPLY_TURN_OFF_DELAY
+#undef PD_VCONN_SWAP_DELAY
+/* 20% margin added for these timings */
+#define PD_POWER_SUPPLY_TURN_ON_DELAY 13080 /* us */
+#define PD_POWER_SUPPLY_TURN_OFF_DELAY 16080 /* us */
+#define PD_VCONN_SWAP_DELAY 787 /* us */
+
+
/* I2C configuration */
#define I2C_PORT_EEPROM NPCX_I2C_PORT7_0
#define I2C_PORT_BATTERY NPCX_I2C_PORT5_0