Skip to content

Instantly share code, notes, and snippets.

@IshamMohamed
Created May 18, 2013 17:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IshamMohamed/5605232 to your computer and use it in GitHub Desktop.
Save IshamMohamed/5605232 to your computer and use it in GitHub Desktop.
Custom USB kernal code for MTK USB device.
#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