diff options
author | Diana Z <dzigterman@chromium.org> | 2021-02-11 16:56:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-19 00:26:42 +0000 |
commit | 1b2b73881ae5a57d8d8affd7d4259e8f1f2e08bc (patch) | |
tree | b6fb83f0deeca8a10d2747615317bf6dbaa65064 /test | |
parent | 4fc4a79b60e342079b13926e19513e4839885fd6 (diff) | |
download | chrome-ec-1b2b73881ae5a57d8d8affd7d4259e8f1f2e08bc.tar.gz |
TCPMv2: Source out 3.0 A to non-PD ports
When no PD sinks require 3.0 A and no FRS ports require it, offer this
current level to non-PD sinking devices. The non-PD devices will be
downgraded whenever a higher-priority type of port is connected.
BRANCH=None
BUG=b:141690755
TEST=on madoo, verify:
- plugging in a flash drive, it is offered 3.0 A
- plugging in a 3.0 A PD sink, flash drive CC resistor is downgraded
- unplugging 3.0 A PD sink, flash drive CC resistor is back to 3.0 A
- connect power to 3.0 A PD sink, flash drive CC resistor is back to
3.0 A
With FRS config check commented out, verify:
- flash drive is downgraded and FRS enabled on powered hub plug in
- flash drive is back to 3.0 A on FRS hub detach
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Iaa5c3f0a6a4f41db83978bb1e1d0b54f2519abb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2692030
Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/fake_usbc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/fake_usbc.c b/test/fake_usbc.c index 9eb913ea19..b744007a66 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -279,6 +279,10 @@ void dpm_evaluate_sink_fixed_pdo(int port, uint32_t vsafe5v_pdo) { } +void dpm_add_non_pd_sink(int port) +{ +} + void dpm_remove_sink(int port) { } |