From e1728abb335acf11e2c9512ae88181a770935850 Mon Sep 17 00:00:00 2001 From: Abe Levkoy Date: Thu, 15 Oct 2020 10:52:50 -0600 Subject: TCPMv2: Add typeccontrol enter-mode subcommand Define and implement TYPEC_CONTROL_COMMAND_ENTER_MODE. Allow DPM state to be accessed asynchronously by host commands. Add support for this command to ectool. BUG=b:168030639 TEST=Attach DP dongle; discovers but does not enter TEST=ectool typeccontrol 1 2 0; enters DP TEST=Attach TBT dock and TBT active cable; discovers but does not enter TEST=ectool typeccontrol 1 2 1; enters TBT BRANCH=none Change-Id: I218c4b9a92004ef1efe9a27b2a920031961b33f3 Signed-off-by: Abe Levkoy Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2454538 Reviewed-by: Diana Z --- include/usb_pd_dpm.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/usb_pd_dpm.h') diff --git a/include/usb_pd_dpm.h b/include/usb_pd_dpm.h index d1c029bc03..ccc7c57ff7 100644 --- a/include/usb_pd_dpm.h +++ b/include/usb_pd_dpm.h @@ -11,6 +11,9 @@ #ifndef __CROS_EC_USB_DPM_H #define __CROS_EC_USB_DPM_H +#include "ec_commands.h" +#include "usb_pd_tcpm.h" + /* * Initializes DPM state for a port. * -- cgit v1.2.1