diff options
author | Yilun Lin <yllin@google.com> | 2018-09-12 17:24:18 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-11-27 04:29:08 -0800 |
commit | 434793f29c1515d0317ba3a64afd2ef1bfd2d0fd (patch) | |
tree | 7252c5eb74f6106b97a3953a1992cf329348bf0c /board/kukui/gpio.inc | |
parent | 3397a5374e6ba7dac7ba06d6a4e74be95fa98d1f (diff) | |
download | chrome-ec-434793f29c1515d0317ba3a64afd2ef1bfd2d0fd.tar.gz |
kukui: Enable DP.
On plug DP dongle, we sohuld:
1. set USB_C0_DP_POLARITY bit accordingly
2. set USB_C0_DP_OE_L low
3. set USB_C0_HPD_OD high
On unplug DP dongle, we should:
1. set USB_C0_DP_OE_L high
2. set USB_C0_HPD_OD low
TEST=pd 0 dualrole on; plug DP dongle, see GPIO pins set accordingly.
TEST=unplug DP dongle, see GPIO pins set accordingly.
TEST=plug dp and seeing output to external display for both polarity.
BUG=b:114162810
BRANCH=None
Change-Id: I4e4755e3b757d25a081fd65f8eb68235766d6e0b
Signed-off-by: Yilun Lin <yllin@google.com>
Reviewed-on: https://chromium-review.googlesource.com/1221406
Commit-Ready: Yilun Lin <yllin@chromium.org>
Tested-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Yilun Lin <yllin@chromium.org>
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'board/kukui/gpio.inc')
-rw-r--r-- | board/kukui/gpio.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/kukui/gpio.inc b/board/kukui/gpio.inc index b67489fb60..720eaa42c5 100644 --- a/board/kukui/gpio.inc +++ b/board/kukui/gpio.inc @@ -99,7 +99,7 @@ GPIO(EC_INT_L, PIN(B, 12), GPIO_ODR_HIGH) /* EC_AP_INT_ODL */ GPIO(EC_BOARD_ID_EN_L, PIN(C, 15), GPIO_ODR_HIGH) /* EC_BOARD_ID_EN_ODL */ GPIO(USB_C0_DISCHARGE, PIN(B, 0), GPIO_OUT_LOW) GPIO(USB_C0_DP_POLARITY, PIN(C, 14), GPIO_OUT_LOW) -GPIO(USB_C0_HPD_OD, PIN(F, 1), GPIO_ODR_HIGH) +GPIO(USB_C0_HPD_OD, PIN(F, 1), GPIO_ODR_LOW) GPIO(BOOTBLOCK_MUX_OE, PIN(C, 4), GPIO_ODR_HIGH) GPIO(BOOTBLOCK_EN_L, PIN(C, 1), GPIO_ODR_HIGH) #if BOARD_REV == 0 |