From c5caae72ddbf106660bb82b463b5027d1ad0e880 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Wed, 13 Jan 2021 16:20:55 -0700 Subject: 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 Change-Id: Icaf3b309c08fdcd162e960cf5dc88185016b5d2d Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628131 Reviewed-by: Aseda Aboagye Commit-Queue: Aseda Aboagye --- board/rainier/board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'board/rainier') diff --git a/board/rainier/board.h b/board/rainier/board.h index 592c6bca9c..c8ac8c94aa 100644 --- a/board/rainier/board.h +++ b/board/rainier/board.h @@ -112,7 +112,7 @@ #define PD_POWER_SUPPLY_TURN_ON_DELAY 30000 /* us */ #define PD_POWER_SUPPLY_TURN_OFF_DELAY 50000 /* us */ -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ /* Timer selection */ #define TIM_CLOCK32 2 -- cgit v1.2.1