diff options
author | INSUN PYO <insun.pyo@samsung.com> | 2020-01-09 16:04:59 +0900 |
---|---|---|
committer | Hyotaek Shim <hyotaek.shim@samsung.com> | 2020-01-09 07:08:56 +0000 |
commit | 35297258dae037557affe0f37ace0e987df5c3cd (patch) | |
tree | 2e4619b5e94ac30671851ff35293ead91327b756 | |
parent | 4cb08670b7d801d5644ae211127459a6843db4d6 (diff) | |
download | libdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.tar.gz libdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.tar.bz2 libdevice-node-35297258dae037557affe0f37ace0e987df5c3cd.zip |
Extend USB gadget configuration for further usagesubmit/tizen_5.5/20200110.082809submit/tizen_5.5/20200109.072639accepted/tizen/5.5/unified/20200110.090102
Change-Id: I05da5a18e1b7734efa8a1a8d319a5c92e3c0d998
(cherry picked from commit ec4f84f3ab81af1197045760b96f90c194608fd9)
-rw-r--r-- | hw/usb_gadget_common.c | 11 |
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) { |