diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-04-07 15:08:03 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-04-07 17:08:59 +0800 |
commit | cece288ccd11dec1f6b9317af75761d8d2fbce8d (patch) | |
tree | 356bb3caaa8560c7198ffe48ad2522bb996d5279 /plat/imx/imx8m/gpc_common.c | |
parent | bfbf223ed855d31085d0a6469aa94357ae0c3674 (diff) |
MLK-23752 plat: imx8m: Update the src gpr used for imx8mp lpa
On i.MX8MP, the SRC GPR9(0x94) is used by memory repair, so choose
SRC GPR10(0x98) as the LPA status sync register. Add use '==' instead
of '&' for LPA active statue check.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Diffstat (limited to 'plat/imx/imx8m/gpc_common.c')
-rw-r--r-- | plat/imx/imx8m/gpc_common.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plat/imx/imx8m/gpc_common.c b/plat/imx/imx8m/gpc_common.c index 5c996e20..400341ce 100644 --- a/plat/imx/imx8m/gpc_common.c +++ b/plat/imx/imx8m/gpc_common.c @@ -24,7 +24,6 @@ #define M4_LPA_ACTIVE 0x5555 #define M4_LPA_IDLE 0x0 -#define LPA_STATUS U(0x94) static uint32_t gpc_imr_offset[] = { IMR1_CORE0_A53, IMR1_CORE1_A53, @@ -42,7 +41,7 @@ struct plat_gic_ctx imx_gicv3_ctx; bool imx_m4_lpa_active(void) { - return mmio_read_32(IMX_SRC_BASE + LPA_STATUS) & M4_LPA_ACTIVE; + return mmio_read_32(IMX_SRC_BASE + LPA_STATUS) == M4_LPA_ACTIVE; } bool imx_is_m4_enabled(void) |