deepsleep/qe: add qe deepsleep support
PATCH 1/1 deepsleep/qe: add qe deepsleep support
IRAM will power off and microcode will lost when system go into deepsleep, so upload it when resume deepsleep.
--- board/freescale/ls1021aqds/ls1021aqds.c | 4 +- drivers/qe/qe.c | 76 +++++++++++++++++++++++++++++++++ drivers/qe/qe.h | 8 ++++ include/linux/immap_qe.h | 6 +++ 4 files changed, 93 insertions(+), 1 deletion(-)
board/freescale/ls1021aqds/ls1021aqds.c +3 -1
@@ -309,8 +309,10 @@ int fsl_dp_resume(void)if (!is_warm_boot ())return 0 ; -enable_devices_ns_access (ns_dev,ARRAY_SIZE (ns_dev)); +#ifdef CONFIG_U_QE +u_qe_resume (); +#endif armv7_init_nonsec ();cleanup_before_linux ();
drivers/qe/qe.c +76 -0
82 lines not on this page · raw message
drivers/qe/qe.h +8 -0
@@ -11,6 +11,9 @@#define __QE_H__#include "common.h" +#ifdef CONFIG_U_QE +#include <linux/immap_qe.h> +#endif #define QE_NUM_OF_BRGS 16#define UCC_MAX_NUM 8
@@ -285,4 +288,9 @@ void ft_qe_setup(void *blob);void qe_init (uint qe_base);void qe_reset (void ); +#ifdef CONFIG_U_QE +void u_qe_resume (void ); +int u_qe_firmware_resume (const struct qe_firmware *firmware, +qe_map_t *qe_immrr); +#endif #endif /* __QE_H__ */
include/linux/immap_qe.h +6 -0
@@ -24,6 +24,12 @@#endif #endif +#ifdef CONFIG_LS102XA +#define QE_MURAM_SIZE 0x6000UL +#define MAX_QE_RISC 1 +#define QE_NUM_OF_SNUM 28 +#endif +/* QE I-RAM */ typedef struct qe_iram { u32 iadd; /* I-RAM Address Register */
Signature · 1 line
2.1.0.27.g96db324
PATCH 1/1 deepsleep/qe: add qe deepsleep support
Quoted 11 lines · Zhao Qiang
IRAM will power off and microcode will lost when system go into deepsleep, so upload it when resume deepsleep.
Signed-off-by Zhao Qiang <[email protected]>--- board/freescale/ls1021aqds/ls1021aqds.c | 4 +- drivers/qe/qe.c | 76 +++++++++++++++++++++++++++++++++ drivers/qe/qe.h | 8 ++++ include/linux/immap_qe.h | 6 +++ 4 files changed, 93 insertions(+), 1 deletion(-)
Qiang,
Please rebase this patch to top of git://git.denx.de/u-boot.git master tree. It has conflict with your another (merged) patch.
Thanks.
York
PATCH 1/1 deepsleep/qe: add qe deepsleep support
Quoted 13 lines · York Sun
Quoted 11 lines · Zhao Qiang
IRAM will power off and microcode will lost when system go into deepsleep, so upload it when resume deepsleep.
Signed-off-by Zhao Qiang <[email protected]>--- board/freescale/ls1021aqds/ls1021aqds.c | 4 +- drivers/qe/qe.c | 76 +++++++++++++++++++++++++++++++++ drivers/qe/qe.h | 8 ++++ include/linux/immap_qe.h | 6 +++ 4 files changed, 93 insertions(+), 1 deletion(-)
Quoted 5 lines
Qiang,
Please rebase this patch to top of
git://git.denx.de/u-boot.gitmaster tree. It has conflict with your another (merged) patch.
Please also check http://patchwork.ozlabs.org/patch/409183/ to make sure it can be applied cleanly.
York
PATCH 1/1 deepsleep/qe: add qe deepsleep support
In reply to York SunQuoted 20 lines · York Sun
-----Original Message-----
From: York Sun [mailto:yorksun at freescale.com]
Sent: Saturday, December 06, 2014 2:00 AM
To: Zhao Qiang-B45475; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH] deepsleep/qe: add qe deepsleep supportQuoted 7 lines · Zhao Qiang
IRAM will power off and microcode will lost when system go into deepsleep, so upload it when resume deepsleep.
Signed-off-by Zhao Qiang <[email protected]>--- board/freescale/ls1021aqds/ls1021aqds.c | 4 +- drivers/qe/qe.c | 76+++++++++++++++++++++++++++++++++
Quoted 4 lines
drivers/qe/qe.h | 8 ++++ include/linux/immap_qe.h | 6 +++ 4 files changed, 93 insertions(+), 1 deletion(-)
Quoted 4 lines
Qiang,
Please rebase this patch to top of
git://git.denx.de/u-boot.gitmaster tree. It has conflict with your another (merged) patch.
This patch is based on http://patchwork.ozlabs.org/patch/412943/ from Tang yuantian.
Quoted 4 lines
Thanks.
York