[PATCH] USB: add <linux/usb_otg.h>
Hardware implementing USB-OTG needs to use an OTG controller and/or transceiver driver to switch the Mini-AB connector between the host and peripheral side controller drivers (and the USB device role supported by that driver). This patch adds a simple "otg_transceiver" interface that can abstract implementation details for that port, as needed for some upcoming patches: - Neither host nor peripheral controller drivers need to know about how the OTG controller is implemented. Example: is the transceiver internal? If not, which external chip? - The OTG controller doesn't need to know if the Host Controller is OHCI, EHCI, or something custom ... all it knows is that the HCD looks like a "usb_bus". - In the same way, the peripheral controller is just a "usb_gadget". One implementation of this will be posted soon; the interface is by no means cast in stone, other implementations may need to morph this interface a bit. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Showing
include/linux/usb_otg.h
0 → 100644
Please register or sign in to comment