Tegra186: save/restore BL31 context to/from TZDRAM
authorVarun Wadekar <vwadekar@nvidia.com>
Fri, 18 Mar 2016 20:07:33 +0000 (13:07 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 23 Mar 2017 21:17:32 +0000 (14:17 -0700)
commit68c7de6fa924723df14bf8ff80159c2cda718ed6
treeb5cef1fef34e689dbc06887c5cb397aec3eaab12
parente64ce3abb3d0c320a5e5293b9864c9762023c5fb
Tegra186: save/restore BL31 context to/from TZDRAM

This patch adds support to save the BL31 state to the TZDRAM
before entering system suspend. The TZRAM loses state during
system suspend and so we need to copy the entire BL31 code to
TZDRAM before entering the state.

In order to restore the state on exiting system suspend, a new
CPU reset handler is implemented which gets copied to TZDRAM
during boot. TO keep things simple we use this same reset handler
for booting secondary CPUs too.

Change-Id: I770f799c255d22279b5cdb9b4d587d3a4c54fad7
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/include/drivers/memctrl_v2.h
plat/nvidia/tegra/include/drivers/smmu.h
plat/nvidia/tegra/include/tegra_private.h
plat/nvidia/tegra/soc/t186/drivers/smmu/smmu.c
plat/nvidia/tegra/soc/t186/plat_psci_handlers.c
plat/nvidia/tegra/soc/t186/plat_secondary.c
plat/nvidia/tegra/soc/t186/plat_trampoline.S [new file with mode: 0644]
plat/nvidia/tegra/soc/t186/platform_t186.mk