]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
usb: add (move) CONFIG_USB_HOST to Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 31 Jul 2016 15:16:34 +0000 (00:16 +0900)
committerMarek Vasut <marex@denx.de>
Sun, 7 Aug 2016 19:55:42 +0000 (21:55 +0200)
The meaning of CONFIG_USB in U-Boot is different from that in Linux.

As you see in drivers/usb/Kconfig of Linux, CONFIG_USB enables the
USB host controller support, while CONFIG_USB_SUPPORT is used to
enable the whole of the USB sub-system.

When I added CONFIG_USB into Kconfig by commit 6e7e9294d321 ("usb:
add basic USB configs in Kconfig"), I planned to follow the Linux's
convention, i.e. CONFIG_USB to enable/disable the USB host support.

Then, commit 68f7c5db2d1e ("usb: Generic USB Kconfig option, that
fits both host and gadget and comments") changed the logic of the
CONFIG_USB to point to the whole of the USB sub-system.  As a result,
currently we do not have an option for USB host.

This commit adds CONFIG_USB_HOST, which will be useful to compile
in the USB host support code.

CONFIG_USB_HOST is not referenced at all, but strangely some boards
define it in board headers.  I removed them because USB_HOST will be
selected in Kconfig going forward.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/usb/host/Kconfig
include/configs/am43xx_evm.h
include/configs/am57xx_evm.h
include/configs/cm_t43.h
include/configs/cm_t54.h
include/configs/dra7xx_evm.h
include/configs/duovero.h
include/configs/omap4_panda.h
include/configs/omap5_uevm.h

index 7f562d1e5bf5d3a97da256fdca6b061494a151df..31eec0a9e00bd324a2d35950387945c848c7e6f0 100644 (file)
@@ -3,8 +3,12 @@
 #
 comment "USB Host Controller Drivers"
 
+config USB_HOST
+       bool
+
 config USB_XHCI_HCD
        bool "xHCI HCD (USB 3.0) support"
+       select USB_HOST
        ---help---
          The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
          "SuperSpeed" host controller hardware.
@@ -28,6 +32,7 @@ endif # USB_XHCI_HCD
 
 config USB_EHCI_HCD
        bool "EHCI HCD (USB 2.0) support"
+       select USB_HOST
        ---help---
          The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
          "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
@@ -128,6 +133,7 @@ config USB_OHCI_GENERIC
        bool "Support for generic OHCI USB controller"
        depends on OF_CONTROL
        depends on DM_USB
+       select USB_HOST
        ---help---
          Enables support for generic OHCI controller.
 
@@ -135,6 +141,7 @@ endif # USB_OHCI_HCD
 
 config USB_UHCI_HCD
        bool "UHCI HCD (most Intel and VIA) support"
+       select USB_HOST
        ---help---
          The Universal Host Controller Interface is a standard by Intel for
          accessing the USB hardware in the PC (which is also called the USB
index 361704bfd475d960f695ddc38ee42e71b2ff4cca..0467953566c65062da070d7a175dd48d15e6fa4f 100644 (file)
@@ -98,7 +98,6 @@
 
 #if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD)
 #define CONFIG_SYS_USB_FAT_BOOT_PARTITION              1
-#define CONFIG_USB_HOST
 #define CONFIG_USB_XHCI_OMAP
 #define CONFIG_USB_STORAGE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
index 083886ba262fdbaf1420b8af662d49bc6808243e..46e8d4cfd7152afcc797a0552995c524bc1c48c2 100644 (file)
@@ -63,7 +63,6 @@
 #define CONFIG_SUPPORT_EMMC_BOOT
 
 /* USB xHCI HOST */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_XHCI_OMAP
 #define CONFIG_USB_STORAGE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
index 9bb975a4b5bba3d58a2656998521a31a98a44604..5d94f133cba90838626e174c521215b2e1af2862 100644 (file)
@@ -60,7 +60,6 @@
 #define CONFIG_SYS_RX_ETH_BUFFER       64
 
 /* USB support */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_XHCI_OMAP
 #define CONFIG_USB_STORAGE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
index 68851ee90fd1397aa0705e78d7256af2e1540e62..8e9444e012c6cc1f662dc6a9db909b498b163f9d 100644 (file)
@@ -69,7 +69,6 @@
 #define CONFIG_SYS_SCSI_MAX_DEVICE     (CONFIG_SYS_SCSI_MAX_SCSI_ID * \
                                                CONFIG_SYS_SCSI_MAX_LUN)
 /* USB UHH support options */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_OMAP
 #define CONFIG_USB_STORAGE
index 10f6039539f1d4e29a368c234d42e4c91ba54d14..b66949f4155bf6b65f776631eed4867808e0655f 100644 (file)
 #define CONFIG_SUPPORT_EMMC_BOOT
 
 /* USB xHCI HOST */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_XHCI_OMAP
 #define CONFIG_USB_STORAGE
 #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2
index 98afe27287d654c8ba7891ccd4fe7540a3c56e81..299c0d58c76057559afd369aff58270ba80c4f55 100644 (file)
@@ -29,7 +29,6 @@
 #define CONFIG_SYS_DEFAULT_LPDDR2_TIMINGS
 
 /* USB UHH support options */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_OMAP
 #define CONFIG_USB_STORAGE
index 0d62ccd2fe4ae38f9440110d7d7570959f7a00cd..ffa22c3b9e7f54e8e484149629737e9662c16e33 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 /* USB UHH support options */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_OMAP
 #define CONFIG_USB_STORAGE
index 4ddc49211267235ddda14f26919e03c4bfc731b2..2bf955a7a327f6970de6a6f300c5bf8ca561ee63 100644 (file)
@@ -88,7 +88,6 @@
 #define CONFIG_SYS_I2C_TCA642X_ADDR 0x22
 
 /* USB UHH support options */
-#define CONFIG_USB_HOST
 #define CONFIG_USB_EHCI
 #define CONFIG_USB_EHCI_OMAP
 #define CONFIG_USB_STORAGE