Commit cef3d92c authored by Russell King's avatar Russell King

ARM: l2c: omap2: remove ES1.0 support

Santosh says:
> But we should kill all of that since we long back decided to remove
> ES1.0 related code. The mach-omap code alreasy has removed the ES1.0
> compatibility so feel free to remove any specific ES1.0
> related stuff. That silicon is long dead.
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 03a166e2
...@@ -182,7 +182,7 @@ static void omap4_l2x0_set_debug(unsigned long val) ...@@ -182,7 +182,7 @@ static void omap4_l2x0_set_debug(unsigned long val)
static int __init omap_l2_cache_init(void) static int __init omap_l2_cache_init(void)
{ {
u32 aux_ctrl = 0; u32 aux_ctrl;
/* /*
* To avoid code running on other OMAPs in * To avoid code running on other OMAPs in
...@@ -196,27 +196,18 @@ static int __init omap_l2_cache_init(void) ...@@ -196,27 +196,18 @@ static int __init omap_l2_cache_init(void)
if (WARN_ON(!l2cache_base)) if (WARN_ON(!l2cache_base))
return -ENOMEM; return -ENOMEM;
/* /* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */
* 16-way associativity, parity disabled aux_ctrl = (1 << L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT) |
* Way size - 32KB (es1.0)
* Way size - 64KB (es2.0 +)
*/
aux_ctrl = ((1 << L2X0_AUX_CTRL_ASSOCIATIVITY_SHIFT) |
(0x1 << 25) | (0x1 << 25) |
(0x1 << L2X0_AUX_CTRL_NS_LOCKDOWN_SHIFT) | (0x1 << L2X0_AUX_CTRL_NS_LOCKDOWN_SHIFT) |
(0x1 << L2X0_AUX_CTRL_NS_INT_CTRL_SHIFT)); (0x1 << L2X0_AUX_CTRL_NS_INT_CTRL_SHIFT)) |
(0x3 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT) |
if (omap_rev() == OMAP4430_REV_ES1_0) {
aux_ctrl |= 0x2 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT;
} else {
aux_ctrl |= ((0x3 << L2X0_AUX_CTRL_WAY_SIZE_SHIFT) |
(1 << L2X0_AUX_CTRL_SHARE_OVERRIDE_SHIFT) | (1 << L2X0_AUX_CTRL_SHARE_OVERRIDE_SHIFT) |
(1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) | (1 << L2X0_AUX_CTRL_DATA_PREFETCH_SHIFT) |
(1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) | (1 << L2X0_AUX_CTRL_INSTR_PREFETCH_SHIFT) |
(1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT)); (1 << L2X0_AUX_CTRL_EARLY_BRESP_SHIFT);
}
if (omap_rev() != OMAP4430_REV_ES1_0) omap_smc1(0x109, aux_ctrl);
omap_smc1(0x109, aux_ctrl);
/* Enable PL310 L2 Cache controller */ /* Enable PL310 L2 Cache controller */
omap_smc1(0x102, 0x1); omap_smc1(0x102, 0x1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment