xref: /linux/drivers/usb/dwc2/Kconfig (revision 47a1685f139271de401212bd69d17374ca5a5270)
1197ba5f4SPaul Zimmermanconfig USB_DWC2
2*47a1685fSDinh Nguyen	bool "DesignWare USB2 DRD Core Support"
3197ba5f4SPaul Zimmerman	depends on USB
4197ba5f4SPaul Zimmerman	help
5*47a1685fSDinh Nguyen	  Say Y here if your system has a Dual Role Hi-Speed USB
6*47a1685fSDinh Nguyen	  controller based on the DesignWare HSOTG IP Core.
7197ba5f4SPaul Zimmerman
8*47a1685fSDinh Nguyen	  For host mode, if you choose to build the driver as dynamically
9*47a1685fSDinh Nguyen	  linked modules, the core module will be called dwc2.ko, the PCI
10*47a1685fSDinh Nguyen	  bus interface module (if you have a PCI bus system) will be
11*47a1685fSDinh Nguyen	  called dwc2_pci.ko, and the platform interface module (for
12*47a1685fSDinh Nguyen	  controllers directly connected to the CPU) will be called
13*47a1685fSDinh Nguyen	  dwc2_platform.ko. For gadget mode, there will be a single
14*47a1685fSDinh Nguyen	  module called dwc2_gadget.ko.
15197ba5f4SPaul Zimmerman
16*47a1685fSDinh Nguyen	  NOTE: The s3c-hsotg driver is now renamed to dwc2_gadget. The
17*47a1685fSDinh Nguyen	  host and gadget drivers are still currently separate drivers.
18*47a1685fSDinh Nguyen	  There are plans to merge the dwc2_gadget driver with the dwc2
19*47a1685fSDinh Nguyen	  host driver in the near future to create a dual-role driver.
20197ba5f4SPaul Zimmerman
21197ba5f4SPaul Zimmermanif USB_DWC2
22197ba5f4SPaul Zimmerman
23*47a1685fSDinh Nguyenconfig USB_DWC2_HOST
24*47a1685fSDinh Nguyen	tristate "Host only mode"
25*47a1685fSDinh Nguyen	depends on USB
26*47a1685fSDinh Nguyen	help
27*47a1685fSDinh Nguyen	  The Designware USB2.0 high-speed host controller
28*47a1685fSDinh Nguyen	  integrated into many SoCs.
29*47a1685fSDinh Nguyen
30*47a1685fSDinh Nguyenconfig USB_DWC2_PLATFORM
31*47a1685fSDinh Nguyen	bool "DWC2 Platform"
32*47a1685fSDinh Nguyen	depends on USB_DWC2_HOST
33*47a1685fSDinh Nguyen	default USB_DWC2_HOST
34*47a1685fSDinh Nguyen	help
35*47a1685fSDinh Nguyen	  The Designware USB2.0 platform interface module for
36*47a1685fSDinh Nguyen	  controllers directly connected to the CPU. This is only
37*47a1685fSDinh Nguyen	  used for host mode.
38*47a1685fSDinh Nguyen
39*47a1685fSDinh Nguyenconfig USB_DWC2_PCI
40*47a1685fSDinh Nguyen	bool "DWC2 PCI"
41*47a1685fSDinh Nguyen	depends on USB_DWC2_HOST && PCI
42*47a1685fSDinh Nguyen	default USB_DWC2_HOST
43*47a1685fSDinh Nguyen	help
44*47a1685fSDinh Nguyen	  The Designware USB2.0 PCI interface module for controllers
45*47a1685fSDinh Nguyen	  connected to a PCI bus. This is only used for host mode.
46*47a1685fSDinh Nguyen
47*47a1685fSDinh Nguyencomment "Gadget mode requires USB Gadget support to be enabled"
48*47a1685fSDinh Nguyen
49*47a1685fSDinh Nguyenconfig USB_DWC2_PERIPHERAL
50*47a1685fSDinh Nguyen	tristate "Gadget only mode"
51*47a1685fSDinh Nguyen	depends on USB_GADGET
52*47a1685fSDinh Nguyen	help
53*47a1685fSDinh Nguyen	  The Designware USB2.0 high-speed gadget controller
54*47a1685fSDinh Nguyen	  integrated into many SoCs.
55*47a1685fSDinh Nguyen
56197ba5f4SPaul Zimmermanconfig USB_DWC2_DEBUG
57197ba5f4SPaul Zimmerman	bool "Enable Debugging Messages"
58197ba5f4SPaul Zimmerman	help
59197ba5f4SPaul Zimmerman	  Say Y here to enable debugging messages in the DWC2 Driver.
60197ba5f4SPaul Zimmerman
61197ba5f4SPaul Zimmermanconfig USB_DWC2_VERBOSE
62197ba5f4SPaul Zimmerman	bool "Enable Verbose Debugging Messages"
63197ba5f4SPaul Zimmerman	depends on USB_DWC2_DEBUG
64197ba5f4SPaul Zimmerman	help
65197ba5f4SPaul Zimmerman	  Say Y here to enable verbose debugging messages in the DWC2 Driver.
66197ba5f4SPaul Zimmerman	  WARNING: Enabling this will quickly fill your message log.
67197ba5f4SPaul Zimmerman	  If in doubt, say N.
68197ba5f4SPaul Zimmerman
69197ba5f4SPaul Zimmermanconfig USB_DWC2_TRACK_MISSED_SOFS
70197ba5f4SPaul Zimmerman	bool "Enable Missed SOF Tracking"
71197ba5f4SPaul Zimmerman	help
72197ba5f4SPaul Zimmerman	  Say Y here to enable logging of missed SOF events to the dmesg log.
73197ba5f4SPaul Zimmerman	  WARNING: This feature is still experimental.
74197ba5f4SPaul Zimmerman	  If in doubt, say N.
75197ba5f4SPaul Zimmerman
76197ba5f4SPaul Zimmermanconfig USB_DWC2_DEBUG_PERIODIC
77197ba5f4SPaul Zimmerman	bool "Enable Debugging Messages For Periodic Transfers"
78197ba5f4SPaul Zimmerman	depends on USB_DWC2_DEBUG || USB_DWC2_VERBOSE
79197ba5f4SPaul Zimmerman	default y
80197ba5f4SPaul Zimmerman	help
81197ba5f4SPaul Zimmerman	  Say N here to disable (verbose) debugging messages to be
82197ba5f4SPaul Zimmerman	  logged for periodic transfers. This allows better debugging of
83197ba5f4SPaul Zimmerman	  non-periodic transfers, but of course the debug logs will be
84197ba5f4SPaul Zimmerman	  incomplete. Note that this also disables some debug messages
85197ba5f4SPaul Zimmerman	  for which the transfer type cannot be deduced.
86197ba5f4SPaul Zimmermanendif
87