From 153ef1662c35ba3d3bbcedefe8dc24cfa4e8c33d Mon Sep 17 00:00:00 2001 From: Paul Zimmerman Date: Wed, 20 May 2020 16:53:46 -0700 Subject: dwc-hsotg (dwc2) USB host controller emulation Add the dwc-hsotg (dwc2) USB host controller emulation code. Based on hw/usb/hcd-ehci.c and hw/usb/hcd-ohci.c. Note that to use this with the dwc-otg driver in the Raspbian kernel, you must pass the option "dwc_otg.fiq_fsm_enable=0" on the kernel command line. Emulation of slave mode and of descriptor-DMA mode has not been implemented yet. These modes are seldom used. I have used some on-line sources of information while developing this emulation, including: http://www.capital-micro.com/PDF/CME-M7_Family_User_Guide_EN.pdf which has a pretty complete description of the controller starting on page 370. https://sourceforge.net/p/wive-ng/wive-ng-mt/ci/master/tree/docs/DataSheets/RT3050_5x_V2.0_081408_0902.pdf which has a description of the controller registers starting on page 130. Thanks to Felippe Mathieu-Daude for providing a cleaner method of implementing the memory regions for the controller registers. Signed-off-by: Paul Zimmerman Message-id: 20200520235349.21215-5-pauldzim@gmail.com Reviewed-by: Peter Maydell Signed-off-by: Peter Maydell --- hw/usb/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'hw/usb/Kconfig') diff --git a/hw/usb/Kconfig b/hw/usb/Kconfig index 464348b..d4d8c37 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 -- cgit v1.1