summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-07-29 16:36:41 +0800
committerCommit Bot <commit-bot@chromium.org>2019-09-09 06:50:36 +0000
commit1524c164f52acc8cdab918b782c21e2120dcc5f6 (patch)
treeef702f80757cf97f6a1c12bc65d2f6a069b5739a /include
parent60c0372ba770590333f164c4066ee068c6a4f93d (diff)
downloadchrome-ec-1524c164f52acc8cdab918b782c21e2120dcc5f6.tar.gz
jacuzzi: enable DP
enable dp on jacuzzi, and add back the dp implementation before CL:1660524 for all new devices including jacuzzi. usb_pd_policy now supports two different configs: - kukui/krane, rev <= 4: no mux (CONFIG_USB_MUX_VIRTUAL defined) - all new devices: have a real mux BUG=b:135895590,b:135079572 TEST=attach a usb hub and moniter to the dut, verify that dp/dp+mux mode and both polarities can detected correctly BRANCH=master Change-Id: I3e4757c97d555a4afb48076fc4785305c96b0a7f Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1723892 Reviewed-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
Diffstat (limited to 'include')
-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 a1a1c0ba0f..b0d52737f4 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -825,6 +825,7 @@ struct pd_cable {
#define MODE_DP_PIN_D 0x08
#define MODE_DP_PIN_E 0x10
#define MODE_DP_PIN_F 0x20
+#define MODE_DP_PIN_ALL 0x3f
#define MODE_DP_DFP_PIN_SHIFT 8
#define MODE_DP_UFP_PIN_SHIFT 16