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 <>
(cherry picked from commit 218a3b4ed269cbe5fc932767e6077d158761fc29)
2 files changed