Tegra: memmap the actual memory available for BL31
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 11 Aug 2015 08:50:14 +0000 (14:20 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 11 Aug 2015 08:50:14 +0000 (14:20 +0530)
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: Varun Wadekar <vwadekar@nvidia.com>
plat/nvidia/tegra/common/tegra_bl31_setup.c

index d6ea664466a03be5c6273ed26e7c2b04333626ad..7e2bebe25f0b5f0cdfa71ccb4ff4d6c13d26cd67 100644 (file)
@@ -195,7 +195,7 @@ void bl31_plat_arch_setup(void)
 {
        unsigned long bl31_base_pa = tegra_bl31_phys_base;
        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_size = BL31_RO_LIMIT - BL31_RO_BASE;
        const mmap_region_t *plat_mmio_map = NULL;