summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/arch/arm64/Kconfig2
-rw-r--r--src/soc/nvidia/tegra210/ramstage.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/arm64/Kconfig b/src/arch/arm64/Kconfig
index 0438ded429..c7eafe649a 100644
--- a/src/arch/arm64/Kconfig
+++ b/src/arch/arm64/Kconfig
@@ -17,7 +17,7 @@ config ARCH_ROMSTAGE_ARM64
config ARCH_RAMSTAGE_ARM64
bool
select ARCH_ARM64
- select RAMSTAGE_CBMEM_TOP_ARG if !SOC_NVIDIA_TEGRA210
+ select RAMSTAGE_CBMEM_TOP_ARG
source src/arch/arm64/armv8/Kconfig
diff --git a/src/soc/nvidia/tegra210/ramstage.c b/src/soc/nvidia/tegra210/ramstage.c
index 13fa1c6a02..2e01523060 100644
--- a/src/soc/nvidia/tegra210/ramstage.c
+++ b/src/soc/nvidia/tegra210/ramstage.c
@@ -15,6 +15,7 @@
#include <arch/lib_helpers.h>
#include <arch/stages.h>
+#include <cbmem.h>
#include <console/console.h>
#include <device/mmio.h>
#include <gic.h>
@@ -72,6 +73,11 @@ void ramstage_entry(void)
if (tegra210_run_mtc() != 0)
printk(BIOS_ERR, "MTC: No training data.\n");
+ /* Ramstage is run on a different core, so passing cbmem_top
+ via calling arguments is not an option, but it is not a problem
+ to call cbmem_top_chipset() again here to populate _cbmem_top_ptr. */
+ _cbmem_top_ptr = (uintptr_t)cbmem_top_chipset();
+
/* Jump to boot state machine in common code. */
main();
}