From 223844af41655f659e8760f857c464f26f198651 Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Mon, 12 Jun 2017 16:47:16 -0700 Subject: [PATCH] Tegra210: memmap all the IRAM memory banks This patch memmaps all the IRAM memory banks during boot. The BPMP firmware might place the channels in any of the IRAMs, so it is better to map all the banks to avoid surprises. Change-Id: Ia009a65d227ee50fbb23e511ce509daf41b877ee Signed-off-by: Varun Wadekar --- plat/nvidia/tegra/include/t210/tegra_def.h | 3 +-- plat/nvidia/tegra/soc/t210/plat_setup.c | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/plat/nvidia/tegra/include/t210/tegra_def.h b/plat/nvidia/tegra/include/t210/tegra_def.h index 5565c7288..8d71cae83 100644 --- a/plat/nvidia/tegra/include/t210/tegra_def.h +++ b/plat/nvidia/tegra/include/t210/tegra_def.h @@ -35,8 +35,7 @@ /******************************************************************************* * iRAM memory constants ******************************************************************************/ -#define TEGRA_IRAMA_BASE 0x40000000 -#define TEGRA_IRAMB_BASE 0x40010000 +#define TEGRA_IRAM_BASE 0x40000000 /******************************************************************************* * GIC memory map diff --git a/plat/nvidia/tegra/soc/t210/plat_setup.c b/plat/nvidia/tegra/soc/t210/plat_setup.c index 451da13e6..aefe1aa79 100644 --- a/plat/nvidia/tegra/soc/t210/plat_setup.c +++ b/plat/nvidia/tegra/soc/t210/plat_setup.c @@ -25,9 +25,7 @@ * Table of regions to map using the MMU. */ static const mmap_region_t tegra_mmap[] = { - MAP_REGION_FLAT(TEGRA_IRAMA_BASE, 0x10000, /* 64KB */ - MT_DEVICE | MT_RW | MT_SECURE), - MAP_REGION_FLAT(TEGRA_IRAMB_BASE, 0x10000, /* 64KB */ + MAP_REGION_FLAT(TEGRA_IRAM_BASE, 0x40000, /* 256KB */ MT_DEVICE | MT_RW | MT_SECURE), MAP_REGION_FLAT(MMIO_RANGE_0_ADDR, MMIO_RANGE_SIZE, MT_DEVICE | MT_RW | MT_SECURE), -- 2.39.5