summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2011-05-25 15:18:28 -0700
committerColin Cross <ccross@android.com>2011-05-27 14:03:34 -0700
commit4bd1e6004b0891e75888a47af8c5705850b9b39e (patch)
tree4b17ed6cb8c3d5325452e948f22506efe911d2aa
parente66c6b7029729a2789a040e49a1b0c074417127e (diff)
downloadomap-sandbox/ccross/linux-omap-4460-2.6.39.tar.gz
ARM: omap4: Disable every other cache way on 4460sandbox/ccross/linux-omap-4460-2.6.39
Works around an unknown problem in the PL310 Change-Id: Ib030e18bea911af34507854636bd64affb5d6a56 Signed-off-by: Colin Cross <ccross@android.com>
-rw-r--r--arch/arm/mach-omap2/omap4-common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap4-common.c b/arch/arm/mach-omap2/omap4-common.c
index 9ef8c29dd817..e1dbf3b7a089 100644
--- a/arch/arm/mach-omap2/omap4-common.c
+++ b/arch/arm/mach-omap2/omap4-common.c
@@ -95,6 +95,13 @@ static int __init omap_l2_cache_init(void)
if (omap_rev() != OMAP4430_REV_ES1_0)
omap_smc1(0x109, aux_ctrl);
+ if (cpu_is_omap446x()) {
+ writel_relaxed(0xa5a5, l2cache_base + 0x900);
+ writel_relaxed(0xa5a5, l2cache_base + 0x908);
+ writel_relaxed(0xa5a5, l2cache_base + 0x904);
+ writel_relaxed(0xa5a5, l2cache_base + 0x90C);
+ }
+
/* Enable PL310 L2 Cache controller */
omap_smc1(0x102, 0x1);