aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2009-11-09 08:15:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2009-12-11 14:55:23 -0500
commitf176a5d81214864904d285912da02c4bc0e9041a (patch)
tree83a3c24aa437c1ac565df7c3873ceb13370d8ab6 /drivers/usb/gadget/Kconfig
parentc85efcb9657a7c15e24c1d4745826a80f9a53bbe (diff)
USB: g_multi: Multifunction Composite Gadget added
The Multifunction Composite Gadget has two configurations consisting of Ethernet (RNDIS in first and CDC Ethernet in second configuration), CDC Serial and File-backed Storage functions. When connected to a Windows host, the first configuration is chosen thus gadget provides RNDIS Ethernet, serial and mass storage whereas when connected to Linux host, second configuration is chosen thus providing CDC Ethernet, serial and mass storage. Which configurations are built can be configured via KConfig options. Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r--drivers/usb/gadget/Kconfig42
1 files changed, 42 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 3bb250fd5321..df8b11d6c0fe 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -812,6 +812,48 @@ config USB_CDC_COMPOSITE
812 Say "y" to link the driver statically, or "m" to build a 812 Say "y" to link the driver statically, or "m" to build a
813 dynamically linked module. 813 dynamically linked module.
814 814
815config USB_G_MULTI
816 tristate "Multifunction Composite Gadget (EXPERIMENTAL)"
817 help
818 The Multifunction Composite Gadget provides Ethernet (RNDIS
819 and/or CDC Ethernet), mass storage and ACM serial link
820 interfaces.
821
822 You will be asked too choose which of the two configurations are
823 to be available in the gadget. At least one configuration must
824 be choosen to make gadget usable. Selecting more then one
825 configuration will prevent Windows from automatically detecting
826 the gadget as a composite gadget an INF file will be needed to
827 use the gadget.
828
829 Say "y" to link the driver statically, or "m" to build a
830 dynamically linked module called "g_multi".
831
832config USB_G_MULTI_RNDIS
833 bool "RNDIS + CDC Serial + Storage configuration"
834 depends on USB_G_MULTI
835 default y
836 help
837 This option enables a configuration with RNDIS, CDC Serial and
838 Mass Storage functions available in the Multifunction Composite
839 Gadget. This is configuration dedicated for Windows since RNDIS
840 is Microsfot's protocol.
841
842 If unsure, say "y".
843
844config USB_G_MULTI_CDC
845 bool "CDC Ethernet + CDC Serial + Storage configuration"
846 depends on USB_G_MULTI
847 default n
848 help
849 This option enables a configuration with CDC Ethernet (ECM), CDC
850 Serial and Mass Storage functions available in the Multifunction
851 Composite Gadget. This is configuration dedicated for Windows
852 since RNDIS is Microsfot's protocol.
853
854 If unsure, say "y".
855
856
815# put drivers that need isochronous transfer support (for audio 857# put drivers that need isochronous transfer support (for audio
816# or video class gadget drivers), or specific hardware, here. 858# or video class gadget drivers), or specific hardware, here.
817 859