summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2013-07-10 03:16:43 +0200
committerMarek Vasut <marex@denx.de>2013-07-29 23:01:33 +0200
commit6dd30af0fa5c2f509f6f789789151268bdfcde0c (patch)
tree3478096a1ef9c17cb2ce09f0d3e55849afe34ecc /include
parentf19a343e732f4fd7ca0b0e067a1bfba930621553 (diff)
downloadu-boot-imx-6dd30af0fa5c2f509f6f789789151268bdfcde0c.zip
u-boot-imx-6dd30af0fa5c2f509f6f789789151268bdfcde0c.tar.gz
u-boot-imx-6dd30af0fa5c2f509f6f789789151268bdfcde0c.tar.bz2
usb: mv_udc: Add bounce buffer
The requests sent to the controller are not properly cache aligned most of the time, thus implement a simple bounce buffer to avoid problem with cache. 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')
-rw-r--r--include/usb/mv_udc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/usb/mv_udc.h b/include/usb/mv_udc.h
index c1761b0..c71516c 100644
--- a/include/usb/mv_udc.h
+++ b/include/usb/mv_udc.h
@@ -66,9 +66,13 @@ struct mv_udc {
struct mv_ep {
struct usb_ep ep;
- struct usb_request req;
struct list_head queue;
const struct usb_endpoint_descriptor *desc;
+
+ struct usb_request req;
+ uint8_t *b_buf;
+ uint32_t b_len;
+ uint8_t b_fast[64] __aligned(ARCH_DMA_MINALIGN);
};
struct mv_drv {