]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
add new gpio_vbus "transceiver"
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 1 Dec 2008 21:16:42 +0000 (13:16 -0800)
committerTony Lindgren <tony@atomide.com>
Mon, 15 Dec 2008 19:10:24 +0000 (11:10 -0800)
commitf4326414cc8f5b403567c15d79f5a23ffd8910ba
tree2333d6f25746ead5203f3d3cfbbbf351cba295b3
parent340f364c7b604b4b0513ba0d610d1ed528400f39
add new gpio_vbus "transceiver"

gpio_vbus provides simple GPIO VBUS sensing for peripheral
controllers with an internal transceiver.
Optionally, a second GPIO can be used to control D+ pullup.

It also interfaces with the regulator framework to limit charging
currents when powered via USB. gpio_vbus requests the regulator
supplying "vbus_draw" and can enable/disable it or limit its
current depending on USB state.

[dbrownell@users.sourceforge.net: use drivers/otg, cleanups ]

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/otg/Kconfig
drivers/usb/otg/Makefile
drivers/usb/otg/gpio_vbus.c [new file with mode: 0644]
include/linux/usb/gpio_vbus.h [new file with mode: 0644]