xref: /openbmc/u-boot/drivers/usb/Kconfig (revision 6b14fbbdc6b1a6669bc70212bfe6d1d7129e03b4)
168f7c5dbSPaul Kocialkowskimenuconfig USB
268f7c5dbSPaul Kocialkowski	bool "USB support"
36e7e9294SMasahiro Yamada	---help---
46e7e9294SMasahiro Yamada	  Universal Serial Bus (USB) is a specification for a serial bus
56e7e9294SMasahiro Yamada	  subsystem which offers higher speeds and more features than the
66e7e9294SMasahiro Yamada	  traditional PC serial port.  The bus supplies power to peripherals
76e7e9294SMasahiro Yamada	  and allows for hot swapping.  Up to 127 USB peripherals can be
86e7e9294SMasahiro Yamada	  connected to a single USB host in a tree structure.
96e7e9294SMasahiro Yamada
106e7e9294SMasahiro Yamada	  The USB host is the root of the tree, the peripherals are the
116e7e9294SMasahiro Yamada	  leaves and the inner nodes are special USB devices called hubs.
126e7e9294SMasahiro Yamada	  Most PCs now have USB host ports, used to connect peripherals
136e7e9294SMasahiro Yamada	  such as scanners, keyboards, mice, modems, cameras, disks,
146e7e9294SMasahiro Yamada	  flash memory, network links, and printers to the PC.
156e7e9294SMasahiro Yamada
1668f7c5dbSPaul Kocialkowski	  Say Y here if your device has an USB port, either host, peripheral or
1768f7c5dbSPaul Kocialkowski	  dual-role.
1868f7c5dbSPaul Kocialkowski
1968f7c5dbSPaul Kocialkowski	  For an USB host port, you then need to say Y to at least one of the
206e7e9294SMasahiro Yamada	  Host Controller Driver (HCD) options below.  Choose a USB 1.1
216e7e9294SMasahiro Yamada	  controller, such as "UHCI HCD support" or "OHCI HCD support",
226e7e9294SMasahiro Yamada	  and "EHCI HCD (USB 2.0) support" except for older systems that
236e7e9294SMasahiro Yamada	  do not have USB 2.0 support.  It doesn't normally hurt to select
246e7e9294SMasahiro Yamada	  them all if you are not certain.
256e7e9294SMasahiro Yamada
266e7e9294SMasahiro Yamada	  If your system has a device-side USB port, used in the peripheral
276e7e9294SMasahiro Yamada	  side of the USB protocol, see the "USB Gadget" framework instead.
286e7e9294SMasahiro Yamada
296e7e9294SMasahiro Yamada	  After choosing your HCD, then select drivers for the USB peripherals
306e7e9294SMasahiro Yamada	  you'll be using.  You may want to check out the information provided
316e7e9294SMasahiro Yamada	  in <file:Documentation/usb/> and especially the links given in
326e7e9294SMasahiro Yamada	  <file:Documentation/usb/usb-help.txt>.
336e7e9294SMasahiro Yamada
346e7e9294SMasahiro Yamadaif USB
356e7e9294SMasahiro Yamada
36de31213fSSimon Glassconfig DM_USB
37de31213fSSimon Glass	bool "Enable driver model for USB"
38de31213fSSimon Glass	depends on USB && DM
39de31213fSSimon Glass	help
40de31213fSSimon Glass	  Enable driver model for USB. The USB interface is then implemented
41de31213fSSimon Glass	  by the USB uclass. Multiple USB controllers of different types
42de31213fSSimon Glass	  (XHCI, EHCI) can be attached and used. The 'usb' command works as
43de31213fSSimon Glass	  normal. OCHI is not supported at present.
44de31213fSSimon Glass
45de31213fSSimon Glass	  Much of the code is shared but with this option enabled the USB
46de31213fSSimon Glass	  uclass takes care of device enumeration. USB devices can be
47abb59cffSSimon Glass	  declared with the U_BOOT_USB_DEVICE() macro and will be
48abb59cffSSimon Glass	  automatically probed when found on the bus.
49de31213fSSimon Glass
506e7e9294SMasahiro Yamadasource "drivers/usb/host/Kconfig"
516e7e9294SMasahiro Yamada
525d6c2f4bSPaul Kocialkowskisource "drivers/usb/musb-new/Kconfig"
535d6c2f4bSPaul Kocialkowski
54019808f9SSimon Glasssource "drivers/usb/emul/Kconfig"
55019808f9SSimon Glass
56*6b14fbbdSMateusz Kulikowskisource "drivers/usb/ulpi/Kconfig"
57*6b14fbbdSMateusz Kulikowski
5868f7c5dbSPaul Kocialkowskicomment "USB peripherals"
5968f7c5dbSPaul Kocialkowski
606e7e9294SMasahiro Yamadaconfig USB_STORAGE
616e7e9294SMasahiro Yamada	bool "USB Mass Storage support"
626e7e9294SMasahiro Yamada	---help---
636e7e9294SMasahiro Yamada	  Say Y here if you want to connect USB mass storage devices to your
646e7e9294SMasahiro Yamada	  board's USB port.
656e7e9294SMasahiro Yamada
66b2f2eea0SNikita Kiryanovconfig USB_KEYBOARD
67b2f2eea0SNikita Kiryanov	bool "USB Keyboard support"
68b2f2eea0SNikita Kiryanov	---help---
69b2f2eea0SNikita Kiryanov	  Say Y here if you want to use a USB keyboard for U-Boot command line
70b2f2eea0SNikita Kiryanov	  input.
71b2f2eea0SNikita Kiryanov
72b2f2eea0SNikita Kiryanovif USB_KEYBOARD
73b2f2eea0SNikita Kiryanov
74b2f2eea0SNikita Kiryanovchoice
75b2f2eea0SNikita Kiryanov	prompt "USB keyboard polling"
76b2f2eea0SNikita Kiryanov	optional
77b2f2eea0SNikita Kiryanov	---help---
78b2f2eea0SNikita Kiryanov	  Enable a polling mechanism for USB keyboard.
79b2f2eea0SNikita Kiryanov
80b2f2eea0SNikita Kiryanov	config SYS_USB_EVENT_POLL
81b2f2eea0SNikita Kiryanov		bool "Interrupt polling"
82b2f2eea0SNikita Kiryanov
83b2f2eea0SNikita Kiryanov	config SYS_USB_EVENT_POLL_VIA_INT_QUEUE
84b2f2eea0SNikita Kiryanov		bool "Poll via interrupt queue"
85b2f2eea0SNikita Kiryanov
86b2f2eea0SNikita Kiryanov	config SYS_USB_EVENT_POLL_VIA_CONTROL_EP
87b2f2eea0SNikita Kiryanov		bool "Poll via control EP"
88b2f2eea0SNikita Kiryanov
89b2f2eea0SNikita Kiryanovendchoice
90b2f2eea0SNikita Kiryanov
916e7e9294SMasahiro Yamadaendif
92b2f2eea0SNikita Kiryanov
93f9d0fd8aSSam Protsenkosource "drivers/usb/gadget/Kconfig"
94f9d0fd8aSSam Protsenko
95ed36323fSMasahiro Yamadaendif
96