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 /include/usb_pd_dpm.h | |
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 'include/usb_pd_dpm.h')
-rw-r--r-- | include/usb_pd_dpm.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pd_dpm.h b/include/usb_pd_dpm.h index aa9608f9b4..0ecb577a1a 100644 --- a/include/usb_pd_dpm.h +++ b/include/usb_pd_dpm.h @@ -69,6 +69,14 @@ void dpm_run(int port); void dpm_evaluate_sink_fixed_pdo(int port, uint32_t vsafe5v_pdo); /* + * Registers port as a non-PD sink, so that can be taken into account when + * allocating current. + * + * @param port USB-C port number + */ +void dpm_add_non_pd_sink(int port); + +/* * Remove this port as a sink, and reallocate maximum current as needed. * * @param port USB-C port number |