summaryrefslogtreecommitdiff
path: root/src/mainboard/arm/rdn2/cbmem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/arm/rdn2/cbmem.c')
-rw-r--r--src/mainboard/arm/rdn2/cbmem.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mainboard/arm/rdn2/cbmem.c b/src/mainboard/arm/rdn2/cbmem.c
new file mode 100644
index 0000000000..a8ad03399c
--- /dev/null
+++ b/src/mainboard/arm/rdn2/cbmem.c
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+
+#include <cbmem.h>
+#include <console/console.h>
+#include <ramdetect.h>
+#include <symbols.h>
+
+uintptr_t cbmem_top_chipset(void)
+{
+ return (uintptr_t)_dram + (probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB) * MiB);
+}