summaryrefslogtreecommitdiff
path: root/src/mainboard/emulation/qemu-riscv/mainboard.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/emulation/qemu-riscv/mainboard.c')
-rw-r--r--src/mainboard/emulation/qemu-riscv/mainboard.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mainboard/emulation/qemu-riscv/mainboard.c b/src/mainboard/emulation/qemu-riscv/mainboard.c
index f0f0740484..e17ce13d43 100644
--- a/src/mainboard/emulation/qemu-riscv/mainboard.c
+++ b/src/mainboard/emulation/qemu-riscv/mainboard.c
@@ -3,18 +3,15 @@
#include <console/console.h>
#include <device/device.h>
#include <symbols.h>
-#include <ramdetect.h>
+#include <cbmem.h>
static void mainboard_enable(struct device *dev)
{
- size_t dram_mb_detected;
-
if (!dev) {
die("No dev0; die\n");
}
- dram_mb_detected = probe_ramsize((uintptr_t)_dram, CONFIG_DRAM_SIZE_MB);
- ram_range(dev, 0, (uintptr_t)_dram, dram_mb_detected * MiB);
+ ram_from_to(dev, 0, (uintptr_t)_dram, (uintptr_t)cbmem_top());
}
struct chip_operations mainboard_ops = {