summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2020-01-09 07:04:59 (GMT)
committerHyotaek Shim <hyotaek.shim@samsung.com>2020-01-09 07:08:56 (GMT)
commit35297258dae037557affe0f37ace0e987df5c3cd (patch)
tree2e4619b5e94ac30671851ff35293ead91327b756
parent4cb08670b7d801d5644ae211127459a6843db4d6 (diff)
downloadlibdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.zip
libdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.tar.gz
libdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.tar.bz2
Change-Id: I05da5a18e1b7734efa8a1a8d319a5c92e3c0d998 (cherry picked from commit ec4f84f3ab81af1197045760b96f90c194608fd9)
-rw-r--r--hw/usb_gadget_common.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/hw/usb_gadget_common.c b/hw/usb_gadget_common.c
index e76326d..e629b47 100644
--- a/hw/usb_gadget_common.c
+++ b/hw/usb_gadget_common.c
@@ -307,6 +307,7 @@ static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
functions[0][2] = 0;
gadget->attrs.idProduct = 0x6864;
break;
+#endif
case USB_FUNCTION_ACM | USB_FUNCTION_SDB | USB_FUNCTION_DM:
n_configs = 1;
@@ -325,7 +326,15 @@ static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
functions[0][3] = 0;
gadget->attrs.idProduct = 0x685d;
break;
-#endif
+
+ case USB_FUNCTION_RNDIS | USB_FUNCTION_SDB | USB_FUNCTION_ACM:
+ n_configs = 1;
+ functions[0][0] = USB_FUNCTION_RNDIS;
+ functions[0][1] = USB_FUNCTION_SDB;
+ functions[0][2] = USB_FUNCTION_ACM;
+ functions[0][3] = 0;
+ gadget->attrs.idProduct = 0x6864;
+ break;
};
if (n_configs > 2 || n_configs <= 0) {