summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2020-10-23 12:35:32 +0800
committerCommit Bot <commit-bot@chromium.org>2020-10-27 07:14:48 +0000
commit3cba51e9e807e7015d81c2891c47ea4c59587a1c (patch)
treebe0d16557355626b9ced0d41ab823eba3e625eca
parent2f686b6904bbaa96f42ea24c1c241c68f9d2f548 (diff)
downloadchrome-ec-3cba51e9e807e7015d81c2891c47ea4c59587a1c.tar.gz
asurada: ps8743: set Rx EQ to 12.8dB
BUG=b:170703310 TEST=pass usb compliance test BRANCH=none Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ieb226da91643b8bebf6eb49241c01be612f714f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2493797 Reviewed-by: Eric Yilun Lin <yllin@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/asurada/board.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/board/asurada/board.c b/board/asurada/board.c
index 9ddf68c27b..664b4a8df4 100644
--- a/board/asurada/board.c
+++ b/board/asurada/board.c
@@ -411,6 +411,15 @@ const struct usb_mux usb_muxes[CONFIG_USB_PD_PORT_MAX_COUNT] = {
},
};
+void board_usb_mux_init(void)
+{
+ if (board_get_sub_board() == SUB_BOARD_TYPEC)
+ ps8743_tune_usb_eq(PS8743_I2C_ADDR0_FLAG,
+ PS8743_USB_EQ_TX_12_8_DB,
+ PS8743_USB_EQ_RX_12_8_DB);
+}
+DECLARE_HOOK(HOOK_INIT, board_usb_mux_init, HOOK_PRIO_INIT_I2C + 1);
+
int board_set_active_charge_port(int port)
{
int i;