summaryrefslogtreecommitdiff
path: root/include/usb
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-07-10 03:16:40 +0200
committerMarek Vasut <marex@denx.de>2013-07-29 23:01:32 +0200
commit8a095a68ce8e7989dec6af4011f0f41bbc554f22 (patch)
tree5953b488cc016d5233b629e45cde9cea5a044e36 /include/usb
parentb5cd45bfad3a25db25b40cfda9e7db80e5ee65f7 (diff)
downloadu-boot-imx-8a095a68ce8e7989dec6af4011f0f41bbc554f22.zip
u-boot-imx-8a095a68ce8e7989dec6af4011f0f41bbc554f22.tar.gz
u-boot-imx-8a095a68ce8e7989dec6af4011f0f41bbc554f22.tar.bz2
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')
-rw-r--r--include/usb/mv_udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/mv_udc.h b/include/usb/mv_udc.h
index a9869f0..c1761b0 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];
};