aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc2/Kconfig
diff options
context:
space:
mode:
authorDinh Nguyen <dinguyen@altera.com>2014-04-14 17:13:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-04-24 16:12:43 -0400
commit47a1685f139271de401212bd69d17374ca5a5270 (patch)
treea0e670780e9b428f054c4893af63cc97b813a65d /drivers/usb/dwc2/Kconfig
parent6ab53324496dbfd9e6110539f9aa0ab108bd664b (diff)
usb: dwc2/s3c-hsotg: move s3c-hsotg into dwc2 directory
Moves the s3c-hsotg driver into the dwc2 directory and uses the dwc2 defines in hw.h. Renames s3c-hsotg.c to gadget.c. NOTE: You can build both host and peripheral as a dynamically linked module, but be aware that if you insmod dwc2_gadget, then rmmod it, then insmod dwc2 and dwc2_platform for host mode, this will not work. As the step to rmmod dwc2_gadget.ko will turn off the clock to the USB IP. The dwc2 host driver currently does not look to turn on a clock yet. A patch to fix that will be coming soon. Signed-off-by: Dinh Nguyen <dinguyen@altera.com> [ jh,rb - For gadget part only: ] Tested-by: Jingoo Han <jg1.han@samsung.com> Tested-by: Robert Baldyga <r.baldyga@samsung.com> [ pz: Folded Kconfig/Makefile changes, which were originally in a separate patch, into this one, to avoid a build breakage. Modified Kconfig/Makefile changes a bit. Tested host part only. ] Signed-off-by: Paul Zimmerman <paulz@synopsys.com> Acked-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/dwc2/Kconfig')
-rw-r--r--drivers/usb/dwc2/Kconfig61
1 files changed, 47 insertions, 14 deletions
diff --git a/drivers/usb/dwc2/Kconfig b/drivers/usb/dwc2/Kconfig
index be947d673844..f93807b3631a 100644
--- a/drivers/usb/dwc2/Kconfig
+++ b/drivers/usb/dwc2/Kconfig
@@ -1,25 +1,58 @@
1config USB_DWC2 1config USB_DWC2
2 tristate "DesignWare USB2 DRD Core Support" 2 bool "DesignWare USB2 DRD Core Support"
3 depends on USB 3 depends on USB
4 help 4 help
5 Say Y or M here if your system has a Dual Role HighSpeed 5 Say Y here if your system has a Dual Role Hi-Speed USB
6 USB controller based on the DesignWare HSOTG IP Core. 6 controller based on the DesignWare HSOTG IP Core.
7 7
8 If you choose to build this driver as dynamically linked 8 For host mode, if you choose to build the driver as dynamically
9 modules, the core module will be called dwc2.ko, the 9 linked modules, the core module will be called dwc2.ko, the PCI
10 PCI bus interface module (if you have a PCI bus system) 10 bus interface module (if you have a PCI bus system) will be
11 will be called dwc2_pci.ko and the platform interface module 11 called dwc2_pci.ko, and the platform interface module (for
12 (for controllers directly connected to the CPU) will be called 12 controllers directly connected to the CPU) will be called
13 dwc2_platform.ko. 13 dwc2_platform.ko. For gadget mode, there will be a single
14 module called dwc2_gadget.ko.
14 15
15 NOTE: This driver at present only implements the Host mode 16 NOTE: The s3c-hsotg driver is now renamed to dwc2_gadget. The
16 of the controller. The existing s3c-hsotg driver supports 17 host and gadget drivers are still currently separate drivers.
17 Peripheral mode, but only for the Samsung S3C platforms. 18 There are plans to merge the dwc2_gadget driver with the dwc2
18 There are plans to merge the s3c-hsotg driver with this 19 host driver in the near future to create a dual-role driver.
19 driver in the near future to create a dual-role driver.
20 20
21if USB_DWC2 21if USB_DWC2
22 22
23config USB_DWC2_HOST
24 tristate "Host only mode"
25 depends on USB
26 help
27 The Designware USB2.0 high-speed host controller
28 integrated into many SoCs.
29
30config USB_DWC2_PLATFORM
31 bool "DWC2 Platform"
32 depends on USB_DWC2_HOST
33 default USB_DWC2_HOST
34 help
35 The Designware USB2.0 platform interface module for
36 controllers directly connected to the CPU. This is only
37 used for host mode.
38
39config USB_DWC2_PCI
40 bool "DWC2 PCI"
41 depends on USB_DWC2_HOST && PCI
42 default USB_DWC2_HOST
43 help
44 The Designware USB2.0 PCI interface module for controllers
45 connected to a PCI bus. This is only used for host mode.
46
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
23config USB_DWC2_DEBUG 56config USB_DWC2_DEBUG
24 bool "Enable Debugging Messages" 57 bool "Enable Debugging Messages"
25 help 58 help