summaryrefslogtreecommitdiff
path: root/board/copano
diff options
context:
space:
mode:
authorAbe Levkoy <alevkoy@chromium.org>2021-01-13 16:20:55 -0700
committerCommit Bot <commit-bot@chromium.org>2021-01-22 05:00:48 +0000
commitc5caae72ddbf106660bb82b463b5027d1ad0e880 (patch)
tree18b5865a3c2d87e1d292465c289f78cc8d8c3561 /board/copano
parent326814921dd1f93991cb5b49eba9cc9240f4770a (diff)
downloadchrome-ec-c5caae72ddbf106660bb82b463b5027d1ad0e880.tar.gz
config: Make VCONN Swap delay a documented option
Replace PD_VCONN_SWAP_DELAY with CONFIG_USBC_VCONN_SWAP_DELAY_US. This is the approximate result of the following command, run from platform/ec: find . -type f -\( -name '*.c' -o -name '*.h' -\) | \ xargs sed -iE 's/PD_VCONN_SWAP_DELAY/CONFIG_USBC_VCONN_SWAP_DELAY/g' Fix some latent formatting errors in usb_pd_protocol.c, because they were preventing pre-upload hooks from passing. BUG=b:144165680 TEST=make buildall BRANCH=none Signed-off-by: Abe Levkoy <alevkoy@chromium.org> Change-Id: Icaf3b309c08fdcd162e960cf5dc88185016b5d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628131 Reviewed-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/copano')
-rw-r--r--board/copano/board.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/copano/board.h b/board/copano/board.h
index 857719a6d5..0a26124690 100644
--- a/board/copano/board.h
+++ b/board/copano/board.h
@@ -61,7 +61,7 @@
#define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */
#define PD_POWER_SUPPLY_TURN_OFF_DELAY 30000 /* us */
-#define PD_VCONN_SWAP_DELAY 5000 /* us */
+#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */
/*
* SN5S30 PPC supports up to 24V VBUS source and sink, however passive USB-C