diff mbox

[U-Boot] QE/DeepSleep: add QE deepsleep support for arm

Message ID 1428390594-40284-1-git-send-email-B45475@freescale.com
State Accepted
Delegated to: York Sun
Headers show

Commit Message

Zhao Qiang April 7, 2015, 7:09 a.m. UTC
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>
---
 board/freescale/common/arm_sleep.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

York Sun April 23, 2015, 11:33 p.m. UTC | #1
On 04/07/2015 12:09 AM, Zhao Qiang wrote:
> 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>
> ---

Applied to fsl-qoriq master, awaiting upstream.

York
diff mbox

Patch

diff --git a/board/freescale/common/arm_sleep.c b/board/freescale/common/arm_sleep.c
index 8edf878..c06b862 100644
--- a/board/freescale/common/arm_sleep.c
+++ b/board/freescale/common/arm_sleep.c
@@ -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)