arm: scu: Enable SCU speculative line fill
Seshendra Gadagottu [Mon, 4 Mar 2013 18:51:41 +0000 (10:51 -0800)]
Enable SCU speculative line fill by default for
T14x SOC.

Bug 1236318

Change-Id: I5f0e862f8a15779e560b96649fe29211615e7870
Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
Reviewed-on: http://git-master/r/212826
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>

arch/arm/kernel/smp_scu.c
arch/arm/mach-tegra/headsmp.S

index 5bc1a63..c1771f7 100644 (file)
@@ -54,6 +54,10 @@ void scu_enable(void __iomem *scu_base)
                return;
 
        scu_ctrl |= 1;
+#ifdef CONFIG_ARCH_TEGRA_14x_SOC
+       /* Enable SCU speculative line fill enable */
+       scu_ctrl |= 8;
+#endif
        __raw_writel(scu_ctrl, scu_base + SCU_CTRL);
 
        /*
index aee8270..35e1f62 100644 (file)
@@ -109,6 +109,9 @@ ENTRY(tegra_resume)
        mov32   r0, TEGRA_ARM_PERIF_BASE
        ldr     r1, [r0]
        orr     r1, r1, #1
+#ifdef CONFIG_ARCH_TEGRA_14x_SOC
+       orr     r1, r1, #8
+#endif
        str     r1, [r0]
 #endif /* CONFIG_HAVE_ARM_SCU */