diff options
author | Zhao Qiang <B45475@freescale.com> | 2014-12-15 15:50:49 +0800 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2014-12-15 09:16:49 -0800 |
commit | 9c7c86f431866ee102cc68e6b5152f63250f49dc (patch) | |
tree | 3ed63b895b39e6c9196cf580f7edb816a446efb8 /drivers/qe | |
parent | d4be1753c658498ad30af90c801d9427ca24b2e4 (diff) | |
download | u-boot-imx-9c7c86f431866ee102cc68e6b5152f63250f49dc.zip u-boot-imx-9c7c86f431866ee102cc68e6b5152f63250f49dc.tar.gz u-boot-imx-9c7c86f431866ee102cc68e6b5152f63250f49dc.tar.bz2 |
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: Zhao Qiang <B45475@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'drivers/qe')
-rw-r--r-- | drivers/qe/qe.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/qe/qe.c b/drivers/qe/qe.c index bc94673..d24651b 100644 --- a/drivers/qe/qe.c +++ b/drivers/qe/qe.c @@ -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,8 +338,12 @@ 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"); return -EINVAL; @@ -470,8 +477,12 @@ 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"); return -EINVAL; |