summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2020-01-29 09:33:08 -0700
committerCommit Bot <commit-bot@chromium.org>2020-01-31 14:48:08 +0000
commitb56a56eaba32f4d7d06750ffb3aed3f6e69b0d42 (patch)
treeb5c790ebdb658e057a9d05b49d6e05d467fd4637 /include/usb_mux.h
parente600975e068dc2b2706eac2a11eb2d62564c1b4a (diff)
downloadchrome-ec-b56a56eaba32f4d7d06750ffb3aed3f6e69b0d42.tar.gz
ps8818: fix redriver configuration
in driver Added software IN_HPD control Added compile time optional debug in board specific tune function in usb_retimer Added gain control Added DP lane control BUG=b:146394157 BRANCH=none TEST=verify USB-C1 DP and USB connections Change-Id: Ida0cc243413b8fa469d3edb706040535e4a3f0e0 Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2031645 Reviewed-by: Jett Rink <jettrink@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index 152b240fa0..35350222f0 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -174,6 +174,15 @@ struct usb_retimer {
/* Driver interfaces for this retimer */
const struct usb_retimer_driver *driver;
+
+ /*
+ * USB retimer board specific tune on set mux_state.
+ *
+ * @param port usb port of retimer (not port_addr)
+ * @param mux_state State to set retimer mode to.
+ * @return EC_SUCCESS on success, non-zero error code on failure.
+ */
+ int (*tune)(int port, mux_state_t mux_state);
};
/*