[U-Boot] [PATCH v2 06/11] usb: USB_HCD Kconfig option for host controllers

Paul Kocialkowski contact at paulk.fr
Wed Jul 29 15:32:07 CEST 2015


This introduces a (hidden) USB_HCD Kconfig option that is selected when an USB
host controller is enabled. This will allow for selecting other options when
such a controller is enabled.

Signed-off-by: Paul Kocialkowski <contact at paulk.fr>
---
 drivers/usb/Kconfig          | 3 +++
 drivers/usb/host/Kconfig     | 2 ++
 drivers/usb/musb-new/Kconfig | 1 +
 3 files changed, 6 insertions(+)

diff --git a/drivers/usb/Kconfig b/drivers/usb/Kconfig
index facf145..4e9335f 100644
--- a/drivers/usb/Kconfig
+++ b/drivers/usb/Kconfig
@@ -51,6 +51,9 @@ config DM_USB
 	  declared with the U_BOOT_USB_DEVICE() macro and will be
 	  automatically probed when found on the bus.
 
+config USB_HCD
+	bool
+
 source "drivers/usb/host/Kconfig"
 
 source "drivers/usb/musb-new/Kconfig"
diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig
index 8705c7c..052def7 100644
--- a/drivers/usb/host/Kconfig
+++ b/drivers/usb/host/Kconfig
@@ -5,6 +5,7 @@ comment "USB Host Controller Drivers"
 
 config USB_XHCI_HCD
 	bool "xHCI HCD (USB 3.0) support"
+	select USB_HCD
 	---help---
 	  The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
 	  "SuperSpeed" host controller hardware.
@@ -28,6 +29,7 @@ endif
 
 config USB_EHCI_HCD
 	bool "EHCI HCD (USB 2.0) support"
+	select USB_HCD
 	---help---
 	  The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
 	  "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
diff --git a/drivers/usb/musb-new/Kconfig b/drivers/usb/musb-new/Kconfig
index 0082ff8..3c680f7 100644
--- a/drivers/usb/musb-new/Kconfig
+++ b/drivers/usb/musb-new/Kconfig
@@ -5,6 +5,7 @@ comment "MUSB Controller Driver"
 
 config USB_MUSB_HOST
 	bool "MUSB host mode support"
+	select USB_HCD
 	help
 	  Enables the MUSB USB dual-role controller in host mode.
 
-- 
1.9.1



More information about the U-Boot mailing list