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)
commitd4a8d46d9129fbb26b4c2d3143b1b0975a9b4ae4
treec8f3df6259f2a2cbcffe559f29fc065c8adcc856
parent26e109b0a90b5ef7b025e44a969836ab9a598ffc
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