3 * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __SPARC_CACHE_H__
9 #define __SPARC_CACHE_H__
11 #include <linux/config.h>
12 #include <asm/processor.h>
15 * If CONFIG_SYS_CACHELINE_SIZE is defined use it for DMA alignment. Otherwise
16 * use 32-bytes, the cacheline size for Sparc.
18 #ifdef CONFIG_SYS_CACHELINE_SIZE
19 #define ARCH_DMA_MINALIGN CONFIG_SYS_CACHELINE_SIZE
21 #define ARCH_DMA_MINALIGN 32