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 /baseboard/kukui | |
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 'baseboard/kukui')
-rw-r--r-- | baseboard/kukui/baseboard.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/baseboard/kukui/baseboard.h b/baseboard/kukui/baseboard.h index 9c5f2d730b..ea15cc1652 100644 --- a/baseboard/kukui/baseboard.h +++ b/baseboard/kukui/baseboard.h @@ -49,7 +49,7 @@ /* TCPC MT6370 */ #define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 250000 /* us */ -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ /* * The Maximum input voltage is 13.5V, need another 5% tolerance. @@ -67,7 +67,7 @@ /* TCPC FUSB302 */ #define PD_POWER_SUPPLY_TURN_ON_DELAY 160000 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 250000 /* us */ -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ /* b/2230219: 15V has better charging performance than 20V */ #define PD_MAX_VOLTAGE_MV 15000 |