summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2021-12-07 16:15:22 +0800
committerCommit Bot <commit-bot@chromium.org>2021-12-09 07:03:47 +0000
commite4fba9246db72c4f44f4cf3e7c3a742753bb6e37 (patch)
treeaaf745462bd62025e092243f38f77d9aceb1caab
parent70e0694ffb569b5b5cbc0dd411628125083dc557 (diff)
downloadchrome-ec-e4fba9246db72c4f44f4cf3e7c3a742753bb6e37.tar.gz
asurada: disable DCI function on PS8743 to save power
BUG=b:209528621 TEST=manually BRANCH=asurada Signed-off-by: Ting Shen <phoenixshen@google.com> Change-Id: Ia85a861f8895d055dea48463cb2bcdd93e8ea569 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3320081 Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Ting Shen <phoenixshen@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/asurada/usbc_config.c4
-rw-r--r--board/spherion/board.c7
2 files changed, 10 insertions, 1 deletions
diff --git a/board/asurada/usbc_config.c b/board/asurada/usbc_config.c
index 2f35816abb..63552980c3 100644
--- a/board/asurada/usbc_config.c
+++ b/board/asurada/usbc_config.c
@@ -23,6 +23,10 @@ void board_usb_mux_init(void)
ps8743_write(&usb_muxes[1],
PS8743_REG_HS_DET_THRESHOLD,
PS8743_USB_HS_THRESH_NEG_10);
+ ps8743_field_update(&usb_muxes[1],
+ PS8743_REG_DCI_CONFIG_2,
+ PS8743_AUTO_DCI_MODE_MASK,
+ PS8743_AUTO_DCI_MODE_FORCE_USB);
}
}
DECLARE_HOOK(HOOK_INIT, board_usb_mux_init, HOOK_PRIO_INIT_I2C + 1);
diff --git a/board/spherion/board.c b/board/spherion/board.c
index 1119b1f077..95fa0a06de 100644
--- a/board/spherion/board.c
+++ b/board/spherion/board.c
@@ -105,10 +105,15 @@ DECLARE_HOOK(HOOK_CHIPSET_SUSPEND, kb_backlight_disable, HOOK_PRIO_DEFAULT);
void board_usb_mux_init(void)
{
- if (board_get_sub_board() == SUB_BOARD_TYPEC)
+ if (board_get_sub_board() == SUB_BOARD_TYPEC) {
ps8743_tune_usb_eq(&usb_muxes[1],
PS8743_USB_EQ_TX_12_8_DB,
PS8743_USB_EQ_RX_12_8_DB);
+ ps8743_field_update(&usb_muxes[1],
+ PS8743_REG_DCI_CONFIG_2,
+ PS8743_AUTO_DCI_MODE_MASK,
+ PS8743_AUTO_DCI_MODE_FORCE_USB);
+ }
}
DECLARE_HOOK(HOOK_INIT, board_usb_mux_init, HOOK_PRIO_INIT_I2C + 1);