usb: Add basic code to emulate Chipidea USB IP
commita24273bba858d61f75ab0e98871f7691988fd0ce
authorAndrey Smirnov <andrew.smirnov@gmail.com>
Fri, 9 Feb 2018 10:40:30 +0000 (9 10:40 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 9 Feb 2018 10:40:30 +0000 (9 10:40 +0000)
tree4da704d7d2c3fd6c9be6096002e15321c00a0cd8
parent30b2f8709d16b1ed2255552ac90935ebab542385
usb: Add basic code to emulate Chipidea USB IP

Add code to emulate Chipidea USB IP (used in i.MX SoCs). Tested to
work against:

-usb -drive if=none,id=stick,file=usb.img,format=raw -device \
 usb-storage,bus=usb-bus.0,drive=stick

Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Philippe Mathieu-Daudé <f4bug@amsat.org>
Cc: Marcel Apfelbaum <marcel.apfelbaum@zoho.com>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: qemu-devel@nongnu.org
Cc: qemu-arm@nongnu.org
Cc: yurovsky@gmail.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/usb/Makefile.objs
hw/usb/chipidea.c [new file with mode: 0644]
include/hw/usb/chipidea.h [new file with mode: 0644]