Commits

Ricardo Gomez committed addc171 Draft

Add new acm+adb hybrid mode

Comments (0)

Files changed (1)

arch/arm/mach-msm/lge/board-gelato.c

 #include "board-gelato.h"
 #include "lge_diag_communication.h"
 
+// Hackish I know
+#define CONFIG_USB_TTY_DEBUG
+
 #ifdef CONFIG_LGE_USB_GADGET_SUPPORT_FACTORY_USB
 #define LG_UNKNOWN_CABLE			0
 #define LG_WALL_CHARGER_CABLE		1
 	"adb",
 };
 
+#ifdef CONFIG_USB_TTY_DEBUG
+static char *usb_functions_acm_adb[] = {
+	"acm",
+	"adb",
+};
+#endif
+
 #ifdef CONFIG_LGE_USB_GADGET_NDIS_DRIVER
 #ifdef CONFIG_LGE_USB_GADGET_NDIS_VZW_DRIVER
 static char *usb_functions_ums[] = {
 /* NRB_CHANGES_E [myoungkim@nuribom.com] 2011-05-29 */
 
 static struct android_usb_product usb_products[] = {
+#ifdef CONFIG_USB_TTY_DEBUG
+	{
+		.product_id = 0x4e11,
+		.num_functions = ARRAY_SIZE(usb_functions_acm_adb),
+		.functions = usb_functions_acm_adb,
+	},
+#endif
 #ifdef CONFIG_LGE_USB_GADGET_SUPPORT_FACTORY_USB
 	{
 		.product_id = 0x6000,