aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/Kconfig
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/dwc2/Kconfig')
-rw-r--r--drivers/usb/dwc2/Kconfig68
1 files changed, 40 insertions, 28 deletions
diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig
index f93807b3631a..b323c4c11b0a 100644
--- a/drivers/usb/dwc2/Kconfig
+++ b/drivers/usb/dwc2/Kconfig
@@ -1,6 +1,6 @@
1config USB_DWC2 1config USB_DWC2
2 bool "DesignWare USB2 DRD Core Support" 2 tristate "DesignWare USB2 DRD Core Support"
3 depends on USB 3 depends on USB || USB_GADGET
4 help 4 help
5 Say Y here if your system has a Dual Role Hi-Speed USB 5 Say Y here if your system has a Dual Role Hi-Speed USB
6 controller based on the DesignWare HSOTG IP Core. 6 controller based on the DesignWare HSOTG IP Core.
@@ -10,49 +10,61 @@ config USB_DWC2
10 bus interface module (if you have a PCI bus system) will be 10 bus interface module (if you have a PCI bus system) will be
11 called dwc2_pci.ko, and the platform interface module (for 11 called dwc2_pci.ko, and the platform interface module (for
12 controllers directly connected to the CPU) will be called 12 controllers directly connected to the CPU) will be called
13 dwc2_platform.ko. For gadget mode, there will be a single 13 dwc2_platform.ko. For all modes(host, gadget and dual-role), there
14 module called dwc2_gadget.ko. 14 will be an additional module named dwc2.ko.
15
16 NOTE: The s3c-hsotg driver is now renamed to dwc2_gadget. The
17 host and gadget drivers are still currently separate drivers.
18 There are plans to merge the dwc2_gadget driver with the dwc2
19 host driver in the near future to create a dual-role driver.
20 15
21if USB_DWC2 16if USB_DWC2
22 17
18choice
19 bool "DWC2 Mode Selection"
20 default USB_DWC2_DUAL_ROLE if (USB && USB_GADGET)
21 default USB_DWC2_HOST if (USB && !USB_GADGET)
22 default USB_DWC2_PERIPHERAL if (!USB && USB_GADGET)
23
23config USB_DWC2_HOST 24config USB_DWC2_HOST
24 tristate "Host only mode" 25 bool "Host only mode"
25 depends on USB 26 depends on USB
26 help 27 help
27 The Designware USB2.0 high-speed host controller 28 The Designware USB2.0 high-speed host controller
28 integrated into many SoCs. 29 integrated into many SoCs. Select this option if you want the
30 driver to operate in Host-only mode.
29 31
30config USB_DWC2_PLATFORM 32comment "Gadget/Dual-role mode requires USB Gadget support to be enabled"
31 bool "DWC2 Platform" 33
32 depends on USB_DWC2_HOST 34config USB_DWC2_PERIPHERAL
33 default USB_DWC2_HOST 35 bool "Gadget only mode"
36 depends on USB_GADGET=y || USB_GADGET=USB_DWC2
34 help 37 help
35 The Designware USB2.0 platform interface module for 38 The Designware USB2.0 high-speed gadget controller
36 controllers directly connected to the CPU. This is only 39 integrated into many SoCs. Select this option if you want the
37 used for host mode. 40 driver to operate in Peripheral-only mode. This option requires
41 USB_GADGET to be enabled.
42
43config USB_DWC2_DUAL_ROLE
44 bool "Dual Role mode"
45 depends on (USB=y || USB=USB_DWC2) && (USB_GADGET=y || USB_GADGET=USB_DWC2)
46 help
47 Select this option if you want the driver to work in a dual-role
48 mode. In this mode both host and gadget features are enabled, and
49 the role will be determined by the cable that gets plugged-in. This
50 option requires USB_GADGET to be enabled.
51endchoice
52
53config USB_DWC2_PLATFORM
54 tristate "DWC2 Platform"
55 default USB_DWC2_HOST || USB_DWC2_PERIPHERAL
56 help
57 The Designware USB2.0 platform interface module for
58 controllers directly connected to the CPU.
38 59
39config USB_DWC2_PCI 60config USB_DWC2_PCI
40 bool "DWC2 PCI" 61 tristate "DWC2 PCI"
41 depends on USB_DWC2_HOST && PCI 62 depends on USB_DWC2_HOST && PCI
42 default USB_DWC2_HOST 63 default USB_DWC2_HOST
43 help 64 help
44 The Designware USB2.0 PCI interface module for controllers 65 The Designware USB2.0 PCI interface module for controllers
45 connected to a PCI bus. This is only used for host mode. 66 connected to a PCI bus. This is only used for host mode.
46 67
47comment "Gadget mode requires USB Gadget support to be enabled"
48
49config USB_DWC2_PERIPHERAL
50 tristate "Gadget only mode"
51 depends on USB_GADGET
52 help
53 The Designware USB2.0 high-speed gadget controller
54 integrated into many SoCs.
55
56config USB_DWC2_DEBUG 68config USB_DWC2_DEBUG
57 bool "Enable Debugging Messages" 69 bool "Enable Debugging Messages"
58 help 70 help