Kconfig 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # USB device configuration
  4. #
  5. config USB_OHCI_BIG_ENDIAN_DESC
  6. bool
  7. config USB_OHCI_BIG_ENDIAN_MMIO
  8. bool
  9. config USB_OHCI_LITTLE_ENDIAN
  10. bool
  11. default n if PPC_MPC52xx
  12. default y
  13. config USB_EHCI_BIG_ENDIAN_MMIO
  14. bool
  15. config USB_EHCI_BIG_ENDIAN_DESC
  16. bool
  17. config USB_UHCI_BIG_ENDIAN_MMIO
  18. bool
  19. config USB_UHCI_BIG_ENDIAN_DESC
  20. bool
  21. menuconfig USB_SUPPORT
  22. bool "USB support"
  23. depends on HAS_IOMEM
  24. default y
  25. help
  26. This option adds core support for Universal Serial Bus (USB).
  27. You will also need drivers from the following menu to make use of it.
  28. if USB_SUPPORT
  29. source "drivers/usb/common/Kconfig"
  30. config USB_ARCH_HAS_HCD
  31. def_bool y
  32. config USB
  33. tristate "Support for Host-side USB"
  34. depends on USB_ARCH_HAS_HCD
  35. select GENERIC_ALLOCATOR
  36. select USB_COMMON
  37. select NLS # for UTF-8 strings
  38. help
  39. Universal Serial Bus (USB) is a specification for a serial bus
  40. subsystem which offers higher speeds and more features than the
  41. traditional PC serial port. The bus supplies power to peripherals
  42. and allows for hot swapping. Up to 127 USB peripherals can be
  43. connected to a single USB host in a tree structure.
  44. The USB host is the root of the tree, the peripherals are the
  45. leaves and the inner nodes are special USB devices called hubs.
  46. Most PCs now have USB host ports, used to connect peripherals
  47. such as scanners, keyboards, mice, modems, cameras, disks,
  48. flash memory, network links, and printers to the PC.
  49. Say Y here if your computer has a host-side USB port and you want
  50. to use USB devices. You then need to say Y to at least one of the
  51. Host Controller Driver (HCD) options below. Choose a USB 1.1
  52. controller, such as "UHCI HCD support" or "OHCI HCD support",
  53. and "EHCI HCD (USB 2.0) support" except for older systems that
  54. do not have USB 2.0 support. It doesn't normally hurt to select
  55. them all if you are not certain.
  56. If your system has a device-side USB port, used in the peripheral
  57. side of the USB protocol, see the "USB Gadget" framework instead.
  58. After choosing your HCD, then select drivers for the USB peripherals
  59. you'll be using. You may want to check out the information provided
  60. in <file:Documentation/usb/> and especially the links given in
  61. <file:Documentation/usb/usb-help.rst>.
  62. To compile this driver as a module, choose M here: the
  63. module will be called usbcore.
  64. config USB_PCI
  65. bool "PCI based USB host interface"
  66. depends on PCI
  67. default y
  68. help
  69. Many embedded system SOCs (e.g. freescale T2080) have both
  70. PCI and USB modules with the USB module directly controlled by
  71. registers and having no relationship to the PCI module.
  72. If you have such a device you may say N here and PCI related code
  73. will not be built in the USB driver.
  74. config USB_PCI_AMD
  75. bool "AMD PCI USB host support"
  76. depends on USB_PCI && HAS_IOPORT
  77. default X86 || MACH_LOONGSON64 || PPC_PASEMI
  78. help
  79. Enable workarounds for USB implementation quirks in SB600/SB700/SB800
  80. and later south bridge implementations. These are common on x86 PCs
  81. with AMD CPUs but rarely used elsewhere, with the exception of a few
  82. powerpc and mips desktop machines.
  83. if USB
  84. source "drivers/usb/core/Kconfig"
  85. source "drivers/usb/mon/Kconfig"
  86. source "drivers/usb/host/Kconfig"
  87. source "drivers/usb/renesas_usbhs/Kconfig"
  88. source "drivers/usb/class/Kconfig"
  89. source "drivers/usb/storage/Kconfig"
  90. source "drivers/usb/image/Kconfig"
  91. source "drivers/usb/usbip/Kconfig"
  92. endif
  93. comment "USB dual-mode controller drivers"
  94. source "drivers/usb/cdns3/Kconfig"
  95. source "drivers/usb/fotg210/Kconfig"
  96. source "drivers/usb/mtu3/Kconfig"
  97. source "drivers/usb/musb/Kconfig"
  98. source "drivers/usb/dwc3/Kconfig"
  99. source "drivers/usb/dwc2/Kconfig"
  100. source "drivers/usb/chipidea/Kconfig"
  101. source "drivers/usb/isp1760/Kconfig"
  102. comment "USB port drivers"
  103. if USB
  104. source "drivers/usb/serial/Kconfig"
  105. source "drivers/usb/misc/Kconfig"
  106. source "drivers/usb/atm/Kconfig"
  107. endif # USB
  108. source "drivers/usb/phy/Kconfig"
  109. source "drivers/usb/gadget/Kconfig"
  110. source "drivers/usb/typec/Kconfig"
  111. source "drivers/usb/roles/Kconfig"
  112. endif # USB_SUPPORT