@@ -653,7 +653,6 @@ config ARCH_SUNXI
select OF_SEPARATE
select SPL_DISABLE_OF_CONTROL
select USB
- select USB_STORAGE
config TARGET_SNOWBALL
bool "Support snowball"
@@ -538,14 +538,6 @@ config VIDEO_LCD_TL059WV5C0
endchoice
-
-config USB_KEYBOARD
- boolean "Enable USB keyboard support"
- default y
- ---help---
- Say Y here to add support for using a USB keyboard (typically used
- in combination with a graphical console).
-
config GMAC_TX_DELAY
int "GMAC Transmit Clock Delay Chain"
default 0
@@ -60,12 +60,24 @@ source "drivers/usb/musb-new/Kconfig"
source "drivers/usb/emul/Kconfig"
+if USB_HCD
+
comment "USB peripherals"
config USB_STORAGE
bool "USB Mass Storage support"
+ default y
---help---
Say Y here if you want to connect USB mass storage devices to your
board's USB port.
+config USB_KEYBOARD
+ boolean "Enable USB keyboard support"
+ default y
+ ---help---
+ Say Y here to add support for using a USB keyboard (typically used
+ in combination with a graphical console).
+
+endif
+
endif
The USB_KEYBOARD Kconfig is not specific to sunxi, so we can move it to the common USB Kconfig. In addition, USB_KEYBOARD and USB_STORAGE should be enabled when an USB host controller is enabled. Signed-off-by: Paul Kocialkowski <contact@paulk.fr> --- arch/arm/Kconfig | 1 - board/sunxi/Kconfig | 8 -------- drivers/usb/Kconfig | 12 ++++++++++++ 3 files changed, 12 insertions(+), 9 deletions(-)