summaryrefslogtreecommitdiff
path: root/plat/imx/imx8m/gpc_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'plat/imx/imx8m/gpc_common.c')
-rw-r--r--plat/imx/imx8m/gpc_common.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/plat/imx/imx8m/gpc_common.c b/plat/imx/imx8m/gpc_common.c
index 7a8837ef..62ed3ba9 100644
--- a/plat/imx/imx8m/gpc_common.c
+++ b/plat/imx/imx8m/gpc_common.c
@@ -23,6 +23,8 @@
#define FSL_SIP_CONFIG_GPC_PM_DOMAIN 0x03
#define M4_LPA_ACTIVE 0x5555
+#define DSP_LPA_ACTIVE 0xD
+#define DSP_LPA_DRAM_ACTIVE 0x1D
#define M4_LPA_IDLE 0x0
static uint32_t gpc_imr_offset[] = {
@@ -41,7 +43,12 @@ 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;
+ uint32_t lpa_status;
+
+ lpa_status = mmio_read_32(IMX_SRC_BASE + LPA_STATUS);
+
+ return (lpa_status == M4_LPA_ACTIVE || lpa_status == DSP_LPA_ACTIVE ||
+ lpa_status == DSP_LPA_DRAM_ACTIVE);
}
bool imx_is_m4_enabled(void)