diff options
author | Keith Short <keithshort@chromium.org> | 2020-08-22 15:24:15 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-24 23:02:10 +0000 |
commit | 5482623ae79e97467576ad520c53273d412e9cc0 (patch) | |
tree | 10d971579b00366db240bdaba119f2706cb805bf /include | |
parent | 3412f7ff3d1dd5905f92d84189270657896b508a (diff) | |
download | chrome-ec-5482623ae79e97467576ad520c53273d412e9cc0.tar.gz |
usb_mux: move usb_mux_set_safe_mode()
Move usb_mux_set_safe_mode() definition into usb_common.c so it's
available to the test framework.
BUG=none
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I789a470468ae441e366afbf94ce3c29db526dfd8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2370409
Reviewed-by: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/usb_common.h | 11 | ||||
-rw-r--r-- | include/usb_pd.h | 7 |
2 files changed, 11 insertions, 7 deletions
diff --git a/include/usb_common.h b/include/usb_common.h index 180ebbcc95..1e92a4b22a 100644 --- a/include/usb_common.h +++ b/include/usb_common.h @@ -163,6 +163,17 @@ void notify_sysjump_ready(void); void set_usb_mux_with_current_data_role(int port); /** + * Configure the USB MUX in safe mode. + * Before entering into alternate mode, state of the USB-C MUX needs to be in + * safe mode. + * Ref: USB Type-C Cable and Connector Specification + * Section E.2.2 Alternate Mode Electrical Requirements + * + * @param port The PD port number + */ +void usb_mux_set_safe_mode(int port); + +/** * Get the PD flags stored in BB Ram * * @param port USB-C port number diff --git a/include/usb_pd.h b/include/usb_pd.h index 2341ebc31a..1028b53631 100644 --- a/include/usb_pd.h +++ b/include/usb_pd.h @@ -2782,13 +2782,6 @@ extern uint32_t dp_status[CONFIG_USB_PD_PORT_MAX_COUNT]; #endif /* CONFIG_USB_PD_ALT_MODE_DFP */ /* - * Configure the USB MUX in safe mode - * - * @param port The PD port number - */ -void usb_mux_set_safe_mode(int port); - -/* * Set HPD GPIO level * * @param port The PD port number |