]> git.sur5r.net Git - u-boot/commitdiff
QE/DeepSleep: add QE deepsleep support for arm
authorZhao Qiang <B45475@freescale.com>
Tue, 7 Apr 2015 07:09:54 +0000 (15:09 +0800)
committerYork Sun <yorksun@freescale.com>
Tue, 21 Apr 2015 17:19:20 +0000 (10:19 -0700)
Muram will power off during deepsleep, and the microcode of qe
in muram will be lost, it should be reload when resume.

Signed-off-by: Zhao Qiang <B45475@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
board/freescale/common/arm_sleep.c

index 8edf8788edc1dcc69b774f77acd54dff758d4f4b..c06b86291a3958cabbfcee83f27b58be9f058811 100644 (file)
@@ -19,6 +19,9 @@
 #endif
 
 #include "sleep.h"
+#ifdef CONFIG_U_QE
+#include "../../../drivers/qe/qe.h"
+#endif
 
 DECLARE_GLOBAL_DATA_PTR;
 
@@ -72,6 +75,9 @@ static void dp_resume_prepare(void)
        board_sleep_prepare();
        armv7_init_nonsec();
        cleanup_before_linux();
+#ifdef CONFIG_U_QE
+       u_qe_resume();
+#endif
 }
 
 int fsl_dp_resume(void)