summaryrefslogtreecommitdiffstats
path: root/src/soc/rockchip/rk3288/cbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/rockchip/rk3288/cbmem.c')
-rw-r--r--src/soc/rockchip/rk3288/cbmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/rockchip/rk3288/cbmem.c b/src/soc/rockchip/rk3288/cbmem.c
index 2eed97281ae2..38ea365469ed 100644
--- a/src/soc/rockchip/rk3288/cbmem.c
+++ b/src/soc/rockchip/rk3288/cbmem.c
@@ -20,9 +20,9 @@
#include <cbmem.h>
#include <stddef.h>
#include <symbols.h>
+#include <soc/sdram.h>
void *cbmem_top(void)
{
- return _dram + (size_t)CONFIG_DRAM_SIZE_MB*MiB;
+ return _dram + sdram_size_mb()*MiB;
}
-