summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/Kconfig
diff options
context:
space:
mode:
authorKrishna, Vamsi <vskrishn@qualcomm.com>2009-02-11 21:07:20 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:38:00 -0800
commit3fe8df32787c396b6ee8c6b61e789559292fd5ed (patch)
treeaa414d53687cd0058da8eb9a6ee4315c651d1af6 /drivers/usb/gadget/Kconfig
parentad75c6f504d4fde80f123090aa2fedddb4460cbe (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 455d9744c9f3..fda174a328f1 100644
--- a/drivers/usb/gadget/Kconfig
+++ b/drivers/usb/gadget/Kconfig
@@ -824,13 +824,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)"