diff options
author | Marek Vasut <marex@denx.de> | 2013-07-10 03:16:40 +0200 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2013-07-29 23:01:32 +0200 |
commit | 8a095a68ce8e7989dec6af4011f0f41bbc554f22 (patch) | |
tree | 5953b488cc016d5233b629e45cde9cea5a044e36 /include/usb/mv_udc.h | |
parent | b5cd45bfad3a25db25b40cfda9e7db80e5ee65f7 (diff) |
usb: mv_udc: Improve allocation of qTD items
Allocate the qTD items all at once instead of allocating them
separately. Moreover, make sure each qTD is properly aligned
to 32-bytes boundary and that cache can be safely flushed over
each qTD touple.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Lei Wen <leiwen@marvell.com>
Cc: Otavio Salvador <otavio@ossystems.com.br>
Cc: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/usb/mv_udc.h')
-rw-r--r-- | include/usb/mv_udc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/mv_udc.h b/include/usb/mv_udc.h index a9869f019d..c1761b0724 100644 --- a/include/usb/mv_udc.h +++ b/include/usb/mv_udc.h @@ -77,6 +77,7 @@ struct mv_drv { struct ehci_ctrl *ctrl; struct ept_queue_head *epts; struct ept_queue_item *items[2 * NUM_ENDPOINTS]; + uint8_t *items_mem; struct mv_ep ep[NUM_ENDPOINTS]; }; |