summaryrefslogtreecommitdiff
path: root/src/soc/mediatek/mt8186/soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/mediatek/mt8186/soc.c')
-rw-r--r--src/soc/mediatek/mt8186/soc.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/soc/mediatek/mt8186/soc.c b/src/soc/mediatek/mt8186/soc.c
index 3ad83f7a65..7686986e71 100644
--- a/src/soc/mediatek/mt8186/soc.c
+++ b/src/soc/mediatek/mt8186/soc.c
@@ -1,12 +1,20 @@
/* SPDX-License-Identifier: GPL-2.0-only */
+#include <bootmem.h>
#include <device/device.h>
#include <soc/devapc.h>
+#include <soc/dfd.h>
#include <soc/emi.h>
#include <soc/mmu_operations.h>
#include <soc/sspm.h>
#include <symbols.h>
+void bootmem_platform_add_ranges(void)
+{
+ if (CONFIG(MTK_DFD))
+ bootmem_add_range(DFD_DUMP_ADDRESS, DFD_DUMP_SIZE, BM_MEM_RESERVED);
+}
+
static void soc_read_resources(struct device *dev)
{
ram_resource(dev, 0, (uintptr_t)_dram / KiB, sdram_size() / KiB);
@@ -17,6 +25,9 @@ static void soc_init(struct device *dev)
mtk_mmu_disable_l2c_sram();
sspm_init();
dapc_init();
+
+ if (CONFIG(MTK_DFD))
+ dfd_init();
}
static struct device_operations soc_ops = {