From 94dd77896d8729a5456e3fa61c258c9415c0c246 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Wed, 13 Jan 2021 17:00:32 -0700 Subject: config: Provide default VCONN Swap delay Almost every relevant board copy-pastes 5000 us. Make that the default and get rid of the redundant definitions. This is the approximate result of this command: find . -type f -name *.h | xargs sed -i -E \ '/#define CONFIG_USBC_VCONN_SWAP_DELAY_US[[:space:]]+5000[[:space:]]/d' BUG=b:144165680 TEST=make buildall BRANCH=none Change-Id: Ife86f9752971abcd7ab5ad5a5e607eb2ccbde2ba Signed-off-by: Abe Levkoy Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2628132 Reviewed-by: Aseda Aboagye --- test/test_config.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'test') diff --git a/test/test_config.h b/test/test_config.h index b277592e88..562be47ca9 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -389,7 +389,6 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PD_DECODE_SOP #undef CONFIG_USB_TYPEC_SM #define CONFIG_USBC_VCONN -#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 +412,6 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PD_DECODE_SOP #undef CONFIG_USB_TYPEC_SM #define CONFIG_USBC_VCONN -#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 +489,6 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USBC_VCONN #define CONFIG_USBC_VCONN_SWAP #define CONFIG_USB_PID 0x5036 -#define CONFIG_USBC_VCONN_SWAP_DELAY_US 5000 /* us */ #define CONFIG_USB_PD_TCPM_TCPCI #define CONFIG_I2C #define CONFIG_I2C_CONTROLLER -- cgit v1.2.1