dm: usb: sandbox: Add an emulator for USB flash devices
authorSimon Glass <sjg@chromium.org>
Wed, 25 Mar 2015 18:22:39 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 18 Apr 2015 17:11:26 +0000 (11:11 -0600)
commitf4f715360c490e20d25337a1984b508bf2061664
treec15e4fa46a9256ebd2bcca24c6c204ca52862224
parent095fdef081c77fc79c719031e28b2925523873c9
dm: usb: sandbox: Add an emulator for USB flash devices

This emulator supports USB enumeration and allows a local file to be provided
as the contents of the emulated flash stick. U-Boot can then use the file as
it would a normal device, with all access passing through the usb_stor layer
and the USB stack.

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