diff options
author | Diana Z <dzigterman@chromium.org> | 2021-02-03 15:11:34 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-02-16 19:25:05 +0000 |
commit | 874bf8213bf7012718e36112920c891c4504bea0 (patch) | |
tree | 11b2f04f2cb7e564cbeda793bb7fb335de1d28ea /test/fake_usbc.c | |
parent | fc0bc62708cb39fb4ad0d7cc25cf25f3742446b5 (diff) | |
download | chrome-ec-874bf8213bf7012718e36112920c891c4504bea0.tar.gz |
TCPMv2: Allocate FRS ports 3.0 A when needed
When there are no PD sinks requiring 3.0 A, any FRS ports which require
that much current will have FRS detection enabled. If a PD sink
requiring 3.0 A is attached, then FRS detection will be disabled on that
port again.
FRS port partners which require only USB or 1.5 A of current will always
have FRS detection enabled.
BRANCH=None
BUG=b:141690755
TEST=on volteer-based system, verify:
- FRS source partners requiring 1.5 A or less always have FRS detection
enabled
- FRS detection is disabled on detach
- FRS source partner requiring 3.0 A has FRS detection enabled if no PD
sink needing 3.0 A is present
- Plugging in a 3.0 A PD sink disables FRS detection for the 3.0 A FRS
partner
- Unplugging a 3.0 A PD sink enables FRS detection for the 3.0 A FRS
partner
- When FRS occurs on 3.0 A port with detection enabled, partner is
offered appropriate starting current in first source caps
Signed-off-by: Diana Z <dzigterman@chromium.org>
Change-Id: Ib067ac7c1c2f4a6e64f36aeffd1b8dde5cb93760
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2676084
Reviewed-by: Keith Short <keithshort@chromium.org>
Reviewed-by: Eric Herrmann <eherrmann@chromium.org>
Tested-by: Eric Herrmann <eherrmann@chromium.org>
Diffstat (limited to 'test/fake_usbc.c')
-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 cdbd41d03d..9eb913ea19 100644 --- a/test/fake_usbc.c +++ b/test/fake_usbc.c @@ -283,6 +283,10 @@ void dpm_remove_sink(int port) { } +void dpm_remove_source(int port) +{ +} + int dpm_get_source_pdo(const uint32_t **src_pdo, const int port) { *src_pdo = pd_src_pdo; |