diff mbox

[U-Boot,04/12] usb: musb-new: Kconfig support for USB_MUSB_HOST and USB_MUSB_GADGET

Message ID 1437554735-11728-4-git-send-email-contact@paulk.fr
State Superseded
Delegated to: Marek Vasut
Headers show

Commit Message

Paul Kocialkowski July 22, 2015, 8:45 a.m. UTC
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          |  2 ++
 drivers/usb/musb-new/Kconfig | 14 ++++++++++++++
 2 files changed, 16 insertions(+)
 create mode 100644 drivers/usb/musb-new/Kconfig

Comments

Marek Vasut July 22, 2015, 2:01 p.m. UTC | #1
On Wednesday, July 22, 2015 at 10:45:27 AM, Paul Kocialkowski wrote:
> 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>

Acked-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut
diff mbox

Patch

diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig
index 300a009..5503ec9 100644
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -49,6 +49,8 @@  config DM_USB
 
 source "drivers/usb/host/Kconfig"
 
+source "drivers/usb/musb-new/Kconfig"
+
 source "drivers/usb/emul/Kconfig"
 
 config USB_STORAGE
diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/musb-new/Kconfig
new file mode 100644
index 0000000..34a8474
--- /dev/null
+++ b/drivers/usb/musb-new/Kconfig
@@ -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.