summaryrefslogtreecommitdiff
path: root/include/usb_tbt_alt_mode.h
diff options
context:
space:
mode:
authorScott Collyer <scollyer@google.com>2022-10-04 16:15:59 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-11-03 18:15:02 +0000
commit290a6ce0d426f6477c94e6cb4c125694782370f6 (patch)
tree821bcd74c965d15edc6d6b5ff789868543653d92 /include/usb_tbt_alt_mode.h
parent339879506fdc0d515c27e4dc4d2fe776f30de4e2 (diff)
downloadchrome-ec-290a6ce0d426f6477c94e6cb4c125694782370f6.tar.gz
tcpmv2: dpm: Convert dpm_run to a 1st class SM framework
This CL adds a type-c state machine framework for the Device Policy Manager (dpm) layer of USB-PD. This CL is focused just on adding the state machine policy and minimizing any changes in the existing DPM support functions. Because the DPM is no longer being called directly from the PE layer, an interlock mechanism is used to control when the DPM state machine will take any actions. This CL also renames include/usb_pd_dpm.h to include/usb_pd_dpm_sm.h to be consistent with include file naming for the other TCPMv2 layer state machine include files. BUG=b:194504052 BRANCH=none TEST=Verified that mode entry/exit is successful for DP, TBT, and USB4 on Voxel. ectool typeccontrol <port> 0 -> exit mode ectool typeccontrol <port> 2 0 -> DP ectool typeccontrol <port> 2 1 -> TBT ectool typeccontrol <port> 2 2 -> USB4 Signed-off-by: Scott Collyer <scollyer@google.com> Change-Id: I196d342b031b96874d354610182be79eac613d00 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3922467 Reviewed-by: Abe Levkoy <alevkoy@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com> Commit-Queue: Scott Collyer <scollyer@chromium.org>
Diffstat (limited to 'include/usb_tbt_alt_mode.h')
-rw-r--r--include/usb_tbt_alt_mode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/usb_tbt_alt_mode.h b/include/usb_tbt_alt_mode.h
index 378cd0ccce..b7d7baa6a2 100644
--- a/include/usb_tbt_alt_mode.h
+++ b/include/usb_tbt_alt_mode.h
@@ -14,7 +14,7 @@
#include <stdint.h>
#include "tcpm/tcpm.h"
-#include "usb_pd_dpm.h"
+#include "usb_pd_dpm_sm.h"
#include "usb_pd_tcpm.h"
/*