xref: /openbmc/u-boot/arch/arc/include/asm/cache.h (revision 86bedaeb)
1 /*
2  * Copyright (C) 2013-2014 Synopsys, Inc. All rights reserved.
3  *
4  * SPDX-License-Identifier:	GPL-2.0+
5  */
6 
7 #ifndef __ASM_ARC_CACHE_H
8 #define __ASM_ARC_CACHE_H
9 
10 #include <config.h>
11 
12 #ifdef CONFIG_ARC_CACHE_LINE_SHIFT
13 #define CONFIG_SYS_CACHELINE_SIZE	(1 << CONFIG_ARC_CACHE_LINE_SHIFT)
14 #define ARCH_DMA_MINALIGN		CONFIG_SYS_CACHELINE_SIZE
15 #else
16 /* Satisfy users of ARCH_DMA_MINALIGN */
17 #define ARCH_DMA_MINALIGN		128
18 #endif
19 
20 #if defined(CONFIG_ARC_MMU_V2)
21 #define CONFIG_ARC_MMU_VER 2
22 #elif defined(CONFIG_ARC_MMU_V3)
23 #define CONFIG_ARC_MMU_VER 3
24 #endif
25 
26 #endif /* __ASM_ARC_CACHE_H */
27