diff options
author | Sam Hurst <shurst@google.com> | 2022-01-24 11:58:40 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2022-01-25 19:57:31 +0000 |
commit | 4e542fb4a8eb37c7c92b7cebdb542c83fcff3105 (patch) | |
tree | 0f2df9d914b729d8357b3ac28be40ff4e898583f /test/test_config.h | |
parent | bba1bc77fbba93ecc26470bef1ebdd6226e6d225 (diff) | |
download | chrome-ec-4e542fb4a8eb37c7c92b7cebdb542c83fcff3105.tar.gz |
TCPMv2: Add pd console tests
Add tests to make sure the pd console is working properly
BUG=b:151481791
BRANCH=none
TEST=make run-usb_pd_console
make -j buildall
Signed-off-by: Sam Hurst <shurst@google.com>
Change-Id: I0c7f150049ebda580686a45a909ca4af1ee32ee9
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3413652
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/test_config.h')
-rw-r--r-- | test/test_config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/test_config.h b/test/test_config.h index b315e1d761..7da4d817d6 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -576,6 +576,20 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USBC_PPC_VCONN #endif +#ifdef TEST_USB_PD_CONSOLE +#define CONFIG_USB_PD_PORT_MAX_COUNT 2 +#define CONFIG_USB_PE_SM +#define CONFIG_CMD_PD +#define CONFIG_USB_PD_TCPMV2 +#define CONFIG_USB_PD_TRY_SRC +#define CONFIG_USB_PD_DUAL_ROLE +#define CONFIG_USBC_VCONN +#define CONFIG_USBC_VCONN_SWAP +#define CONFIG_CMD_PD_TIMER +#undef CONFIG_USB_PD_HOST_CMD +#undef CONFIG_USB_PRL_SM +#endif + #if defined(TEST_CHARGE_MANAGER) || defined(TEST_CHARGE_MANAGER_DRP_CHARGING) #define CONFIG_CHARGE_MANAGER #define CONFIG_USB_PD_3A_PORTS 0 /* Host does not define a 3.0 A PDO */ |