]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 6209/3: at91_udc: Add vbus polarity and polling mode
authorRyan Mallon <ryan@bluewatersys.com>
Tue, 13 Jul 2010 04:09:16 +0000 (05:09 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 18 Jul 2010 19:39:10 +0000 (20:39 +0100)
commit2e27e1b54bde42a27876949831641bf8597b3387
tree467e63d58278eaf401b5e4528702bc1d58c71bf3
parentbab6f023d93aec972fd38eb4918b388755ed5460
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>
arch/arm/mach-at91/include/mach/board.h
drivers/usb/gadget/at91_udc.c
drivers/usb/gadget/at91_udc.h