summaryrefslogtreecommitdiff
path: root/include/linux/usb/ohci_pdriver.h
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-08-07 05:09:10 +0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-08-10 23:05:32 +0400
commite4d37aeb373a5edceecc1dadc76fabbe8bc18e44 (patch)
treebceb86f3fcb67d998fb6da4e8198e3256e86c2f9 /include/linux/usb/ohci_pdriver.h
parent04216bedafb1b3992a6c2b7f1518281d2ba5fc7b (diff)
downloadlinux-e4d37aeb373a5edceecc1dadc76fabbe8bc18e44.tar.xz
usb: host: ohci-platform: add platform specific power callback
This patch enables to call platform specific power callback function. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/usb/ohci_pdriver.h')
-rw-r--r--include/linux/usb/ohci_pdriver.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/usb/ohci_pdriver.h b/include/linux/usb/ohci_pdriver.h
index 2808f2a9cce8..74e7755168b7 100644
--- a/include/linux/usb/ohci_pdriver.h
+++ b/include/linux/usb/ohci_pdriver.h
@@ -33,6 +33,14 @@ struct usb_ohci_pdata {
unsigned big_endian_desc:1;
unsigned big_endian_mmio:1;
unsigned no_big_frame_no: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_OHCI_PDRIVER_H */