ARM: l2c: omap2: remove explicit SMI calls to enable L2 cache
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 17 Mar 2014 16:35:46 +0000 (16:35 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 29 May 2014 23:49:38 +0000 (00:49 +0100)
Now that OMAP2 uses the write_sec method, we don't need to enable the L2
cache in OMAP2 specific code; this can be done via the normal mechanisms
in the L2C code.  Remove the OMAP2 specific code.

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 44472b7469c57adf5d333929cba5b01d8aa4d2a7..9ce52548a4843f9b3eb2b93039eb024091d78355 100644 (file)
@@ -222,11 +222,6 @@ static int __init omap_l2_cache_init(void)
                   L310_AUX_CTRL_DATA_PREFETCH |
                   L310_AUX_CTRL_INSTR_PREFETCH;
 
-       omap_smc1(0x109, aux_ctrl);
-
-       /* Enable PL310 L2 Cache controller */
-       omap_smc1(0x102, 0x1);
-
        outer_cache.write_sec = omap4_l2c310_write_sec;
        if (of_have_populated_dt())
                l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK);
This page took 0.038182 seconds and 5 git commands to generate.