From 39642abf56d32f53597d707e63a028e4beadbbf4 Mon Sep 17 00:00:00 2001 From: Heiko Schocher Date: Wed, 16 Oct 2019 05:55:49 +0200 Subject: mpc85xx, socrates: add DM support enable CONFIG_DM for the socrates board. Signed-off-by: Heiko Schocher Reviewed-by: Priyanka Jain --- board/socrates/socrates.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'board') 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 -- cgit v1.2.3