summaryrefslogtreecommitdiffstats
path: root/common/board_r.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/board_r.c')
-rw-r--r--common/board_r.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 3bf49fdfb3..5af32dd65b 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -168,6 +168,14 @@ static int initr_reloc_global_data(void)
*/
gd->env_addr += gd->relocaddr - CONFIG_SYS_MONITOR_BASE;
#endif
+#ifdef CONFIG_OF_EMBED
+ /*
+ * The fdt_blob needs to be moved to new relocation address
+ * incase of FDT blob is embedded with in image
+ */
+ gd->fdt_blob += gd->reloc_off;
+#endif
+
return 0;
}
OpenPOWER on IntegriCloud