diff options
author | Neil Zhang <zhangwm@marvell.com> | 2011-10-12 10:49:39 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 19:42:09 +0200 |
commit | 1aec033b955ba358dbf365aa7d0bbd49079c8559 (patch) | |
tree | 1796c80b618df076cd800dbd8e9f20290513b9be /drivers/usb/gadget/mv_udc.h | |
parent | usb: gadget: mv_udc: add test mode support (diff) | |
download | linux-1aec033b955ba358dbf365aa7d0bbd49079c8559.tar.xz linux-1aec033b955ba358dbf365aa7d0bbd49079c8559.zip |
usb: gadget: mv_udc: add clock gating support
This patch is going to support clock gating when vbus detection is
posible. Clock and phy will be on only when usb gadget is used(vbus valid).
Signed-off-by: Neil Zhang <zhangwm@marvell.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/mv_udc.h')
-rw-r--r-- | drivers/usb/gadget/mv_udc.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/usb/gadget/mv_udc.h b/drivers/usb/gadget/mv_udc.h index 3e5e6ea7b0fb..daa75c12f336 100644 --- a/drivers/usb/gadget/mv_udc.h +++ b/drivers/usb/gadget/mv_udc.h @@ -209,7 +209,12 @@ struct mv_udc { vbus_active:1, remote_wakeup:1, softconnected:1, - force_fs:1; + force_fs:1, + clock_gating:1, + active:1; + + struct work_struct vbus_work; + struct workqueue_struct *qwork; struct mv_usb_platform_data *pdata; |