author | George Cherian <george.cherian@ti.com> | |
Mon, 15 Dec 2014 18:37:42 +0000 (00:07 +0530) | ||
committer | Sekhar Nori <nsekhar@ti.com> | |
Tue, 16 Dec 2014 09:15:02 +0000 (14:45 +0530) | ||
commit | 81f2f9d2369e0ac80cbf07aadba325df56e14bfa | |
tree | 3899d7872aa1c0642ec7e9f5a68182e749a2a412 | tree | snapshot (tar.xz tar.gz zip) |
parent | f733aa036398f9e8578f90406a90a709e00cf60f | commit | diff |
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>
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 | diff | blob | history | |
drivers/usb/Makefile | diff | blob | history | |
drivers/usb/drd-lib.c | [new file with mode: 0644] | blob |
include/linux/usb/drd.h | [new file with mode: 0644] | blob |