diff options
author | Mike Lockwood <lockwood@android.com> | 2008-12-02 22:01:33 -0500 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2011-06-14 09:08:53 -0700 |
commit | 7f0d7bd310cad696f8a17e270f174ffcd1eb4f14 (patch) | |
tree | 68c647a4486df9d8364defe3ae75af91553e0703 /include/linux/usb | |
parent | 8f5ed00afeef24ad0ce6af4e8231ae0313e55247 (diff) | |
download | kernel_samsung_crespo-7f0d7bd310cad696f8a17e270f174ffcd1eb4f14.zip kernel_samsung_crespo-7f0d7bd310cad696f8a17e270f174ffcd1eb4f14.tar.gz kernel_samsung_crespo-7f0d7bd310cad696f8a17e270f174ffcd1eb4f14.tar.bz2 |
android_usb: Composite USB gadget driver for android.
Change-Id: I4101540916b73a5f4e48684727ff782f98b969c7
Signed-off-by: Mike Lockwood <lockwood@android.com>
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: link fixes for android composite gadget
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb gadget: Fix null pointer errors in android composite driver
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb: gadget: android: Allow usb charging to draw up to 500mA instead of 250.
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
usb gadget: android: Add helper function for usb_gadget_connect and disconnect.
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers: usb: gadget: call switch_dev_unregister in mass storage unbind callback
This fixes a problem unloading the android gadget driver when built as a module
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb: gadget: android: Add dependency on switch driver.
Signed-off-by: Mike Lockwood <lockwood@android.com>
USB: gadget: android: Fix USB WHQL Certification Issues
Submitted on behalf of RaviKumar Vembu <ravi.v@motorola.com>
Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers: usb: gadget: Add "usb_mass_storage" platform driver.
This will be used for configuring vendor, product and release from board file.
Submitted on behalf of RaviKumar Vembu <ravi.v@motorola.com>
Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers: usb: gadget: Use usb_mass_storage platform device as parent for lun
If a platform device is specified for the f_mass_storage function, use it as the
parent driver for the lun files in sysfs.
This allows a platform independent file path for controlling USB mass storage
from user space.
Signed-off-by: Mike Lockwood <lockwood@android.com>
drivers: usb: gadget: Add platform data struct for usb_mass_storage device
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb: gadget: mass_storage: Fix Mass Storage Panic during PC reboot
Submitted on behalf of RaviKumar Vembu <ravi.v@motorola.com>
Signed-off-by: Jared Suttles <jared.suttles@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb: gadget: f_mass_storage: Handle setup request correctly
Signed-off-by: Mike Lockwood <lockwood@android.com>
usb: gadget: f_mass_storage: Clean up wakelocks on error paths
Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'include/linux/usb')
-rw-r--r-- | include/linux/usb/android.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/include/linux/usb/android.h b/include/linux/usb/android.h new file mode 100644 index 0000000..4e7f419 --- /dev/null +++ b/include/linux/usb/android.h @@ -0,0 +1,50 @@ +/* + * Platform data for Android USB + * + * Copyright (C) 2008 Google, Inc. + * Author: Mike Lockwood <lockwood@android.com> + * + * This software is licensed under the terms of the GNU General Public + * License version 2, as published by the Free Software Foundation, and + * may be copied, distributed, and modified under those terms. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + */ +#ifndef __LINUX_USB_ANDROID_H +#define __LINUX_USB_ANDROID_H + +struct android_usb_platform_data { + /* USB device descriptor fields */ + __u16 vendor_id; + + /* Default product ID. */ + __u16 product_id; + + /* Product ID when adb is enabled. */ + __u16 adb_product_id; + + __u16 version; + + char *product_name; + char *manufacturer_name; + char *serial_number; + + /* number of LUNS for mass storage function */ + int nluns; +}; + +/* Platform data for "usb_mass_storage" driver. + * Contains values for the SC_INQUIRY SCSI command. */ +struct usb_mass_storage_platform_data { + char *vendor; + char *product; + int release; +}; + +extern void android_usb_set_connected(int on); + +#endif /* __LINUX_USB_ANDROID_H */ |