From 1b2b73881ae5a57d8d8affd7d4259e8f1f2e08bc Mon Sep 17 00:00:00 2001 From: Diana Z Date: Thu, 11 Feb 2021 16:56:09 -0700 Subject: 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 Change-Id: Iaa5c3f0a6a4f41db83978bb1e1d0b54f2519abb2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2692030 Reviewed-by: Keith Short --- test/fake_usbc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') 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) { } -- cgit v1.2.1