summaryrefslogtreecommitdiff
path: root/src/soc
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc')
-rw-r--r--src/soc/mediatek/mt8183/soc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8183/soc.c b/src/soc/mediatek/mt8183/soc.c
index b8348a1457..b51e7d4653 100644
--- a/src/soc/mediatek/mt8183/soc.c
+++ b/src/soc/mediatek/mt8183/soc.c
@@ -14,7 +14,15 @@
*/
#include <device/device.h>
+#include <soc/emi.h>
#include <soc/mmu_operations.h>
+#include <symbols.h>
+
+
+static void soc_read_resources(struct device *dev)
+{
+ ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
+}
static void soc_init(struct device *dev)
{
@@ -22,6 +30,7 @@ static void soc_init(struct device *dev)
}
static struct device_operations soc_ops = {
+ .read_resources = soc_read_resources,
.init = soc_init,
};