From 861816d3b6adbeb8c599c18ceb2ba143fa5a7a1c Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Thu, 20 Feb 2020 13:54:24 -0800 Subject: kohaku: Modify TCPC register MUX_DP_EQ_Configuration setting on MB port. Modify TCPC register MUX_DP_EQ_Configuration setting to 0x98 on MB port. BUG=b:149876123 BRANCH=master,hatch TEST=Observed flashing on external monitor prior to fix and didn't observe flashing after applying the fix. Change-Id: I4c19f8211b141ab8726cfa8b6eacb93ad9587705 Signed-off-by: Shelley Chen Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2067480 Reviewed-by: Aseda Aboagye Reviewed-by: Tim Wawrzynczak Commit-Queue: Shelley Chen Tested-by: Shelley Chen --- board/kohaku/board.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'board/kohaku/board.c') diff --git a/board/kohaku/board.c b/board/kohaku/board.c index e2711433fc..dc56f432e1 100644 --- a/board/kohaku/board.c +++ b/board/kohaku/board.c @@ -466,6 +466,17 @@ void board_overcurrent_event(int port, int is_overcurrented) gpio_set_level(GPIO_USB_C_OC_ODL, !is_overcurrented); } +int board_tcpc_post_init(int port) +{ + int rv = EC_SUCCESS; + + if (port == USB_PD_PORT_TCPC_0) + /* Set MUX_DP_EQ to 3.6dB (0x98) */ + rv = tcpc_write(port, PS8XXX_REG_MUX_DP_EQ_CONFIGURATION, 0x98); + + return rv; +} + bool board_is_convertible(void) { const uint8_t sku = get_board_sku(); -- cgit v1.2.1