diff options
author | Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com> | 2020-12-14 10:44:17 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-25 07:45:43 +0000 |
commit | 40eb50778857ac041a15aae1f461a5537f1012d3 (patch) | |
tree | 341198a1cd6df7f88e40c19e755fc00666e6816c | |
parent | 50e59e80e6e0a0d203a3376eaeed3fc40a147ac8 (diff) | |
download | chrome-ec-40eb50778857ac041a15aae1f461a5537f1012d3.tar.gz |
shuboz: Modify PS8743B setting for signal quality
Update setting value of PS8743B for USB-C1 signal quality
The setting would will be modified to 0xB0 for offset 0x3B.
BUG=b:175234108
BRANCH=firmware-zork-13434.B
TEST=make BOARD=shuboz
Check PS8743B register value of 0x3B.
Signed-off-by: Jacky Wang <jacky5_wang@pegatron.corp-partner.google.com>
Change-Id: I69d88a4a224abf90db56cb49fc34f9bbc068a162
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2589138
Reviewed-by: Edward Hill <ecgh@chromium.org>
Reviewed-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Tested-by: Michael5 Chen <michael5_chen1@pegatron.corp-partner.google.com>
Commit-Queue: Isaac Lee <isaaclee@google.com>
-rw-r--r-- | board/shuboz/board.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/board/shuboz/board.c b/board/shuboz/board.c index 30839ac8bd..ea7029c03d 100644 --- a/board/shuboz/board.c +++ b/board/shuboz/board.c @@ -164,6 +164,8 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, board_chipset_suspend, HOOK_PRIO_DEFAULT); static int board_ps8743_mux_set(const struct usb_mux *me, mux_state_t mux_state) { + int res; + if (mux_state & USB_PD_MUX_DP_ENABLED) /* Enable IN_HPD on the DB */ ioex_set_level(IOEX_USB_C1_HPD_IN_DB, 1); @@ -171,7 +173,8 @@ static int board_ps8743_mux_set(const struct usb_mux *me, /* Disable IN_HPD on the DB */ ioex_set_level(IOEX_USB_C1_HPD_IN_DB, 0); - return EC_SUCCESS; + res = ps8743_write(me, PS8743_REG_USB_EQ_RX, 0xB0); + return res; } |