summaryrefslogtreecommitdiff
path: root/include/usb_pe_sm.h
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@google.com>2020-08-27 15:34:03 -0600
committerCommit Bot <commit-bot@chromium.org>2020-09-02 21:50:25 +0000
commitbc7b14284465675c69cfa186da6a3389debfde16 (patch)
treea0e3705a72ba983e7cfca0fe5bf75e73a8e31c0c /include/usb_pe_sm.h
parent44302acb01290bea42acf35bd15a390a36a6688d (diff)
downloadchrome-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.h1
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),
};
/**