Commit 08012f48 authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: configure TZDRAM fence during early setup



This patch configures the TZDRAM fence during early platform
setup to allow the memory controller to enable DRAM encryption
before the TZDRAM actually gets used.

Change-Id: I0169ef9dda75699527b4e30c9e617a9036ba1d76
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent 207680c6
......@@ -171,6 +171,12 @@ void bl31_early_platform_setup(bl31_params_t *from_bl2,
/* Initialise crash console */
plat_crash_console_init();
/*
* Do initial security configuration to allow DRAM/device access.
*/
tegra_memctrl_tzdram_setup(plat_bl31_params_from_bl2.tzdram_base,
plat_bl31_params_from_bl2.tzdram_size);
/* Early platform setup for Tegra SoCs */
plat_early_platform_setup();
......@@ -203,12 +209,6 @@ void bl31_platform_setup(void)
*/
tegra_memctrl_setup();
/*
* Do initial security configuration to allow DRAM/device access.
*/
tegra_memctrl_tzdram_setup(plat_bl31_params_from_bl2.tzdram_base,
plat_bl31_params_from_bl2.tzdram_size);
/*
* Set up the TZRAM memory aperture to allow only secure world
* access
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment