]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arc/include/asm/cache.h
arc: significant cache rework
[people/ms/u-boot.git] / arch / arc / include / asm / cache.h
index 27259612217265ae950ec165dc34fab310657ab8..432606a4335bd187a3884ee8c29b74a7dc2e8a9e 100644 (file)
 #define ARCH_DMA_MINALIGN              128
 #endif
 
-#if defined(CONFIG_ARC_MMU_V2)
+#if defined(ARC_MMU_ABSENT)
+#define CONFIG_ARC_MMU_VER 0
+#elif defined(CONFIG_ARC_MMU_V2)
 #define CONFIG_ARC_MMU_VER 2
 #elif defined(CONFIG_ARC_MMU_V3)
 #define CONFIG_ARC_MMU_VER 3
+#elif defined(CONFIG_ARC_MMU_V4)
+#define CONFIG_ARC_MMU_VER 4
 #endif
 
+#ifndef __ASSEMBLY__
+
+void cache_init(void);
+
+#endif /* __ASSEMBLY__ */
+
 #endif /* __ASM_ARC_CACHE_H */