summaryrefslogtreecommitdiff
path: root/arch/m68k/include/asm/cache.h
diff options
context:
space:
mode:
authorAnton Staaf <robotboy@chromium.org>2011-10-17 23:46:04 (GMT)
committerWolfgang Denk <wd@denx.de>2011-10-23 18:50:42 (GMT)
commita8fc12eb8e7ff6a97c45d921fdf28dcaaba9c8b6 (patch)
treec7dc3e047de38980770e2207b37a96a15322fcc9 /arch/m68k/include/asm/cache.h
parent44d6cbb6a77665caa14be2a561c4148446b3ba7e (diff)
downloadu-boot-fsl-qoriq-a8fc12eb8e7ff6a97c45d921fdf28dcaaba9c8b6.tar.xz
m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment
Signed-off-by: Anton Staaf <robotboy@chromium.org> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Jason Jin <jason.jin@freescale.com>
Diffstat (limited to 'arch/m68k/include/asm/cache.h')
-rw-r--r--arch/m68k/include/asm/cache.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/m68k/include/asm/cache.h b/arch/m68k/include/asm/cache.h
index 7c84e48..5c9bb30 100644
--- a/arch/m68k/include/asm/cache.h
+++ b/arch/m68k/include/asm/cache.h
@@ -207,4 +207,14 @@ void dcache_invalid(void);
#endif
+/*
+ * m68k uses 16 byte L1 data cache line sizes. Use this for DMA buffer
+ * alignment unless the board configuration has specified a new value.
+ */
+#ifdef CONFIG_SYS_CACHELINE_SIZE
+#define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
+#else
+#define ARCH_DMA_MINALIGN 16
+#endif
+
#endif /* __CACHE_H */