1config USB_DWC2 2 tristate "DesignWare USB2 DRD Core Support" 3 depends on USB 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 8 If you choose to build the driver as dynamically 9 linked modules, a single dwc2.ko(regardless of mode of operation) 10 will get built for both platform IPs and PCI. 11 12if USB_DWC2 13 14choice 15 bool "DWC2 Mode Selection" 16 default USB_DWC2_DUAL_ROLE if (USB && USB_GADGET) 17 default USB_DWC2_HOST if (USB && !USB_GADGET) 18 default USB_DWC2_PERIPHERAL if (!USB && USB_GADGET) 19 20config 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 28config USB_DWC2_PCI 29 bool "DWC2 PCI" 30 depends on USB_DWC2_HOST && PCI 31 default USB_DWC2_HOST 32 help 33 The Designware USB2.0 PCI interface module for controllers 34 connected to a PCI bus. This is only used for host mode. 35 36comment "Gadget mode requires USB Gadget support to be enabled" 37 38config USB_DWC2_PERIPHERAL 39 bool "Gadget only mode" 40 depends on USB_GADGET=y || USB_GADGET=USB_DWC2 41 help 42 The Designware USB2.0 high-speed gadget controller 43 integrated into many SoCs. Select this option if you want the 44 driver to operate in Peripheral-only mode. This option requires 45 USB_GADGET=y. 46 47config USB_DWC2_DUAL_ROLE 48 bool "Dual Role mode" 49 depends on ((USB=y || USB=USB_DWC2) && (USB_GADGET=y || USB_GADGET=USB_DWC2)) 50 help 51 Select this option if you want the driver to work in a dual-role 52 mode. In this mode both host and gadget features are enabled, and 53 the role will be determined by the cable that gets plugged-in. This 54 option requires USB_GADGET=y. 55endchoice 56 57config USB_DWC2_PLATFORM 58 bool 59 depends on !PCI 60 default y 61 help 62 The Designware USB2.0 platform interface module for 63 controllers directly connected to the CPU. 64 65config USB_DWC2_DEBUG 66 bool "Enable Debugging Messages" 67 help 68 Say Y here to enable debugging messages in the DWC2 Driver. 69 70config USB_DWC2_VERBOSE 71 bool "Enable Verbose Debugging Messages" 72 depends on USB_DWC2_DEBUG 73 help 74 Say Y here to enable verbose debugging messages in the DWC2 Driver. 75 WARNING: Enabling this will quickly fill your message log. 76 If in doubt, say N. 77 78config USB_DWC2_TRACK_MISSED_SOFS 79 bool "Enable Missed SOF Tracking" 80 help 81 Say Y here to enable logging of missed SOF events to the dmesg log. 82 WARNING: This feature is still experimental. 83 If in doubt, say N. 84 85config USB_DWC2_DEBUG_PERIODIC 86 bool "Enable Debugging Messages For Periodic Transfers" 87 depends on USB_DWC2_DEBUG || USB_DWC2_VERBOSE 88 default y 89 help 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. 95endif 96