Kconfig 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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, OHCI) can be attached and used. The 'usb' command works
  36. as normal.
  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. config SPL_DM_USB
  42. bool "Enable driver model for USB in SPL"
  43. depends on SPL_DM && DM_USB
  44. default y
  45. config DM_USB_GADGET
  46. bool "Enable driver model for USB Gadget"
  47. depends on DM_USB
  48. help
  49. Enable driver model for USB Gadget (Peripheral
  50. mode)
  51. config SPL_DM_USB_GADGET
  52. bool "Enable driver model for USB Gadget in SPL"
  53. depends on SPL_DM_USB
  54. help
  55. Enable driver model for USB Gadget in SPL
  56. (Peripheral mode)
  57. source "drivers/usb/host/Kconfig"
  58. source "drivers/usb/cdns3/Kconfig"
  59. source "drivers/usb/dwc3/Kconfig"
  60. source "drivers/usb/mtu3/Kconfig"
  61. source "drivers/usb/musb/Kconfig"
  62. source "drivers/usb/musb-new/Kconfig"
  63. source "drivers/usb/emul/Kconfig"
  64. source "drivers/usb/phy/Kconfig"
  65. source "drivers/usb/ulpi/Kconfig"
  66. comment "USB peripherals"
  67. config USB_STORAGE
  68. bool "USB Mass Storage support"
  69. depends on !(BLK && !DM_USB)
  70. ---help---
  71. Say Y here if you want to connect USB mass storage devices to your
  72. board's USB port.
  73. config USB_KEYBOARD
  74. bool "USB Keyboard support"
  75. select SYS_STDIO_DEREGISTER
  76. ---help---
  77. Say Y here if you want to use a USB keyboard for U-Boot command line
  78. input.
  79. if USB_KEYBOARD
  80. config USB_KEYBOARD_FN_KEYS
  81. bool "USB keyboard function key support"
  82. help
  83. Say Y here if you want support for keys F1 - F12, INS, HOME, DELETE,
  84. END, PAGE UP, and PAGE DOWN.
  85. choice
  86. prompt "USB keyboard polling"
  87. default SYS_USB_EVENT_POLL_VIA_INT_QUEUE if ARCH_SUNXI
  88. default SYS_USB_EVENT_POLL
  89. ---help---
  90. Enable a polling mechanism for USB keyboard.
  91. config SYS_USB_EVENT_POLL
  92. bool "Interrupt polling"
  93. config SYS_USB_EVENT_POLL_VIA_INT_QUEUE
  94. bool "Poll via interrupt queue"
  95. config SYS_USB_EVENT_POLL_VIA_CONTROL_EP
  96. bool "Poll via control EP"
  97. endchoice
  98. endif
  99. source "drivers/usb/gadget/Kconfig"
  100. source "drivers/usb/eth/Kconfig"
  101. endif