summaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ti/am335x')
-rw-r--r--src/soc/ti/am335x/cbmem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/soc/ti/am335x/cbmem.c b/src/soc/ti/am335x/cbmem.c
index 3765874ebe..170695eff8 100644
--- a/src/soc/ti/am335x/cbmem.c
+++ b/src/soc/ti/am335x/cbmem.c
@@ -1,9 +1,10 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <cbmem.h>
+#include <commonlib/bsd/helpers.h>
#include <symbols.h>
void *cbmem_top_chipset(void)
{
- return _dram + (CONFIG_DRAM_SIZE_MB << 20);
+ return _dram + CONFIG_DRAM_SIZE_MB * MiB;
}