blob: 10b0479a8a6a81a581d5286f913d92bb376b9e42 [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
Tom Riniebc1c842021-09-12 20:32:22 -040060config USB_XHCI_OMAP
61 bool "Support for TI OMAP family xHCI USB controller"
62 depends on ARCH_OMAP2PLUS
63 help
64 Enables support for the on-chip xHCI controller found on some TI SoC
65 families. Note that some families have multiple contollers while
66 others only have something such as DesignWare-based controllers.
67 Consult the SoC documentation to determine if this option applies
68 to your hardware.
69
Bin Mengd34d6fc2017-07-19 21:50:08 +080070config USB_XHCI_PCI
71 bool "Support for PCI-based xHCI USB controller"
Bin Meng7e8644d2017-07-19 21:51:07 +080072 depends on DM_USB
Bin Mengd34d6fc2017-07-19 21:50:08 +080073 default y if X86
74 help
75 Enables support for the PCI-based xHCI controller.
76
Marek Vasut24257272017-10-15 15:01:29 +020077config USB_XHCI_RCAR
78 bool "Renesas RCar USB 3.0 support"
79 default y
80 depends on ARCH_RMOBILE
81 help
82 Choose this option to add support for USB 3.0 driver on Renesas
83 RCar Gen3 SoCs.
84
Patrice Chotardf2505b12017-09-05 11:04:24 +020085config USB_XHCI_STI
86 bool "Support for STMicroelectronics STiH407 family on-chip xHCI USB controller"
87 depends on ARCH_STI
88 default y
89 help
90 Enables support for the on-chip xHCI controller on STMicroelectronics
91 STiH407 family SoCs. This is a driver for the dwc3 to provide the glue logic
92 to configure the controller.
93
Uri Mashiachf6ff74e2017-02-23 15:39:36 +020094config USB_XHCI_DRA7XX_INDEX
95 int "DRA7XX xHCI USB index"
96 range 0 1
97 default 0
98 depends on DRA7XX
99 help
100 Select the DRA7XX xHCI USB index.
101 Current supported values: 0, 1.
102
Ran Wanga5a97352017-10-23 10:09:22 +0800103config USB_XHCI_FSL
104 bool "Support for NXP Layerscape on-chip xHCI USB controller"
105 default y if ARCH_LS1021A || FSL_LSCH3 || FSL_LSCH2
106 depends on !SPL_NO_USB
107 help
108 Enables support for the on-chip xHCI controller on NXP Layerscape SoCs.
Rayagonda Kokatanurf59d24e2020-04-09 09:23:15 +0530109
110config USB_XHCI_BRCM
111 bool "Broadcom USB3 Host XHCI controller"
112 depends on DM_USB
113 help
114 USB controller based on the Broadcom USB3 IP Core.
115 Supports USB2/3 functionality.
116
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900117endif # USB_XHCI_HCD
Alexey Brodkin83fd3122015-12-14 17:18:50 +0300118
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900119config USB_EHCI_HCD
120 bool "EHCI HCD (USB 2.0) support"
Tom Rini7716cd62017-05-12 22:33:28 -0400121 default y if ARCH_MX5 || ARCH_MX6
Tom Rini5b9e6162021-07-09 10:11:56 -0400122 depends on DM && OF_CONTROL
Masahiro Yamada59cfdc02016-08-01 00:16:34 +0900123 select USB_HOST
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900124 ---help---
125 The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
126 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
127 If your USB host controller supports USB 2.0, you will likely want to
128 configure this Host Controller Driver.
129
130 EHCI controllers are packaged with "companion" host controllers (OHCI
131 or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports
132 will connect to EHCI if the device is high speed, otherwise they
133 connect to a companion controller. If you configure EHCI, you should
134 probably configure the OHCI (for NEC and some other vendors) USB Host
135 Controller Driver or UHCI (for Via motherboards) Host Controller
136 Driver too.
137
138 You may want to read <file:Documentation/usb/ehci.txt>.
139
Masahiro Yamada1b0a06b2014-11-07 18:48:31 +0900140if USB_EHCI_HCD
141
Wenyou Yang11e26652016-08-05 08:57:35 +0800142config USB_EHCI_ATMEL
143 bool "Support for Atmel on-chip EHCI USB controller"
144 depends on ARCH_AT91
145 default y
146 ---help---
147 Enables support for the on-chip EHCI controller on Atmel chips.
148
Stefan Roese03901022015-09-01 11:39:44 +0200149config USB_EHCI_MARVELL
Tom Rini496a4172017-05-12 22:33:29 -0400150 bool "Support for Marvell on-chip EHCI USB controller"
Trevor Woernerbb7ab072020-05-06 08:02:40 -0400151 depends on ARCH_MVEBU || ARCH_KIRKWOOD || ARCH_ORION5X
Stefan Roese03901022015-09-01 11:39:44 +0200152 default y
153 ---help---
154 Enables support for the on-chip EHCI controller on MVEBU SoCs.
155
Lukasz Majewski6fccaf22019-04-04 12:26:55 +0200156config USB_EHCI_MX5
157 bool "Support for i.MX5 on-chip EHCI USB controller"
158 depends on ARCH_MX5
Lukasz Majewski6fccaf22019-04-04 12:26:55 +0200159 help
160 Enables support for the on-chip EHCI controller on i.MX5 SoCs.
161
Nikita Kiryanov99241032015-07-23 17:19:35 +0300162config USB_EHCI_MX6
Ye Li9da57ea2019-10-24 10:29:32 -0300163 bool "Support for i.MX6/i.MX7ULP on-chip EHCI USB controller"
Giulio Benetti13ded2c2021-05-20 16:10:15 +0200164 depends on ARCH_MX6 || ARCH_MX7ULP || ARCH_IMXRT
Nikita Kiryanov99241032015-07-23 17:19:35 +0300165 default y
166 ---help---
167 Enables support for the on-chip EHCI controller on i.MX6 SoCs.
168
Stefan Agner100fe072016-07-13 00:25:36 -0700169config USB_EHCI_MX7
170 bool "Support for i.MX7 on-chip EHCI USB controller"
Marek Vasute15971f2021-04-02 14:07:22 +0200171 depends on ARCH_MX7 || IMX8M
172 select PHY if IMX8M
173 select NOP_PHY if IMX8M
Stefan Agner100fe072016-07-13 00:25:36 -0700174 default y
175 ---help---
176 Enables support for the on-chip EHCI controller on i.MX7 SoCs.
177
Tom Rini639a8402017-05-12 22:33:30 -0400178config USB_EHCI_OMAP
179 bool "Support for OMAP3+ on-chip EHCI USB controller"
180 depends on ARCH_OMAP2PLUS
181 default y
182 ---help---
183 Enables support for the on-chip EHCI controller on OMAP3 and later
184 SoCs.
185
Tom Rinia7e67592021-09-12 20:32:28 -0400186if USB_EHCI_OMAP
187
188config HAS_OMAP_EHCI_PHY1_RESET_GPIO
189 bool "PHY #1 requires a GPIO hold to it in RESET while PHY settles"
190 help
191 Enable this to be able to configure the GPIO number used to hold the
192 PHY in RESET for enough time until the PHY is settled and ready.
193
194config OMAP_EHCI_PHY1_RESET_GPIO
195 int "GPIO number to hold PHY #1 in RESET"
196 depends on HAS_OMAP_EHCI_PHY1_RESET_GPIO
197
198config HAS_OMAP_EHCI_PHY2_RESET_GPIO
199 bool "PHY #2 requires a GPIO hold to it in RESET while PHY settles"
200 help
201 Enable this to be able to configure the GPIO number used to hold the
202 PHY in RESET for enough time until the PHY is settled and ready.
203
204config OMAP_EHCI_PHY2_RESET_GPIO
205 int "GPIO number to hold PHY #2 in RESET"
206 depends on HAS_OMAP_EHCI_PHY2_RESET_GPIO
207
208config HAS_OMAP_EHCI_PHY3_RESET_GPIO
209 bool "PHY #3 requires a GPIO hold to it in RESET while PHY settles"
210 help
211 Enable this to be able to configure the GPIO number used to hold the
212 PHY in RESET for enough time until the PHY is settled and ready.
213
214config OMAP_EHCI_PHY3_RESET_GPIO
215 int "GPIO number to hold PHY #3 in RESET"
216 depends on HAS_OMAP_EHCI_PHY3_RESET_GPIO
217
218endif
219
Marcel Ziswiler31f44952019-03-25 17:24:54 +0100220config USB_EHCI_VF
221 bool "Support for Vybrid on-chip EHCI USB controller"
222 depends on ARCH_VF610
223 default y
224 help
225 Enables support for the on-chip EHCI controller on Vybrid SoCs.
226
Ye Li9da57ea2019-10-24 10:29:32 -0300227if USB_EHCI_MX6 || USB_EHCI_MX7
Stefan Agner8652ce92016-07-13 00:25:38 -0700228
229config MXC_USB_OTG_HACTIVE
230 bool "USB Power pin high active"
231 ---help---
232 Set the USB Power pin polarity to be high active (PWR_POL)
233
234endif
235
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200236config USB_EHCI_MSM
237 bool "Support for Qualcomm on-chip EHCI USB controller"
238 depends on DM_USB
239 select USB_ULPI_VIEWPORT
Ramon Fried7e365962018-09-21 13:35:50 +0300240 select MSM8916_USB_PHY
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200241 ---help---
242 Enables support for the on-chip EHCI controller on Qualcomm
243 Snapdragon SoCs.
Mateusz Kulikowskidc381172016-03-31 23:12:26 +0200244
Bin Mengec4b5732017-08-09 00:21:54 -0700245config USB_EHCI_PCI
246 bool "Support for PCI-based EHCI USB controller"
247 default y if X86
248 help
249 Enables support for the PCI-based EHCI controller.
250
Peter Robinson43ecef42019-02-20 12:17:27 +0000251config USB_EHCI_TEGRA
252 bool "Support for NVIDIA Tegra on-chip EHCI USB controller"
Trevor Woerner513f6402020-05-06 08:02:41 -0400253 depends on ARCH_TEGRA
Peter Robinson43ecef42019-02-20 12:17:27 +0000254 ---help---
255 Enable support for Tegra on-chip EHCI USB controller
256
Siva Durga Prasad Paladugu42fcc182016-07-22 14:51:51 +0530257config USB_EHCI_ZYNQ
258 bool "Support for Xilinx Zynq on-chip EHCI USB controller"
Michal Simek3239d712020-08-24 14:41:51 +0200259 default y if ARCH_ZYNQ
Siva Durga Prasad Paladugu42fcc182016-07-22 14:51:51 +0530260 ---help---
261 Enable support for Zynq on-chip EHCI USB controller
262
Alexey Brodkina6aff432015-12-02 12:32:02 +0300263config USB_EHCI_GENERIC
264 bool "Support for generic EHCI USB controller"
Alexey Brodkina6aff432015-12-02 12:32:02 +0300265 depends on DM_USB
Jagan Teki1ba41e12018-12-22 18:18:10 +0530266 default ARCH_SUNXI
Alexey Brodkina6aff432015-12-02 12:32:02 +0300267 ---help---
268 Enables support for generic EHCI controller.
269
Ran Wang9798b662017-12-20 10:34:20 +0800270config USB_EHCI_FSL
271 bool "Support for FSL on-chip EHCI USB controller"
Ran Wang9798b662017-12-20 10:34:20 +0800272 select CONFIG_EHCI_HCD_INIT_AFTER_RESET
273 ---help---
274 Enables support for the on-chip EHCI controller on FSL chips.
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900275endif # USB_EHCI_HCD
276
277config USB_OHCI_HCD
278 bool "OHCI HCD (USB 1.1) support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400279 depends on DM && OF_CONTROL
280 select USB_HOST
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900281 ---help---
282 The Open Host Controller Interface (OHCI) is a standard for accessing
283 USB 1.1 host controller hardware. It does more in hardware than Intel's
284 UHCI specification. If your USB host controller follows the OHCI spec,
285 say Y. On most non-x86 systems, and on x86 hardware that's not using a
286 USB controller from Intel or VIA, this is appropriate. If your host
287 controller doesn't use PCI, this is probably appropriate. For a PCI
288 based system where you're not sure, the "lspci -v" entry will list the
289 right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI.
290
Tom Rini5b9e6162021-07-09 10:11:56 -0400291if USB_OHCI_HCD
292
Heiko Schocher124f9472019-07-16 10:49:07 +0200293config USB_OHCI_PCI
294 bool "Support for PCI-based OHCI USB controller"
Tom Rini5b9e6162021-07-09 10:11:56 -0400295 depends on PCI
Heiko Schocher124f9472019-07-16 10:49:07 +0200296 help
297 Enables support for the PCI-based OHCI controller.
298
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900299config USB_OHCI_GENERIC
300 bool "Support for generic OHCI USB controller"
Jagan Teki1ba41e12018-12-22 18:18:10 +0530301 default ARCH_SUNXI
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900302 ---help---
303 Enables support for generic OHCI controller.
304
Adam Ford5f364f52019-04-30 05:21:41 -0500305config USB_OHCI_DA8XX
306 bool "Support for da850 OHCI USB controller"
307 help
308 Enable support for the da850 USB controller.
309
Masahiro Yamada78a9c792016-08-01 00:16:32 +0900310endif # USB_OHCI_HCD
Masahiro Yamada718ba3c2016-08-01 00:16:33 +0900311
312config USB_UHCI_HCD
313 bool "UHCI HCD (most Intel and VIA) support"
Masahiro Yamada59cfdc02016-08-01 00:16:34 +0900314 select USB_HOST
Masahiro Yamada718ba3c2016-08-01 00:16:33 +0900315 ---help---
316 The Universal Host Controller Interface is a standard by Intel for
317 accessing the USB hardware in the PC (which is also called the USB
318 host controller). If your USB host controller conforms to this
319 standard, you may want to say Y, but see below. All recent boards
320 with Intel PCI chipsets (like intel 430TX, 440FX, 440LX, 440BX,
321 i810, i820) conform to this standard. Also all VIA PCI chipsets
322 (like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro
323 133) and LEON/GRLIB SoCs with the GRUSBHC controller.
324 If unsure, say Y.
325
326if USB_UHCI_HCD
327
328endif # USB_UHCI_HCD
Philipp Tomsich54983812017-07-03 18:30:06 +0200329
330config USB_DWC2
331 bool "DesignWare USB2 Core support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400332 depends on DM && OF_CONTROL
Philipp Tomsich54983812017-07-03 18:30:06 +0200333 select USB_HOST
334 ---help---
335 The DesignWare USB 2.0 controller is compliant with the
336 USB-Implementers Forum (USB-IF) USB 2.0 specifications.
337 Hi-Speed (480 Mbps), Full-Speed (12 Mbps), and Low-Speed (1.5 Mbps)
338 operation is compliant to the controller Supplement. If you want to
339 enable this controller in host mode, say Y.
Alexey Brodkinf19414b2018-02-28 16:16:58 +0300340
341if USB_DWC2
342config USB_DWC2_BUFFER_SIZE
343 int "Data buffer size in kB"
344 default 64
345 ---help---
346 By default 64 kB buffer is used but if amount of RAM avaialble on
347 the target is not enough to accommodate allocation of buffer of
348 that size it is possible to shrink it. Smaller sizes should be fine
349 because larger transactions could be split in smaller ones.
350
351endif # USB_DWC2
Marek Vasut88016032019-08-11 13:23:43 +0200352
353config USB_R8A66597_HCD
354 bool "Renesas R8A66597 USB Core support"
Tom Rini5b9e6162021-07-09 10:11:56 -0400355 depends on DM && OF_CONTROL
Marek Vasut88016032019-08-11 13:23:43 +0200356 select USB_HOST
357 ---help---
358 This enables support for the on-chip Renesas R8A66597 USB 2.0
359 controller, present in various RZ and SH SoCs.