diff options
author | Shelley Chen <shchen@google.com> | 2020-02-20 13:54:24 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-21 03:42:58 +0000 |
commit | 861816d3b6adbeb8c599c18ceb2ba143fa5a7a1c (patch) | |
tree | e1ad30cb54274aae21bc63f3a96e1871e3e310c8 /board/kohaku/board.c | |
parent | dcee461db54865980e6f1d59fa3ea4a216a94c0b (diff) | |
download | chrome-ec-861816d3b6adbeb8c599c18ceb2ba143fa5a7a1c.tar.gz |
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 <shchen@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2067480
Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
Commit-Queue: Shelley Chen <shchen@chromium.org>
Tested-by: Shelley Chen <shchen@chromium.org>
Diffstat (limited to 'board/kohaku/board.c')
-rw-r--r-- | board/kohaku/board.c | 11 |
1 files changed, 11 insertions, 0 deletions
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(); |