Tom Rini 71c5de4f4a ehci-hcd.c, musb_core, usb.h: Add USB_DMA_MINALIGN define for cache alignment
The USB spec says that 32 bytes is the minimum required alignment.
However on some platforms we have a larger minimum requirement for cache
coherency.  In those cases, use that value rather than the USB spec
minimum.  We add a cpp check to <usb.h> to define USB_DMA_MINALIGN and
make use of it in ehci-hcd.c and musb_core.h.  We cannot use MAX() here
as we are not allowed to have tests inside of align(...).

Signed-off-by: Tom Rini <trini@ti.com>
[marek.vasut]: introduce some crazy macro voodoo
Signed-off-by: Marek Vasut <marex@denx.de>
[ilya.yanok]: moved external buffer fixes to separate patch,
we use {ALLOC,DEFINE}_ALIGN_BUFFER macros with alignment of USB_DMA_MINALIGN
for qh_list, qh and qtd structures to make sure they are proper aligned
for both controller and cache operations.
Signed-off-by: Ilya Yanok <ilya.yanok@cogentembedded.com>
2012-07-18 14:43:29 +02:00
..
2012-07-07 14:07:38 +02:00
2010-04-13 09:13:04 +02:00
2011-08-01 15:19:40 +02:00
2012-05-15 08:31:37 +02:00
2012-05-15 08:31:30 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2010-01-27 21:23:14 +01:00
2008-05-21 00:14:08 +02:00
2004-10-10 18:03:33 +00:00
2012-03-18 20:10:02 +01:00
2008-05-10 11:44:55 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2012-03-27 22:05:28 +02:00
2012-06-21 20:53:09 +02:00
2009-10-27 20:58:25 +01:00
2006-04-16 10:51:58 +02:00
2009-01-24 00:23:09 +01:00
2008-05-21 00:14:08 +02:00
2009-09-04 21:54:52 +02:00
2011-10-22 01:22:21 +02:00
2012-06-21 20:53:09 +02:00
2010-09-19 19:29:47 +02:00
2010-11-28 21:58:51 +01:00
2011-08-04 23:34:02 +02:00
2012-05-15 08:31:40 +02:00
2008-03-26 23:38:54 +01:00
2011-08-01 15:19:40 +02:00
2011-05-19 22:22:44 +02:00
2012-05-15 08:31:34 +02:00
2008-10-18 21:54:03 +02:00
2011-04-30 23:29:55 +02:00
2012-05-25 10:39:23 +02:00
2001-11-03 22:15:16 +00:00
2012-05-25 09:15:10 +02:00
2002-09-17 21:37:55 +00:00
2011-09-10 00:04:01 +02:00
2003-06-27 21:31:46 +00:00
2008-10-18 21:54:03 +02:00
2012-05-08 18:02:22 -05:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-10-18 21:54:03 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2010-03-16 16:01:29 -04:00
2004-10-10 21:27:30 +00:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2008-10-18 21:54:03 +02:00
2012-03-12 11:06:48 -04:00
2012-05-22 10:14:34 +02:00
2008-05-21 00:14:08 +02:00
2010-03-12 23:06:04 +01:00
2012-03-30 22:46:00 +02:00
2012-03-26 23:09:23 +02:00
2012-05-15 08:31:34 +02:00
2011-10-05 22:03:11 +02:00
2011-03-27 19:19:54 +02:00
2008-10-18 21:54:03 +02:00
2004-03-25 15:14:43 +00:00
2008-05-21 00:14:08 +02:00
2008-05-21 00:14:08 +02:00
2012-05-20 08:32:32 +02:00
2011-08-04 23:34:02 +02:00
2011-08-04 23:34:02 +02:00
2011-08-01 15:19:40 +02:00
2011-06-22 20:00:51 +02:00
2009-10-03 10:17:56 +02:00
2004-02-23 16:11:30 +00:00
2012-05-15 08:31:40 +02:00
2011-12-07 08:45:51 +01:00
2012-05-15 08:31:37 +02:00
2011-04-29 07:32:48 -05:00
2011-09-30 22:00:55 +02:00
2012-05-15 08:31:25 +02:00
2004-12-16 21:44:03 +00:00
2006-06-14 18:14:56 +02:00
2009-01-28 19:57:27 +01:00
2011-08-01 15:19:40 +02:00
2008-10-18 21:54:03 +02:00
2010-05-28 10:56:04 -04:00
2011-08-01 15:19:40 +02:00
2006-07-21 15:24:56 +02:00