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