aboutsummaryrefslogtreecommitdiff
path: root/src/soc/ti/am335x/bootblock_media.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ti/am335x/bootblock_media.c')
-rw-r--r--src/soc/ti/am335x/bootblock_media.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/soc/ti/am335x/bootblock_media.c b/src/soc/ti/am335x/bootblock_media.c
new file mode 100644
index 0000000000..050e0b77da
--- /dev/null
+++ b/src/soc/ti/am335x/bootblock_media.c
@@ -0,0 +1,13 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <boot_device.h>
+#include <symbols.h>
+
+/* FIXME: No idea how big the internal SRAM actually is. */
+static const struct mem_region_device boot_dev =
+ MEM_REGION_DEV_RO_INIT(_dram, CONFIG_ROM_SIZE);
+
+const struct region_device *boot_device_ro(void)
+{
+ return &boot_dev.rdev;
+}