]> git.sur5r.net Git - u-boot/blobdiff - lib/fdtdec.c
board: arm: Add support for Broadcom BCM7445
[u-boot] / lib / fdtdec.c
index fc92082b0bdf5777cac56004d77ca2646b47b4cb..1b0c430945a937661c791d26fe3d97034606754f 100644 (file)
@@ -1324,8 +1324,12 @@ int fdtdec_setup(void)
 # endif
 # ifndef CONFIG_SPL_BUILD
        /* Allow the early environment to override the fdt address */
+#  if CONFIG_IS_ENABLED(OF_PRIOR_STAGE)
+       gd->fdt_blob = (void *)prior_stage_fdt_address;
+#  else
        gd->fdt_blob = (void *)env_get_ulong("fdtcontroladdr", 16,
                                                (uintptr_t)gd->fdt_blob);
+#  endif
 # endif
 
 # if CONFIG_IS_ENABLED(MULTI_DTB_FIT)