From 8a6c72022f1a43fe8288eed2e1a5b94400ca4b1f Mon Sep 17 00:00:00 2001 From: Todd Broch Date: Wed, 1 Oct 2014 18:49:50 -0700 Subject: pd: Enable alternate mode support for DP. Change effects: 1. samus_pd: Acts as initiator of SVDM discovery once its reaches source ready and upon identifying UFP with display port alternate mode enters that mode. 2. hoho: Acts as responder for SVDM discovery providing its identity, svids and svid capabilities which are display port only. If asked to enter display port alternate mode it does. 3. fruitpie: Acts a initiator with mock display port mode. BRANCH=none BUG=chrome-os-partner:30645 TEST=manual, Plug hoho into samus_pd - see dpout - from console > typec 0 Port C0: CC1 451 mV CC2 111 mV (polarity:CC1) Superspeed DP1 Change-Id: I1a76767353a69baeceffa3e79c37dcea77b8337d Signed-off-by: Todd Broch Reviewed-on: https://chromium-review.googlesource.com/221354 Reviewed-by: Alec Berg Reviewed-by: Vincent Palatin --- board/hoho/usb_pd_policy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'board/hoho/usb_pd_policy.c') diff --git a/board/hoho/usb_pd_policy.c b/board/hoho/usb_pd_policy.c index 19881ac782..20097e80c1 100644 --- a/board/hoho/usb_pd_policy.c +++ b/board/hoho/usb_pd_policy.c @@ -188,9 +188,9 @@ static int pd_custom_vdm(int port, int cnt, uint32_t *payload, rsize = 7; break; default: - /* Unknown : do not answer */ - return 0; + rsize = 0; } + ccprintf("%T] DONE\n"); /* respond (positively) to the request */ payload[0] |= VDO_SRC_RESPONDER; -- cgit v1.2.1