summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevin Lu <Devin.Lu@quantatw.com>2021-06-18 16:13:49 +0800
committerCommit Bot <commit-bot@chromium.org>2021-06-25 02:03:00 +0000
commitfae6584f0af2eeb4c34e04db6d7ab4aa1e0b6f6f (patch)
tree05f2cb91630eb58a13d92152d0a74646fae473e7
parent43882761d1d01c58024e6c65152ebd784502bd96 (diff)
downloadchrome-ec-fae6584f0af2eeb4c34e04db6d7ab4aa1e0b6f6f.tar.gz
elemi: Tune displayport EQ with ps8815
Tune compensate for channel loss up to 10dB. BUG=b:189587527 BRANCH=firmware-volteer-13672.B-main TEST=Attached USBC to HDMI dongle. i2ctrace to make sure the EQ is 10dB. Signed-off-by: Devin Lu <Devin.Lu@quantatw.com> Change-Id: Ieff6d645cb88875efc3f828919a152180d605479 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2972523 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
-rw-r--r--board/elemi/board.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/board/elemi/board.c b/board/elemi/board.c
index 8000c27332..b48dbc856e 100644
--- a/board/elemi/board.c
+++ b/board/elemi/board.c
@@ -228,6 +228,14 @@ static void kb_backlight_disable(void)
}
DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, kb_backlight_disable, HOOK_PRIO_DEFAULT);
+__override void board_ps8xxx_tcpc_init(int port)
+{
+ /* b/189587527: Set Displayport EQ loss up to 10dB */
+ tcpc_addr_write(port, PS8751_I2C_ADDR1_P1_FLAGS,
+ PS8815_REG_DP_EQ_SETTING,
+ PS8815_DPEQ_LOSS_UP_10DB << PS8815_REG_DP_EQ_COMP_SHIFT);
+}
+
/*
* USB3 DB mux configuration - the top level mux still needs to be set to the
* virtual_usb_mux_driver so the AP gets notified of mux changes and updates