diff options
author | Abe Levkoy <alevkoy@chromium.org> | 2021-01-13 16:20:55 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-22 05:00:48 +0000 |
commit | c5caae72ddbf106660bb82b463b5027d1ad0e880 (patch) | |
tree | 18b5865a3c2d87e1d292465c289f78cc8d8c3561 /board/waddledoo | |
parent | 326814921dd1f93991cb5b49eba9cc9240f4770a (diff) | |
download | chrome-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/waddledoo')
-rw-r--r-- | board/waddledoo/board.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/waddledoo/board.h b/board/waddledoo/board.h index aa87fcf571..acee694928 100644 --- a/board/waddledoo/board.h +++ b/board/waddledoo/board.h @@ -82,11 +82,11 @@ #undef PD_POWER_SUPPLY_TURN_ON_DELAY #undef PD_POWER_SUPPLY_TURN_OFF_DELAY -#undef PD_VCONN_SWAP_DELAY +#undef CONFIG_USBC_VCONN_SWAP_DELAY_US /* 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 */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 787 /* us */ /* I2C configuration */ |