diff options
author | Paweł Szewczyk <p.szewczyk@samsung.com> | 2018-04-18 13:48:45 +0200 |
---|---|---|
committer | Paweł Szewczyk <p.szewczyk@samsung.com> | 2018-04-18 14:01:53 +0200 |
commit | 5c7531935aed9b31ba51e29d88192572250fcdfa (patch) | |
tree | bff8c27684f6bc933e409fbbd4d56dccbc4e0eea | |
parent | c6116158ef7ae3dad4b41976aff87c5c73bdbd15 (diff) | |
download | device-manager-plugin-artik-5c7531935aed9b31ba51e29d88192572250fcdfa.tar.gz device-manager-plugin-artik-5c7531935aed9b31ba51e29d88192572250fcdfa.tar.bz2 device-manager-plugin-artik-5c7531935aed9b31ba51e29d88192572250fcdfa.zip |
Add sdb+acm configuration
Change-Id: I59e70efcf7c6126dce60efeadbb7b75940332fdb
Signed-off-by: Paweł Szewczyk <p.szewczyk@samsung.com>
-rwxr-xr-x | hw/usb_gadget/usb_gadget.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/hw/usb_gadget/usb_gadget.c b/hw/usb_gadget/usb_gadget.c index cc965a6..f7d9473 100755 --- a/hw/usb_gadget/usb_gadget.c +++ b/hw/usb_gadget/usb_gadget.c @@ -226,6 +226,13 @@ static int simple_id_to_gadget(struct usb_gadget_id *gadget_id, functions[0][1] = 0; gadget->attrs.idProduct = 0x6863; break; + case USB_FUNCTION_SDB | USB_FUNCTION_ACM: + n_configs = 1; + functions[0][0] = USB_FUNCTION_ACM; + functions[0][1] = USB_FUNCTION_SDB; + functions[0][2] = 0; + gadget->attrs.idProduct = 0x6866; + break; case USB_FUNCTION_MTP | USB_FUNCTION_ACM | USB_FUNCTION_SDB: n_configs = 1; functions[0][0] = USB_FUNCTION_MTP; |