Commit 2b58e1b76d2630f67e642a273f0975a11ead428d
Committed by
Marek Vasut
1 parent
96d8284bd5
Exists in
v2017.01-smarct4x
and in
28 other branches
usb: add (move) CONFIG_USB_HOST to Kconfig
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>
Showing 9 changed files with 7 additions and 8 deletions Side-by-side Diff
drivers/usb/host/Kconfig
| ... | ... | @@ -3,8 +3,12 @@ |
| 3 | 3 | # |
| 4 | 4 | comment "USB Host Controller Drivers" |
| 5 | 5 | |
| 6 | +config USB_HOST | |
| 7 | + bool | |
| 8 | + | |
| 6 | 9 | config USB_XHCI_HCD |
| 7 | 10 | bool "xHCI HCD (USB 3.0) support" |
| 11 | + select USB_HOST | |
| 8 | 12 | ---help--- |
| 9 | 13 | The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0 |
| 10 | 14 | "SuperSpeed" host controller hardware. |
| ... | ... | @@ -28,6 +32,7 @@ |
| 28 | 32 | |
| 29 | 33 | config USB_EHCI_HCD |
| 30 | 34 | bool "EHCI HCD (USB 2.0) support" |
| 35 | + select USB_HOST | |
| 31 | 36 | ---help--- |
| 32 | 37 | The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0 |
| 33 | 38 | "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware. |
| ... | ... | @@ -128,6 +133,7 @@ |
| 128 | 133 | bool "Support for generic OHCI USB controller" |
| 129 | 134 | depends on OF_CONTROL |
| 130 | 135 | depends on DM_USB |
| 136 | + select USB_HOST | |
| 131 | 137 | ---help--- |
| 132 | 138 | Enables support for generic OHCI controller. |
| 133 | 139 | |
| ... | ... | @@ -135,6 +141,7 @@ |
| 135 | 141 | |
| 136 | 142 | config USB_UHCI_HCD |
| 137 | 143 | bool "UHCI HCD (most Intel and VIA) support" |
| 144 | + select USB_HOST | |
| 138 | 145 | ---help--- |
| 139 | 146 | The Universal Host Controller Interface is a standard by Intel for |
| 140 | 147 | accessing the USB hardware in the PC (which is also called the USB |
include/configs/am43xx_evm.h
| ... | ... | @@ -98,7 +98,6 @@ |
| 98 | 98 | |
| 99 | 99 | #if defined(CONFIG_SPL_USB_HOST_SUPPORT) || !defined(CONFIG_SPL_BUILD) |
| 100 | 100 | #define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1 |
| 101 | -#define CONFIG_USB_HOST | |
| 102 | 101 | #define CONFIG_USB_XHCI_OMAP |
| 103 | 102 | #define CONFIG_USB_STORAGE |
| 104 | 103 | #define CONFIG_SYS_USB_XHCI_MAX_ROOT_PORTS 2 |
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