ARM: EXYNOS: pm: Add support for firmware-based L2X0 resume
authorTomasz Figa <t.figa@samsung.com>
Wed, 5 Jun 2013 15:40:11 +0000 (17:40 +0200)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:43:25 +0000 (11:43 +0900)
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
arch/arm/mach-exynos/pm.c

index e46ac76..d5bac0d 100644 (file)
@@ -21,6 +21,7 @@
 #include <linux/clk.h>
 
 #include <asm/cacheflush.h>
+#include <asm/firmware.h>
 #include <asm/hardware/cache-l2x0.h>
 #include <asm/smp_scu.h>
 
@@ -273,7 +274,8 @@ static void exynos_pm_resume(void)
 {
        unsigned long tmp;
 #ifdef CONFIG_CACHE_L2X0
-       outer_resume();
+       if (call_firmware_op(l2x0_resume) < 0)
+               outer_resume();
 #endif
        /*
         * If PMU failed while entering sleep mode, WFI will be