summaryrefslogtreecommitdiff
path: root/zephyr/shim
diff options
context:
space:
mode:
authorPeter Marheine <pmarheine@chromium.org>2022-02-11 10:17:18 +1100
committerCommit Bot <commit-bot@chromium.org>2022-02-11 09:47:20 +0000
commit2486d212b010523c21bd1e86fb07c342a5811715 (patch)
treeb416381bc590ef72ec71158a23d13a07843e5d8b /zephyr/shim
parent1845f2525ce7d5dc99abc9421f70162f0041136e (diff)
downloadchrome-ec-2486d212b010523c21bd1e86fb07c342a5811715.tar.gz
usbc: add CONFIG_USB_PD_STARTUP_DELAY_MS
This option provides a kludge to work around issues when programming some ECs without a battery, where the EC is allowed to come out of reset and put into a programming mode via an external command and in doing its normal startup may interrupt power to the board before it is put into programming mode. This option is enabled on Nereid where we've been having this problem, and set to two seconds because one second didn't help with programming failures but two seconds seems to be long enough. BUG=b:218618254 TEST=./util/flash_ec now works on Nereid when no battery is connected BRANCH=none Signed-off-by: Peter Marheine <pmarheine@chromium.org> Change-Id: I8d47ce440d694f90ca0f29583a2e57fcab422f31 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3454464 Reviewed-by: Andrew McRae <amcrae@google.com>
Diffstat (limited to 'zephyr/shim')
-rw-r--r--zephyr/shim/include/config_chip.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/shim/include/config_chip.h b/zephyr/shim/include/config_chip.h
index dcd2277136..5ce4b52bd2 100644
--- a/zephyr/shim/include/config_chip.h
+++ b/zephyr/shim/include/config_chip.h
@@ -1484,6 +1484,12 @@
#define CONFIG_USB_PD_DEBUG_LEVEL CONFIG_PLATFORM_EC_USB_PD_DEBUG_LEVEL
#endif
+#undef CONFIG_USB_PD_STARTUP_DELAY_MS
+#ifdef CONFIG_PLATFORM_EC_USB_PD_STARTUP_DELAY_MS
+#define CONFIG_USB_PD_STARTUP_DELAY_MS \
+ CONFIG_PLATFORM_EC_USB_PD_STARTUP_DELAY_MS
+#endif
+
#undef CONFIG_USBC_VCONN
#ifdef CONFIG_PLATFORM_EC_USBC_VCONN
#define CONFIG_USBC_VCONN