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 /test | |
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 'test')
-rw-r--r-- | test/test_config.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_config.h b/test/test_config.h index c240021501..b277592e88 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -389,7 +389,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PD_DECODE_SOP #undef CONFIG_USB_TYPEC_SM #define CONFIG_USBC_VCONN -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ #define CONFIG_USB_PD_DISCHARGE_GPIO #undef CONFIG_USB_PD_HOST_CMD #define CONFIG_USB_PD_ALT_MODE_DFP @@ -413,7 +413,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PD_DECODE_SOP #undef CONFIG_USB_TYPEC_SM #define CONFIG_USBC_VCONN -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ #define CONFIG_USB_PD_DISCHARGE_GPIO #undef CONFIG_USB_PD_HOST_CMD #define CONFIG_USB_PD_ALT_MODE_DFP @@ -491,7 +491,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USBC_VCONN #define CONFIG_USBC_VCONN_SWAP #define CONFIG_USB_PID 0x5036 -#define PD_VCONN_SWAP_DELAY 5000 /* us */ +#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_I2C #define CONFIG_I2C_CONTROLLER |