diff options
author | Caveh Jalali <caveh@chromium.org> | 2019-11-06 22:23:25 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-11-12 02:41:36 +0000 |
commit | 025ef36043512b3e771a0c38a5b2fe3b27b42311 (patch) | |
tree | 30df64a53fcc09a50f5dff88271231af7cd026b0 /board/atlas | |
parent | e10f5bf1eeb83f6b8e146f5b28c7cbe9fae46c5e (diff) | |
download | chrome-ec-025ef36043512b3e771a0c38a5b2fe3b27b42311.tar.gz |
atlas: Always advertise DFP_D connected
the VESA DisplayPort Alt Mode on USB Type-C Standard section 5.2.3
requires that DP alt mode capable devices permanently set the
connected status bit.
BRANCH=none
BUG=chromium:1022256
TEST=verified improved interop with caldigit dock
Change-Id: If439186120380cdc11eb8ea69a6b3d5d3d39b0a6
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1903647
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Diffstat (limited to 'board/atlas')
-rw-r--r-- | board/atlas/usb_pd_policy.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/board/atlas/usb_pd_policy.c b/board/atlas/usb_pd_policy.c index a66411f931..8b7c8bef97 100644 --- a/board/atlas/usb_pd_policy.c +++ b/board/atlas/usb_pd_policy.c @@ -325,6 +325,10 @@ static int svdm_dp_status(int port, uint32_t *payload) payload[0] = VDO(USB_SID_DISPLAYPORT, 1, CMD_DP_STATUS | VDO_OPOS(opos)); + /* + * VESA DisplayPort Alt Mode on USB Type-C Standard Version 1.0b: + * 5.2.3 requries DP_FLAGS_DP_ON permanently set for DFP_D + */ payload[1] = VDO_DP_STATUS(0, /* HPD IRQ ... not applicable */ 0, /* HPD level ... not applicable */ 0, /* exit DP? ... no */ @@ -332,7 +336,7 @@ static int svdm_dp_status(int port, uint32_t *payload) 0, /* multi-function ... no */ (!!(dp_flags[port] & DP_FLAGS_DP_ON)), 0, /* power low? ... no */ - (!!(dp_flags[port] & DP_FLAGS_DP_ON))); + (!!DP_FLAGS_DP_ON)); return 2; }; |