Merge tag 'rockchip-for-2019.07' of git://git.denx.de/u-boot-rockchip
[oweals/u-boot.git] / drivers / usb / host / Kconfig
1 #
2 # USB Host Controller Drivers
3 #
4 comment "USB Host Controller Drivers"
5
6 config USB_HOST
7         bool
8
9 config USB_XHCI_HCD
10         bool "xHCI HCD (USB 3.0) support"
11         select USB_HOST
12         ---help---
13           The eXtensible Host Controller Interface (xHCI) is standard for USB 3.0
14           "SuperSpeed" host controller hardware.
15
16 if USB_XHCI_HCD
17
18 config USB_XHCI_DWC3
19         bool "DesignWare USB3 DRD Core Support"
20         help
21           Say Y or if your system has a Dual Role SuperSpeed
22           USB controller based on the DesignWare USB3 IP Core.
23
24 config USB_XHCI_DWC3_OF_SIMPLE
25         bool "DesignWare USB3 DRD Generic OF Simple Glue Layer"
26         depends on DM_USB
27         default y if DRA7XX
28         help
29           Support USB2/3 functionality in simple SoC integrations with
30           USB controller based on the DesignWare USB3 IP Core.
31
32 config USB_XHCI_MVEBU
33         bool "MVEBU USB 3.0 support"
34         default y
35         depends on ARCH_MVEBU
36         select DM_REGULATOR
37         help
38           Choose this option to add support for USB 3.0 driver on mvebu
39           SoCs, which includes Armada8K, Armada3700 and other Armada
40           family SoCs.
41
42 config USB_XHCI_PCI
43         bool "Support for PCI-based xHCI USB controller"
44         depends on DM_USB
45         default y if X86
46         help
47           Enables support for the PCI-based xHCI controller.
48
49 config USB_XHCI_ROCKCHIP
50         bool "Support for Rockchip on-chip xHCI USB controller"
51         depends on ARCH_ROCKCHIP
52         depends on DM_REGULATOR
53         depends on DM_USB
54         default y
55         help
56           Enables support for the on-chip xHCI controller on Rockchip SoCs.
57
58 config USB_XHCI_RCAR
59         bool "Renesas RCar USB 3.0 support"
60         default y
61         depends on ARCH_RMOBILE
62         help
63           Choose this option to add support for USB 3.0 driver on Renesas
64           RCar Gen3 SoCs.
65
66 config USB_XHCI_STI
67         bool "Support for STMicroelectronics STiH407 family on-chip xHCI USB controller"
68         depends on ARCH_STI
69         default y
70         help
71           Enables support for the on-chip xHCI controller on STMicroelectronics
72           STiH407 family SoCs. This is a driver for the dwc3 to provide the glue logic
73           to configure the controller.
74
75 config USB_XHCI_ZYNQMP
76         bool "Support for Xilinx ZynqMP on-chip xHCI USB controller"
77         depends on ARCH_ZYNQMP
78         depends on DM_USB
79         help
80           Enables support for the on-chip xHCI controller on Xilinx ZynqMP SoCs.
81
82 config USB_XHCI_DRA7XX_INDEX
83         int "DRA7XX xHCI USB index"
84         range 0 1
85         default 0
86         depends on DRA7XX
87         help
88           Select the DRA7XX xHCI USB index.
89           Current supported values: 0, 1.
90
91 config USB_XHCI_FSL
92         bool "Support for NXP Layerscape on-chip xHCI USB controller"
93         default y if ARCH_LS1021A || FSL_LSCH3 || FSL_LSCH2
94         depends on !SPL_NO_USB
95         help
96           Enables support for the on-chip xHCI controller on NXP Layerscape SoCs.
97 endif # USB_XHCI_HCD
98
99 config USB_EHCI_HCD
100         bool "EHCI HCD (USB 2.0) support"
101         default y if ARCH_MX5 || ARCH_MX6
102         select USB_HOST
103         ---help---
104           The Enhanced Host Controller Interface (EHCI) is standard for USB 2.0
105           "high speed" (480 Mbit/sec, 60 Mbyte/sec) host controller hardware.
106           If your USB host controller supports USB 2.0, you will likely want to
107           configure this Host Controller Driver.
108
109           EHCI controllers are packaged with "companion" host controllers (OHCI
110           or UHCI) to handle USB 1.1 devices connected to root hub ports.  Ports
111           will connect to EHCI if the device is high speed, otherwise they
112           connect to a companion controller.  If you configure EHCI, you should
113           probably configure the OHCI (for NEC and some other vendors) USB Host
114           Controller Driver or UHCI (for Via motherboards) Host Controller
115           Driver too.
116
117           You may want to read <file:Documentation/usb/ehci.txt>.
118
119 if USB_EHCI_HCD
120
121 config USB_EHCI_ATMEL
122         bool  "Support for Atmel on-chip EHCI USB controller"
123         depends on ARCH_AT91
124         default y
125         ---help---
126           Enables support for the on-chip EHCI controller on Atmel chips.
127
128 config USB_EHCI_MARVELL
129         bool "Support for Marvell on-chip EHCI USB controller"
130         depends on ARCH_MVEBU || KIRKWOOD || ORION5X
131         default y
132         ---help---
133           Enables support for the on-chip EHCI controller on MVEBU SoCs.
134
135 config USB_EHCI_MX5
136         bool "Support for i.MX5 on-chip EHCI USB controller"
137         depends on ARCH_MX5
138         default n
139         help
140           Enables support for the on-chip EHCI controller on i.MX5 SoCs.
141
142 config USB_EHCI_MX6
143         bool "Support for i.MX6 on-chip EHCI USB controller"
144         depends on ARCH_MX6
145         default y
146         ---help---
147           Enables support for the on-chip EHCI controller on i.MX6 SoCs.
148
149 config USB_EHCI_MX7
150         bool "Support for i.MX7 on-chip EHCI USB controller"
151         depends on ARCH_MX7
152         default y
153         ---help---
154           Enables support for the on-chip EHCI controller on i.MX7 SoCs.
155
156 config USB_EHCI_OMAP
157         bool "Support for OMAP3+ on-chip EHCI USB controller"
158         depends on ARCH_OMAP2PLUS
159         default y
160         ---help---
161           Enables support for the on-chip EHCI controller on OMAP3 and later
162           SoCs.
163
164 config USB_EHCI_VF
165         bool "Support for Vybrid on-chip EHCI USB controller"
166         depends on ARCH_VF610
167         default y
168         help
169           Enables support for the on-chip EHCI controller on Vybrid SoCs.
170
171 if USB_EHCI_MX7
172
173 config MXC_USB_OTG_HACTIVE
174         bool "USB Power pin high active"
175         ---help---
176           Set the USB Power pin polarity to be high active (PWR_POL)
177
178 endif
179
180 config USB_EHCI_MSM
181         bool "Support for Qualcomm on-chip EHCI USB controller"
182         depends on DM_USB
183         select USB_ULPI_VIEWPORT
184         select MSM8916_USB_PHY
185         default n
186         ---help---
187           Enables support for the on-chip EHCI controller on Qualcomm
188           Snapdragon SoCs.
189
190 config USB_EHCI_PCI
191         bool "Support for PCI-based EHCI USB controller"
192         default y if X86
193         help
194           Enables support for the PCI-based EHCI controller.
195
196 config USB_EHCI_TEGRA
197         bool "Support for NVIDIA Tegra on-chip EHCI USB controller"
198         depends on TEGRA
199         ---help---
200           Enable support for Tegra on-chip EHCI USB controller
201
202 config USB_EHCI_ZYNQ
203         bool "Support for Xilinx Zynq on-chip EHCI USB controller"
204         depends on ARCH_ZYNQ
205         default y
206         ---help---
207           Enable support for Zynq on-chip EHCI USB controller
208
209 config USB_EHCI_GENERIC
210         bool "Support for generic EHCI USB controller"
211         depends on OF_CONTROL
212         depends on DM_USB
213         default ARCH_SUNXI
214         default n
215         ---help---
216           Enables support for generic EHCI controller.
217
218 config USB_EHCI_FSL
219         bool  "Support for FSL on-chip EHCI USB controller"
220         default n
221         select  CONFIG_EHCI_HCD_INIT_AFTER_RESET
222         ---help---
223           Enables support for the on-chip EHCI controller on FSL chips.
224 endif # USB_EHCI_HCD
225
226 config USB_OHCI_HCD
227         bool "OHCI HCD (USB 1.1) support"
228         ---help---
229           The Open Host Controller Interface (OHCI) is a standard for accessing
230           USB 1.1 host controller hardware.  It does more in hardware than Intel's
231           UHCI specification.  If your USB host controller follows the OHCI spec,
232           say Y.  On most non-x86 systems, and on x86 hardware that's not using a
233           USB controller from Intel or VIA, this is appropriate.  If your host
234           controller doesn't use PCI, this is probably appropriate.  For a PCI
235           based system where you're not sure, the "lspci -v" entry will list the
236           right "prog-if" for your USB controller(s):  EHCI, OHCI, or UHCI.
237
238 if USB_OHCI_HCD
239
240 config USB_OHCI_GENERIC
241         bool "Support for generic OHCI USB controller"
242         depends on OF_CONTROL
243         depends on DM_USB
244         default ARCH_SUNXI
245         select USB_HOST
246         ---help---
247           Enables support for generic OHCI controller.
248
249 endif # USB_OHCI_HCD
250
251 config USB_UHCI_HCD
252         bool "UHCI HCD (most Intel and VIA) support"
253         select USB_HOST
254         ---help---
255           The Universal Host Controller Interface is a standard by Intel for
256           accessing the USB hardware in the PC (which is also called the USB
257           host controller). If your USB host controller conforms to this
258           standard, you may want to say Y, but see below. All recent boards
259           with Intel PCI chipsets (like intel 430TX, 440FX, 440LX, 440BX,
260           i810, i820) conform to this standard. Also all VIA PCI chipsets
261           (like VIA VP2, VP3, MVP3, Apollo Pro, Apollo Pro II or Apollo Pro
262           133) and LEON/GRLIB SoCs with the GRUSBHC controller.
263           If unsure, say Y.
264
265 if USB_UHCI_HCD
266
267 endif # USB_UHCI_HCD
268
269 config USB_DWC2
270         bool "DesignWare USB2 Core support"
271         select USB_HOST
272         ---help---
273           The DesignWare USB 2.0 controller is compliant with the
274           USB-Implementers Forum (USB-IF) USB 2.0 specifications.
275           Hi-Speed (480 Mbps), Full-Speed (12 Mbps), and Low-Speed (1.5 Mbps)
276           operation is compliant to the controller Supplement. If you want to
277           enable this controller in host mode, say Y.
278
279 if USB_DWC2
280 config USB_DWC2_BUFFER_SIZE
281         int "Data buffer size in kB"
282         default 64
283         ---help---
284           By default 64 kB buffer is used but if amount of RAM avaialble on
285           the target is not enough to accommodate allocation of buffer of
286           that size it is possible to shrink it. Smaller sizes should be fine
287           because larger transactions could be split in smaller ones.
288
289 endif # USB_DWC2