summaryrefslogtreecommitdiff
path: root/board/socrates
diff options
context:
space:
mode:
authorHeiko Schocher <hs@denx.de>2019-10-16 05:55:49 +0200
committerPriyanka Jain <priyanka.jain@nxp.com>2019-11-06 16:30:19 +0530
commit39642abf56d32f53597d707e63a028e4beadbbf4 (patch)
tree34c347f12b3caaccfc7147d0db5e4ee42acfa558 /board/socrates
parent81a7abe593372c8386278a1a84acfdb594178eee (diff)
mpc85xx, socrates: add DM support
enable CONFIG_DM for the socrates board. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
Diffstat (limited to 'board/socrates')
-rw-r--r--board/socrates/socrates.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c
index da9ae5bebb..8f9583360b 100644
--- a/board/socrates/socrates.c
+++ b/board/socrates/socrates.c
@@ -432,3 +432,18 @@ void video_get_info_str (int line_number, char *info)
}
}
#endif
+
+#if defined(CONFIG_OF_SEPARATE)
+void *board_fdt_blob_setup(void)
+{
+ void *fw_dtb;
+
+ fw_dtb = (void *)(CONFIG_SYS_TEXT_BASE - CONFIG_ENV_SECT_SIZE);
+ if (fdt_magic(fw_dtb) != FDT_MAGIC) {
+ printf("DTB is not passed via %x\n", (u32)fw_dtb);
+ return NULL;
+ }
+
+ return fw_dtb;
+}
+#endif