Kconfig 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. menuconfig USB
  2. bool "USB support"
  3. ---help---
  4. Universal Serial Bus (USB) is a specification for a serial bus
  5. subsystem which offers higher speeds and more features than the
  6. traditional PC serial port. The bus supplies power to peripherals
  7. and allows for hot swapping. Up to 127 USB peripherals can be
  8. connected to a single USB host in a tree structure.
  9. The USB host is the root of the tree, the peripherals are the
  10. leaves and the inner nodes are special USB devices called hubs.
  11. Most PCs now have USB host ports, used to connect peripherals
  12. such as scanners, keyboards, mice, modems, cameras, disks,
  13. flash memory, network links, and printers to the PC.
  14. Say Y here if your device has an USB port, either host, peripheral or
  15. dual-role.
  16. For an USB host port, you then need to say Y to at least one of the
  17. Host Controller Driver (HCD) options below. Choose a USB 1.1
  18. controller, such as "UHCI HCD support" or "OHCI HCD support",
  19. and "EHCI HCD (USB 2.0) support" except for older systems that
  20. do not have USB 2.0 support. It doesn't normally hurt to select
  21. them all if you are not certain.
  22. If your system has a device-side USB port, used in the peripheral
  23. side of the USB protocol, see the "USB Gadget" framework instead.
  24. After choosing your HCD, then select drivers for the USB peripherals
  25. you'll be using. You may want to check out the information provided
  26. in <file:Documentation/usb/> and especially the links given in
  27. <file:Documentation/usb/usb-help.txt>.
  28. if USB
  29. config DM_USB
  30. bool "Enable driver model for USB"
  31. depends on USB && DM
  32. help
  33. Enable driver model for USB. The USB interface is then implemented
  34. by the USB uclass. Multiple USB controllers of different types
  35. (XHCI, EHCI) can be attached and used. The 'usb' command works as
  36. normal. OCHI is not supported at present.
  37. Much of the code is shared but with this option enabled the USB
  38. uclass takes care of device enumeration. USB devices can be
  39. declared with the U_BOOT_USB_DEVICE() macro and will be
  40. automatically probed when found on the bus.
  41. source "drivers/usb/host/Kconfig"
  42. source "drivers/usb/dwc3/Kconfig"
  43. source "drivers/usb/musb-new/Kconfig"
  44. source "drivers/usb/emul/Kconfig"
  45. source "drivers/usb/ulpi/Kconfig"
  46. comment "USB peripherals"
  47. config USB_STORAGE
  48. bool "USB Mass Storage support"
  49. ---help---
  50. Say Y here if you want to connect USB mass storage devices to your
  51. board's USB port.
  52. config USB_KEYBOARD
  53. bool "USB Keyboard support"
  54. ---help---
  55. Say Y here if you want to use a USB keyboard for U-Boot command line
  56. input.
  57. if USB_KEYBOARD
  58. choice
  59. prompt "USB keyboard polling"
  60. optional
  61. ---help---
  62. Enable a polling mechanism for USB keyboard.
  63. config SYS_USB_EVENT_POLL
  64. bool "Interrupt polling"
  65. config SYS_USB_EVENT_POLL_VIA_INT_QUEUE
  66. bool "Poll via interrupt queue"
  67. config SYS_USB_EVENT_POLL_VIA_CONTROL_EP
  68. bool "Poll via control EP"
  69. endchoice
  70. endif
  71. source "drivers/usb/gadget/Kconfig"
  72. endif