xref: /openbmc/linux/drivers/usb/Kconfig (revision 7b720009)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# USB device configuration
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
504d06ad0SJan Engelhardtmenuconfig USB_SUPPORT
604d06ad0SJan Engelhardt	bool "USB support"
7e25df120SMartin Schwidefsky	depends on HAS_IOMEM
877320894SLinus Torvalds	default y
906bfb7ebSJan Engelhardt	---help---
1006bfb7ebSJan Engelhardt	  This option adds core support for Universal Serial Bus (USB).
1106bfb7ebSJan Engelhardt	  You will also need drivers from the following menu to make use of it.
1204d06ad0SJan Engelhardt
1304d06ad0SJan Engelhardtif USB_SUPPORT
141da177e4SLinus Torvalds
15e538dfdaSMichal Nazarewiczconfig USB_COMMON
16e538dfdaSMichal Nazarewicz	tristate
17e538dfdaSMichal Nazarewicz	default y
18e538dfdaSMichal Nazarewicz	depends on USB || USB_GADGET
19e538dfdaSMichal Nazarewicz
201da177e4SLinus Torvalds# Host-side USB depends on having a host controller
211da177e4SLinus Torvalds# NOTE:  dummy_hcd is always an option, but it's ignored here ...
221da177e4SLinus Torvalds# NOTE:  SL-811 option should be board-specific ...
231da177e4SLinus Torvaldsconfig USB_ARCH_HAS_HCD
241da177e4SLinus Torvalds	boolean
251da177e4SLinus Torvalds	default y if USB_ARCH_HAS_OHCI
2676fa9a24SJordan Crouse	default y if USB_ARCH_HAS_EHCI
27*7b720009SFelipe Balbi	default y if USB_ARCH_HAS_XHCI
280ab7a252SAl Viro	default y if PCMCIA && !M32R			# sl811_cs
291da177e4SLinus Torvalds	default y if ARM				# SL-811
30ca0e9485SMichael Hennerich	default y if BLACKFIN				# SL-811
31a3b53514SPaul Mundt	default y if SUPERH				# r8a66597-hcd
321da177e4SLinus Torvalds	default PCI
331da177e4SLinus Torvalds
341da177e4SLinus Torvalds# many non-PCI SOC chips embed OHCI
351da177e4SLinus Torvaldsconfig USB_ARCH_HAS_OHCI
361da177e4SLinus Torvalds	boolean
371da177e4SLinus Torvalds	# ARM:
381da177e4SLinus Torvalds	default y if SA1111
391da177e4SLinus Torvalds	default y if ARCH_OMAP
403eb0c5f4SBen Dooks	default y if ARCH_S3C2410
411da177e4SLinus Torvalds	default y if PXA27x
42e77ec189Seric miao	default y if PXA3xx
43a5b7474aSLennert Buytenhek	default y if ARCH_EP93XX
4458a0cd78SAndrew Victor	default y if ARCH_AT91
4578c73414SDmitry Baryshkov	default y if ARCH_PNX4008 && I2C
4678c73414SDmitry Baryshkov	default y if MFD_TC6393XB
47586dfc8cSWan ZongShun	default y if ARCH_W90X900
48efe7daf2SSergei Shtylyov	default y if ARCH_DAVINCI_DA8XX
49760efe69SMac Lin	default y if ARCH_CNS3XXX
50c8c38de9SDeepak Sikri	default y if PLAT_SPEAR
511da177e4SLinus Torvalds	# PPC:
521da177e4SLinus Torvalds	default y if STB03xxx
531da177e4SLinus Torvalds	default y if PPC_MPC52xx
541da177e4SLinus Torvalds	# MIPS:
5542a4f17dSManuel Lauss	default y if MIPS_ALCHEMY
562249071bSLars-Peter Clausen	default y if MACH_JZ4740
571da177e4SLinus Torvalds	# more:
581da177e4SLinus Torvalds	default PCI
591da177e4SLinus Torvalds
6076fa9a24SJordan Crouse# some non-PCI hcds implement EHCI
6176fa9a24SJordan Crouseconfig USB_ARCH_HAS_EHCI
6276fa9a24SJordan Crouse	boolean
6376fa9a24SJordan Crouse	default y if PPC_83xx
64230f7edeSAnatolij Gustschin	default y if PPC_MPC512x
6576fa9a24SJordan Crouse	default y if SOC_AU1200
6691bc4d31SVladimir Barinov	default y if ARCH_IXP4XX
67586dfc8cSWan ZongShun	default y if ARCH_W90X900
68501c9c08SNicolas Ferre	default y if ARCH_AT91SAM9G45
697e8d5cd9SDaniel Mack	default y if ARCH_MXC
70a8eb7ca0STony Lindgren	default y if ARCH_OMAP3
71760efe69SMac Lin	default y if ARCH_CNS3XXX
72ad78acafSAlexey Charkov	default y if ARCH_VT8500
73c8c38de9SDeepak Sikri	default y if PLAT_SPEAR
741bcc5aa8SJoonyoung Shim	default y if PLAT_S5P
75b0848aeaSPavankumar Kondeti	default y if ARCH_MSM
760291303dSMichal Simek	default y if MICROBLAZE
779be03929SJan Andersson	default y if SPARC_LEON
783abd7f68STanmay Upadhyay	default y if ARCH_MMP
7976fa9a24SJordan Crouse	default PCI
8076fa9a24SJordan Crouse
81*7b720009SFelipe Balbi# some non-PCI HCDs implement xHCI
82*7b720009SFelipe Balbiconfig USB_ARCH_HAS_XHCI
83*7b720009SFelipe Balbi	boolean
84*7b720009SFelipe Balbi	default PCI
85*7b720009SFelipe Balbi
861da177e4SLinus Torvalds# ARM SA1111 chips have a non-PCI based "OHCI-compatible" USB host interface.
871da177e4SLinus Torvaldsconfig USB
881da177e4SLinus Torvalds	tristate "Support for Host-side USB"
891da177e4SLinus Torvalds	depends on USB_ARCH_HAS_HCD
90a853a3d4SClemens Ladisch	select NLS  # for UTF-8 strings
911da177e4SLinus Torvalds	---help---
921da177e4SLinus Torvalds	  Universal Serial Bus (USB) is a specification for a serial bus
931da177e4SLinus Torvalds	  subsystem which offers higher speeds and more features than the
941da177e4SLinus Torvalds	  traditional PC serial port.  The bus supplies power to peripherals
951da177e4SLinus Torvalds	  and allows for hot swapping.  Up to 127 USB peripherals can be
961da177e4SLinus Torvalds	  connected to a single USB host in a tree structure.
971da177e4SLinus Torvalds
981da177e4SLinus Torvalds	  The USB host is the root of the tree, the peripherals are the
991da177e4SLinus Torvalds	  leaves and the inner nodes are special USB devices called hubs.
1001da177e4SLinus Torvalds	  Most PCs now have USB host ports, used to connect peripherals
1011da177e4SLinus Torvalds	  such as scanners, keyboards, mice, modems, cameras, disks,
1021da177e4SLinus Torvalds	  flash memory, network links, and printers to the PC.
1031da177e4SLinus Torvalds
1041da177e4SLinus Torvalds	  Say Y here if your computer has a host-side USB port and you want
1051da177e4SLinus Torvalds	  to use USB devices.  You then need to say Y to at least one of the
1061da177e4SLinus Torvalds	  Host Controller Driver (HCD) options below.  Choose a USB 1.1
1071da177e4SLinus Torvalds	  controller, such as "UHCI HCD support" or "OHCI HCD support",
1081da177e4SLinus Torvalds	  and "EHCI HCD (USB 2.0) support" except for older systems that
1091da177e4SLinus Torvalds	  do not have USB 2.0 support.  It doesn't normally hurt to select
1101da177e4SLinus Torvalds	  them all if you are not certain.
1111da177e4SLinus Torvalds
1121da177e4SLinus Torvalds	  If your system has a device-side USB port, used in the peripheral
1131da177e4SLinus Torvalds	  side of the USB protocol, see the "USB Gadget" framework instead.
1141da177e4SLinus Torvalds
1151da177e4SLinus Torvalds	  After choosing your HCD, then select drivers for the USB peripherals
1161da177e4SLinus Torvalds	  you'll be using.  You may want to check out the information provided
1171da177e4SLinus Torvalds	  in <file:Documentation/usb/> and especially the links given in
1181da177e4SLinus Torvalds	  <file:Documentation/usb/usb-help.txt>.
1191da177e4SLinus Torvalds
1201da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
1211da177e4SLinus Torvalds	  module will be called usbcore.
1221da177e4SLinus Torvalds
1231da177e4SLinus Torvaldssource "drivers/usb/core/Kconfig"
1241da177e4SLinus Torvalds
12572246da4SFelipe Balbisource "drivers/usb/dwc3/Kconfig"
12672246da4SFelipe Balbi
1273bea302dSSimon Arlottsource "drivers/usb/mon/Kconfig"
1283bea302dSSimon Arlott
129470cc415SGreg Kroah-Hartmansource "drivers/usb/wusbcore/Kconfig"
130470cc415SGreg Kroah-Hartman
1311da177e4SLinus Torvaldssource "drivers/usb/host/Kconfig"
1321da177e4SLinus Torvalds
133550a7375SFelipe Balbisource "drivers/usb/musb/Kconfig"
134550a7375SFelipe Balbi
135f1407d5cSKuninori Morimotosource "drivers/usb/renesas_usbhs/Kconfig"
136f1407d5cSKuninori Morimoto
1371da177e4SLinus Torvaldssource "drivers/usb/class/Kconfig"
1381da177e4SLinus Torvalds
1391da177e4SLinus Torvaldssource "drivers/usb/storage/Kconfig"
1401da177e4SLinus Torvalds
1411da177e4SLinus Torvaldssource "drivers/usb/image/Kconfig"
1421da177e4SLinus Torvalds
1431da177e4SLinus Torvaldscomment "USB port drivers"
1441da177e4SLinus Torvalds	depends on USB
1451da177e4SLinus Torvalds
1461da177e4SLinus Torvaldsconfig USB_USS720
1471da177e4SLinus Torvalds	tristate "USS720 parport driver"
1481da177e4SLinus Torvalds	depends on USB && PARPORT
1491da177e4SLinus Torvalds	select PARPORT_NOT_PC
1501da177e4SLinus Torvalds	---help---
1511da177e4SLinus Torvalds	  This driver is for USB parallel port adapters that use the Lucent
1521da177e4SLinus Torvalds	  Technologies USS-720 chip. These cables are plugged into your USB
1531da177e4SLinus Torvalds	  port and provide USB compatibility to peripherals designed with
1541da177e4SLinus Torvalds	  parallel port interfaces.
1551da177e4SLinus Torvalds
1561da177e4SLinus Torvalds	  The chip has two modes: automatic mode and manual mode. In automatic
1571da177e4SLinus Torvalds	  mode, it looks to the computer like a standard USB printer. Only
1581da177e4SLinus Torvalds	  printers may be connected to the USS-720 in this mode. The generic
1591da177e4SLinus Torvalds	  USB printer driver ("USB Printer support", above) may be used in
1601da177e4SLinus Torvalds	  that mode, and you can say N here if you want to use the chip only
1611da177e4SLinus Torvalds	  in this mode.
1621da177e4SLinus Torvalds
1631da177e4SLinus Torvalds	  Manual mode is not limited to printers, any parallel port
1641da177e4SLinus Torvalds	  device should work. This driver utilizes manual mode.
1651da177e4SLinus Torvalds	  Note however that some operations are three orders of magnitude
1661da177e4SLinus Torvalds	  slower than on a PCI/ISA Parallel Port, so timing critical
1671da177e4SLinus Torvalds	  applications might not work.
1681da177e4SLinus Torvalds
1691da177e4SLinus Torvalds	  Say Y here if you own an USS-720 USB->Parport cable and intend to
1701da177e4SLinus Torvalds	  connect anything other than a printer to it.
1711da177e4SLinus Torvalds
1721da177e4SLinus Torvalds	  To compile this driver as a module, choose M here: the
1731da177e4SLinus Torvalds	  module will be called uss720.
1741da177e4SLinus Torvalds
1751da177e4SLinus Torvaldssource "drivers/usb/serial/Kconfig"
1761da177e4SLinus Torvalds
1771da177e4SLinus Torvaldssource "drivers/usb/misc/Kconfig"
1781da177e4SLinus Torvalds
1791da177e4SLinus Torvaldssource "drivers/usb/atm/Kconfig"
1801da177e4SLinus Torvalds
1811da177e4SLinus Torvaldssource "drivers/usb/gadget/Kconfig"
1821da177e4SLinus Torvalds
183b8da8677SDavid Brownellsource "drivers/usb/otg/Kconfig"
184b8da8677SDavid Brownell
18504d06ad0SJan Engelhardtendif # USB_SUPPORT
186