diff options
author | Łukasz Hajec <hajec@google.com> | 2023-02-09 16:00:59 +0100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-03-09 18:49:42 +0000 |
commit | 1d44b153dcae4320bd3d815d06d2f8082e9a48eb (patch) | |
tree | 700a6fc93627f3087390681d94f9904a306e800b /driver/usb_mux/tusb1064.c | |
parent | f0588caae72d5e1672568a656c94fd4118f4d935 (diff) | |
download | chrome-ec-1d44b153dcae4320bd3d815d06d2f8082e9a48eb.tar.gz |
servo_v4p1: Add mechanism to enable/disable USB3 to DUT
This CL disables USB3 to DUT by default.
It overwrites TUSB1064 usb_mux set method to always
prevent or allow using USB3 mode in this mux/switch.
This CL also adds console command (and needed backed)
that can be used to enable/disable USB3 to DUT.
BUG=b:254857085 b:263573379
BRANCH=none
TEST=build and flash servo FW
test functionality using Lazor board
Change-Id: Idcb47369b7b0352a21666e7a46ddcc56b6e1063a
Signed-off-by: Łukasz Hajec <hajec@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4236345
Reviewed-by: Jan Dabros <dabros@google.com>
Diffstat (limited to 'driver/usb_mux/tusb1064.c')
-rw-r--r-- | driver/usb_mux/tusb1064.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/usb_mux/tusb1064.c b/driver/usb_mux/tusb1064.c index 7fd6cfe561..9dc25d0d01 100644 --- a/driver/usb_mux/tusb1064.c +++ b/driver/usb_mux/tusb1064.c @@ -89,8 +89,8 @@ int tusb1064_set_dp_rx_eq(const struct usb_mux *me, int db) } /* Writes control register to set switch mode */ -static int tusb1064_set_mux(const struct usb_mux *me, mux_state_t mux_state, - bool *ack_required) +int tusb1064_set_mux(const struct usb_mux *me, mux_state_t mux_state, + bool *ack_required) { uint8_t reg; int rv; |