]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: usb: sandbox: Add a uclass for USB device emulation
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:37 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:26 +0000 (11:11 -0600)
commit019808f97c1d039c41a960e477554b956c3ae238
tree5a3707ecb84c46d90cf72969f15b7762717e6f9d
parentf84c052a3e0975cac29ecaf9df2b824874e24237
dm: usb: sandbox: Add a uclass for USB device emulation

With sandbox we want to be able to emulate USB devices so that we can test
the USB stack. Add a uclass to support this. It implements the same
operations as a normal USB device driver, but in this case passes them on
to an emulation driver.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de>
Makefile
drivers/usb/Kconfig
drivers/usb/emul/Kconfig [new file with mode: 0644]
drivers/usb/emul/Makefile [new file with mode: 0644]
drivers/usb/emul/usb-emul-uclass.c [new file with mode: 0644]
include/dm/uclass-id.h
include/usb.h