summaryrefslogtreecommitdiff
path: root/lib/fdtdec.c
diff options
context:
space:
mode:
authorThomas Fitzsimmons <fitzsim@fitzsim.org>2018-06-08 17:59:45 -0400
committerTom Rini <trini@konsulko.com>2018-07-10 16:55:57 -0400
commit894c3ad27fa940beb7fdc07d01dcfe81c03d0481 (patch)
tree72abb68850e0fc01f0fd0c6f0c2152afda435ffd /lib/fdtdec.c
parentd154ca60036f060375ff3d80b2f1fbd2cd7de115 (diff)
board: arm: Add support for Broadcom BCM7445
Add support for loading U-Boot on the Broadcom 7445 SoC. This port assumes Broadcom's BOLT bootloader is acting as the second stage bootloader, and U-Boot is acting as the third stage bootloader, loaded as an ELF program by BOLT. Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org> Cc: Stefan Roese <sr@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r--lib/fdtdec.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index fc92082b0b..1b0c430945 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -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)