diff options
author | Alec Berg <alecaberg@chromium.org> | 2015-08-03 13:51:53 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-08-04 19:22:07 +0000 |
commit | d804e8fdbd1e9f238317c68d235add1806dcd49f (patch) | |
tree | 4a3b0a1939043a2e1aac02c6676036aacf919502 /driver | |
parent | ccc085dd9a22ce123c16fcf24a816732a3df116f (diff) | |
download | chrome-ec-d804e8fdbd1e9f238317c68d235add1806dcd49f.tar.gz |
usb_charger: cleanup: move setting usb 2 switches to usb_charger
Move function to set D+/D- switches from board directory to
usb_charger module.
BUG=none
BRANCH=strago
TEST=make -j buildall
Change-Id: I5c5997c799cecea90448444863167af860a8f3e1
Signed-off-by: Alec Berg <alecaberg@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/290421
Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'driver')
-rw-r--r-- | driver/usb_mux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/driver/usb_mux.c b/driver/usb_mux.c index 04427f7615..a067fc1c25 100644 --- a/driver/usb_mux.c +++ b/driver/usb_mux.c @@ -37,8 +37,10 @@ void usb_mux_set(int port, enum typec_mux mux_mode, int res; mux_state_t mux_state; +#ifdef CONFIG_USB_CHARGER /* Configure USB2.0 */ - board_set_usb_switches(port, usb_mode); + usb_charger_set_switches(port, usb_mode); +#endif /* Configure superspeed lanes */ mux_state = polarity ? mux_mode | MUX_POLARITY_INVERTED : mux_mode; |