Tegra: restore TZRAM settings on "System Resume"
authorVarun Wadekar <vwadekar@nvidia.com>
Thu, 2 Jun 2016 02:34:37 +0000 (19:34 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 28 Feb 2017 16:50:01 +0000 (08:50 -0800)
This patch restores the TZRAM fence and the access permissions
on exiting the "System Suspend" state.

Change-Id: Ie313fca5a861c73f80df9639b01115780fb6e217
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/tegra_pm.c

index ca49dabdbebb580a7f6726d2870f24115ef372e7..389346f4aea1dcfe9fe32524b248384341372731 100644 (file)
@@ -203,6 +203,12 @@ void tegra_pwr_domain_on_finish(const psci_power_state_t *target_state)
                plat_params = bl31_get_plat_params();
                tegra_memctrl_tzdram_setup(plat_params->tzdram_base,
                        plat_params->tzdram_size);
+
+               /*
+                * Set up the TZRAM memory aperture to allow only secure world
+                * access
+                */
+               tegra_memctrl_tzram_setup(TEGRA_TZRAM_BASE, TEGRA_TZRAM_SIZE);
        }
 
        /*