summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorEdward Hill <ecgh@chromium.org>2020-07-22 20:29:57 -0600
committerCommit Bot <commit-bot@chromium.org>2020-07-24 02:02:08 +0000
commit3a31737877176ac8fb0effb2a9cf8c8a78d61cb1 (patch)
treea6571a63bc0ce92ae06f794a06f33e4995462e4f /include/usb_mux.h
parent73745ba8e0ea7725fc40a60356b40f146ff9673b (diff)
downloadchrome-ec-3a31737877176ac8fb0effb2a9cf8c8a78d61cb1.tar.gz
zork: Restore AP mux setting after reboot
BUG=b:158960403 BRANCH=none TEST=USB3 works after AP reboot Signed-off-by: Edward Hill <ecgh@chromium.org> Change-Id: Ia6ec65ad38933106e183747e78827d564be5aefd Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2314033 Reviewed-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Denis Brockus <dbrockus@chromium.org> Commit-Queue: Denis Brockus <dbrockus@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index 9b24114f39..1831c621cb 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -68,6 +68,14 @@ struct usb_mux_driver {
* @return EC_SUCCESS on success, non-zero error code on failure.
*/
int (*enter_low_power_mode)(const struct usb_mux *me);
+
+ /**
+ * Optional method that is called on HOOK_CHIPSET_RESET.
+ *
+ * @param me usb_mux
+ * @return EC_SUCCESS on success, non-zero error code on failure.
+ */
+ int (*chipset_reset)(const struct usb_mux *me);
};
/* Describes a USB mux present in the system */