diff options
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r-- | drivers/usb/gadget/Kconfig | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index a18e3c5dd82e..ee411206c699 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig | |||
@@ -732,6 +732,24 @@ config USB_FILE_STORAGE_TEST | |||
732 | behavior of USB Mass Storage hosts. Not needed for | 732 | behavior of USB Mass Storage hosts. Not needed for |
733 | normal operation. | 733 | normal operation. |
734 | 734 | ||
735 | config USB_MASS_STORAGE | ||
736 | tristate "Mass Storage Gadget" | ||
737 | depends on BLOCK | ||
738 | help | ||
739 | The Mass Storage Gadget acts as a USB Mass Storage disk drive. | ||
740 | As its storage repository it can use a regular file or a block | ||
741 | device (in much the same way as the "loop" device driver), | ||
742 | specified as a module parameter or sysfs option. | ||
743 | |||
744 | This is heavily based on File-backed Storage Gadget and in most | ||
745 | cases you will want to use FSG instead. This gadget is mostly | ||
746 | here to test the functionality of the Mass Storage Function | ||
747 | which may be used with composite framework. | ||
748 | |||
749 | Say "y" to link the driver statically, or "m" to build | ||
750 | a dynamically linked module called "g_file_storage". If unsure, | ||
751 | consider File-backed Storage Gadget. | ||
752 | |||
735 | config USB_G_SERIAL | 753 | config USB_G_SERIAL |
736 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" | 754 | tristate "Serial Gadget (with CDC ACM and CDC OBEX support)" |
737 | help | 755 | help |
@@ -794,6 +812,48 @@ config USB_CDC_COMPOSITE | |||
794 | 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 |
795 | dynamically linked module. | 813 | dynamically linked module. |
796 | 814 | ||
815 | config USB_G_MULTI | ||
816 | tristate "Multifunction Composite Gadget (EXPERIMENTAL)" | ||
817 | depends on BLOCK && NET | ||
818 | help | ||
819 | The Multifunction Composite Gadget provides Ethernet (RNDIS | ||
820 | and/or CDC Ethernet), mass storage and ACM serial link | ||
821 | interfaces. | ||
822 | |||
823 | You will be asked to choose which of the two configurations is | ||
824 | to be available in the gadget. At least one configuration must | ||
825 | be chosen to make the gadget usable. Selecting more than one | ||
826 | configuration will prevent Windows from automatically detecting | ||
827 | the gadget as a composite gadget, so an INF file will be needed to | ||
828 | use the gadget. | ||
829 | |||
830 | Say "y" to link the driver statically, or "m" to build a | ||
831 | dynamically linked module called "g_multi". | ||
832 | |||
833 | config USB_G_MULTI_RNDIS | ||
834 | bool "RNDIS + CDC Serial + Storage configuration" | ||
835 | depends on USB_G_MULTI | ||
836 | default y | ||
837 | help | ||
838 | This option enables a configuration with RNDIS, CDC Serial and | ||
839 | Mass Storage functions available in the Multifunction Composite | ||
840 | Gadget. This is the configuration dedicated for Windows since RNDIS | ||
841 | is Microsoft's protocol. | ||
842 | |||
843 | If unsure, say "y". | ||
844 | |||
845 | config USB_G_MULTI_CDC | ||
846 | bool "CDC Ethernet + CDC Serial + Storage configuration" | ||
847 | depends on USB_G_MULTI | ||
848 | default n | ||
849 | help | ||
850 | This option enables a configuration with CDC Ethernet (ECM), CDC | ||
851 | Serial and Mass Storage functions available in the Multifunction | ||
852 | Composite Gadget. | ||
853 | |||
854 | If unsure, say "y". | ||
855 | |||
856 | |||
797 | # put drivers that need isochronous transfer support (for audio | 857 | # put drivers that need isochronous transfer support (for audio |
798 | # or video class gadget drivers), or specific hardware, here. | 858 | # or video class gadget drivers), or specific hardware, here. |
799 | 859 | ||