]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: pxa2xx_udc supports inverted vbus
authorDmitry Baryshkov <dbaryshkov@gmail.com>
Fri, 7 Dec 2007 02:18:03 +0000 (18:18 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 1 Feb 2008 22:34:57 +0000 (14:34 -0800)
commit9764380f640e02cfa1a0d2859e5a9c5bcaa40df8
treec8f3df6259f2a2cbcffe559f29fc065c8adcc856
parent24db956d6df73565a8d4a409373b06126cfd7fe0
USB: gadget: pxa2xx_udc supports inverted vbus

Some boards (like e.g. Tosa) invert the VBUS-detection signal:
it's low when a host is supplying VBUS, and high otherwise.
Allow specifying whether gpio_vbus value is inverted.

Signed-off-by: Dmitry Baryshkov <dbaryshkov@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/pxa2xx_udc.c
include/asm-arm/mach/udc_pxa2xx.h