diff options
author | Bai Ping <ping.bai@nxp.com> | 2018-08-21 12:45:00 +0800 |
---|---|---|
committer | Bai Ping <ping.bai@nxp.com> | 2018-08-21 12:45:00 +0800 |
commit | 218a3b4ed269cbe5fc932767e6077d158761fc29 (patch) | |
tree | 6ccae5d7ed84497b57a4593c11a543ef16117105 /plat/imx/imx8mm/imx8mm_psci.c | |
parent | 079eebba34b09d6f9ffeb70d999fb4a065008b1c (diff) |
plat: imx8mm: fix system resume hang when tz380 is enabled
If NOC is power down in DSM mode, the tz380 register config
will be lost, so we must re-init the tz380 after system resume.
the tz380 initialization must be done after DRAM has been out
of retention.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Diffstat (limited to 'plat/imx/imx8mm/imx8mm_psci.c')
-rw-r--r-- | plat/imx/imx8mm/imx8mm_psci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plat/imx/imx8mm/imx8mm_psci.c b/plat/imx/imx8mm/imx8mm_psci.c index 10e96063..eb82ec33 100644 --- a/plat/imx/imx8mm/imx8mm_psci.c +++ b/plat/imx/imx8mm/imx8mm_psci.c @@ -150,9 +150,9 @@ void imx_domain_suspend_finish(const psci_power_state_t *target_state) /* clear the system wakeup setting */ imx_set_sys_wakeup(core_id, false); imx_anamix_post_resume(); - noc_wrapper_post_resume(core_id); imx_clear_rbc_count(); dram_exit_retention(); + noc_wrapper_post_resume(core_id); } /* check the cluster level power status */ |