Created
May 18, 2013 17:41
-
-
Save IshamMohamed/5605232 to your computer and use it in GitHub Desktop.
Custom USB kernal code for MTK USB device.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MTK_USB_CUSTOM_H | |
#define MTK_USB_CUSTOM_H | |
/* Force full-speed is not guaranteed with adb function, use it with care! */ | |
//#define USB_FORCE_FULL_SPEED | |
#define USB_MS_PRODUCT_ID 0x0001 | |
#define USB_MS_ADB_PRODUCT_ID 0x0c03 | |
#define USB_RNDIS_PRODUCT_ID 0x0003 | |
#define USB_RNDIS_ADB_PRODUCT_ID 0x0004 | |
#define USB_MS_ADB_ACM_PRODUCT_ID 0x0005 | |
#define USB_ACM_PRODUCT_ID 0x0006 | |
#define VENDOR_ID 0x0bb4 /* USB vendor id */ | |
#define PRODUCT_ID USB_MS_PRODUCT_ID /* USB default product id */ | |
#define MANUFACTURER_STRING "MediaTek" | |
#define PRODUCT_STRING "MT65xx Android Phone" | |
#define USB_ETH_VENDORID 0 | |
#define USB_ETH_VENDORDESCR "MediaTek" | |
#define USB_MS_VENDOR "MediaTek" | |
#define USB_MS_PRODUCT "MT65xx MS" | |
#define USB_MS_RELEASE 0x0100 | |
#define CHR_TYPE_DETECT_DEB 400 /* debounce time for charger type detection, in ms */ | |
#endif /* MTK_USB_CUSTOM_H */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment