blob: 5d0855ffcc7925694366c154b67eb33da02abebf [file] [log] [blame]
Masahiro Yamada6e7e9292014-11-07 18:48:31 +09001#
2# USB Host Controller Drivers
3#
4comment "USB Host Controller Drivers"
5
Masahiro Yamada2b58e1b2016-08-01 00:16:34 +09006config USB_HOST
7 bool
Tom Rinibe5c0602021-07-09 10:11:56 -04008 select DM_USB
Masahiro Yamada2b58e1b2016-08-01 00:16:34 +09009
Masahiro Yamada6e7e9292014-11-07 18:48:31 +090010config USB_XHCI_HCD
11 bool "xHCI HCD (USB 3.0) support"
Tom Rinibe5c0602021-07-09 10:11:56 -040012 depends on DM && OF_CONTROL
Masahiro Yamada2b58e1b2016-08-01 00:16:34 +090013 select USB_HOST
Masahiro Yamada6e7e9292014-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 Yamada6e7e9292014-11-07 18:48:31 +090018if USB_XHCI_HCD
19
Masahiro Yamada10db7502016-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 Armstrongca7fdc82018-04-11 17:08:00 +020026config USB_XHCI_DWC3_OF_SIMPLE
27 bool "DesignWare USB3 DRD Generic OF Simple Glue Layer"
Jean-Jacques Hiblot103774b2018-04-12 10:41:10 +020028 depends on DM_USB
Mark Kettenisaaa8d6b2019-06-30 18:01:54 +020029 default y if ARCH_ROCKCHIP
Jean-Jacques Hiblotcc73ba92018-04-12 10:41:11 +020030 default y if DRA7XX
Neil Armstrongca7fdc82018-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
Chunfeng Yun74102832020-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 Roese81c1f6f2016-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 Porotchkin81192b72017-02-12 11:10:30 +020045 select DM_REGULATOR
Stefan Roese81c1f6f2016-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 Roese92ca2fe2020-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 Rini8d8d7e92021-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 Mengd7cde282017-07-19 21:50:08 +080070config USB_XHCI_PCI
71 bool "Support for PCI-based xHCI USB controller"
Bin Meng978f6a32017-07-19 21:51:07 +080072 depends on DM_USB
Bin Mengd7cde282017-07-19 21:50:08 +080073 default y if X86
74 help
75 Enables support for the PCI-based xHCI controller.
76
Marek Vasute1cc60c2017-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 Chotard40d1a312017-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 Mashiachef3f3b82017-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 Wang420b0eb2017-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 Kokatanur9cadf052020-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 Yamada93cb8242016-08-01 00:16:32 +0900117endif # USB_XHCI_HCD
Alexey Brodkinfee331f2015-12-14 17:18:50 +0300118
Tom Rini879b0b12022-06-08 08:24:26 -0400119config EHCI_DESC_BIG_ENDIAN
120 bool
121
122config EHCI_MMIO_BIG_ENDIAN
123 bool
124
Masahiro Yamada6e7e9292014-11-07 18:48:31 +0900125config USB_EHCI_HCD
126 bool "EHCI HCD (USB 2.0) support"
Tom Rini64d6ac52017-05-12 22:33:28 -0400127 default y if ARCH_MX5 || ARCH_MX6
Tom Rinibe5c0602021-07-09 10:11:56 -0400128 depends on DM && OF_CONTROL
Masahiro Yamada2b58e1b2016-08-01 00:16:34 +0900129 select USB_HOST
Tom Rini879b0b12022-06-08 08:24:26 -0400130 select EHCI_DESC_BIG_ENDIAN if SYS_BIG_ENDIAN
131 select EHCI_MMIO_BIG_ENDIAN if SYS_BIG_ENDIAN
Masahiro Yamada6e7e9292014-11-07 18:48:31 +0900132 ---help---
133 The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
134 "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
135 If your USB host controller supports USB 2.0, you will likely want to
136 configure this Host Controller Driver.
137
138 EHCI controllers are packaged with "companion" host controllers (OHCI
139 or UHCI) to handle USB 1.1 devices connected to root hub ports. Ports
140 will connect to EHCI if the device is high speed, otherwise they
141 connect to a companion controller. If you configure EHCI, you should
142 probably configure the OHCI (for NEC and some other vendors) USB Host
143 Controller Driver or UHCI (for Via motherboards) Host Controller
144 Driver too.
145
146 You may want to read <file:Documentation/usb/ehci.txt>.
147
Masahiro Yamada6e7e9292014-11-07 18:48:31 +0900148if USB_EHCI_HCD
149
Marek BehĂșn56882dc2021-10-09 15:27:35 +0200150config USB_EHCI_IS_TDI
151 bool
152
Wenyou Yang17b68b52016-08-05 08:57:35 +0800153config USB_EHCI_ATMEL
154 bool "Support for Atmel on-chip EHCI USB controller"
155 depends on ARCH_AT91
156 default y
157 ---help---
158 Enables support for the on-chip EHCI controller on Atmel chips.
159
Stefan Roesecd482252015-09-01 11:39:44 +0200160config USB_EHCI_MARVELL
Tom Rini80f1f322017-05-12 22:33:29 -0400161 bool "Support for Marvell on-chip EHCI USB controller"
Trevor Woernerbb0fb4c2020-05-06 08:02:40 -0400162 depends on ARCH_MVEBU || ARCH_KIRKWOOD || ARCH_ORION5X
Stefan Roesecd482252015-09-01 11:39:44 +0200163 default y
Marek BehĂșn56882dc2021-10-09 15:27:35 +0200164 select USB_EHCI_IS_TDI if !ARM64
Stefan Roesecd482252015-09-01 11:39:44 +0200165 ---help---
166 Enables support for the on-chip EHCI controller on MVEBU SoCs.
167
Lukasz Majewski400b9722019-04-04 12:26:55 +0200168config USB_EHCI_MX5
169 bool "Support for i.MX5 on-chip EHCI USB controller"
170 depends on ARCH_MX5
Lukasz Majewski400b9722019-04-04 12:26:55 +0200171 help
172 Enables support for the on-chip EHCI controller on i.MX5 SoCs.
173
Nikita Kiryanov919e8022015-07-23 17:19:35 +0300174config USB_EHCI_MX6
Ye Li235f5e12019-10-24 10:29:32 -0300175 bool "Support for i.MX6/i.MX7ULP on-chip EHCI USB controller"
Giulio Benettie7e81e82021-05-20 16:10:15 +0200176 depends on ARCH_MX6 || ARCH_MX7ULP || ARCH_IMXRT
Tom Rini879b0b12022-06-08 08:24:26 -0400177 select EHCI_HCD_INIT_AFTER_RESET
Nikita Kiryanov919e8022015-07-23 17:19:35 +0300178 default y
179 ---help---
180 Enables support for the on-chip EHCI controller on i.MX6 SoCs.
181
Stefan Agner2deebe22016-07-13 00:25:36 -0700182config USB_EHCI_MX7
183 bool "Support for i.MX7 on-chip EHCI USB controller"
Marek Vasut5e7e2a82021-04-02 14:07:22 +0200184 depends on ARCH_MX7 || IMX8M
Tom Rini879b0b12022-06-08 08:24:26 -0400185 select EHCI_HCD_INIT_AFTER_RESET if ARCH_MX7
Marek Vasut5e7e2a82021-04-02 14:07:22 +0200186 select PHY if IMX8M
187 select NOP_PHY if IMX8M
Stefan Agner2deebe22016-07-13 00:25:36 -0700188 default y
189 ---help---
190 Enables support for the on-chip EHCI controller on i.MX7 SoCs.
191
Marek BehĂșn7b805002021-10-09 15:27:33 +0200192config USB_EHCI_MXS
Lukasz Majewskif82feb72021-12-22 10:55:06 +0100193 bool "Support for i.MX23/i.MX28 EHCI USB controller"
194 depends on ARCH_MX23 || ARCH_MX28
Marek BehĂșn7b805002021-10-09 15:27:33 +0200195 default y
Marek BehĂșn56882dc2021-10-09 15:27:35 +0200196 select USB_EHCI_IS_TDI
Marek BehĂșn7b805002021-10-09 15:27:33 +0200197 help
Lukasz Majewskif82feb72021-12-22 10:55:06 +0100198 Enables support for the on-chip EHCI controller on i.MX23 and
199 i.MX28 SoCs.
Marek BehĂșn7b805002021-10-09 15:27:33 +0200200
Tom Rini1d1ab612017-05-12 22:33:30 -0400201config USB_EHCI_OMAP
202 bool "Support for OMAP3+ on-chip EHCI USB controller"
203 depends on ARCH_OMAP2PLUS
Adam Fordd11f9952022-02-19 17:08:44 -0600204 select PHY
205 imply NOP_PHY
Tom Rini1d1ab612017-05-12 22:33:30 -0400206 default y
207 ---help---
208 Enables support for the on-chip EHCI controller on OMAP3 and later
209 SoCs.
210
Marcel Ziswiler20df4b52019-03-25 17:24:54 +0100211config USB_EHCI_VF
212 bool "Support for Vybrid on-chip EHCI USB controller"
213 depends on ARCH_VF610
214 default y
215 help
216 Enables support for the on-chip EHCI controller on Vybrid SoCs.
217
Ye Li235f5e12019-10-24 10:29:32 -0300218if USB_EHCI_MX6 || USB_EHCI_MX7
Stefan Agnerc4483092016-07-13 00:25:38 -0700219
220config MXC_USB_OTG_HACTIVE
221 bool "USB Power pin high active"
222 ---help---
223 Set the USB Power pin polarity to be high active (PWR_POL)
224
225endif
226
Mateusz Kulikowski5a822112016-03-31 23:12:26 +0200227config USB_EHCI_MSM
228 bool "Support for Qualcomm on-chip EHCI USB controller"
229 depends on DM_USB
230 select USB_ULPI_VIEWPORT
Ramon Fried0ac0b6e2018-09-21 13:35:50 +0300231 select MSM8916_USB_PHY
Mateusz Kulikowski5a822112016-03-31 23:12:26 +0200232 ---help---
233 Enables support for the on-chip EHCI controller on Qualcomm
234 Snapdragon SoCs.
Mateusz Kulikowski5a822112016-03-31 23:12:26 +0200235
Bin Menga11a5b82017-08-09 00:21:54 -0700236config USB_EHCI_PCI
237 bool "Support for PCI-based EHCI USB controller"
238 default y if X86
239 help
240 Enables support for the PCI-based EHCI controller.
241
Peter Robinson747fed52019-02-20 12:17:27 +0000242config USB_EHCI_TEGRA
243 bool "Support for NVIDIA Tegra on-chip EHCI USB controller"
Trevor Woerner18138ab2020-05-06 08:02:41 -0400244 depends on ARCH_TEGRA
Marek BehĂșn56882dc2021-10-09 15:27:35 +0200245 select USB_EHCI_IS_TDI
Peter Robinson747fed52019-02-20 12:17:27 +0000246 ---help---
247 Enable support for Tegra on-chip EHCI USB controller
248
Siva Durga Prasad Paladugu2cdc7782016-07-22 14:51:51 +0530249config USB_EHCI_ZYNQ
250 bool "Support for Xilinx Zynq on-chip EHCI USB controller"
Michal Simek54fdef22020-08-24 14:41:51 +0200251 default y if ARCH_ZYNQ
Marek BehĂșn56882dc2021-10-09 15:27:35 +0200252 select USB_EHCI_IS_TDI
Siva Durga Prasad Paladugu2cdc7782016-07-22 14:51:51 +0530253 ---help---
254 Enable support for Zynq on-chip EHCI USB controller
255
Alexey Brodkin90fbb282015-12-02 12:32:02 +0300256config USB_EHCI_GENERIC
257 bool "Support for generic EHCI USB controller"
Alexey Brodkin90fbb282015-12-02 12:32:02 +0300258 depends on DM_USB
Jagan Teki29d280c2018-12-22 18:18:10 +0530259 default ARCH_SUNXI
Alexey Brodkin90fbb282015-12-02 12:32:02 +0300260 ---help---
261 Enables support for generic EHCI controller.
262
Tom Rinie78e8802022-06-08 08:24:27 -0400263config EHCI_HCD_INIT_AFTER_RESET
264 bool
265
Ran Wang91f4fb92017-12-20 10:34:20 +0800266config USB_EHCI_FSL
267 bool "Support for FSL on-chip EHCI USB controller"
Tom Rinie78e8802022-06-08 08:24:27 -0400268 select EHCI_HCD_INIT_AFTER_RESET
Ran Wang91f4fb92017-12-20 10:34:20 +0800269 ---help---
270 Enables support for the on-chip EHCI controller on FSL chips.
Masahiro Yamada93cb8242016-08-01 00:16:32 +0900271endif # USB_EHCI_HCD
272
273config USB_OHCI_HCD
274 bool "OHCI HCD (USB 1.1) support"
Tom Rinibe5c0602021-07-09 10:11:56 -0400275 depends on DM && OF_CONTROL
276 select USB_HOST
Masahiro Yamada93cb8242016-08-01 00:16:32 +0900277 ---help---
278 The Open Host Controller Interface (OHCI) is a standard for accessing
279 USB 1.1 host controller hardware. It does more in hardware than Intel's
280 UHCI specification. If your USB host controller follows the OHCI spec,
281 say Y. On most non-x86 systems, and on x86 hardware that's not using a
282 USB controller from Intel or VIA, this is appropriate. If your host
283 controller doesn't use PCI, this is probably appropriate. For a PCI
284 based system where you're not sure, the "lspci -v" entry will list the
285 right "prog-if" for your USB controller(s): EHCI, OHCI, or UHCI.
286
Tom Rinibe5c0602021-07-09 10:11:56 -0400287if USB_OHCI_HCD
288
Heiko Schocher991e6602019-07-16 10:49:07 +0200289config USB_OHCI_PCI
290 bool "Support for PCI-based OHCI USB controller"
Tom Rinibe5c0602021-07-09 10:11:56 -0400291 depends on PCI
Heiko Schocher991e6602019-07-16 10:49:07 +0200292 help
293 Enables support for the PCI-based OHCI controller.
294
Masahiro Yamada93cb8242016-08-01 00:16:32 +0900295config USB_OHCI_GENERIC
296 bool "Support for generic OHCI USB controller"
Jagan Teki29d280c2018-12-22 18:18:10 +0530297 default ARCH_SUNXI
Masahiro Yamada93cb8242016-08-01 00:16:32 +0900298 ---help---
299 Enables support for generic OHCI controller.
300
Adam Ford9da54742019-04-30 05:21:41 -0500301config USB_OHCI_DA8XX
302 bool "Support for da850 OHCI USB controller"
303 help
304 Enable support for the da850 USB controller.
305
Masahiro Yamada93cb8242016-08-01 00:16:32 +0900306endif # USB_OHCI_HCD
Masahiro Yamada96d82842016-08-01 00:16:33 +0900307
308config USB_UHCI_HCD
309 bool "UHCI HCD (most Intel and VIA) support"
Masahiro Yamada2b58e1b2016-08-01 00:16:34 +0900310 select USB_HOST
Masahiro Yamada96d82842016-08-01 00:16:33 +0900311 ---help---
312 The Universal Host Controller Interface is a standard by Intel for
313 accessing the USB hardware in the PC (which is also called the USB
314 host controller). If your USB host controller conforms to this
315 standard, you may want to say Y, but see below. All recent boards
316 with Intel PCI chipsets (like intel 430TX, 440FX, 440LX, 440BX,
317 i810, i820) conform to this standard. Also all VIA PCI chipsets
318 (like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro
319 133) and LEON/GRLIB SoCs with the GRUSBHC controller.
320 If unsure, say Y.
321
322if USB_UHCI_HCD
323
324endif # USB_UHCI_HCD
Philipp Tomsich4ac72f52017-07-03 18:30:06 +0200325
326config USB_DWC2
327 bool "DesignWare USB2 Core support"
Tom Rinibe5c0602021-07-09 10:11:56 -0400328 depends on DM && OF_CONTROL
Philipp Tomsich4ac72f52017-07-03 18:30:06 +0200329 select USB_HOST
330 ---help---
331 The DesignWare USB 2.0 controller is compliant with the
332 USB-Implementers Forum (USB-IF) USB 2.0 specifications.
333 Hi-Speed (480 Mbps), Full-Speed (12 Mbps), and Low-Speed (1.5 Mbps)
334 operation is compliant to the controller Supplement. If you want to
335 enable this controller in host mode, say Y.
Alexey Brodkin42637fd2018-02-28 16:16:58 +0300336
337if USB_DWC2
338config USB_DWC2_BUFFER_SIZE
339 int "Data buffer size in kB"
340 default 64
341 ---help---
342 By default 64 kB buffer is used but if amount of RAM avaialble on
343 the target is not enough to accommodate allocation of buffer of
344 that size it is possible to shrink it. Smaller sizes should be fine
345 because larger transactions could be split in smaller ones.
346
347endif # USB_DWC2
Marek Vasuta3d65652019-08-11 13:23:43 +0200348
349config USB_R8A66597_HCD
350 bool "Renesas R8A66597 USB Core support"
Tom Rinibe5c0602021-07-09 10:11:56 -0400351 depends on DM && OF_CONTROL
Marek Vasuta3d65652019-08-11 13:23:43 +0200352 select USB_HOST
353 ---help---
354 This enables support for the on-chip Renesas R8A66597 USB 2.0
355 controller, present in various RZ and SH SoCs.