From ae42eb035e86f2fca98adc5f5b59543a49797877 Mon Sep 17 00:00:00 2001 From: Zhao Qiang Date: Wed, 25 Mar 2015 17:02:59 +0800 Subject: QE/DeepSleep: add QE deepsleep support for mpc85xx 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 Reviewed-by: York Sun --- board/freescale/common/mpc85xx_sleep.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'board/freescale/common') diff --git a/board/freescale/common/mpc85xx_sleep.c b/board/freescale/common/mpc85xx_sleep.c index f924e7f482..9e4132c64e 100644 --- a/board/freescale/common/mpc85xx_sleep.c +++ b/board/freescale/common/mpc85xx_sleep.c @@ -7,6 +7,9 @@ #include #include #include "sleep.h" +#ifdef CONFIG_U_QE +#include "../../../drivers/qe/qe.h" +#endif DECLARE_GLOBAL_DATA_PTR; @@ -65,6 +68,11 @@ static void dp_resume_prepare(void) disable_cpc_sram(); #endif enable_cpc(); + +#ifdef CONFIG_U_QE + u_qe_resume(); +#endif + } int fsl_dp_resume(void) -- cgit v1.2.1