Skip to content
Snippets Groups Projects
Commit 9c7c86f4 authored by Zhao Qiang's avatar Zhao Qiang Committed by York Sun
Browse files

qe/deep-sleep: modify qe deep-sleep for generic board


Deep sleep for generic board is supported now, modify qe
deep-sleep code to adapt it.

Signed-off-by: default avatarZhao Qiang <B45475@freescale.com>
Reviewed-by: default avatarYork Sun <yorksun@freescale.com>
parent d4be1753
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,9 @@
#include "asm/io.h"
#include "linux/immap_qe.h"
#include "qe.h"
#ifdef CONFIG_LS102XA
#include <asm/arch/immap_ls102xa.h>
#endif
#define MPC85xx_DEVDISR_QE_DISABLE 0x1
......@@ -335,7 +338,11 @@ int qe_upload_firmware(const struct qe_firmware *firmware)
size_t length;
const struct qe_header *hdr;
#ifdef CONFIG_DEEP_SLEEP
#ifdef CONFIG_LS102XA
struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR;
#else
ccsr_gur_t *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
#endif
#endif
if (!firmware) {
printf("Invalid address\n");
......@@ -470,7 +477,11 @@ int u_qe_upload_firmware(const struct qe_firmware *firmware)
size_t length;
const struct qe_header *hdr;
#ifdef CONFIG_DEEP_SLEEP
#ifdef CONFIG_LS102XA
struct ccsr_gur __iomem *gur = (void *)CONFIG_SYS_FSL_GUTS_ADDR;
#else
ccsr_gur_t __iomem *gur = (void *)(CONFIG_SYS_MPC85xx_GUTS_ADDR);
#endif
#endif
if (!firmware) {
printf("Invalid address\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment