blob: 8957bb56a6be734937e474bd28be78f9befd6b7a [file] [log] [blame]
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +09001#
2# USB Host Controller Drivers
3#
4comment "USB Host Controller Drivers"
5
Masahiro Yamada59cfdc02016-08-01 00:16:34 +09006config USB_HOST
7 bool
Tom Rini5b9e6162021-07-09 10:11:56 -04008 select DM_USB
Masahiro Yamada59cfdc02016-08-01 00:16:34 +09009
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +090010config USB_XHCI_HCD
11 bool "xHCI HCD (USB 3.0) support"
Tom Rini5b9e6162021-07-09 10:11:56 -040012 depends on DM && OF_CONTROL
Masahiro Yamada59cfdc02016-08-01 00:16:34 +090013 select USB_HOST
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +090014 ---help---
15 The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
16 "SuperSpeed" host controller hardware.
17
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +090018if USB_XHCI_HCD
19
Masahiro Yamadad3b72ca2016-06-04 07:35:04 +090020config USB_XHCI_DWC3
21 bool "DesignWare USB3 DRD Core Support"
22 help
23 Say Y or if your system has a Dual Role SuperSpeed
24 USB controller based on the DesignWare USB3 IP Core.
25
Neil Armstrong069421e2018-04-11 17:08:00 +020026config USB_XHCI_DWC3_OF_SIMPLE
27 bool "DesignWare USB3 DRD Generic OF Simple Glue Layer"
Jean-Jacques Hiblot74d9a9d2018-04-12 10:41:10 +020028 depends on DM_USB
Mark Kettenis06ec9132019-06-30 18:01:54 +020029 default y if ARCH_ROCKCHIP
Jean-Jacques Hiblot6c705f42018-04-12 10:41:11 +020030 default y if DRA7XX
Neil Armstrong069421e2018-04-11 17:08:00 +020031 help
32 Support USB2/3 functionality in simple SoC integrations with
33 USB controller based on the DesignWare USB3 IP Core.
34
developer507fc9b2020-05-02 11:35:18 +020035config USB_XHCI_MTK
36 bool "Support for MediaTek on-chip xHCI USB controller"
37 depends on ARCH_MEDIATEK
38 help
39 Enables support for the on-chip xHCI controller on MediaTek SoCs.
40
Stefan Roese07faf112016-07-14 11:39:20 +020041config USB_XHCI_MVEBU
42 bool "MVEBU USB 3.0 support"
43 default y
44 depends on ARCH_MVEBU
Konstantin Porotchkin1b5ed4d2017-02-12 11:10:30 +020045 select DM_REGULATOR
Stefan Roese07faf112016-07-14 11:39:20 +020046 help
47 Choose this option to add support for USB 3.0 driver on mvebu
48 SoCs, which includes Armada8K, Armada3700 and other Armada
49 family SoCs.
50
Stefan Roesedf33b572020-08-24 13:04:38 +020051config USB_XHCI_OCTEON
52 bool "Support for Marvell Octeon family on-chip xHCI USB controller"
53 depends on ARCH_OCTEON
54 default y
55 help
56 Enables support for the on-chip xHCI controller on Marvell Octeon
57 family SoCs. This is a driver for the dwc3 to provide the glue logic
58 to configure the controller.
59
Bin Mengd34d6fc2017-07-19 21:50:08 +080060config USB_XHCI_PCI
61 bool "Support for PCI-based xHCI USB controller"
Bin Meng7e8644d2017-07-19 21:51:07 +080062 depends on DM_USB
Bin Mengd34d6fc2017-07-19 21:50:08 +080063 default y if X86
64 help
65 Enables support for the PCI-based xHCI controller.
66
Marek Vasut24257272017-10-15 15:01:29 +020067config USB_XHCI_RCAR
68 bool "Renesas RCar USB 3.0 support"
69 default y
70 depends on ARCH_RMOBILE
71 help
72 Choose this option to add support for USB 3.0 driver on Renesas
73 RCar Gen3 SoCs.
74
Patrice Chotardf2505b12017-09-05 11:04:24 +020075config USB_XHCI_STI
76 bool "Support for STMicroelectronics STiH407 family on-chip xHCI USB controller"
77 depends on ARCH_STI
78 default y
79 help
80 Enables support for the on-chip xHCI controller on STMicroelectronics
81 STiH407 family SoCs. This is a driver for the dwc3 to provide the glue logic
82 to configure the controller.
83
Uri Mashiachf6ff74e2017-02-23 15:39:36 +020084config USB_XHCI_DRA7XX_INDEX
85 int "DRA7XX xHCI USB index"
86 range 0 1
87 default 0
88 depends on DRA7XX
89 help
90 Select the DRA7XX xHCI USB index.
91 Current supported values: 0, 1.
92
Ran Wanga5a97352017-10-23 10:09:22 +080093config USB_XHCI_FSL
94 bool "Support for NXP Layerscape on-chip xHCI USB controller"
95 default y if ARCH_LS1021A || FSL_LSCH3 || FSL_LSCH2
96 depends on !SPL_NO_USB
97 help
98 Enables support for the on-chip xHCI controller on NXP Layerscape SoCs.
Rayagonda Kokatanurf59d24e2020-04-09 09:23:15 +053099
100config USB_XHCI_BRCM
101 bool "Broadcom USB3 Host XHCI controller"
102 depends on DM_USB
103 help
104 USB controller based on the Broadcom USB3 IP Core.
105 Supports USB2/3 functionality.
106
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900107endif # USB_XHCI_HCD
Alexey Brodkin83fd3122015-12-14 17:18:50 +0300108
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900109config USB_EHCI_HCD
110 bool "EHCI HCD (USB 2.0) support"
Tom Rini7716cd62017-05-12 22:33:28 -0400111 default y if ARCH_MX5 || ARCH_MX6
Tom Rini5b9e6162021-07-09 10:11:56 -0400112 depends on DM && OF_CONTROL
Masahiro Yamada59cfdc02016-08-01 00:16:34 +0900113 select USB_HOST
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900114 ---help---
115 The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
116 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
117 If your USB host controller supports USB 2.0, you will likely want to
118 configure this Host Controller Driver.
119
120 EHCI controllers are packaged with "companion" host controllers (OHCI
121 or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports
122 will connect to EHCI if the device is high speed, otherwise they
123 connect to a companion controller. If you configure EHCI, you should
124 probably configure the OHCI (for NEC and some other vendors) USB Host
125 Controller Driver or UHCI (for Via motherboards) Host Controller
126 Driver too.
127
128 You may want to read <file:Documentation/usb/ehci.txt>.
129
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900130if USB_EHCI_HCD
131
Wenyou Yang11e26652016-08-05 08:57:35 +0800132config USB_EHCI_ATMEL
133 bool "Support for Atmel on-chip EHCI USB controller"
134 depends on ARCH_AT91
135 default y
136 ---help---
137 Enables support for the on-chip EHCI controller on Atmel chips.
138
Stefan Roese03901022015-09-01 11:39:44 +0200139config USB_EHCI_MARVELL
Tom Rini496a4172017-05-12 22:33:29 -0400140 bool "Support for Marvell on-chip EHCI USB controller"
Trevor Woernerbb7ab072020-05-06 08:02:40 -0400141 depends on ARCH_MVEBU || ARCH_KIRKWOOD || ARCH_ORION5X
Stefan Roese03901022015-09-01 11:39:44 +0200142 default y
143 ---help---
144 Enables support for the on-chip EHCI controller on MVEBU SoCs.
145
Lukasz Majewski6fccaf22019-04-04 12:26:55 +0200146config USB_EHCI_MX5
147 bool "Support for i.MX5 on-chip EHCI USB controller"
148 depends on ARCH_MX5
Lukasz Majewski6fccaf22019-04-04 12:26:55 +0200149 help
150 Enables support for the on-chip EHCI controller on i.MX5 SoCs.
151
Nikita Kiryanov99241032015-07-23 17:19:35 +0300152config USB_EHCI_MX6
Ye Li9da57ea2019-10-24 10:29:32 -0300153 bool "Support for i.MX6/i.MX7ULP on-chip EHCI USB controller"
Giulio Benetti13ded2c2021-05-20 16:10:15 +0200154 depends on ARCH_MX6 || ARCH_MX7ULP || ARCH_IMXRT
Nikita Kiryanov99241032015-07-23 17:19:35 +0300155 default y
156 ---help---
157 Enables support for the on-chip EHCI controller on i.MX6 SoCs.
158
Stefan Agner100fe072016-07-13 00:25:36 -0700159config USB_EHCI_MX7
160 bool "Support for i.MX7 on-chip EHCI USB controller"
Marek Vasute15971f2021-04-02 14:07:22 +0200161 depends on ARCH_MX7 || IMX8M
162 select PHY if IMX8M
163 select NOP_PHY if IMX8M
Stefan Agner100fe072016-07-13 00:25:36 -0700164 default y
165 ---help---
166 Enables support for the on-chip EHCI controller on i.MX7 SoCs.
167
Tom Rini639a8402017-05-12 22:33:30 -0400168config USB_EHCI_OMAP
169 bool "Support for OMAP3+ on-chip EHCI USB controller"
170 depends on ARCH_OMAP2PLUS
171 default y
172 ---help---
173 Enables support for the on-chip EHCI controller on OMAP3 and later
174 SoCs.
175
Marcel Ziswiler31f44952019-03-25 17:24:54 +0100176config USB_EHCI_VF
177 bool "Support for Vybrid on-chip EHCI USB controller"
178 depends on ARCH_VF610
179 default y
180 help
181 Enables support for the on-chip EHCI controller on Vybrid SoCs.
182
Ye Li9da57ea2019-10-24 10:29:32 -0300183if USB_EHCI_MX6 || USB_EHCI_MX7
Stefan Agner8652ce92016-07-13 00:25:38 -0700184
185config MXC_USB_OTG_HACTIVE
186 bool "USB Power pin high active"
187 ---help---
188 Set the USB Power pin polarity to be high active (PWR_POL)
189
190endif
191
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200192config USB_EHCI_MSM
193 bool "Support for Qualcomm on-chip EHCI USB controller"
194 depends on DM_USB
195 select USB_ULPI_VIEWPORT
Ramon Fried7e365962018-09-21 13:35:50 +0300196 select MSM8916_USB_PHY
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200197 ---help---
198 Enables support for the on-chip EHCI controller on Qualcomm
199 Snapdragon SoCs.
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200200
Bin Mengec4b5732017-08-09 00:21:54 -0700201config USB_EHCI_PCI
202 bool "Support for PCI-based EHCI USB controller"
203 default y if X86
204 help
205 Enables support for the PCI-based EHCI controller.
206
Peter Robinson43ecef42019-02-20 12:17:27 +0000207config USB_EHCI_TEGRA
208 bool "Support for NVIDIA Tegra on-chip EHCI USB controller"
Trevor Woerner513f6402020-05-06 08:02:41 -0400209 depends on ARCH_TEGRA
Peter Robinson43ecef42019-02-20 12:17:27 +0000210 ---help---
211 Enable support for Tegra on-chip EHCI USB controller
212
Siva Durga Prasad Paladugu42fcc182016-07-22 14:51:51 +0530213config USB_EHCI_ZYNQ
214 bool "Support for Xilinx Zynq on-chip EHCI USB controller"
Michal Simek3239d712020-08-24 14:41:51 +0200215 default y if ARCH_ZYNQ
Siva Durga Prasad Paladugu42fcc182016-07-22 14:51:51 +0530216 ---help---
217 Enable support for Zynq on-chip EHCI USB controller
218
Alexey Brodkina6aff432015-12-02 12:32:02 +0300219config USB_EHCI_GENERIC
220 bool "Support for generic EHCI USB controller"
Alexey Brodkina6aff432015-12-02 12:32:02 +0300221 depends on DM_USB
Jagan Teki1ba41e12018-12-22 18:18:10 +0530222 default ARCH_SUNXI
Alexey Brodkina6aff432015-12-02 12:32:02 +0300223 ---help---
224 Enables support for generic EHCI controller.
225
Ran Wang9798b662017-12-20 10:34:20 +0800226config USB_EHCI_FSL
227 bool "Support for FSL on-chip EHCI USB controller"
Ran Wang9798b662017-12-20 10:34:20 +0800228 select CONFIG_EHCI_HCD_INIT_AFTER_RESET
229 ---help---
230 Enables support for the on-chip EHCI controller on FSL chips.
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900231endif # USB_EHCI_HCD
232
233config USB_OHCI_HCD
234 bool "OHCI HCD (USB 1.1) support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400235 depends on DM && OF_CONTROL
236 select USB_HOST
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900237 ---help---
238 The Open Host Controller Interface (OHCI) is a standard for accessing
239 USB 1.1 host controller hardware. It does more in hardware than Intel's
240 UHCI specification. If your USB host controller follows the OHCI spec,
241 say Y. On most non-x86 systems, and on x86 hardware that's not using a
242 USB controller from Intel or VIA, this is appropriate. If your host
243 controller doesn't use PCI, this is probably appropriate. For a PCI
244 based system where you're not sure, the "lspci -v" entry will list the
245 right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI.
246
Tom Rini5b9e6162021-07-09 10:11:56 -0400247if USB_OHCI_HCD
248
Heiko Schocher124f9472019-07-16 10:49:07 +0200249config USB_OHCI_PCI
250 bool "Support for PCI-based OHCI USB controller"
Tom Rini5b9e6162021-07-09 10:11:56 -0400251 depends on PCI
Heiko Schocher124f9472019-07-16 10:49:07 +0200252 help
253 Enables support for the PCI-based OHCI controller.
254
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900255config USB_OHCI_GENERIC
256 bool "Support for generic OHCI USB controller"
Jagan Teki1ba41e12018-12-22 18:18:10 +0530257 default ARCH_SUNXI
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900258 ---help---
259 Enables support for generic OHCI controller.
260
Adam Ford5f364f52019-04-30 05:21:41 -0500261config USB_OHCI_DA8XX
262 bool "Support for da850 OHCI USB controller"
263 help
264 Enable support for the da850 USB controller.
265
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900266endif # USB_OHCI_HCD
Masahiro Yamada718ba3c2016-08-01 00:16:33 +0900267
268config USB_UHCI_HCD
269 bool "UHCI HCD (most Intel and VIA) support"
Masahiro Yamada59cfdc02016-08-01 00:16:34 +0900270 select USB_HOST
Masahiro Yamada718ba3c2016-08-01 00:16:33 +0900271 ---help---
272 The Universal Host Controller Interface is a standard by Intel for
273 accessing the USB hardware in the PC (which is also called the USB
274 host controller). If your USB host controller conforms to this
275 standard, you may want to say Y, but see below. All recent boards
276 with Intel PCI chipsets (like intel 430TX, 440FX, 440LX, 440BX,
277 i810, i820) conform to this standard. Also all VIA PCI chipsets
278 (like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro
279 133) and LEON/GRLIB SoCs with the GRUSBHC controller.
280 If unsure, say Y.
281
282if USB_UHCI_HCD
283
284endif # USB_UHCI_HCD
Philipp Tomsich54983812017-07-03 18:30:06 +0200285
286config USB_DWC2
287 bool "DesignWare USB2 Core support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400288 depends on DM && OF_CONTROL
Philipp Tomsich54983812017-07-03 18:30:06 +0200289 select USB_HOST
290 ---help---
291 The DesignWare USB 2.0 controller is compliant with the
292 USB-Implementers Forum (USB-IF) USB 2.0 specifications.
293 Hi-Speed (480 Mbps), Full-Speed (12 Mbps), and Low-Speed (1.5 Mbps)
294 operation is compliant to the controller Supplement. If you want to
295 enable this controller in host mode, say Y.
Alexey Brodkinf19414b2018-02-28 16:16:58 +0300296
297if USB_DWC2
298config USB_DWC2_BUFFER_SIZE
299 int "Data buffer size in kB"
300 default 64
301 ---help---
302 By default 64 kB buffer is used but if amount of RAM avaialble on
303 the target is not enough to accommodate allocation of buffer of
304 that size it is possible to shrink it. Smaller sizes should be fine
305 because larger transactions could be split in smaller ones.
306
307endif # USB_DWC2
Marek Vasut88016032019-08-11 13:23:43 +0200308
309config USB_R8A66597_HCD
310 bool "Renesas R8A66597 USB Core support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400311 depends on DM && OF_CONTROL
Marek Vasut88016032019-08-11 13:23:43 +0200312 select USB_HOST
313 ---help---
314 This enables support for the on-chip Renesas R8A66597 USB 2.0
315 controller, present in various RZ and SH SoCs.