Commit aba5dddc authored by Kalyani Chidambaram's avatar Kalyani Chidambaram Committed by Varun Wadekar
Browse files

Tegra: remove support for USE_COHERENT_MEM



This patch removes the support for 'USE_COHERENT_MEM' as
Tegra platforms no longer support the feature.

Change-Id: If1c80fc4e5974412572b3bc1fdf9e70b1ee5d4ec
Signed-off-by: default avatarKalyani Chidambaram <kalyanic@nvidia.com>
parent 42080d48
...@@ -313,9 +313,6 @@ void bl31_plat_arch_setup(void) ...@@ -313,9 +313,6 @@ void bl31_plat_arch_setup(void)
uint64_t code_base = BL_CODE_BASE; uint64_t code_base = BL_CODE_BASE;
uint64_t code_size = BL_CODE_END - BL_CODE_BASE; uint64_t code_size = BL_CODE_END - BL_CODE_BASE;
const mmap_region_t *plat_mmio_map = NULL; const mmap_region_t *plat_mmio_map = NULL;
#if USE_COHERENT_MEM
uint32_t coh_start, coh_size;
#endif
const plat_params_from_bl2_t *params_from_bl2 = bl31_get_plat_params(); const plat_params_from_bl2_t *params_from_bl2 = bl31_get_plat_params();
/* /*
...@@ -342,15 +339,6 @@ void bl31_plat_arch_setup(void) ...@@ -342,15 +339,6 @@ void bl31_plat_arch_setup(void)
code_size, code_size,
MT_CODE | MT_SECURE); MT_CODE | MT_SECURE);
#if USE_COHERENT_MEM
coh_start = total_base + (BL_COHERENT_RAM_BASE - BL31_RO_BASE);
coh_size = BL_COHERENT_RAM_END - BL_COHERENT_RAM_BASE;
mmap_add_region(coh_start, coh_start,
coh_size,
(uint8_t)MT_DEVICE | (uint8_t)MT_RW | (uint8_t)MT_SECURE);
#endif
/* map TZDRAM used by BL31 as coherent memory */ /* map TZDRAM used by BL31 as coherent memory */
if (TEGRA_TZRAM_BASE == tegra_bl31_phys_base) { if (TEGRA_TZRAM_BASE == tegra_bl31_phys_base) {
mmap_add_region(params_from_bl2->tzdram_base, mmap_add_region(params_from_bl2->tzdram_base,
......
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