summaryrefslogtreecommitdiff
path: root/src/soc/nvidia/tegra124/cbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/nvidia/tegra124/cbmem.c')
-rw-r--r--src/soc/nvidia/tegra124/cbmem.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/soc/nvidia/tegra124/cbmem.c b/src/soc/nvidia/tegra124/cbmem.c
index d80b3a03cd..7f20702e63 100644
--- a/src/soc/nvidia/tegra124/cbmem.c
+++ b/src/soc/nvidia/tegra124/cbmem.c
@@ -18,10 +18,11 @@
*/
#include <cbmem.h>
-#include <soc/addressmap.h>
+#include <soc/display.h>
+#include <soc/nvidia/tegra124/sdram.h>
void *cbmem_top(void)
{
return (void *)(CONFIG_SYS_SDRAM_BASE +
- ((CONFIG_DRAM_SIZE_MB - FB_SIZE_MB)<< 20UL));
+ ((sdram_size_mb() - FB_SIZE_MB)<< 20UL));
}