ARM: l2c: realview: improve commentry about the L2 cache requirements
[firefly-linux-kernel-4.4.55.git] / arch / arm / mach-realview / realview_pb1176.c
index c5eade76461be3cf2faa4d6dffbb9becc7cbb872..e3bddb5ab10fba8b25b1033dedd8203b6707043b 100644 (file)
@@ -355,7 +355,13 @@ static void __init realview_pb1176_init(void)
        int i;
 
 #ifdef CONFIG_CACHE_L2X0
-       /* 128Kb (16Kb/way) 8-way associativity. evmon/parity/share enabled. */
+       /*
+        * The PL220 needs to be manually configured as the hardware
+        * doesn't report the correct sizes.
+        * 128kB (16kB/way), 8-way associativity, event monitor and
+        * parity enabled, ignore share bit, no force write allocate
+        * Bits:  .... ...0 0111 0011 0000 .... .... ....
+        */
        l2x0_init(__io_address(REALVIEW_PB1176_L220_BASE), 0x00730000, 0xfe000fff);
 #endif