summaryrefslogtreecommitdiff
path: root/board/nipperkin/board.c
diff options
context:
space:
mode:
authorRob Barnes <robbarnes@google.com>2022-01-05 17:38:54 -0700
committerCommit Bot <commit-bot@chromium.org>2022-01-06 22:26:08 +0000
commitb8aa097b7369d751604065883844350b8f9412c6 (patch)
treea4197314e3903e4dbdcf340131739c95054b4e3d /board/nipperkin/board.c
parent2b09461302a4b987d02bb63273bfc8090c622ba3 (diff)
downloadchrome-ec-b8aa097b7369d751604065883844350b8f9412c6.tar.gz
guybrush: Correctly set IOEX_USB_C1_IN_HPD
IOEX_USB_C1_IN_HPD was not being correctly set in board_c1_ps8818_mux_set. Code from Zork was incorrectly copied and changed to set the HPD signal to the SOC instead of the HPD signal to the PS8818 retimer. According to the PS8818 datasheet, asserting IN_HPD will pull PS8818 out of DP Idle mode. BUG=b:212640973 BRANCH=None TEST=C1 to HDMI works on Nipperkin Change-Id: I477e2f534dbddc4fa8771d4c2bf830d5c9e89d9c Signed-off-by: Rob Barnes <robbarnes@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3368353 Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'board/nipperkin/board.c')
-rw-r--r--board/nipperkin/board.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/board/nipperkin/board.c b/board/nipperkin/board.c
index c65e0f5e5f..3fe31fdfd8 100644
--- a/board/nipperkin/board.c
+++ b/board/nipperkin/board.c
@@ -125,6 +125,11 @@ __override int board_c1_ps8818_mux_set(const struct usb_mux *me,
if (rv)
return rv;
+ /* Enable HPD on the DB */
+ ioex_set_level(IOEX_USB_C1_IN_HPD, 1);
+ } else {
+ /* Disable HPD on the DB */
+ ioex_set_level(IOEX_USB_C1_IN_HPD, 0);
}
return rv;