Kconfig 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. config USB_DWC2
  2. tristate "DesignWare USB2 DRD Core Support"
  3. depends on HAS_DMA
  4. depends on USB || USB_GADGET
  5. depends on HAS_IOMEM
  6. help
  7. Say Y here if your system has a Dual Role Hi-Speed USB
  8. controller based on the DesignWare HSOTG IP Core.
  9. For host mode, if you choose to build the driver as dynamically
  10. linked modules, the core module will be called dwc2.ko, the PCI
  11. bus interface module (if you have a PCI bus system) will be
  12. called dwc2_pci.ko, and the platform interface module (for
  13. controllers directly connected to the CPU) will be called
  14. dwc2_platform.ko. For all modes(host, gadget and dual-role), there
  15. will be an additional module named dwc2.ko.
  16. if USB_DWC2
  17. choice
  18. bool "DWC2 Mode Selection"
  19. default USB_DWC2_DUAL_ROLE if (USB && USB_GADGET)
  20. default USB_DWC2_HOST if (USB && !USB_GADGET)
  21. default USB_DWC2_PERIPHERAL if (!USB && USB_GADGET)
  22. config USB_DWC2_HOST
  23. bool "Host only mode"
  24. depends on USB=y || (USB_DWC2=m && USB)
  25. help
  26. The Designware USB2.0 high-speed host controller
  27. integrated into many SoCs. Select this option if you want the
  28. driver to operate in Host-only mode.
  29. comment "Gadget/Dual-role mode requires USB Gadget support to be enabled"
  30. config USB_DWC2_PERIPHERAL
  31. bool "Gadget only mode"
  32. depends on USB_GADGET=y || USB_GADGET=USB_DWC2
  33. help
  34. The Designware USB2.0 high-speed gadget controller
  35. integrated into many SoCs. Select this option if you want the
  36. driver to operate in Peripheral-only mode. This option requires
  37. USB_GADGET to be enabled.
  38. config USB_DWC2_DUAL_ROLE
  39. bool "Dual Role mode"
  40. depends on (USB=y && USB_GADGET=y) || (USB_DWC2=m && USB && USB_GADGET)
  41. help
  42. Select this option if you want the driver to work in a dual-role
  43. mode. In this mode both host and gadget features are enabled, and
  44. the role will be determined by the cable that gets plugged-in. This
  45. option requires USB_GADGET to be enabled.
  46. endchoice
  47. config USB_DWC2_PCI
  48. tristate "DWC2 PCI"
  49. depends on PCI
  50. default n
  51. select NOP_USB_XCEIV
  52. help
  53. The Designware USB2.0 PCI interface module for controllers
  54. connected to a PCI bus.
  55. config USB_DWC2_DEBUG
  56. bool "Enable Debugging Messages"
  57. help
  58. Say Y here to enable debugging messages in the DWC2 Driver.
  59. config USB_DWC2_VERBOSE
  60. bool "Enable Verbose Debugging Messages"
  61. depends on USB_DWC2_DEBUG
  62. help
  63. Say Y here to enable verbose debugging messages in the DWC2 Driver.
  64. WARNING: Enabling this will quickly fill your message log.
  65. If in doubt, say N.
  66. config USB_DWC2_TRACK_MISSED_SOFS
  67. bool "Enable Missed SOF Tracking"
  68. help
  69. Say Y here to enable logging of missed SOF events to the dmesg log.
  70. WARNING: This feature is still experimental.
  71. If in doubt, say N.
  72. config USB_DWC2_DEBUG_PERIODIC
  73. bool "Enable Debugging Messages For Periodic Transfers"
  74. depends on USB_DWC2_DEBUG || USB_DWC2_VERBOSE
  75. default y
  76. help
  77. Say N here to disable (verbose) debugging messages to be
  78. logged for periodic transfers. This allows better debugging of
  79. non-periodic transfers, but of course the debug logs will be
  80. incomplete. Note that this also disables some debug messages
  81. for which the transfer type cannot be deduced.
  82. endif