]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commit
usb: drd-lib: Add DRD lib for USB
authorGeorge Cherian <george.cherian@ti.com>
Mon, 15 Dec 2014 18:37:42 +0000 (00:07 +0530)
committerSekhar Nori <nsekhar@ti.com>
Tue, 16 Dec 2014 09:15:02 +0000 (14:45 +0530)
commit81f2f9d2369e0ac80cbf07aadba325df56e14bfa
tree3899d7872aa1c0642ec7e9f5a68182e749a2a412
parentf733aa036398f9e8578f90406a90a709e00cf60f
usb: drd-lib: Add DRD lib for USB

Add USB DRD library. This Library facilitates to
switch roles between HOST and Device modes.

A DRD should be added to the library using usb_drd_add().
Register the HOST and UDC using usb_drd_register_hcd/udc().
Un-Register the HOST and UDC using usb_drd_unregister_hcd/udc().

Depending on the state of IP -
Call the following to start/stop HOST controller
usb_drd_start/stop_hcd().
This internally calls usb_add/remove_hcd() or IP specific low level start/stop
defined in ll_start/stop

Call the following to start/stop UDC
usb_drd_start/stop_udc().
This internally calls udc_start/udc_stop() or IP specific low level start/stop
defined in ll_start/stop

Signed-off-by: George Cherian <george.cherian@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/usb/Kconfig
drivers/usb/Makefile
drivers/usb/drd-lib.c [new file with mode: 0644]
include/linux/usb/drd.h [new file with mode: 0644]