USB: gadget: pxa25x: basic transceiver support
commitab26d20f3ef1105d889f702cd01fba8c6fb32f73
authorPhilipp Zabel <philipp.zabel@gmail.com>
Wed, 1 Jul 2009 10:46:25 +0000 (1 03:46 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Sep 2009 13:46:23 +0000 (23 06:46 -0700)
treeafe07b1938e05f83b5824feaa3a4d8e6d8bdce64
parent4c6e8971cbe0148085fcf6fd30eaa3c39f8a8cce
USB: gadget: pxa25x: basic transceiver support

This adds very basic otg_transceiver support, with vbus_session
and vbus_draw callbacks.

Now VBUS sensing can be handled by an external driver which registers
the otg_transceiver interface. It also allows gadget drivers to configure
the current drawn from VBUS. The UDC driver just passes their requests
along to the transceiver driver.

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>
drivers/usb/gadget/pxa25x_udc.c
drivers/usb/gadget/pxa25x_udc.h