summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDenis Brockus <dbrockus@chromium.org>2019-11-14 14:13:29 -0700
committerCommit Bot <commit-bot@chromium.org>2019-11-21 23:20:55 +0000
commit154f597b8656fbcc16f6652f6fe8713943440939 (patch)
tree3ce5425b230126405511741d1d01e609d9e8188c /include
parent14e356b73ee9c40170c8c0042dd452ba83b5ead9 (diff)
downloadchrome-ec-154f597b8656fbcc16f6652f6fe8713943440939.tar.gz
usbc: add enter_low_power_mode for retimer mux
BUG=b:139428185 BRANCH=none TEST=verify mode is set correctly when switching devices Change-Id: I3e40e0321cb1026180b7edc0bfe99439c13acafb Signed-off-by: Denis Brockus <dbrockus@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1922062
Diffstat (limited to 'include')
-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 126e7da4fa..0a5a19a338 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -156,6 +156,15 @@ struct usb_retimer_driver {
int (*init)(int port);
/**
+ * Put USB retimer in low power mode. This is called when the MUX
+ * is put into low power mode).
+ *
+ * @param port usb port of redriver (not port_addr)
+ * @return EC_SUCCESS on success, non-zero error code on failure.
+ */
+ int (*enter_low_power_mode)(int port);
+
+ /**
* Set USB retimer state.
*
* @param port usb port of retimer (not port_addr)