xref: /linux/drivers/usb/core/Kconfig (revision 0f247626cbbfa2010d2b86fdee652605e084e248)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# USB Core configuration
31da177e4SLinus Torvalds#
4f2a383e4SGreg Kroah-Hartmanconfig USB_ANNOUNCE_NEW_DEVICES
5f2a383e4SGreg Kroah-Hartman	bool "USB announce new devices"
6f2a383e4SGreg Kroah-Hartman	help
7f2a383e4SGreg Kroah-Hartman	  Say Y here if you want the USB core to always announce the
8f2a383e4SGreg Kroah-Hartman	  idVendor, idProduct, Manufacturer, Product, and SerialNumber
9f2a383e4SGreg Kroah-Hartman	  strings for every new USB device to the syslog.  This option is
10f2a383e4SGreg Kroah-Hartman	  usually used by distro vendors to help with debugging and to
11f2a383e4SGreg Kroah-Hartman	  let users know what specific device was added to the machine
12f2a383e4SGreg Kroah-Hartman	  in what location.
13f2a383e4SGreg Kroah-Hartman
14f2a383e4SGreg Kroah-Hartman	  If you do not want this kind of information sent to the system
15f2a383e4SGreg Kroah-Hartman	  log, or have any doubts about this, say N here.
16f2a383e4SGreg Kroah-Hartman
171da177e4SLinus Torvaldscomment "Miscellaneous USB options"
181da177e4SLinus Torvalds
194f482038SJulius Wernerconfig USB_DEFAULT_PERSIST
204f482038SJulius Werner	bool "Enable USB persist by default"
214f482038SJulius Werner	default y
224f482038SJulius Werner	help
238c88126bSMasanari Iida	  Say N here if you don't want USB power session persistence
244f482038SJulius Werner	  enabled by default.  If you say N it will make suspended USB
254f482038SJulius Werner	  devices that lose power get reenumerated as if they had been
264f482038SJulius Werner	  unplugged, causing any mounted filesystems to be lost.  The
274f482038SJulius Werner	  persist feature can still be enabled for individual devices
284f482038SJulius Werner	  through the power/persist sysfs node. See
294f482038SJulius Werner	  Documentation/usb/persist.txt for more info.
304f482038SJulius Werner
314f482038SJulius Werner	  If you have any questions about this, say Y here, only say N
324f482038SJulius Werner	  if you know exactly what you are doing.
334f482038SJulius Werner
341da177e4SLinus Torvaldsconfig USB_DYNAMIC_MINORS
35b6719996SRobert P. J. Day	bool "Dynamic USB minor allocation"
361da177e4SLinus Torvalds	help
371da177e4SLinus Torvalds	  If you say Y here, the USB subsystem will use dynamic minor
381da177e4SLinus Torvalds	  allocation for any device that uses the USB major number.
391da177e4SLinus Torvalds	  This means that you can have more than 16 of a single type
401da177e4SLinus Torvalds	  of device (like USB printers).
411da177e4SLinus Torvalds
421da177e4SLinus Torvalds	  If you are unsure about this, say N here.
431da177e4SLinus Torvalds
441da177e4SLinus Torvaldsconfig USB_OTG
45f4ce9084SPavankumar Kondeti	bool "OTG support"
461b3e3aa6SRafael J. Wysocki	depends on PM
471da177e4SLinus Torvalds	default n
48f4ce9084SPavankumar Kondeti	help
49f4ce9084SPavankumar Kondeti	  The most notable feature of USB OTG is support for a
50f4ce9084SPavankumar Kondeti	  "Dual-Role" device, which can act as either a device
51f4ce9084SPavankumar Kondeti	  or a host. The initial role is decided by the type of
52f4ce9084SPavankumar Kondeti	  plug inserted and can be changed later when two dual
53f4ce9084SPavankumar Kondeti	  role devices talk to each other.
541da177e4SLinus Torvalds
55f4ce9084SPavankumar Kondeti	  Select this only if your board has Mini-AB/Micro-AB
56f4ce9084SPavankumar Kondeti	  connector.
571da177e4SLinus Torvalds
581da177e4SLinus Torvaldsconfig USB_OTG_WHITELIST
599bd0181cSPeter Chen	bool "Rely on OTG and EH Targeted Peripherals List"
609bd0181cSPeter Chen	depends on USB
611da177e4SLinus Torvalds	help
621da177e4SLinus Torvalds	  If you say Y here, the "otg_whitelist.h" file will be used as a
631da177e4SLinus Torvalds	  product whitelist, so USB peripherals not listed there will be
641da177e4SLinus Torvalds	  rejected during enumeration.  This behavior is required by the
659bd0181cSPeter Chen	  USB OTG and EH specification for all devices not on your product's
6622552b28SRobin Getz	  "Targeted Peripherals List".  "Embedded Hosts" are likewise
6722552b28SRobin Getz	  allowed to support only a limited number of peripherals.
681da177e4SLinus Torvalds
6989ccbdc9SDavid Brownellconfig USB_OTG_BLACKLIST_HUB
7089ccbdc9SDavid Brownell	bool "Disable external hubs"
716a108a14SDavid Rientjes	depends on USB_OTG || EXPERT
7289ccbdc9SDavid Brownell	help
7389ccbdc9SDavid Brownell	  If you say Y here, then Linux will refuse to enumerate
7489ccbdc9SDavid Brownell	  external hubs.  OTG hosts are allowed to reduce hardware
7522552b28SRobin Getz	  and software costs by not supporting external hubs.  So
76bc45df95SPeter Korsgaard	  are "Embedded Hosts" that don't offer OTG support.
771da177e4SLinus Torvalds
781dfa91aaSPeter Chenconfig USB_OTG_FSM
791dfa91aaSPeter Chen	tristate "USB 2.0 OTG FSM implementation"
80c4f16130SPeter Chen	depends on USB && USB_OTG
811dfa91aaSPeter Chen	select USB_PHY
821dfa91aaSPeter Chen	help
831dfa91aaSPeter Chen	  Implements OTG Finite State Machine as specified in On-The-Go
841dfa91aaSPeter Chen	  and Embedded Host Supplement to the USB Revision 2.0 Specification.
85*0f247626SRafał Miłecki
86*0f247626SRafał Miłeckiconfig USB_LEDS_TRIGGER_USBPORT
87*0f247626SRafał Miłecki	tristate "USB port LED trigger"
88*0f247626SRafał Miłecki	depends on USB && LEDS_TRIGGERS
89*0f247626SRafał Miłecki	help
90*0f247626SRafał Miłecki	  This driver allows LEDs to be controlled by USB events. Enabling this
91*0f247626SRafał Miłecki	  trigger allows specifying list of USB ports that should turn on LED
92*0f247626SRafał Miłecki	  when some USB device gets connected.
93