summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorScott <scollyer@chromium.org>2015-04-28 10:07:56 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-06-30 08:58:23 +0000
commit590c76d910d4e474b8713b71dae379608b06a265 (patch)
treeca46ba2209db4badd299b8373cb178d80cef61c4 /include
parent0ec956ea9d585f350a47db162e275037008d75cc (diff)
downloadchrome-ec-590c76d910d4e474b8713b71dae379608b06a265.tar.gz
honeybuns: Update VDM information for DisplayPort
Updated the VDM information to handle properly the DisplayPort alternate mode. Switch to 2+2 (DP+USB3.0) if mode D is entered else use 4 lanes of DP for mode C. Set the Multi-Function Preferred bit, so laptops select the mode D. BUG=none BRANCH=none TEST=Tested with samus. Verified we get 36W of power + USB2.0 key + USB3.0 key + external DP display. Change-Id: I95e3b3640fd5952faeb24312e387468aed6266c7 Signed-off-by: Scott Collyer <scollyer@chromium.org> Signed-off-by: Vincent Palatin <vpalatin@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/267688 Reviewed-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/usb_pd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_pd.h b/include/usb_pd.h
index 7e3a0a61e3..640c650a74 100644
--- a/include/usb_pd.h
+++ b/include/usb_pd.h
@@ -576,6 +576,13 @@ struct pd_policy {
#define PD_DP_CFG_DPON(x) (((x & 0x3) == 1) || ((x & 0x3) == 2))
/*
+ * Get the pin assignment mask
+ * for backward compatibility, if it is null,
+ * get the former sink pin assignment we used to be in <23:16>.
+ */
+#define PD_DP_CFG_PIN(x) ((((x) >> 8) & 0xff) ? (((x) >> 8) & 0xff) \
+ : (((x) >> 16) & 0xff))
+/*
* ChromeOS specific PD device Hardware IDs. Used to identify unique
* products and used in VDO_INFO. Note this field is 10 bits.
*/
@@ -584,6 +591,7 @@ struct pd_policy {
#define USB_PD_HW_DEV_ID_MINIMUFFIN 2
#define USB_PD_HW_DEV_ID_DINGDONG 3
#define USB_PD_HW_DEV_ID_HOHO 4
+#define USB_PD_HW_DEV_ID_HONEYBUNS 5
/*
* ChromeOS specific VDO_CMD_READ_INFO responds with device info including: