Kconfig 3.3 KB

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