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 /include/usb_pe_sm.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 'include/usb_pe_sm.h')
-rw-r--r-- | include/usb_pe_sm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pe_sm.h b/include/usb_pe_sm.h index 511bf263b5..340c0b486b 100644 --- a/include/usb_pe_sm.h +++ b/include/usb_pe_sm.h @@ -43,6 +43,7 @@ enum pe_dpm_request { DPM_REQUEST_PORT_DISCOVERY = BIT(16), DPM_REQUEST_SEND_ALERT = BIT(17), DPM_REQUEST_ENTER_USB = BIT(18), + DPM_REQUEST_GET_SRC_CAPS = BIT(19), }; /** |