summaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x/soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ti/am335x/soc.c')
-rw-r--r--src/soc/ti/am335x/soc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/soc/ti/am335x/soc.c b/src/soc/ti/am335x/soc.c
index 0362ed9c0c..99c651fd8b 100644
--- a/src/soc/ti/am335x/soc.c
+++ b/src/soc/ti/am335x/soc.c
@@ -1,7 +1,15 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#include <device/device.h>
+#include <symbols.h>
+#include <bootmem.h>
+
+static void soc_enable(struct device *dev)
+{
+ ram_resource(dev, 0, (uintptr_t)_dram / KiB, CONFIG_DRAM_SIZE_MB * MiB / KiB);
+}
struct chip_operations soc_ti_am335x_ops = {
CHIP_NAME("TI AM335X")
+ .enable_dev = soc_enable,
};