diff options
author | Jacky Bai <ping.bai@nxp.com> | 2020-04-17 14:57:23 +0800 |
---|---|---|
committer | Jacky Bai <ping.bai@nxp.com> | 2020-04-23 20:26:45 +0800 |
commit | 5893554b4c4c613f4e656f65dca828730e1302d7 (patch) | |
tree | d42d4f6fac85e44b0fa587554a0984b9fd6af438 | |
parent | 0d6f7ad150169ffc2b238e4f76c03d9fbfc468e3 (diff) |
MLK-23805-02 plat: imx8mp: Fix the system wakeup setting when lpa active
when LPA is active, system wakeup source still need to be configured
to mask the non-wakeup irq.
Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
-rw-r--r-- | plat/imx/imx8m/imx8mp/imx8mp_psci.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plat/imx/imx8m/imx8mp/imx8mp_psci.c b/plat/imx/imx8m/imx8mp/imx8mp_psci.c index dfc8bb93..6c938b7b 100644 --- a/plat/imx/imx8m/imx8mp/imx8mp_psci.c +++ b/plat/imx/imx8m/imx8mp/imx8mp_psci.c @@ -56,6 +56,12 @@ void imx_domain_suspend(const psci_power_state_t *target_state) dram_enter_retention(); imx_anamix_override(true); imx_noc_wrapper_pre_suspend(core_id); + } else { + /* + * when A53 don't enter DSM, only need to + * set the system wakeup option. + */ + imx_set_sys_wakeup(core_id, true); } } } @@ -71,6 +77,8 @@ void imx_domain_suspend_finish(const psci_power_state_t *target_state) imx_anamix_override(false); dram_exit_retention(); imx_set_sys_lpm(core_id, false); + } else { + imx_set_sys_wakeup(core_id, false); } } |