diff options
author | Peter Chen <peter.chen@freescale.com> | 2014-12-19 10:20:12 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@freescale.com> | 2014-12-19 13:54:38 +0800 |
commit | e1959911edda217d547b2cd06bc6dcd198de36e8 (patch) | |
tree | 63dd5e6166da7a2d591dca07afca5c3d0e3dc90b /include | |
parent | 178bb7bed5b467463a3861aecdd5361ea9d295b7 (diff) |
MLK-10039 usb: chipidea: enable usb as wakeup source if the device is connected
Enable USB as wakeup source if it is imx6sx and the usb device is connected.
We do this tricky thing for disable megafix off, since megafix control code
depends on wakeup source.
If the usb device is connected, we want the connection is
not broken, and to support HSIC device since HSIC controller
does not support hot plug.
It will not produce un-intended usb wakeup since the usb wakeup is controlled
by WIE bit in usb ctrl register, it is only enabled through /sys entry.
Acked-by: Li Jun <jun.li@freescale.com>
Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/chipidea.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/chipidea.h b/include/linux/usb/chipidea.h index f3ab477871d6..d8a76e388e1a 100644 --- a/include/linux/usb/chipidea.h +++ b/include/linux/usb/chipidea.h @@ -34,6 +34,7 @@ struct ci_hdrc_platform_data { CI_HDRC_DISABLE_HOST_STREAMING) #define CI_HDRC_OVERRIDE_AHB_BURST BIT(11) #define CI_HDRC_OVERRIDE_BURST_LENGTH BIT(12) +#define CI_HDRC_IS_FSL_IMX6SX BIT(13) enum usb_dr_mode dr_mode; #define CI_HDRC_CONTROLLER_RESET_EVENT 0 #define CI_HDRC_CONTROLLER_STOPPED_EVENT 1 |