hw: Only compile the usb-dwc2 controller if it is really needed

The USB_DWC2 switch is currently "default y", so it is included in all
qemu-system-* builds, even if it is not needed. Even worse, it does a
"select USB", so USB devices are now showing up as available on targets
that do not support USB at all. This sysbus device should only be
included by the boards that need it, i.e. by the Raspi machines.

Fixes: 153ef1662c ("dwc-hsotg (dwc2) USB host controller emulation")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Paul Zimmerman <pauldzim@gmail.com>
Message-id: 20200722154719.10130-1-thuth@redhat.com
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
Thomas Huth 2020-07-22 17:47:19 +02:00 committed by Gerd Hoffmann
parent 09e0cd7737
commit 8d942986be
2 changed files with 1 additions and 1 deletions

View File

@ -315,6 +315,7 @@ config RASPI
select FRAMEBUFFER select FRAMEBUFFER
select PL011 # UART select PL011 # UART
select SDHCI select SDHCI
select USB_DWC2
config STM32F205_SOC config STM32F205_SOC
bool bool

View File

@ -48,7 +48,6 @@ config USB_MUSB
config USB_DWC2 config USB_DWC2
bool bool
default y
select USB select USB
config TUSB6010 config TUSB6010