diff options
author | Diana Z <dzigterman@chromium.org> | 2020-12-16 23:29:04 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-24 01:11:02 +0000 |
commit | fca75f573ff913a5be050c7a13e7dcda6be68da2 (patch) | |
tree | dc192d0343545550a4f88df2d91f813d58d27d1a /test | |
parent | c9cc5600573a6a28bd0a66d43916e969bd403bbd (diff) | |
download | chrome-ec-fca75f573ff913a5be050c7a13e7dcda6be68da2.tar.gz |
TCPMv2: Update source-out configs
Now that the DPM will be handling source-out decisions for TCPMv2,
remove references to its old configuration options from TCPMv2 boards in
order to avoid any confusion as to what code is running now. Also
remove the charge manager notifications of sink attach/detach since the
policy is being centralized into the DPM.
Note that the previous configuration options only ever allocated one 3.0
A port, and so the default number of 3.0 A ports has been set to 1.
BRANCH=None
BUG=b:168862110,b:141690755
TEST=make -j buildall
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ie452e3da32b04226503539daa67b6b9f4a58aa58
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2597431
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/fake_usbc.c | 6 | ||||
-rw-r--r-- | test/test_config.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 8343b9a944..cdbd41d03d 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -283,6 +283,12 @@ void dpm_remove_sink(int port) { } +int dpm_get_source_pdo(const uint32_t **src_pdo, const int port) +{ + *src_pdo = pd_src_pdo; + return pd_src_pdo_cnt; +} + static enum tcpc_rp_value lcl_rp; __overridable void typec_select_src_current_limit_rp(int port, enum tcpc_rp_value rp) diff --git a/test/test_config.h b/test/test_config.h index eb3f428a09..712ad61a14 100644 --- a/test/test_config.h +++ b/test/test_config.h @@ -497,6 +497,7 @@ int ncp15wb_calculate_temp(uint16_t adc); #define CONFIG_USB_PD_DEBUG_LEVEL 3 #define CONFIG_USB_PD_EXTENDED_MESSAGES #define CONFIG_USB_PD_DECODE_SOP +#define CONFIG_USB_PD_3A_PORTS 0 /* Host does not define a 3.0 A PDO */ #endif #ifdef TEST_USB_PD_INT |