summaryrefslogtreecommitdiff
path: root/include/usb_pd.h
diff options
context:
space:
mode:
authorDiana Z <dzigterman@chromium.org>2019-03-07 11:00:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2019-03-28 14:13:57 -0700
commite3e9d6ab178738f354d4615dab7d28af0b139384 (patch)
treefc81e981b18a744811dea4ccf3c7a3e092919b07 /include/usb_pd.h
parent1bc05024e8d2c35172fd1a0f48b30e686019b407 (diff)
downloadchrome-ec-e3e9d6ab178738f354d4615dab7d28af0b139384.tar.gz
USB PD: Save Vconn state in BBRAM
Currently, unlocked systems can maintain a contract over a reset or sysjump by referencing BBRAM flags for the data and power state. An additional flag is needed to track Vconn state though, particularly in scenarios with hubs which prefer to swap Vconn when they source power. Otherwise, both port partners have a different perspective of which one is sourcing Vconn and this can lead to hard resets when the hub attempts another Vconn swap. BUG=None BRANCH=None TEST=Ran EC resets on unlocked octopus board with a hub which prefers to not source Vconn, ensured that there were no strange Vconn_swap sequences after reset Change-Id: I4ccae72bef1a2df8cda4b32fb6e0a15c0cf176b1 Signed-off-by: Diana Z <dzigterman@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1536078 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_pd.h')
-rw-r--r--include/usb_pd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index f5c43694be..89202a7ad3 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -785,6 +785,7 @@ enum pd_states {
#define PD_BBRMFLG_EXPLICIT_CONTRACT BIT(0)
#define PD_BBRMFLG_POWER_ROLE BIT(1)
#define PD_BBRMFLG_DATA_ROLE BIT(2)
+#define PD_BBRMFLG_VCONN_ROLE BIT(3)
enum pd_cc_states {
PD_CC_NONE,