summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8173/soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8173/soc.c')
-rw-r--r--src/soc/mediatek/mt8173/soc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/mediatek/mt8173/soc.c b/src/soc/mediatek/mt8173/soc.c
index 7f0b1b7855..7507ae45c5 100644
--- a/src/soc/mediatek/mt8173/soc.c
+++ b/src/soc/mediatek/mt8173/soc.c
@@ -17,11 +17,11 @@
#include <console/console.h>
#include <device/device.h>
#include <symbols.h>
+#include <soc/emi.h>
static void soc_read_resources(device_t dev)
{
- ram_resource(dev, 0, (uintptr_t)_dram / KiB,
- CONFIG_DRAM_SIZE_MB * (MiB / KiB));
+ ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
}
static void soc_init(device_t dev)