diff options
author | Michael Grzeschik <m.grzeschik@pengutronix.de> | 2014-10-12 21:53:03 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-03 18:34:00 -0500 |
commit | 11a7e59405148c855e0a9d13588930ccec02c150 (patch) | |
tree | a8e21a87496d8ec3fee589dfea21766d2813d58f /drivers/usb/host/ehci.h | |
parent | e28e2f2f7c42e5b9dd4c965a0245267e44a8a7ae (diff) |
usb: ehci: add ehci_port_power interface
The current EHCI implementation is prepared to toggle the
PORT_POWER bit to enable or disable a USB-Port. In some
cases this port power can not be just toggled by the PORT_POWER
bit, and the gpio-regulator is needed to be toggled too.
This patch defines a port power control interface ehci_port_power for
ehci core use, it toggles PORT_POWER bit as well as calls platform
defined .port_power if it is defined.
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Acked-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host/ehci.h')
-rw-r--r-- | drivers/usb/host/ehci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci.h b/drivers/usb/host/ehci.h index eee228a26a0e..6f0577b0a5ae 100644 --- a/drivers/usb/host/ehci.h +++ b/drivers/usb/host/ehci.h | |||
@@ -859,6 +859,8 @@ static inline u32 hc32_to_cpup (const struct ehci_hcd *ehci, const __hc32 *x) | |||
859 | struct ehci_driver_overrides { | 859 | struct ehci_driver_overrides { |
860 | size_t extra_priv_size; | 860 | size_t extra_priv_size; |
861 | int (*reset)(struct usb_hcd *hcd); | 861 | int (*reset)(struct usb_hcd *hcd); |
862 | int (*port_power)(struct usb_hcd *hcd, | ||
863 | int portnum, bool enable); | ||
862 | }; | 864 | }; |
863 | 865 | ||
864 | extern void ehci_init_driver(struct hc_driver *drv, | 866 | extern void ehci_init_driver(struct hc_driver *drv, |