From dd1dbd8fee7eedef8dad4fe8a8bbec14a0ea5b2e Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Mon, 7 Oct 2019 11:09:01 -0600 Subject: usbc: fix cc interpretation error Ensure that two Rp values are interpreted as a debug accessory. Added unit test for meaningful combinations. BRANCH=none BUG=none TEST=passes unit test. Change-Id: Ia454382f20f9377edc944dc01be133e062c218b0 Signed-off-by: Jett Rink Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1845811 Reviewed-by: Edward Hill --- test/test_config.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/test_config.h') diff --git a/test/test_config.h b/test/test_config.h index c422143112..b6dfbb29b8 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -230,6 +230,15 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_ALS_LIGHTBAR_DIMMING 0 #endif +#ifdef TEST_USB_COMMON +#define CONFIG_USB_POWER_DELIVERY +#define CONFIG_USB_PD_PORT_COUNT 1 +#define CONFIG_USB_PD_TCPC +#define CONFIG_USB_PD_TCPM_STUB +#define CONFIG_SHA256 +#define CONFIG_SW_CRC +#endif + #if defined(TEST_USB_SM_FRAMEWORK_H3) #define CONFIG_USB_PD_PORT_COUNT 1 #undef CONFIG_USB_PRL_SM -- cgit v1.2.1