]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: realview: set up cache correctly on the PB11MPCore
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 30 Dec 2015 20:05:09 +0000 (21:05 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 31 Dec 2015 15:49:17 +0000 (16:49 +0100)
The L2 cache comes up in a "safe mode" on the PB11MPCore, as
it has several issues. This sets it up properly with the right
size and associativity, also requiring the outer sync to be
disabled for the machine to boot properly.

Cc: Russell King <linux@arm.linux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/arm-realview-pb11mp.dts

index 896bd21d320c1f3494990210de24d61fa9df5220..da755c9851a731e825a7083bc16fbda2aa6b6640 100644 (file)
                             <0 31 IRQ_TYPE_LEVEL_HIGH>;
                cache-unified;
                cache-level = <2>;
+               /*
+                * Override default cache size, sets and
+                * associativity as these may be erroneously set
+                * up by boot loader(s), probably for safety
+                * since th outer sync operation can cause the
+                * cache to hang unless disabled.
+                */
+               cache-size = <1048576>; // 1MB
+               cache-sets = <4096>;
+               cache-line-size = <32>;
+               arm,shared-override;
+               arm,parity-enable;
+               arm,outer-sync-disable;
        };
 
        scu@1f000000 {