summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-06-05 17:38:51 +0200
committerChanho Park <chanho61.park@samsung.com>2014-11-18 11:43:25 +0900
commitdb97012e8a30e311cb3ea19f9d6f149c7507ccb4 (patch)
treeb2379fef99ecc7e2b79e587771ce75a0ffc40516 /arch
parent03841ff6537d8b69f0a2017394710fb0a28b1f98 (diff)
downloadlinux-3.10-db97012e8a30e311cb3ea19f9d6f149c7507ccb4.tar.gz
linux-3.10-db97012e8a30e311cb3ea19f9d6f149c7507ccb4.tar.bz2
linux-3.10-db97012e8a30e311cb3ea19f9d6f149c7507ccb4.zip
ARM: EXYNOS: firmware: Implement l2x0_resume operation
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-exynos/firmware.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm/mach-exynos/firmware.c b/arch/arm/mach-exynos/firmware.c
index 3f98bf78c09..bce0b972ebd 100644
--- a/arch/arm/mach-exynos/firmware.c
+++ b/arch/arm/mach-exynos/firmware.c
@@ -15,6 +15,7 @@
#include <linux/of_address.h>
#include <asm/firmware.h>
+#include <asm/hardware/cache-l2x0.h>
#include <mach/map.h>
@@ -49,6 +50,17 @@ static int exynos_l2x0_init(void)
return 0;
}
+static int exynos_l2x0_resume(void)
+{
+ exynos_smc(SMC_CMD_L2X0SETUP1, l2x0_saved_regs.tag_latency,
+ l2x0_saved_regs.data_latency, l2x0_saved_regs.prefetch_ctrl);
+ exynos_smc(SMC_CMD_L2X0SETUP2, 0x3, 0x7C470001, 0xC200FFFF);
+ exynos_smc(SMC_CMD_L2X0INVALL, 0, 0, 0);
+ exynos_smc(SMC_CMD_L2X0CTRL, 1, 0, 0);
+
+ return 0;
+}
+
static int exynos_suspend(unsigned long resume_addr)
{
writel(EXYNOS_SLEEP_MAGIC, S5P_VA_SYSRAM_NS + 0xC);
@@ -77,6 +89,7 @@ static const struct firmware_ops exynos_firmware_ops = {
.set_cpu_boot_addr = exynos_set_cpu_boot_addr,
.cpu_boot = exynos_cpu_boot,
.l2x0_init = exynos_l2x0_init,
+ .l2x0_resume = exynos_l2x0_resume,
.suspend = exynos_suspend,
.resume = exynos_resume,
.c15resume = exynos_c15resume,