]> git.ipfire.org Git - people/ms/u-boot.git/blame - arch/arc/include/asm/cache.h
Merge git://git.denx.de/u-boot-mmc
[people/ms/u-boot.git] / arch / arc / include / asm / cache.h
CommitLineData
288aaacf
AB
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
379b3280
AB
12/*
13 * As of today we may handle any L1 cache line length right in software.
14 * For that essentially cache line length is a variable not constant.
15 * And to satisfy users of ARCH_DMA_MINALIGN we just use largest line length
16 * that may exist in either L1 or L2 (AKA SLC) caches on ARC.
17 */
18#define ARCH_DMA_MINALIGN 128
288aaacf 19
f13606b7
AB
20#if defined(ARC_MMU_ABSENT)
21#define CONFIG_ARC_MMU_VER 0
22#elif defined(CONFIG_ARC_MMU_V2)
812980bd
AB
23#define CONFIG_ARC_MMU_VER 2
24#elif defined(CONFIG_ARC_MMU_V3)
25#define CONFIG_ARC_MMU_VER 3
f13606b7
AB
26#elif defined(CONFIG_ARC_MMU_V4)
27#define CONFIG_ARC_MMU_VER 4
812980bd
AB
28#endif
29
6eb15e50
AB
30#ifndef __ASSEMBLY__
31
ef639e6f 32void cache_init(void);
6eb15e50
AB
33
34#endif /* __ASSEMBLY__ */
35
288aaacf 36#endif /* __ASM_ARC_CACHE_H */