usb: host: ehci-platform: add platform specific power callback
[firefly-linux-kernel-4.4.55.git] / include / linux / usb / ehci_pdriver.h
index 1894f42fe3f7bd1df44a0f46bc1eb456421f5d31..c9d09f8b7ff2d66579ee58700658667347ef8094 100644 (file)
@@ -41,6 +41,14 @@ struct usb_ehci_pdata {
        unsigned        big_endian_mmio:1;
        unsigned        port_power_on:1;
        unsigned        port_power_off:1;
+
+       /* Turn on all power and clocks */
+       int (*power_on)(struct platform_device *pdev);
+       /* Turn off all power and clocks */
+       void (*power_off)(struct platform_device *pdev);
+       /* Turn on only VBUS suspend power and hotplug detection,
+        * turn off everything else */
+       void (*power_suspend)(struct platform_device *pdev);
 };
 
 #endif /* __USB_CORE_EHCI_PDRIVER_H */