summaryrefslogtreecommitdiff
path: root/src/soc/qualcomm/ipq806x
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/qualcomm/ipq806x')
-rw-r--r--src/soc/qualcomm/ipq806x/cbmem.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/soc/qualcomm/ipq806x/cbmem.c b/src/soc/qualcomm/ipq806x/cbmem.c
index b175d6a543..ecb02e47e8 100644
--- a/src/soc/qualcomm/ipq806x/cbmem.c
+++ b/src/soc/qualcomm/ipq806x/cbmem.c
@@ -18,8 +18,10 @@
*/
#include <cbmem.h>
+#include <stddef.h>
void *cbmem_top(void)
{
- return (void *)(CONFIG_SYS_SDRAM_BASE + (CONFIG_DRAM_SIZE_MB << 20));
+ return (void *)((uintptr_t)CONFIG_SYS_SDRAM_BASE +
+ (CONFIG_DRAM_SIZE_MB << 20));
}