diff options
author | Boris Mittelberg <bmbm@google.com> | 2022-10-06 17:10:56 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-10 18:42:47 +0000 |
commit | 3358e501e393ba0838c7ce39de3ce9560628fb9d (patch) | |
tree | 608177c6efba76c12ac69339209df6ba0f430b61 | |
parent | ed1b0fcdee6ed6a2413a90a3ff0d48048aa6f0e5 (diff) | |
download | chrome-ec-3358e501e393ba0838c7ce39de3ce9560628fb9d.tar.gz |
redrix: enable usb_mux idle
Use the new API to put the mux in idle mode on suspend
BRANCH=none
BUG=b:233975818 b:245753005
TEST=BBR USB3_Connection bit is correct in S0ix/S0
Signed-off-by: Boris Mittelberg <bmbm@google.com>
Change-Id: Iadcbeb75b6918a69d183b1dbbc0d282804c3fd5a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3938419
Reviewed-by: caveh jalali <caveh@chromium.org>
-rw-r--r-- | board/redrix/usbc_config.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/board/redrix/usbc_config.c b/board/redrix/usbc_config.c index a53e2c8909..9c051a4d53 100644 --- a/board/redrix/usbc_config.c +++ b/board/redrix/usbc_config.c @@ -99,6 +99,13 @@ const struct usb_mux_chain usb_muxes[] = { [USBC_PORT_C0] = { .mux = &(const struct usb_mux) { .usb_port = USBC_PORT_C0, + /* + * A USB-A adapter plugged into Type-C port + * would increase BBR power consumption, so + * clear USB3_Connection bit in S0ix and + * re-enable in S0 + */ + .flags = USB_MUX_FLAG_CAN_IDLE, .driver = &bb_usb_retimer, .hpd_update = bb_retimer_hpd_update, .i2c_port = I2C_PORT_USB_C0_MUX, @@ -109,6 +116,7 @@ const struct usb_mux_chain usb_muxes[] = { [USBC_PORT_C1] = { .mux = &(const struct usb_mux) { .usb_port = USBC_PORT_C1, + .flags = USB_MUX_FLAG_CAN_IDLE, .driver = &bb_usb_retimer, .hpd_update = bb_retimer_hpd_update, .i2c_port = I2C_PORT_USB_C1_MUX, |