diff options
author | Vincent Palatin <vpalatin@chromium.org> | 2015-05-07 08:43:07 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-08 00:52:46 +0000 |
commit | d7d6e7e660901fb73275ca41090115bed590e137 (patch) | |
tree | 009f97413c3ec37ad557afa8709d3e045fca94ea /include | |
parent | dbf027f2f78f696b909dd2d70c8bf5439171befd (diff) | |
download | chrome-ec-d7d6e7e660901fb73275ca41090115bed590e137.tar.gz |
ryu: update PD swaps configuration
- allow power swap only when we are dual-role toggling (ie in S0).
- enable the VCONN swap feature to support more type-C dongles.
and allow it using the same rule as power swap.
- become a power sink when we are connected to an externally powered
DRP.
- by default, try to be a data UFP for USB.
so Dual Role Device such as laptops can get our data.
- add a message to inform the AP that our USB role has changed
(but the host events are fully wired yet on Ryu)
Signed-off-by: Vincent Palatin <vpalatin@chromium.org>
BRANCH=none
BUG=none
TEST=make buildall
Change-Id: Id0f9027b140cb20f105bcdbc00cac5cb5f44c9e0
Reviewed-on: https://chromium-review.googlesource.com/269857
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Trybot-Ready: Vincent Palatin <vpalatin@chromium.org>
Commit-Queue: Vincent Palatin <vpalatin@chromium.org>
Tested-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ec_commands.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index cb064b9588..ad3056e3e8 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -2927,6 +2927,7 @@ struct ec_response_pd_status { #define PD_EVENT_UPDATE_DEVICE (1 << 0) #define PD_EVENT_POWER_CHANGE (1 << 1) #define PD_EVENT_IDENTITY_RECEIVED (1 << 2) +#define PD_EVENT_DATA_SWAP (1 << 3) struct ec_response_host_event_status { uint32_t status; /* PD MCU host event status */ } __packed; |