summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINSUN PYO <insun.pyo@samsung.com>2020-02-06 02:47:05 (GMT)
committerINSUN PYO <insun.pyo@samsung.com>2020-02-06 03:10:28 (GMT)
commitdd1cbed348b34066d03129c73a6121292f8e25fe (patch)
tree1ed3755cfcd0ac7a9d25d87ba57081e73d33ae73
parent2db025193943590e40382eb81703bbe286c32a89 (diff)
downloadlibdevice-node-dd1cbed348b34066d03129c73a6121292f8e25fe.zip
libdevice-node-dd1cbed348b34066d03129c73a6121292f8e25fe.tar.gz
libdevice-node-dd1cbed348b34066d03129c73a6121292f8e25fe.tar.bz2
Extend USB gadget configuration for MTP + ACM mode.submit/tizen_5.5/20200206.031849refs/changes/52/224052/1
The usb default value in MCD is MTP + ACM. Change-Id: I46fb8b450029d061fb53da2e60c168c5a54b1fb6 (cherry picked from commit 6a9dfee0f087d09589556c2a81adc204eb3ffd0b)
-rw-r--r--hw/usb_gadget_common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/hw/usb_gadget_common.c b/hw/usb_gadget_common.c
index 0b79539..368077a 100644
--- a/hw/usb_gadget_common.c
+++ b/hw/usb_gadget_common.c
@@ -255,6 +255,14 @@ static int simple_id_to_gadget(struct usb_gadget_id *gadget_id,
gadget->attrs.idProduct = 0x6863;
break;
+ case USB_FUNCTION_MTP | USB_FUNCTION_ACM:
+ n_configs = 1;
+ functions[0][0] = USB_FUNCTION_MTP;
+ functions[0][1] = USB_FUNCTION_ACM;
+ functions[0][2] = 0;
+ gadget->attrs.idProduct = 0x6860;
+ break;
+
case USB_FUNCTION_ACM | USB_FUNCTION_SDB:
n_configs = 1;
functions[0][0] = USB_FUNCTION_ACM;