summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWu, Hao <hao.wu@intel.com>2012-01-17 12:04:11 -0800
committerMark D Horn <mark.d.horn@intel.com>2012-01-17 12:08:06 -0800
commitf60e8638282d66c108f1e1dea030856312f65892 (patch)
tree1d12f9af2e691065d97c7a346f455a7a7b51b2e6
parente7b1f132c2a324af89080bc43968b7222b40ddfa (diff)
downloadsystem_core-f60e8638282d66c108f1e1dea030856312f65892.zip
system_core-f60e8638282d66c108f1e1dea030856312f65892.tar.gz
system_core-f60e8638282d66c108f1e1dea030856312f65892.tar.bz2
adb,fastboot: add USB support for Intel Vendor ID
This patch adds Intel USB Vendor ID into the support list for adb and fastboot. Signed-off-by: Wu, Hao <hao.wu@intel.com> Signed-off-by: Jack Ren <jack.ren@intel.com>
-rw-r--r--adb/usb_vendors.c3
-rw-r--r--fastboot/fastboot.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/adb/usb_vendors.c b/adb/usb_vendors.c
index 06f21dd..7ae6372 100644
--- a/adb/usb_vendors.c
+++ b/adb/usb_vendors.c
@@ -37,6 +37,8 @@
// Google's USB Vendor ID
#define VENDOR_ID_GOOGLE 0x18d1
+// Intel's USB Vendor ID
+#define VENDOR_ID_INTEL 0x8087
// HTC's USB Vendor ID
#define VENDOR_ID_HTC 0x0bb4
// Samsung's USB Vendor ID
@@ -116,6 +118,7 @@
/** built-in vendor list */
int builtInVendorIds[] = {
VENDOR_ID_GOOGLE,
+ VENDOR_ID_INTEL,
VENDOR_ID_HTC,
VENDOR_ID_SAMSUNG,
VENDOR_ID_MOTOROLA,
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c
index 4a2de20..fe0af7a 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -150,6 +150,7 @@ int match_fastboot(usb_ifc_info *info)
{
if(!(vendor_id && (info->dev_vendor == vendor_id)) &&
(info->dev_vendor != 0x18d1) && // Google
+ (info->dev_vendor != 0x8087) && // Intel
(info->dev_vendor != 0x0451) &&
(info->dev_vendor != 0x0502) &&
(info->dev_vendor != 0x0fce) && // Sony Ericsson