diff options
author | Denis Brockus <dbrockus@google.com> | 2020-08-27 15:34:03 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-09-02 21:50:25 +0000 |
commit | bc7b14284465675c69cfa186da6a3389debfde16 (patch) | |
tree | a0e3705a72ba983e7cfca0fe5bf75e73a8e31c0c /test/usb_pe.h | |
parent | 44302acb01290bea42acf35bd15a390a36a6688d (diff) | |
download | chrome-ec-bc7b14284465675c69cfa186da6a3389debfde16.tar.gz |
TCPMv2: Add DPM_REQUEST_GET_SRC_CAP
As a SRC that runs on battery it can be handy to determine
if the connected partner has unconstrained power available
so we can try to PR_Swap to let them power us. This only
requests the information, if it is not already available,
and leaves it to other code to determine if the swap is
a good idea.
BUG=b:166446426
BRANCH=none
TEST=connect a sink device and determine it performed the action
Signed-off-by: Denis Brockus <dbrockus@google.com>
Change-Id: If45801a33df8b75e541989d7ee8f36ed316ffcc6
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2381408
Tested-by: Denis Brockus <dbrockus@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Auto-Submit: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'test/usb_pe.h')
-rw-r--r-- | test/usb_pe.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/usb_pe.h b/test/usb_pe.h index 3a4479d534..fb5ac10f88 100644 --- a/test/usb_pe.h +++ b/test/usb_pe.h @@ -133,6 +133,7 @@ enum usb_pe_state { PE_DEU_SEND_ENTER_USB, PE_DR_SNK_GET_SINK_CAP, PE_DR_SNK_GIVE_SOURCE_CAP, + PE_DR_SRC_GET_SOURCE_CAP, /* PD3.0 only states below here*/ PE_FRS_SNK_SRC_START_AMS, |