[PATCH 1/3] ARM: EXYNOS: Invalidate L2 cache with SMC command before enabling
From: Tomasz Figa
Date: Fri Jun 13 2014 - 10:40:29 EST
Signed-off-by: Tomasz Figa <t.figa@xxxxxxxxxxx>
---
arch/arm/mach-exynos/firmware.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
index d8544537..a688757 100644
--- a/arch/arm/mach-exynos/firmware.c
+++ b/arch/arm/mach-exynos/firmware.c
@@ -110,6 +110,8 @@ static void exynos_l2_write_sec(unsigned long val, void __iomem *base,
{
switch (reg) {
case L2X0_CTRL:
+ if (val & L2X0_CTRL_EN)
+ exynos_smc(SMC_CMD_L2X0INVALL, 0, 0, 0);
exynos_smc(SMC_CMD_L2X0CTRL, val, 0, 0);
break;
--
1.9.3
--------------000206000902070303060701
Content-Type: text/x-patch;
name="0002-ARM-mm-l2x0-Add-support-for-overriding-prefetch-sett.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
filename*0="0002-ARM-mm-l2x0-Add-support-for-overriding-prefetch-sett.pa";
filename*1="tch"