summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Nelson <eric.nelson@boundarydevices.com>2012-03-15 18:33:24 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-03-29 07:57:10 +0200
commit2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7 (patch)
tree42630805919c9bfffbef27e670ae4754a129d028 /include
parent345cd3584cd90288abd4256678fbfa7d2443bd00 (diff)
downloadu-boot-imx-2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7.zip
u-boot-imx-2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7.tar.gz
u-boot-imx-2c4b3c19a1fe1c4e9ef1ec457cf34821368288d7.tar.bz2
net: force PKTALIGN to ARCH_DMA_MINALIGN
This will prevent the need for architectures whose DMA alignment is greater than 32 to have bounce buffers. Signed-off-by: Eric Nelson <eric.nelson@boundarydevices.com>
Diffstat (limited to 'include')
-rw-r--r--include/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net.h b/include/net.h
index 5560785..ee11f82 100644
--- a/include/net.h
+++ b/include/net.h
@@ -16,6 +16,7 @@
#include <commproc.h>
#endif /* CONFIG_8xx */
+#include <asm/cache.h>
#include <asm/byteorder.h> /* for nton* / ntoh* stuff */
@@ -31,7 +32,7 @@
# define PKTBUFSRX 4
#endif
-#define PKTALIGN 32
+#define PKTALIGN ARCH_DMA_MINALIGN
/* IPv4 addresses are always 32 bits in size */
typedef u32 IPaddr_t;