Signed-off-by: Zhizhou Zhang <etou...@gmail.com>
---
 arch/mips/include/asm/cache.h |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/arch/mips/include/asm/cache.h b/arch/mips/include/asm/cache.h
index 5406d5d..45e546d 100644
--- a/arch/mips/include/asm/cache.h
+++ b/arch/mips/include/asm/cache.h
@@ -33,4 +33,15 @@
 #define ARCH_DMA_MINALIGN      128
 #endif
 
+/*
+ * Descriptor for a cache
+ */
+struct cache_desc {
+       unsigned int size;      /* total size */
+       unsigned int waysize;   /* Bytes per way */
+       unsigned short sets;    /* Number of lines per set */
+       unsigned char ways;     /* Number of ways */
+       unsigned char linesz;   /* Size of line in bytes */
+};  
+
 #endif /* __MIPS_CACHE_H__ */
-- 
1.7.9.5

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to