diff options
author | Wai-Hong Tam <waihong@google.com> | 2020-10-29 16:47:09 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-10-31 02:15:46 +0000 |
commit | 13f0925ce8c686333a2aaca4db8903c32edf847f (patch) | |
tree | 1719c56396ee53c77c8896cbb43a5b073d1f9fce /board/coachz/gpio.inc | |
parent | 65fcc29f189d5f8b3323ad3cb085dea2fa188991 (diff) | |
download | chrome-ec-13f0925ce8c686333a2aaca4db8903c32edf847f.tar.gz |
Trogdor: Configure OE_L and SEL of DP muxes to prevent leakage
The OE_L has external pull-up. It is actually an open-drain output.
Configuring it to push-pull has leakage through the pull-up to an
unpowered rail during EC hibernate.
Also configure SEL to output low if OE_L is deasserted. The SEL has
no meaning if the muxes are disabled. When EC hibernate, the muxing
ICs are unpowered. Outputing low prevents leakage through the muxing
ICs.
BRANCH=None
BUG=b:169595541
TEST=Plugged a HDMI monitor to port-0 and port-1; checked the DP mux
settings correctly.
Change-Id: Icf0e81172626c09bc556756f1bcdddb83f45ac68
Signed-off-by: Wai-Hong Tam <waihong@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2508864
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Diffstat (limited to 'board/coachz/gpio.inc')
-rw-r--r-- | board/coachz/gpio.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/coachz/gpio.inc b/board/coachz/gpio.inc index 91446975d3..6d86b7ebb7 100644 --- a/board/coachz/gpio.inc +++ b/board/coachz/gpio.inc @@ -84,8 +84,8 @@ GPIO(EN_BASE, PIN(0, 4), GPIO_OUT_LOW) /* Enable power to detach /* USB-C */ GPIO(USB_C0_PD_RST_L, PIN(F, 1), GPIO_ODR_HIGH) /* Port-0 TCPC chip reset, actaully Open-Drain */ GPIO(USB_C1_PD_RST_L, PIN(E, 4), GPIO_ODR_HIGH) /* Port-1 TCPC chip reset, actually Open-Drain */ -GPIO(DP_MUX_OE_L, PIN(9, 6), GPIO_OUT_HIGH) /* DP mux enable */ -GPIO(DP_MUX_SEL, PIN(4, 5), GPIO_OUT_HIGH) /* DP mux selection: L:C0, H:C1 */ +GPIO(DP_MUX_OE_L, PIN(9, 6), GPIO_ODR_HIGH) /* DP mux enable, actually Open-Drain */ +GPIO(DP_MUX_SEL, PIN(4, 5), GPIO_OUT_LOW) /* DP mux selection: L:C0, H:C1 */ GPIO(DP_HOT_PLUG_DET, PIN(9, 5), GPIO_OUT_LOW) /* DP HPD to AP */ /* USB-A */ |