diff options
author | Devin Lu <devin.lu@quantatw.com> | 2018-01-05 20:39:43 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-01-09 01:04:44 -0800 |
commit | 0ebb1c2479caf9936cdc35396a01ed87011d9b4c (patch) | |
tree | f789031d0475dc673d4a7b7fd76fac6f1ea93465 | |
parent | b9f78632fa11c1b82844ee076fb0c00e11ce6448 (diff) | |
download | chrome-ec-0ebb1c2479caf9936cdc35396a01ed87011d9b4c.tar.gz |
Fizz: override DP EQ setting for Deterministic Jitter
Set lower EQ of DP port to 4.5db.
BUG=b:71613170
BRANCH=none
TEST=use ectools to read PS8751 reg offset 0xd3 as 0x98
Change-Id: Iedc0002028ead6f0f6fa7aeef4ad2845b028a76b
Signed-off-by: Devin Lu <Devin.Lu@quantatw.com>
Reviewed-on: https://chromium-review.googlesource.com/851756
Reviewed-by: Ryan Zhang <ryan.zhang@quanta.corp-partner.google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r-- | board/fizz/board.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/board/fizz/board.c b/board/fizz/board.c index cf1301d8ff..2089777a01 100644 --- a/board/fizz/board.c +++ b/board/fizz/board.c @@ -192,11 +192,20 @@ const struct tcpc_config_t tcpc_config[CONFIG_USB_PD_PORT_COUNT] = { TCPC_ALERT_ACTIVE_LOW}, }; +static int ps8751_tune_mux(const struct usb_mux *mux) +{ + /* 0x98 sets lower EQ of DP port (4.5db) */ + i2c_write8(I2C_PORT_TCPC0, I2C_ADDR_TCPC0, + PS8XXX_REG_MUX_DP_EQ_CONFIGURATION, 0x98); + return EC_SUCCESS; +} + struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_COUNT] = { { .port_addr = 0, .driver = &tcpci_tcpm_usb_mux_driver, .hpd_update = &ps8xxx_tcpc_update_hpd_status, + .board_init = &ps8751_tune_mux, } }; |