aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2014-03-17 12:35:46 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2014-05-29 19:49:38 -0400
commit7eab0039d3ef35bddaf02bb87c9009d484d90eea (patch)
treec1e4816e28b3e6fef3df50349894536119d19f9f /arch/arm/mach-omap2
parent36827edd2e3711749ff472949b9cf94f4cb700e9 (diff)
ARM: l2c: omap2: remove explicit SMI calls to enable L2 cache
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>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/omap4-common.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 44472b7469c5..9ce52548a484 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -222,11 +222,6 @@ static int __init omap_l2_cache_init(void)
222 L310_AUX_CTRL_DATA_PREFETCH | 222 L310_AUX_CTRL_DATA_PREFETCH |
223 L310_AUX_CTRL_INSTR_PREFETCH; 223 L310_AUX_CTRL_INSTR_PREFETCH;
224 224
225 omap_smc1(0x109, aux_ctrl);
226
227 /* Enable PL310 L2 Cache controller */
228 omap_smc1(0x102, 0x1);
229
230 outer_cache.write_sec = omap4_l2c310_write_sec; 225 outer_cache.write_sec = omap4_l2c310_write_sec;
231 if (of_have_populated_dt()) 226 if (of_have_populated_dt())
232 l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK); 227 l2x0_of_init(aux_ctrl, L2X0_AUX_CTRL_MASK);