summaryrefslogtreecommitdiff
path: root/include
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 /include
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 'include')
-rw-r--r--include/config.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 4b698b1624..7b38c68cff 100644
--- a/include/config.h
+++ b/include/config.h
@@ -4432,6 +4432,12 @@
#undef CONFIG_USB_PD_DEBUG_LEVEL
/*
+ * Set to a nonzero value to delay PD task startup by the given
+ * amount of time.
+ */
+#define CONFIG_USB_PD_STARTUP_DELAY_MS 0
+
+/*
* Define if this board is using runtime flags instead of build time configs
* to control USB PD properties.
*/