diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-09-18 11:11:00 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2015-09-18 20:57:38 -0700 |
commit | c7eaa0a81c25de7cad906e482c197432aa7dcbf7 (patch) | |
tree | ea4489336c055cb6e1a932af5681dd96445542b4 /include/usb_pd.h | |
parent | 6b5a49ef15354c5b31be51f32006dbb4d7dc7c62 (diff) | |
download | chrome-ec-c7eaa0a81c25de7cad906e482c197432aa7dcbf7.tar.gz |
pd: add more flags to USB_PD_CONTROL host command
Add more flags to EC_CMD_USB_PD_CONTROL including whether
the port partner is PD capable, and if the port partner has
any of the following flags set in its capabilities: dual-role
power, dual-role data, USB comms capable, and externally
powered.
BUG=none
BRANCH=smaug
TEST=tested on samus using 'ectool --dev=1 usbpd 0'. Tested
with zinger, guppy, another samus, and other third party
devices to verify the flags are set as advertised in src/snk
capabilities packet
Change-Id: I4d78d1880073fdacce57516111ac6cab37b93f27
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/300953
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r-- | include/usb_pd.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h index 5a67965853..ae11f8bc09 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -704,6 +704,7 @@ enum pd_states { #define PD_FLAGS_PARTNER_EXTPOWER (1 << 11)/* port partner has external pwr */ #define PD_FLAGS_VCONN_ON (1 << 12)/* vconn is being sourced */ #define PD_FLAGS_TRY_SRC (1 << 13)/* Try.SRC states are active */ +#define PD_FLAGS_PARTNER_USB_COMM (1 << 14)/* port partner is USB comms */ /* Flags to clear on a disconnect */ #define PD_FLAGS_RESET_ON_DISCONNECT_MASK (PD_FLAGS_PARTNER_DR_POWER | \ PD_FLAGS_PARTNER_DR_DATA | \ @@ -715,7 +716,8 @@ enum pd_states { PD_FLAGS_CHECK_DR_ROLE | \ PD_FLAGS_PARTNER_EXTPOWER | \ PD_FLAGS_VCONN_ON | \ - PD_FLAGS_TRY_SRC) + PD_FLAGS_TRY_SRC | \ + PD_FLAGS_PARTNER_USB_COMM) enum pd_cc_states { |