diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-01-20 11:48:23 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-01-21 05:05:53 +0000 |
commit | 9e07dfb6cb7391844dfd56ba856b30329318f05e (patch) | |
tree | e8f77f7bd8b17ad8c810a41fc1b919e9f22d3ebe /include | |
parent | 43806f07e35de0ab9b27774e2f27841a78a2c527 (diff) | |
download | chrome-ec-9e07dfb6cb7391844dfd56ba856b30329318f05e.tar.gz |
pd: export the data role to the AP
For dual-role USB ports (host/device), let the AP know whether we are
currently DFP (USB host) or UFP (USB device) by exporting the data role
in addition to the power role in the EC_CMD_USB_PD_CONTROL response.
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=samus
BUG=none
TEST=ectool --name=cros_pd usbpd 0
plug various accessories on the port and see properly "SRC DFP" for the
USB key, "SNK DFP" for the power supply and "SNK UFP" for a regular
C-to-A charging cable.
Change-Id: I292da15fa8cf3566109dd05995ef1d00bed6f92d
Reviewed-on: https://chromium-review.googlesource.com/242012
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 1c4efdfdcc..18e9e454f7 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2741,7 +2741,7 @@ struct ec_response_usb_pd_control { struct ec_response_usb_pd_control_v1 { uint8_t enabled; - uint8_t role; + uint8_t role; /* [0] power: 0=SNK/1=SRC [1] data: 0=UFP/1=DFP */ uint8_t polarity; char state[32]; } __packed; |