diff options
author | Todd Broch <tbroch@chromium.org> | 2014-11-12 16:32:02 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-05-01 01:08:10 +0000 |
commit | 7cc3136da56eaea8cfa7f9139ebaf6361707ade2 (patch) | |
tree | 9a66caa15bf4a2df6954c592ca6978a1bda1ad11 /common | |
parent | 56653dec06ede2c62ec35c74f0e133f18dd7ea50 (diff) | |
download | chrome-ec-7cc3136da56eaea8cfa7f9139ebaf6361707ade2.tar.gz |
plankton: HPD over USB PD.
HPD needs to be transported over USB PD as both SBU lines are consumed
for differential AUX signalling.
This CL does the following:
1. Enables GPIO DPSRC_HPD as interrupt.
2. Sends debounced HPD across CC via the SVDM DP status message.
3. Adds polling for GPIO_DBG_20V_TO_DUT_L as it shares the same
interrupt as DPSRC_HPD.
4. Configures DP redriver in presence of HPD high.
Signed-off-by: Todd Broch <tbroch@chromium.org>
BRANCH=none
BUG=chrome-os-partner:33132,chrome-os-partner:33761
TEST=manual,
1. Connect samus -> plankton via type-C
2. Connect plankton -> DP monitor via displayport
See initial SVDM discovery on samus console
See EDID information
See SVDM status message correct when plug/unplug DP cable from plankton
3. Press 'CHARGING_20V_TO_DUT_L' button and see below on plankton console.
Button 8 = 0
Change-Id: Id95567a3bfa073ffa2c699335be8c5bf0327675f
Reviewed-on: https://chromium-review.googlesource.com/229429
Reviewed-by: Alec Berg <alecaberg@chromium.org>
Commit-Queue: Todd Broch <tbroch@chromium.org>
Tested-by: Todd Broch <tbroch@chromium.org>
Diffstat (limited to 'common')
-rw-r--r-- | common/usb_pd_policy.c | 2 | ||||
-rw-r--r-- | common/usb_pd_protocol.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/common/usb_pd_policy.c b/common/usb_pd_policy.c index bd0915a50b..96cf970a30 100644 --- a/common/usb_pd_policy.c +++ b/common/usb_pd_policy.c @@ -749,7 +749,7 @@ int pd_vdm(int port, int cnt, uint32_t *payload, uint32_t **rpayload) void pd_usb_billboard_deferred(void) { #if defined(CONFIG_USB_PD_ALT_MODE) && !defined(CONFIG_USB_PD_ALT_MODE_DFP) \ - && !defined(CONFIG_USB_PD_SIMPLE_DFP) + && !defined(CONFIG_USB_PD_SIMPLE_DFP) && defined(CONFIG_USB_BOS) /* * TODO(tbroch) diff --git a/common/usb_pd_protocol.c b/common/usb_pd_protocol.c index 9cf7340d54..08deda0a06 100644 --- a/common/usb_pd_protocol.c +++ b/common/usb_pd_protocol.c @@ -3046,7 +3046,7 @@ void pd_send_hpd(int port, enum hpd_event hpd) 0, /* request exit DP */ 0, /* request exit USB */ 0, /* MF pref */ - gpio_get_level(GPIO_PD_SBU_ENABLE), + 1, /* enabled */ 0, /* power low */ 0x2); pd_send_vdm(port, USB_SID_DISPLAYPORT, |