Commit b25f5801 authored by Varun Wadekar's avatar Varun Wadekar
Browse files

Tegra: memmap the actual memory available for BL31



On Tegra SoCs, the TZDRAM contains the BL31 and BL32 images. This patch
uses only the actual memory available for BL31 instead of mapping the
entire TZDRAM.
Signed-off-by: default avatarVarun Wadekar <vwadekar@nvidia.com>
parent c905376f
...@@ -195,7 +195,7 @@ void bl31_plat_arch_setup(void) ...@@ -195,7 +195,7 @@ void bl31_plat_arch_setup(void)
{ {
unsigned long bl31_base_pa = tegra_bl31_phys_base; unsigned long bl31_base_pa = tegra_bl31_phys_base;
unsigned long total_base = bl31_base_pa; unsigned long total_base = bl31_base_pa;
unsigned long total_size = TZDRAM_END - BL31_RO_BASE; unsigned long total_size = BL32_BASE - BL31_RO_BASE;
unsigned long ro_start = bl31_base_pa; unsigned long ro_start = bl31_base_pa;
unsigned long ro_size = BL31_RO_LIMIT - BL31_RO_BASE; unsigned long ro_size = BL31_RO_LIMIT - BL31_RO_BASE;
const mmap_region_t *plat_mmio_map = NULL; const mmap_region_t *plat_mmio_map = NULL;
......
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