From a8fc12eb8e7ff6a97c45d921fdf28dcaaba9c8b6 Mon Sep 17 00:00:00 2001 From: Anton Staaf Date: Mon, 17 Oct 2011 16:46:04 -0700 Subject: [PATCH] m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment Signed-off-by: Anton Staaf Cc: Mike Frysinger Cc: Lukasz Majewski Cc: Jason Jin --- arch/m68k/include/asm/cache.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/m68k/include/asm/cache.h b/arch/m68k/include/asm/cache.h index 7c84e48471..5c9bb30835 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 */ -- 2.39.5