Skip to content

Commit 8d94298

Browse files
huthkraxel
authored andcommitted
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: 153ef16 ("dwc-hsotg (dwc2) USB host controller emulation") Signed-off-by: Thomas Huth <[email protected]> Reviewed-by: Paul Zimmerman <[email protected]> Message-id: [email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 09e0cd7 commit 8d94298

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

hw/arm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ config RASPI
315315
select FRAMEBUFFER
316316
select PL011 # UART
317317
select SDHCI
318+
select USB_DWC2
318319

319320
config STM32F205_SOC
320321
bool

hw/usb/Kconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ config USB_MUSB
4848

4949
config USB_DWC2
5050
bool
51-
default y
5251
select USB
5352

5453
config TUSB6010

0 commit comments

Comments
 (0)