diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-02-06 11:47:05 +0900 |
---|---|---|
committer | INSUN PYO <insun.pyo@samsung.com> | 2020-02-06 03:10:28 +0000 |
commit | dd1cbed348b34066d03129c73a6121292f8e25fe (patch) | |
tree | 1ed3755cfcd0ac7a9d25d87ba57081e73d33ae73 | |
parent | 2db025193943590e40382eb81703bbe286c32a89 (diff) | |
download | libdevice-node-submit/tizen_5.5/20200206.031849.tar.gz libdevice-node-submit/tizen_5.5/20200206.031849.tar.bz2 libdevice-node-submit/tizen_5.5/20200206.031849.zip |
Extend USB gadget configuration for MTP + ACM mode.submit/tizen_5.5/20200206.031849
The usb default value in MCD is MTP + ACM.
Change-Id: I46fb8b450029d061fb53da2e60c168c5a54b1fb6
(cherry picked from commit 6a9dfee0f087d09589556c2a81adc204eb3ffd0b)
-rw-r--r-- | hw/usb_gadget_common.c | 8 |
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; |