summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
authorKrishna, Vamsi <vskrishn@qualcomm.com>2009-02-11 21:07:20 +0530
committerColin Cross <ccross@android.com>2011-06-14 09:08:54 -0700
commit83814ea997cb03a65c7baf1c41699963724af932 (patch)
treea9d10d51d51cc41b17cf3e757c146c5f01ab7c2e /drivers/usb/gadget/Kconfig
parent292b1bcfc8ef95451f4e6ed6f4cb4c20b24dca94 (diff)
USB: gadget: android: android USB gadget improvements:
USB: android gadget: add remote wakeup attribute to android function Add remote wakeup attribute to configuration descriptor of android function to advertise remote wakeup capability to host Acked-by: Allam, Suresh Reddy <sallam@qualcomm.com> Signed-off-by: Mike Lockwood <lockwood@android.com> USB: gadget: android: Allow functions to handle setup requests. Signed-off-by: Mike Lockwood <lockwood@android.com> Support for specifying the list of USB functions from platform data. The main android.c gadget driver no longer has hard coded references to the mass_storage and adb functions. Support for computing the product ID based on tables in platform data and the currently enabled functions. Moved the adb enable/disable logic from android.c to f_adb.c. Change-Id: I6259d3fb1473ed973f700e55d17744956f3527bb Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'drivers/usb/gadget/Kconfig')
-rw-r--r--drivers/usb/gadget/Kconfig25
1 files changed, 21 insertions, 4 deletions
diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig
index 43c9015b5d4..e1e5af52a1c 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -936,13 +936,30 @@ config USB_G_PRINTER
which includes sample code for accessing the device file.
config USB_ANDROID
- tristate "Android Gadget"
+ boolean "Android Gadget"
depends on SWITCH
help
- The Android gadget provides mass storage and adb transport.
+ The Android gadget driver supports multiple USB functions.
+ The functions can be configured via a board file and may be
+ enabled and disabled dynamically.
- Say "y" to link the driver statically, or "m" to build a
- dynamically linked module called "g_android".
+config USB_ANDROID_ACM
+ boolean "Android gadget ACM function"
+ depends on USB_ANDROID
+ help
+ Provides adb function for adb gadget driver.
+
+config USB_ANDROID_ADB
+ boolean "Android gadget adb function"
+ depends on USB_ANDROID
+ help
+ Provides adb function for adb gadget driver.
+
+config USB_ANDROID_MASS_STORAGE
+ boolean "Android gadget mass storage function"
+ depends on USB_ANDROID && SWITCH
+ help
+ Provides USB mass storage function for adb gadget driver.
config USB_CDC_COMPOSITE
tristate "CDC Composite Device (Ethernet and ACM)"