diff mbox

[3/5] OMAP4: fix PL310 prefetch offset setting

Message ID 1321929953-5956-4-git-send-email-mans.rullgard@linaro.org
State New
Headers show

Commit Message

Mans Rullgard Nov. 22, 2011, 2:45 a.m. UTC
The old value needs to be cleared before inserting the
new one.

Signed-off-by: Mans Rullgard <mans.rullgard@linaro.org>
---
 arch/arm/mach-omap2/omap4-common.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 03b13e3..be74f78 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -184,6 +184,7 @@  static int __init omap_l2_cache_init(void)
 			(1 << L2X0_PREFETCH_DOUBLE_LINEFILL_SHIFT);
 
 	if (cpu_is_omap446x() || (omap_rev() >= OMAP4430_REV_ES2_2)) {
+		por_ctrl &= ~0x1f;
 		por_ctrl |= L2X0_POR_OFFSET_VALUE;
 		omap_smc1(0x113, por_ctrl);
 	}