Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d196483d authored by Sekhar Nori's avatar Sekhar Nori Committed by Russell King
Browse files

ARM: l2c: omap2+: get rid of redundant cache replacement policy setting



L2 cache initialization for OMAP4 redundantly sets the cache policy to
Round-Robin. This is not needed since thats the PL310 default anyway.

Removing this reduces the number of platform specific aux control
settings.

Signed-off-by: default avatarSekhar Nori <nsekhar@ti.com>
Acked-by: default avatarSantosh Shilimkar <santosh.shilimkar@ti.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 7a09b28e
Loading
Loading
Loading
Loading
+3 −4
Original line number Original line Diff line number Diff line
@@ -213,16 +213,15 @@ static int __init omap_l2_cache_init(void)
		return -ENOMEM;
		return -ENOMEM;


	/* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */
	/* 16-way associativity, parity disabled, way size - 64KB (es2.0 +) */
	aux_ctrl = L310_AUX_CTRL_CACHE_REPLACE_RR |
	aux_ctrl = L2C_AUX_CTRL_SHARED_OVERRIDE |
		   L2C_AUX_CTRL_SHARED_OVERRIDE |
		   L310_AUX_CTRL_DATA_PREFETCH |
		   L310_AUX_CTRL_DATA_PREFETCH |
		   L310_AUX_CTRL_INSTR_PREFETCH;
		   L310_AUX_CTRL_INSTR_PREFETCH;


	outer_cache.write_sec = omap4_l2c310_write_sec;
	outer_cache.write_sec = omap4_l2c310_write_sec;
	if (of_have_populated_dt())
	if (of_have_populated_dt())
		l2x0_of_init(aux_ctrl, 0xcd9fffff);
		l2x0_of_init(aux_ctrl, 0xcf9fffff);
	else
	else
		l2x0_init(l2cache_base, aux_ctrl, 0xcd9fffff);
		l2x0_init(l2cache_base, aux_ctrl, 0xcf9fffff);


	return 0;
	return 0;
}
}