Kconfig 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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
  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=USB_DWC2) && (USB_GADGET=y || USB_GADGET=USB_DWC2)
  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 USB_DWC2_HOST && PCI
  54. default USB_DWC2_HOST
  55. help
  56. The Designware USB2.0 PCI interface module for controllers
  57. connected to a PCI bus. This is only used for host mode.
  58. config USB_DWC2_DEBUG
  59. bool "Enable Debugging Messages"
  60. help
  61. Say Y here to enable debugging messages in the DWC2 Driver.
  62. config USB_DWC2_VERBOSE
  63. bool "Enable Verbose Debugging Messages"
  64. depends on USB_DWC2_DEBUG
  65. help
  66. Say Y here to enable verbose debugging messages in the DWC2 Driver.
  67. WARNING: Enabling this will quickly fill your message log.
  68. If in doubt, say N.
  69. config USB_DWC2_TRACK_MISSED_SOFS
  70. bool "Enable Missed SOF Tracking"
  71. help
  72. Say Y here to enable logging of missed SOF events to the dmesg log.
  73. WARNING: This feature is still experimental.
  74. If in doubt, say N.
  75. config USB_DWC2_DEBUG_PERIODIC
  76. bool "Enable Debugging Messages For Periodic Transfers"
  77. depends on USB_DWC2_DEBUG || USB_DWC2_VERBOSE
  78. default y
  79. help
  80. Say N here to disable (verbose) debugging messages to be
  81. logged for periodic transfers. This allows better debugging of
  82. non-periodic transfers, but of course the debug logs will be
  83. incomplete. Note that this also disables some debug messages
  84. for which the transfer type cannot be deduced.
  85. endif