diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-07-31 10:00:45 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-08-04 13:26:55 -0400 |
commit | eb4cbc19526d62657b838d6f0b694a000e5b4c81 (patch) | |
tree | 5c5eae9d4e8220133d913f3c06cf382c15fe8d6c | |
parent | 927d9f77fe3d5f9261eeb465e2b60768e400ffc9 (diff) |
usb: isp1760: udc: add ep capabilities support
Convert endpoint configuration to new capabilities model.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
-rw-r--r-- | drivers/usb/isp1760/isp1760-udc.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/usb/isp1760/isp1760-udc.c b/drivers/usb/isp1760/isp1760-udc.c index 3699962987b2..1c3d0fd658fa 100644 --- a/drivers/usb/isp1760/isp1760-udc.c +++ b/drivers/usb/isp1760/isp1760-udc.c | |||
@@ -1383,13 +1383,24 @@ static void isp1760_udc_init_eps(struct isp1760_udc *udc) | |||
1383 | */ | 1383 | */ |
1384 | if (ep_num == 0) { | 1384 | if (ep_num == 0) { |
1385 | usb_ep_set_maxpacket_limit(&ep->ep, 64); | 1385 | usb_ep_set_maxpacket_limit(&ep->ep, 64); |
1386 | ep->ep.caps.type_control = true; | ||
1387 | ep->ep.caps.dir_in = true; | ||
1388 | ep->ep.caps.dir_out = true; | ||
1386 | ep->maxpacket = 64; | 1389 | ep->maxpacket = 64; |
1387 | udc->gadget.ep0 = &ep->ep; | 1390 | udc->gadget.ep0 = &ep->ep; |
1388 | } else { | 1391 | } else { |
1389 | usb_ep_set_maxpacket_limit(&ep->ep, 512); | 1392 | usb_ep_set_maxpacket_limit(&ep->ep, 512); |
1393 | ep->ep.caps.type_iso = true; | ||
1394 | ep->ep.caps.type_bulk = true; | ||
1395 | ep->ep.caps.type_int = true; | ||
1390 | ep->maxpacket = 0; | 1396 | ep->maxpacket = 0; |
1391 | list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); | 1397 | list_add_tail(&ep->ep.ep_list, &udc->gadget.ep_list); |
1392 | } | 1398 | } |
1399 | |||
1400 | if (is_in) | ||
1401 | ep->ep.caps.dir_in = true; | ||
1402 | else | ||
1403 | ep->ep.caps.dir_out = true; | ||
1393 | } | 1404 | } |
1394 | } | 1405 | } |
1395 | 1406 | ||