diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-07-31 16:00:17 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-08-04 19:25:33 +0200 |
commit | a7e3f1410855db6b67ec29a386e74be2df3cc311 (patch) | |
tree | 0da2502eae37fad9a56f9a04eae408585e6b82ba /drivers/usb/chipidea/udc.c | |
parent | staging: emxx_udc: add ep capabilities support (diff) | |
download | linux-a7e3f1410855db6b67ec29a386e74be2df3cc311.tar.xz linux-a7e3f1410855db6b67ec29a386e74be2df3cc311.zip |
usb: chipidea: 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>
Diffstat (limited to 'drivers/usb/chipidea/udc.c')
-rw-r--r-- | drivers/usb/chipidea/udc.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c index f5fbe78e8e6a..c592b6f0fe21 100644 --- a/drivers/usb/chipidea/udc.c +++ b/drivers/usb/chipidea/udc.c @@ -1624,6 +1624,20 @@ static int init_eps(struct ci_hdrc *ci) hwep->ep.name = hwep->name; hwep->ep.ops = &usb_ep_ops; + + if (i == 0) { + hwep->ep.caps.type_control = true; + } else { + hwep->ep.caps.type_iso = true; + hwep->ep.caps.type_bulk = true; + hwep->ep.caps.type_int = true; + } + + if (j == TX) + hwep->ep.caps.dir_in = true; + else + hwep->ep.caps.dir_out = true; + /* * for ep0: maxP defined in desc, for other * eps, maxP is set by epautoconfig() called |