[U-Boot] [[Patch V2] mips: 09/16] add cache description struct

Zhizhou Zhang etou.zh at gmail.com
Fri Aug 17 17:30:52 CEST 2012


Signed-off-by: Zhizhou Zhang <etou.zh at 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



More information about the U-Boot mailing list