summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/at91_udc.h
diff options
context:
space:
mode:
authorRyan Mallon <ryan@bluewatersys.com>2010-07-13 06:09:16 +0200
committerRussell King <rmk+kernel@arm.linux.org.uk>2010-07-18 21:39:10 +0200
commit4037242c4f5ff77afe61bf07ca1e8a99490219e5 (patch)
tree467e63d58278eaf401b5e4528702bc1d58c71bf3 /drivers/usb/gadget/at91_udc.h
parentARM: 6209/2: at91: Add support for Bluewater Systems Snapper 9260/9G20 modules (diff)
downloadlinux-4037242c4f5ff77afe61bf07ca1e8a99490219e5.tar.xz
linux-4037242c4f5ff77afe61bf07ca1e8a99490219e5.zip
ARM: 6209/3: at91_udc: Add vbus polarity and polling mode
Allow the vbus signal to optionally use polling. This is required if the vbus signal is connected to an non-interrupting io expander for example. If vbus is in polling mode, then it is assumed that the vbus gpio may sleep. Also add an option to have vbus be an active low signal. Both options are set in the platform data for the device. Signed-off-by: Ryan Mallon <ryan@bluewatersys.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/usb/gadget/at91_udc.h')
-rw-r--r--drivers/usb/gadget/at91_udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/at91_udc.h b/drivers/usb/gadget/at91_udc.h
index bc76a39c2bb1..108ca54f9092 100644
--- a/drivers/usb/gadget/at91_udc.h
+++ b/drivers/usb/gadget/at91_udc.h
@@ -145,6 +145,8 @@ struct at91_udc {
void __iomem *udp_baseaddr;
int udp_irq;
spinlock_t lock;
+ struct timer_list vbus_timer;
+ struct work_struct vbus_timer_work;
};
static inline struct at91_udc *to_udc(struct usb_gadget *g)