Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 1 | config USB_DWC2 |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 2 | tristate "DesignWare USB2 DRD Core Support" |
Dinh Nguyen | c3761a7 | 2014-10-21 15:31:42 -0500 | [diff] [blame] | 3 | depends on USB || USB_GADGET |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 4 | help |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 5 | Say Y here if your system has a Dual Role Hi-Speed USB |
| 6 | controller based on the DesignWare HSOTG IP Core. |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 7 | |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 8 | For host mode, if you choose to build the driver as dynamically |
| 9 | linked modules, the core module will be called dwc2.ko, the PCI |
| 10 | bus interface module (if you have a PCI bus system) will be |
| 11 | called dwc2_pci.ko, and the platform interface module (for |
| 12 | controllers directly connected to the CPU) will be called |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 13 | dwc2_platform.ko. For all modes(host, gadget and dual-role), there |
| 14 | will be an additional module named dwc2.ko. |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 15 | |
| 16 | if USB_DWC2 |
| 17 | |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 18 | choice |
| 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 | |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 24 | config USB_DWC2_HOST |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 25 | bool "Host only mode" |
Arnd Bergmann | b7974de8 | 2015-01-28 22:49:00 +0100 | [diff] [blame] | 26 | depends on USB=y || (USB_DWC2=m && USB) |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 27 | help |
| 28 | The Designware USB2.0 high-speed host controller |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 29 | integrated into many SoCs. Select this option if you want the |
| 30 | driver to operate in Host-only mode. |
| 31 | |
| 32 | comment "Gadget/Dual-role mode requires USB Gadget support to be enabled" |
| 33 | |
| 34 | config USB_DWC2_PERIPHERAL |
| 35 | bool "Gadget only mode" |
| 36 | depends on USB_GADGET=y || USB_GADGET=USB_DWC2 |
| 37 | help |
| 38 | The Designware USB2.0 high-speed gadget controller |
| 39 | integrated into many SoCs. Select this option if you want the |
| 40 | driver to operate in Peripheral-only mode. This option requires |
| 41 | USB_GADGET to be enabled. |
| 42 | |
| 43 | config USB_DWC2_DUAL_ROLE |
| 44 | bool "Dual Role mode" |
Arnd Bergmann | b7974de8 | 2015-01-28 22:49:00 +0100 | [diff] [blame] | 45 | depends on (USB=y && USB_GADGET=y) || (USB_DWC2=m && USB && USB_GADGET) |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 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. |
| 51 | endchoice |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 52 | |
| 53 | config USB_DWC2_PLATFORM |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 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. |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 59 | |
| 60 | config USB_DWC2_PCI |
Dinh Nguyen | 5ee8070 | 2014-11-11 11:13:40 -0600 | [diff] [blame] | 61 | tristate "DWC2 PCI" |
Dinh Nguyen | 47a1685 | 2014-04-14 14:13:34 -0700 | [diff] [blame] | 62 | depends on USB_DWC2_HOST && PCI |
| 63 | default USB_DWC2_HOST |
| 64 | help |
| 65 | The Designware USB2.0 PCI interface module for controllers |
| 66 | connected to a PCI bus. This is only used for host mode. |
| 67 | |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 68 | config USB_DWC2_DEBUG |
| 69 | bool "Enable Debugging Messages" |
| 70 | help |
| 71 | Say Y here to enable debugging messages in the DWC2 Driver. |
| 72 | |
| 73 | config USB_DWC2_VERBOSE |
| 74 | bool "Enable Verbose Debugging Messages" |
| 75 | depends on USB_DWC2_DEBUG |
| 76 | help |
| 77 | Say Y here to enable verbose debugging messages in the DWC2 Driver. |
| 78 | WARNING: Enabling this will quickly fill your message log. |
| 79 | If in doubt, say N. |
| 80 | |
| 81 | config USB_DWC2_TRACK_MISSED_SOFS |
| 82 | bool "Enable Missed SOF Tracking" |
| 83 | help |
| 84 | Say Y here to enable logging of missed SOF events to the dmesg log. |
Paul Zimmerman | 0797c3a | 2013-05-22 15:10:15 -0700 | [diff] [blame] | 85 | WARNING: This feature is still experimental. |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 86 | If in doubt, say N. |
| 87 | |
Matthijs Kooijman | b49977a | 2013-04-10 09:55:50 +0200 | [diff] [blame] | 88 | config USB_DWC2_DEBUG_PERIODIC |
| 89 | bool "Enable Debugging Messages For Periodic Transfers" |
| 90 | depends on USB_DWC2_DEBUG || USB_DWC2_VERBOSE |
| 91 | default y |
| 92 | help |
| 93 | Say N here to disable (verbose) debugging messages to be |
| 94 | logged for periodic transfers. This allows better debugging of |
| 95 | non-periodic transfers, but of course the debug logs will be |
| 96 | incomplete. Note that this also disables some debug messages |
| 97 | for which the transfer type cannot be deduced. |
Paul Zimmerman | 535f60a | 2013-03-11 17:48:02 -0700 | [diff] [blame] | 98 | endif |