board: ls1043ardb: Add micro QE support for ls1043ardb

Signed-off-by: Zhao Qiang <qiang.zhao@nxp.com>
Reviewed-by: York Sun <york.sun@nxp.com>
This commit is contained in:
Zhao Qiang 2016-02-05 10:04:17 +08:00 committed by York Sun
parent 3bf46e6a6d
commit d3e6d30cef
3 changed files with 17 additions and 4 deletions

View File

@ -21,6 +21,10 @@
#include <environment.h> #include <environment.h>
#include <fsl_sec.h> #include <fsl_sec.h>
#include "cpld.h" #include "cpld.h"
#ifdef CONFIG_U_QE
#include <fsl_qe.h>
#endif
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
@ -113,6 +117,10 @@ int board_init(void)
enable_layerscape_ns_access(); enable_layerscape_ns_access();
#endif #endif
#ifdef CONFIG_U_QE
u_qe_init();
#endif
return 0; return 0;
} }

View File

@ -192,8 +192,7 @@ void qe_init(uint qe_base)
#ifdef CONFIG_U_QE #ifdef CONFIG_U_QE
void u_qe_init(void) void u_qe_init(void)
{ {
uint qe_base = CONFIG_SYS_IMMR + 0x01400000; /* QE immr base */ qe_immr = (qe_map_t *)(CONFIG_SYS_IMMR + QE_IMMR_OFFSET);
qe_immr = (qe_map_t *)qe_base;
u_qe_upload_firmware((const void *)CONFIG_SYS_QE_FW_ADDR); u_qe_upload_firmware((const void *)CONFIG_SYS_QE_FW_ADDR);
out_be32(&qe_immr->iram.iready, QE_IRAM_READY); out_be32(&qe_immr->iram.iready, QE_IRAM_READY);
@ -204,9 +203,8 @@ void u_qe_init(void)
void u_qe_resume(void) void u_qe_resume(void)
{ {
qe_map_t *qe_immrr; qe_map_t *qe_immrr;
uint qe_base = CONFIG_SYS_IMMR + QE_IMMR_OFFSET; /* QE immr base */
qe_immrr = (qe_map_t *)qe_base;
qe_immrr = (qe_map_t *)(CONFIG_SYS_IMMR + QE_IMMR_OFFSET);
u_qe_firmware_resume((const void *)CONFIG_SYS_QE_FW_ADDR, qe_immrr); u_qe_firmware_resume((const void *)CONFIG_SYS_QE_FW_ADDR, qe_immrr);
out_be32(&qe_immrr->iram.iready, QE_IRAM_READY); out_be32(&qe_immrr->iram.iready, QE_IRAM_READY);
} }

View File

@ -268,6 +268,13 @@
#define CONFIG_ETHPRIME "FM1@DTSEC3" #define CONFIG_ETHPRIME "FM1@DTSEC3"
#endif #endif
/* QE */
#if !defined(CONFIG_SD_BOOT) && !defined(CONFIG_NAND_BOOT) && \
!defined(CONFIG_QSPI_BOOT)
#define CONFIG_U_QE
#endif
#define CONFIG_SYS_QE_FW_ADDR 0x60600000
/* USB */ /* USB */
#define CONFIG_HAS_FSL_XHCI_USB #define CONFIG_HAS_FSL_XHCI_USB
#ifdef CONFIG_HAS_FSL_XHCI_USB #ifdef CONFIG_HAS_FSL_XHCI_USB