summaryrefslogtreecommitdiff
path: root/include/usb_mux.h
diff options
context:
space:
mode:
authorShawn Nematbakhsh <shawnn@chromium.org>2016-08-06 18:02:17 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-08-10 20:07:32 -0700
commitd54387c18e20f5973ae62fdc7f8a95872b52f4f5 (patch)
treec9e552984b2e25a68d3f7bf7ee840582c3f2011a /include/usb_mux.h
parent8230e5b356a60831ecc47cd25696d0a1b880c552 (diff)
downloadchrome-ec-d54387c18e20f5973ae62fdc7f8a95872b52f4f5.tar.gz
kevin / gru: Notify host of HPD IRQ status
If an HPD IRQ event is seen, make note of it and keep the status set until informing the host. BUG=chrome-os-partner:55925 BRANCH=None TEST=Manual on kevin, trigger HPD event, verify that event bit is set in reply to first host command and not subsequent host commands. Change-Id: I0900a683dcb344d5d4d03a1fa6e3d8de913597b2 Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/366990 Commit-Ready: Shawn N <shawnn@chromium.org> Tested-by: Chris Zhong <zyw@rock-chips.com> Tested-by: Shawn N <shawnn@chromium.org> Reviewed-by: Guenter Roeck <groeck@chromium.org>
Diffstat (limited to 'include/usb_mux.h')
-rw-r--r--include/usb_mux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/usb_mux.h b/include/usb_mux.h
index daad2792de..c9bd76ba21 100644
--- a/include/usb_mux.h
+++ b/include/usb_mux.h
@@ -81,6 +81,7 @@ struct usb_mux {
/*
* USB Type-C DP alt mode support. Notify Type-C controller
* there is DP dongle hot-plug.
+ * TODO: Move this function to usb_mux_driver struct.
*/
void (*hpd_update)(int port, int hpd_lvl, int hpd_irq);
};
@@ -91,6 +92,9 @@ extern const struct usb_mux_driver ps8740_usb_mux_driver;
extern const struct usb_mux_driver tcpm_usb_mux_driver;
extern const struct usb_mux_driver virtual_usb_mux_driver;
+/* Supported hpd_update functions */
+void virtual_hpd_update(int port, int hpd_lvl, int hpd_irq);
+
/* USB muxes present in system, ordered by PD port #, defined at board-level */
extern struct usb_mux usb_muxes[];