summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSam Hurst <shurst@google.com>2020-03-11 10:48:18 -0700
committerCommit Bot <commit-bot@chromium.org>2020-03-18 17:55:47 +0000
commitef8e792fbbd5e5c1fd73fc96a422de2d3b1dec53 (patch)
tree72f54be757d7a56ab437d11244623aa6b95531ae /include
parent7a4365dafa4dd68b75c7a778540cef9b9f267132 (diff)
downloadchrome-ec-ef8e792fbbd5e5c1fd73fc96a422de2d3b1dec53.tar.gz
TCPMv2: Use a DPM_REQUEST message to trigger Port Discovery
On reboot, while charging from a dongle, send a DPM_REQUEST message to trigger a Port Discover to enter an Alt Mode. And add a flag to signal that the Port Discovery should continue if it was interrupted by a message reception. BUG=b:149662829 BRANCH=none TEST=make -j buildall Manual tests: Tested with an apple dock and several other docks on kohaku Signed-off-by: Sam Hurst <shurst@google.com> Change-Id: I058c4717758792c77c02c26a74f2d9e9c4954ba0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2098566 Tested-by: Sam Hurst <shurst@google.com> Tested-by: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Jett Rink <jettrink@chromium.org> Commit-Queue: Sam Hurst <shurst@google.com>
Diffstat (limited to 'include')
-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 ee4d8f3066..c22103efa4 100644
--- a/include/usb_pe_sm.h
+++ b/include/usb_pe_sm.h
@@ -41,6 +41,7 @@ enum pe_dpm_request {
DPM_REQUEST_SRC_STARTUP = BIT(15),
DPM_REQUEST_HARD_RESET_SEND = BIT(16),
DPM_REQUEST_SOFT_RESET_SEND = BIT(17),
+ DPM_REQUEST_PORT_DISCOVERY = BIT(18),
};
/**