]> git.sur5r.net Git - u-boot/commitdiff
usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET
authorPaul Kocialkowski <contact@paulk.fr>
Tue, 4 Aug 2015 15:04:07 +0000 (17:04 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 5 Aug 2015 15:20:34 +0000 (17:20 +0200)
Having MUSB_HOST and MUSB_GADGET in Kconfig allows more flexibility with regard
to what Kconfig options to enable, such as USB_STORAGE or USB_KEYBOARD.

Signed-off-by: Paul Kocialkowski <contact@paulk.fr>
drivers/usb/Kconfig
drivers/usb/musb-new/Kconfig [new file with mode: 0644]

index adce3f6a0a9582a6821376f25cd0952f8298def8..abb06fcfe5b37b656e5daf74dc7d2185ec75cfe0 100644 (file)
@@ -49,6 +49,8 @@ config DM_USB
 
 source "drivers/usb/host/Kconfig"
 
+source "drivers/usb/musb-new/Kconfig"
+
 source "drivers/usb/emul/Kconfig"
 
 comment "USB peripherals"
diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/musb-new/Kconfig
new file mode 100644 (file)
index 0000000..34a8474
--- /dev/null
@@ -0,0 +1,14 @@
+#
+# MUSB Controller Driver
+#
+comment "MUSB Controller Driver"
+
+config USB_MUSB_HOST
+       bool "MUSB host mode support"
+       help
+         Enables the MUSB USB dual-role controller in host mode.
+
+config USB_MUSB_GADGET
+       bool "MUSB gadget mode support"
+       help
+         Enables the MUSB USB dual-role controller in gadget mode.