summaryrefslogtreecommitdiff
path: root/board/plankton/gpio.inc
diff options
context:
space:
mode:
authorTodd Broch <tbroch@chromium.org>2014-11-12 16:32:02 -0800
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-01 01:08:10 +0000
commit7cc3136da56eaea8cfa7f9139ebaf6361707ade2 (patch)
tree9a66caa15bf4a2df6954c592ca6978a1bda1ad11 /board/plankton/gpio.inc
parent56653dec06ede2c62ec35c74f0e133f18dd7ea50 (diff)
downloadchrome-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 'board/plankton/gpio.inc')
-rw-r--r--board/plankton/gpio.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/board/plankton/gpio.inc b/board/plankton/gpio.inc
index dce01b2d9e..6ee250ebce 100644
--- a/board/plankton/gpio.inc
+++ b/board/plankton/gpio.inc
@@ -7,7 +7,7 @@
/* Inputs with interrupt handlers are first for efficiency */
GPIO_INT(VBUS_WAKE, B, 5, GPIO_INT_BOTH, vbus_event)
-GPIO_INT(DBG_20V_TO_DUT_L, C, 13, GPIO_INT_FALLING, button_event)
+GPIO_INT(DPSRC_HPD, B, 13, GPIO_INT_BOTH, hpd_event)
GPIO_INT(DBG_12V_TO_DUT_L, B, 14, GPIO_INT_FALLING, button_event)
GPIO_INT(DBG_5V_TO_DUT_L, B, 8, GPIO_INT_FALLING, button_event)
GPIO_INT(DBG_CHG_TO_DEV_L, F, 1, GPIO_INT_FALLING, button_event)
@@ -15,6 +15,9 @@ GPIO_INT(DBG_USB_TOGGLE_L, F, 0, GPIO_INT_FALLING, button_event)
GPIO_INT(DBG_CASE_CLOSE_EN_L, B, 12, GPIO_INT_FALLING, button_event)
GPIO_INT(DBG_MUX_FLIP_L, B, 15, GPIO_INT_FALLING, button_event)
+/* TODO(crosbug.com/p/33761) : This interrupt is double booked w/ HPD */
+GPIO(DBG_20V_TO_DUT_L, C, 13, GPIO_INPUT)
+
/* PD RX/TX */
GPIO(USBC_PD_REF, A, 1, GPIO_ANALOG)
GPIO(USBC_CC1_PD, A, 0, GPIO_ANALOG)
@@ -50,9 +53,6 @@ GPIO(CASE_CLOSE_EN, A, 7, GPIO_OUT_LOW)
GPIO(CASE_CLOSE_DFU_L, A, 13, GPIO_OUT_HIGH)
GPIO(DEBUG_TOGGLE, B, 4, GPIO_OUT_LOW)
-/* Display port */
-GPIO(DPSRC_HPD, B, 13, GPIO_INPUT)
-
/* Alternate functions */
#if 0
GPIO(UART_TX, A, 14, GPIO_OUT_LOW)