summaryrefslogtreecommitdiffstats
path: root/drivers/usb/emul/usb-emul-uclass.c
Commit message (Collapse)AuthorAgeFilesLines
* usb: sandbox: Add support for interrupt operationsSimon Glass2015-11-191-0/+12
| | | | | | | Allow USB device emulation to support interrupt URBs so that we can use USB keyboards with sandbox. Signed-off-by: Simon Glass <sjg@chromium.org>
* sandbox: usb: Allow finding a USB emulator for a deviceSimon Glass2015-11-191-2/+15
| | | | | | | | Each USB device has an emulator. Currently this can only be found by supplying the 'pipe' value, which contains the device number. Add a way to find it directly from the emulated device. Signed-off-by: Simon Glass <sjg@chromium.org>
* dm: usb: sandbox: Add a uclass for USB device emulationSimon Glass2015-04-181-0/+263
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>
OpenPOWER on IntegriCloud