On 4/21/20 3:45 AM, Paul Zimmerman wrote: > Wire the dwc-hsotg (dwc2) emulation into Qemu > > Signed-off-by: Paul Zimmerman <pauld...@gmail.com> > --- > hw/arm/bcm2835_peripherals.c | 21 ++++++++++++++++++++- > hw/usb/Kconfig | 5 +++++ > hw/usb/Makefile.objs | 1 + > include/hw/arm/bcm2835_peripherals.h | 3 ++- > 4 files changed, 28 insertions(+), 2 deletions(-) >
This part ... > diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig > index 464348ba14..d4d8c37c28 100644 > --- a/hw/usb/Kconfig > +++ b/hw/usb/Kconfig > @@ -46,6 +46,11 @@ config USB_MUSB > bool > select USB > > +config USB_DWC2 > + bool > + default y > + select USB > + > config TUSB6010 > bool > select USB_MUSB > diff --git a/hw/usb/Makefile.objs b/hw/usb/Makefile.objs > index 66835e5bf7..fa5c3fa1b8 100644 > --- a/hw/usb/Makefile.objs > +++ b/hw/usb/Makefile.objs > @@ -12,6 +12,7 @@ common-obj-$(CONFIG_USB_EHCI_SYSBUS) += hcd-ehci-sysbus.o > common-obj-$(CONFIG_USB_XHCI) += hcd-xhci.o > common-obj-$(CONFIG_USB_XHCI_NEC) += hcd-xhci-nec.o > common-obj-$(CONFIG_USB_MUSB) += hcd-musb.o > +common-obj-$(CONFIG_USB_DWC2) += hcd-dwc2.o > > common-obj-$(CONFIG_TUSB6010) += tusb6010.o > common-obj-$(CONFIG_IMX) += chipidea.o ... belongs to patch #4 'USB host controller emulation'.