Skip to content
Snippets Groups Projects
Commit a8fc12eb authored by Anton Staaf's avatar Anton Staaf Committed by Wolfgang Denk
Browse files

m68k: cache: define ARCH_DMA_MINALIGN for DMA buffer alignment


Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
Cc: Mike Frysinger <vapier@gentoo.org>
Cc: Lukasz Majewski <l.majewski@samsung.com>
Cc: Jason Jin <jason.jin@freescale.com>
parent 44d6cbb6
No related branches found
No related tags found
No related merge requests found
...@@ -207,4 +207,14 @@ void dcache_invalid(void); ...@@ -207,4 +207,14 @@ void dcache_invalid(void);
#endif #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 */ #endif /* __CACHE_H */
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment