]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: l2c: omap2: remove cache size override
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Mar 2014 16:53:31 +0000 (16:53 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 14 Apr 2014 10:21:42 +0000 (11:21 +0100)
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-omap2/omap4-common.c

index 9ce52548a4843f9b3eb2b93039eb024091d78355..06c6a181d6ad4b2a7a6adcbf77bee69238e3a8c5 100644 (file)
@@ -213,20 +213,18 @@ static int __init omap_l2_cache_init(void)
                return -ENOMEM;
 
        /* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */
-       aux_ctrl = L310_AUX_CTRL_ASSOCIATIVITY_16 |
-                  L310_AUX_CTRL_CACHE_REPLACE_RR |
+       aux_ctrl = L310_AUX_CTRL_CACHE_REPLACE_RR |
                   L310_AUX_CTRL_NS_LOCKDOWN |
                   L310_AUX_CTRL_NS_INT_CTRL |
-                  L2C_AUX_CTRL_WAY_SIZE(3) |
                   L2C_AUX_CTRL_SHARED_OVERRIDE |
                   L310_AUX_CTRL_DATA_PREFETCH |
                   L310_AUX_CTRL_INSTR_PREFETCH;
 
        outer_cache.write_sec = omap4_l2c310_write_sec;
        if (of_have_populated_dt())
-               l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK);
+               l2x0_of_init(aux_ctrl, 0xc19fffff);
        else
-               l2x0_init(l2cache_base, aux_ctrl, L2X0_AUX_CTRL_MASK);
+               l2x0_init(l2cache_base, aux_ctrl, 0xc19fffff);
 
        return 0;
 }