xref: /openbmc/linux/drivers/usb/gadget/udc/Kconfig (revision e2c75e76)
1#
2# USB Gadget support on a system involves
3#    (a) a peripheral controller, and
4#    (b) the gadget driver using it.
5#
6# NOTE:  Gadget support ** DOES NOT ** depend on host-side CONFIG_USB !!
7#
8#  - Host systems (like PCs) need CONFIG_USB (with "A" jacks).
9#  - Peripherals (like PDAs) need CONFIG_USB_GADGET (with "B" jacks).
10#  - Some systems have both kinds of controllers.
11#
12# With help from a special transceiver and a "Mini-AB" jack, systems with
13# both kinds of controller can also support "USB On-the-Go" (CONFIG_USB_OTG).
14#
15
16#
17# USB Peripheral Controller Support
18#
19# The order here is alphabetical, except that integrated controllers go
20# before discrete ones so they will be the initial/default value:
21#   - integrated/SOC controllers first
22#   - licensed IP used in both SOC and discrete versions
23#   - discrete ones (including all PCI-only controllers)
24#   - debug/dummy gadget+hcd is last.
25#
26menu "USB Peripheral Controller"
27
28#
29# Integrated controllers
30#
31
32config USB_AT91
33	tristate "Atmel AT91 USB Device Port"
34	depends on ARCH_AT91
35	depends on OF || COMPILE_TEST
36	help
37	   Many Atmel AT91 processors (such as the AT91RM2000) have a
38	   full speed USB Device Port with support for five configurable
39	   endpoints (plus endpoint zero).
40
41	   Say "y" to link the driver statically, or "m" to build a
42	   dynamically linked module called "at91_udc" and force all
43	   gadget drivers to also be dynamically linked.
44
45config USB_LPC32XX
46	tristate "LPC32XX USB Peripheral Controller"
47	depends on ARCH_LPC32XX && I2C
48	select USB_ISP1301
49	help
50	   This option selects the USB device controller in the LPC32xx SoC.
51
52	   Say "y" to link the driver statically, or "m" to build a
53	   dynamically linked module called "lpc32xx_udc" and force all
54	   gadget drivers to also be dynamically linked.
55
56config USB_ATMEL_USBA
57	tristate "Atmel USBA"
58	depends on ARCH_AT91
59	help
60	  USBA is the integrated high-speed USB Device controller on
61	  the AT32AP700x, some AT91SAM9 and AT91CAP9 processors from Atmel.
62
63	  The fifo_mode parameter is used to select endpoint allocation mode.
64	  fifo_mode = 0 is used to let the driver autoconfigure the endpoints.
65	  In this case, for ep1 2 banks are allocated if it works in isochronous
66	  mode and only 1 bank otherwise. For the rest of the endpoints
67	  only 1 bank is allocated.
68
69	  fifo_mode = 1 is a generic maximum fifo size (1024 bytes) configuration
70	  allowing the usage of ep1 - ep6
71
72	  fifo_mode = 2 is a generic performance maximum fifo size (1024 bytes)
73	  configuration allowing the usage of ep1 - ep3
74
75	  fifo_mode = 3 is a balanced performance configuration allowing the
76	  the usage of ep1 - ep8
77
78config USB_BCM63XX_UDC
79	tristate "Broadcom BCM63xx Peripheral Controller"
80	depends on BCM63XX
81	help
82	   Many Broadcom BCM63xx chipsets (such as the BCM6328) have a
83	   high speed USB Device Port with support for four fixed endpoints
84	   (plus endpoint zero).
85
86	   Say "y" to link the driver statically, or "m" to build a
87	   dynamically linked module called "bcm63xx_udc".
88
89config USB_FSL_USB2
90	tristate "Freescale Highspeed USB DR Peripheral Controller"
91	depends on FSL_SOC || ARCH_MXC
92	help
93	   Some of Freescale PowerPC and i.MX processors have a High Speed
94	   Dual-Role(DR) USB controller, which supports device mode.
95
96	   The number of programmable endpoints is different through
97	   SOC revisions.
98
99	   Say "y" to link the driver statically, or "m" to build a
100	   dynamically linked module called "fsl_usb2_udc" and force
101	   all gadget drivers to also be dynamically linked.
102
103config USB_FUSB300
104	tristate "Faraday FUSB300 USB Peripheral Controller"
105	depends on !PHYS_ADDR_T_64BIT && HAS_DMA
106	help
107	   Faraday usb device controller FUSB300 driver
108
109config USB_FOTG210_UDC
110	depends on HAS_DMA
111	tristate "Faraday FOTG210 USB Peripheral Controller"
112	help
113	   Faraday USB2.0 OTG controller which can be configured as
114	   high speed or full speed USB device. This driver supppors
115	   Bulk Transfer so far.
116
117	   Say "y" to link the driver statically, or "m" to build a
118	   dynamically linked module called "fotg210_udc".
119
120config USB_GR_UDC
121       tristate "Aeroflex Gaisler GRUSBDC USB Peripheral Controller Driver"
122       depends on HAS_DMA
123       help
124          Select this to support Aeroflex Gaisler GRUSBDC cores from the GRLIB
125	  VHDL IP core library.
126
127config USB_OMAP
128	tristate "OMAP USB Device Controller"
129	depends on ARCH_OMAP1
130	depends on ISP1301_OMAP || !(MACH_OMAP_H2 || MACH_OMAP_H3)
131	help
132	   Many Texas Instruments OMAP processors have flexible full
133	   speed USB device controllers, with support for up to 30
134	   endpoints (plus endpoint zero).  This driver supports the
135	   controller in the OMAP 1611, and should work with controllers
136	   in other OMAP processors too, given minor tweaks.
137
138	   Say "y" to link the driver statically, or "m" to build a
139	   dynamically linked module called "omap_udc" and force all
140	   gadget drivers to also be dynamically linked.
141
142config USB_PXA25X
143	tristate "PXA 25x or IXP 4xx"
144	depends on (ARCH_PXA && PXA25x) || ARCH_IXP4XX
145	depends on HAS_IOMEM
146	help
147	   Intel's PXA 25x series XScale ARM-5TE processors include
148	   an integrated full speed USB 1.1 device controller.  The
149	   controller in the IXP 4xx series is register-compatible.
150
151	   It has fifteen fixed-function endpoints, as well as endpoint
152	   zero (for control transfers).
153
154	   Say "y" to link the driver statically, or "m" to build a
155	   dynamically linked module called "pxa25x_udc" and force all
156	   gadget drivers to also be dynamically linked.
157
158# if there's only one gadget driver, using only two bulk endpoints,
159# don't waste memory for the other endpoints
160config USB_PXA25X_SMALL
161	depends on USB_PXA25X
162	bool
163	default n if USB_ETH_RNDIS
164	default y if USB_ZERO
165	default y if USB_ETH
166	default y if USB_G_SERIAL
167
168config USB_R8A66597
169	tristate "Renesas R8A66597 USB Peripheral Controller"
170	depends on HAS_DMA
171	help
172	   R8A66597 is a discrete USB host and peripheral controller chip that
173	   supports both full and high speed USB 2.0 data transfers.
174	   It has nine configurable endpoints, and endpoint zero.
175
176	   Say "y" to link the driver statically, or "m" to build a
177	   dynamically linked module called "r8a66597_udc" and force all
178	   gadget drivers to also be dynamically linked.
179
180config USB_RENESAS_USBHS_UDC
181	tristate 'Renesas USBHS controller'
182	depends on USB_RENESAS_USBHS && HAS_DMA
183	help
184	   Renesas USBHS is a discrete USB host and peripheral controller chip
185	   that supports both full and high speed USB 2.0 data transfers.
186	   It has nine or more configurable endpoints, and endpoint zero.
187
188	   Say "y" to link the driver statically, or "m" to build a
189	   dynamically linked module called "renesas_usbhs" and force all
190	   gadget drivers to also be dynamically linked.
191
192config USB_RENESAS_USB3
193	tristate 'Renesas USB3.0 Peripheral controller'
194	depends on ARCH_RENESAS || COMPILE_TEST
195	depends on EXTCON && HAS_DMA
196	help
197	   Renesas USB3.0 Peripheral controller is a USB peripheral controller
198	   that supports super, high, and full speed USB 3.0 data transfers.
199
200	   Say "y" to link the driver statically, or "m" to build a
201	   dynamically linked module called "renesas_usb3" and force all
202	   gadget drivers to also be dynamically linked.
203
204config USB_PXA27X
205	tristate "PXA 27x"
206	depends on HAS_IOMEM
207	help
208	   Intel's PXA 27x series XScale ARM v5TE processors include
209	   an integrated full speed USB 1.1 device controller.
210
211	   It has up to 23 endpoints, as well as endpoint zero (for
212	   control transfers).
213
214	   Say "y" to link the driver statically, or "m" to build a
215	   dynamically linked module called "pxa27x_udc" and force all
216	   gadget drivers to also be dynamically linked.
217
218config USB_S3C2410
219	tristate "S3C2410 USB Device Controller"
220	depends on ARCH_S3C24XX
221	help
222	  Samsung's S3C2410 is an ARM-4 processor with an integrated
223	  full speed USB 1.1 device controller.  It has 4 configurable
224	  endpoints, as well as endpoint zero (for control transfers).
225
226	  This driver has been tested on the S3C2410, S3C2412, and
227	  S3C2440 processors.
228
229config USB_S3C2410_DEBUG
230	bool "S3C2410 udc debug messages"
231	depends on USB_S3C2410
232
233config USB_S3C_HSUDC
234	tristate "S3C2416, S3C2443 and S3C2450 USB Device Controller"
235	depends on ARCH_S3C24XX
236	help
237	  Samsung's S3C2416, S3C2443 and S3C2450 is an ARM9 based SoC
238	  integrated with dual speed USB 2.0 device controller. It has
239	  8 endpoints, as well as endpoint zero.
240
241	  This driver has been tested on S3C2416 and S3C2450 processors.
242
243config USB_MV_UDC
244	tristate "Marvell USB2.0 Device Controller"
245	depends on HAS_DMA
246	help
247	  Marvell Socs (including PXA and MMP series) include a high speed
248	  USB2.0 OTG controller, which can be configured as high speed or
249	  full speed USB peripheral.
250
251config USB_MV_U3D
252	depends on HAS_DMA
253	tristate "MARVELL PXA2128 USB 3.0 controller"
254	help
255	  MARVELL PXA2128 Processor series include a super speed USB3.0 device
256	  controller, which support super speed USB peripheral.
257
258config USB_SNP_CORE
259	depends on (USB_AMD5536UDC || USB_SNP_UDC_PLAT)
260	depends on HAS_DMA
261	tristate
262	help
263	  This enables core driver support for Synopsys USB 2.0 Device
264	  controller.
265
266	  This will be enabled when PCI or Platform driver for this UDC is
267	  selected. Currently, this will be enabled by USB_SNP_UDC_PLAT or
268	  USB_AMD5536UDC options.
269
270	  This IP is different to the High Speed OTG IP that can be enabled
271	  by selecting USB_DWC2 or USB_DWC3 options.
272
273config USB_SNP_UDC_PLAT
274	tristate "Synopsys USB 2.0 Device controller"
275	depends on USB_GADGET && OF && HAS_DMA
276	depends on EXTCON || EXTCON=n
277	select USB_SNP_CORE
278	default ARCH_BCM_IPROC
279	help
280	  This adds Platform Device support for Synopsys Designware core
281	  AHB subsystem USB2.0 Device Controller (UDC).
282
283	  This driver works with UDCs integrated into Broadcom's Northstar2
284	  and Cygnus SoCs.
285
286	  If unsure, say N.
287#
288# Controllers available in both integrated and discrete versions
289#
290
291config USB_M66592
292	tristate "Renesas M66592 USB Peripheral Controller"
293	depends on HAS_IOMEM
294	help
295	   M66592 is a discrete USB peripheral controller chip that
296	   supports both full and high speed USB 2.0 data transfers.
297	   It has seven configurable endpoints, and endpoint zero.
298
299	   Say "y" to link the driver statically, or "m" to build a
300	   dynamically linked module called "m66592_udc" and force all
301	   gadget drivers to also be dynamically linked.
302
303source "drivers/usb/gadget/udc/bdc/Kconfig"
304
305#
306# Controllers available only in discrete form (and all PCI controllers)
307#
308
309config USB_AMD5536UDC
310	tristate "AMD5536 UDC"
311	depends on USB_PCI
312	select USB_SNP_CORE
313	help
314	   The AMD5536 UDC is part of the AMD Geode CS5536, an x86 southbridge.
315	   It is a USB Highspeed DMA capable USB device controller. Beside ep0
316	   it provides 4 IN and 4 OUT endpoints (bulk or interrupt type).
317	   The UDC port supports OTG operation, and may be used as a host port
318	   if it's not being used to implement peripheral or OTG roles.
319
320	   This UDC is based on Synopsys USB device controller IP and selects
321	   CONFIG_USB_SNP_CORE option to build the core driver.
322
323	   Say "y" to link the driver statically, or "m" to build a
324	   dynamically linked module called "amd5536udc" and force all
325	   gadget drivers to also be dynamically linked.
326
327config USB_FSL_QE
328	tristate "Freescale QE/CPM USB Device Controller"
329	depends on FSL_SOC && (QUICC_ENGINE || CPM)
330	help
331	   Some of Freescale PowerPC processors have a Full Speed
332	   QE/CPM2 USB controller, which support device mode with 4
333	   programmable endpoints. This driver supports the
334	   controller in the MPC8360 and MPC8272, and should work with
335	   controllers having QE or CPM2, given minor tweaks.
336
337	   Set CONFIG_USB_GADGET to "m" to build this driver as a
338	   dynamically linked module called "fsl_qe_udc".
339
340config USB_NET2272
341	depends on HAS_IOMEM
342	tristate "PLX NET2272"
343	help
344	  PLX NET2272 is a USB peripheral controller which supports
345	  both full and high speed USB 2.0 data transfers.
346
347	  It has three configurable endpoints, as well as endpoint zero
348	  (for control transfer).
349	  Say "y" to link the driver statically, or "m" to build a
350	  dynamically linked module called "net2272" and force all
351	  gadget drivers to also be dynamically linked.
352
353config USB_NET2272_DMA
354	bool "Support external DMA controller"
355	depends on USB_NET2272 && HAS_DMA
356	help
357	  The NET2272 part can optionally support an external DMA
358	  controller, but your board has to have support in the
359	  driver itself.
360
361	  If unsure, say "N" here.  The driver works fine in PIO mode.
362
363config USB_NET2280
364	tristate "NetChip NET228x / PLX USB3x8x"
365	depends on USB_PCI
366	help
367	   NetChip 2280 / 2282 is a PCI based USB peripheral controller which
368	   supports both full and high speed USB 2.0 data transfers.
369
370	   It has six configurable endpoints, as well as endpoint zero
371	   (for control transfers) and several endpoints with dedicated
372	   functions.
373
374	   PLX 2380 is a PCIe version of the PLX 2380.
375
376	   PLX 3380 / 3382 is a PCIe based USB peripheral controller which
377	   supports full, high speed USB 2.0 and super speed USB 3.0
378	   data transfers.
379
380	   It has eight configurable endpoints, as well as endpoint zero
381	   (for control transfers) and several endpoints with dedicated
382	   functions.
383
384	   Say "y" to link the driver statically, or "m" to build a
385	   dynamically linked module called "net2280" and force all
386	   gadget drivers to also be dynamically linked.
387
388config USB_GOKU
389	tristate "Toshiba TC86C001 'Goku-S'"
390	depends on USB_PCI
391	help
392	   The Toshiba TC86C001 is a PCI device which includes controllers
393	   for full speed USB devices, IDE, I2C, SIO, plus a USB host (OHCI).
394
395	   The device controller has three configurable (bulk or interrupt)
396	   endpoints, plus endpoint zero (for control transfers).
397
398	   Say "y" to link the driver statically, or "m" to build a
399	   dynamically linked module called "goku_udc" and to force all
400	   gadget drivers to also be dynamically linked.
401
402config USB_EG20T
403	tristate "Intel QUARK X1000/EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7831) UDC"
404	depends on USB_PCI
405	help
406	  This is a USB device driver for EG20T PCH.
407	  EG20T PCH is the platform controller hub that is used in Intel's
408	  general embedded platform. EG20T PCH has USB device interface.
409	  Using this interface, it is able to access system devices connected
410	  to USB device.
411	  This driver enables USB device function.
412	  USB device is a USB peripheral controller which
413	  supports both full and high speed USB 2.0 data transfers.
414	  This driver supports both control transfer and bulk transfer modes.
415	  This driver dose not support interrupt transfer or isochronous
416	  transfer modes.
417
418	  This driver also can be used for LAPIS Semiconductor's ML7213 which is
419	  for IVI(In-Vehicle Infotainment) use.
420	  ML7831 is for general purpose use.
421	  ML7213/ML7831 is companion chip for Intel Atom E6xx series.
422	  ML7213/ML7831 is completely compatible for Intel EG20T PCH.
423
424	  This driver can be used with Intel's Quark X1000 SOC platform
425
426config USB_GADGET_XILINX
427	tristate "Xilinx USB Driver"
428	depends on HAS_DMA
429	depends on OF || COMPILE_TEST
430	help
431	  USB peripheral controller driver for Xilinx USB2 device.
432	  Xilinx USB2 device is a soft IP which supports both full
433	  and high speed USB 2.0 data transfers. It has seven configurable
434	  endpoints(bulk or interrupt or isochronous), as well as
435	  endpoint zero(for control transfers).
436
437	  Say "y" to link the driver statically, or "m" to build a
438	  dynamically linked module called "udc-xilinx" and force all
439	  gadget drivers to also be dynamically linked.
440
441#
442# LAST -- dummy/emulated controller
443#
444
445config USB_DUMMY_HCD
446	tristate "Dummy HCD (DEVELOPMENT)"
447	depends on USB=y || (USB=m && USB_GADGET=m)
448	help
449	  This host controller driver emulates USB, looping all data transfer
450	  requests back to a USB "gadget driver" in the same host.  The host
451	  side is the master; the gadget side is the slave.  Gadget drivers
452	  can be high, full, or low speed; and they have access to endpoints
453	  like those from NET2280, PXA2xx, or SA1100 hardware.
454
455	  This may help in some stages of creating a driver to embed in a
456	  Linux device, since it lets you debug several parts of the gadget
457	  driver without its hardware or drivers being involved.
458
459	  Since such a gadget side driver needs to interoperate with a host
460	  side Linux-USB device driver, this may help to debug both sides
461	  of a USB protocol stack.
462
463	  Say "y" to link the driver statically, or "m" to build a
464	  dynamically linked module called "dummy_hcd" and force all
465	  gadget drivers to also be dynamically linked.
466
467# NOTE:  Please keep dummy_hcd LAST so that "real hardware" appears
468# first and will be selected by default.
469
470endmenu
471