]> git.sur5r.net Git - u-boot/blobdiff - arch/mips/include/asm/cache.h
mips: Let cache.h be included from assembly source
[u-boot] / arch / mips / include / asm / cache.h
index 806bd26ba989e4e4954988940b19028c37a901ab..83165d5c9705fcc2f41eb501eb363b15e556aba3 100644 (file)
 
 #define ARCH_DMA_MINALIGN      (L1_CACHE_BYTES)
 
+/*
+ * CONFIG_SYS_CACHELINE_SIZE is still used in various drivers primarily for
+ * DMA buffer alignment. Satisfy those drivers by providing it as a synonym
+ * of ARCH_DMA_MINALIGN for now.
+ */
+#define CONFIG_SYS_CACHELINE_SIZE ARCH_DMA_MINALIGN
+
+#ifndef __ASSEMBLY__
+/**
+ * mips_cache_probe() - Probe the properties of the caches
+ *
+ * Call this to probe the properties such as line sizes of the caches
+ * present in the system, if any. This must be done before cache maintenance
+ * functions such as flush_cache may be called.
+ */
+void mips_cache_probe(void);
+#endif
+
 #endif /* __MIPS_CACHE_H__ */