summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAlbert Chen <R65187@freescale.com>2009-10-09 16:44:20 +0800
committerAlejandro Gonzalez <alex.gonzalez@digi.com>2010-02-12 17:19:19 +0100
commit6bed85a30de198de8eb9f463dcd7ffa9dcfb5280 (patch)
treee87da1f8f8aa8549a1c66cc6b3d9c014126a5bce /include/linux
parent7769409953e7c0b402a28463d6cc5b9d4cbac456 (diff)
ENGR00115875 add USB gadget low power mode feature.
USB will enter low power mode if no vbus power supply. Only finished this feature in Mx37. 1. When enter low power mode, driver will close usb related clocks as possible as could. set usb IP to stop. Set PHY to low power suspend by setting PHCD bit of portsc. 2. This patch doesn't support low power mode in OTG mode yet. Signed-off-by: Albert Chen <r65187@freescale.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/fsl_devices.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/fsl_devices.h b/include/linux/fsl_devices.h
index b41ef9ae4beb..9535b51fb2c9 100644
--- a/include/linux/fsl_devices.h
+++ b/include/linux/fsl_devices.h
@@ -50,6 +50,15 @@ enum fsl_usb2_operating_modes {
FSL_USB2_DR_OTG,
};
+/* this used for usb port type */
+enum fsl_usb2_modes {
+ FSL_USB_DR_HOST,
+ FSL_USB_DR_DEVICE,
+ FSL_USB_MPH_HOST1,
+ FSL_USB_MPH_HOST2,
+ FSL_USB_UNKNOWN, /* unkonwn status */
+};
+
enum fsl_usb2_phy_modes {
FSL_USB2_PHY_NONE,
FSL_USB2_PHY_ULPI,
@@ -80,6 +89,7 @@ struct fsl_usb2_platform_data {
void (*usb_clock_for_pm) (bool);
void (*platform_suspend)(struct fsl_usb2_platform_data *);
void (*platform_resume)(struct fsl_usb2_platform_data *);
+ void (*wake_up_enable)(struct fsl_usb2_platform_data *pdata, bool on);
unsigned big_endian_mmio : 1;
unsigned big_endian_desc : 1;
unsigned es : 1; /* need USBMODE:ES */