summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/mv_udc.h
diff options
context:
space:
mode:
authorNeil Zhang <zhangwm@marvell.com>2011-10-12 16:49:39 +0800
committerFelipe Balbi <balbi@ti.com>2011-10-13 20:42:09 +0300
commit1aec033b955ba358dbf365aa7d0bbd49079c8559 (patch)
tree1796c80b618df076cd800dbd8e9f20290513b9be /drivers/usb/gadget/mv_udc.h
parentfb22cbac8242e92d643e5d5cb81bc6307fa6fc9c (diff)
downloadlinux-1aec033b955ba358dbf365aa7d0bbd49079c8559.tar.gz
linux-1aec033b955ba358dbf365aa7d0bbd49079c8559.tar.bz2
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.h7
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;