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/reef_it8320 | |
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/reef_it8320')
-rw-r--r-- | board/reef_it8320/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/reef_it8320/board.h b/board/reef_it8320/board.h index 487592b7e8..03c600b63b 100644 --- a/board/reef_it8320/board.h +++ b/board/reef_it8320/board.h @@ -203,7 +203,7 @@ enum reef_it8320_board_version { #define PD_POWER_SUPPLY_TURN_OFF_DELAY 250000 /* us */ /* delay to turn on/off vconn */ -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ /* Define typical operating power and max power */ #define PD_OPERATING_POWER_MW 15000 |