summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-12-16 20:59:26 -0700
committerTom Rini <trini@konsulko.com>2021-12-23 10:24:39 -0500
commitd893b8ad095f952829933c79b09345ae0c8ebd6b (patch)
tree33b98e5fde0c09a388da06f8734af0c158763fd8 /lib
parentb4b6daf38d49c73f670bbf1654b568bca222fa79 (diff)
downloadu-boot-d893b8ad095f952829933c79b09345ae0c8ebd6b.tar.gz
u-boot-d893b8ad095f952829933c79b09345ae0c8ebd6b.tar.bz2
u-boot-d893b8ad095f952829933c79b09345ae0c8ebd6b.zip
fdt: Drop CONFIG_SPL_BUILD check in fdtdec_setup()
Move this to the header file to clean up the C code. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/fdtdec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 4967ab8707..fbdc92c081 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1629,11 +1629,7 @@ int fdtdec_setup(void)
#if CONFIG_IS_ENABLED(OF_CONTROL)
# ifdef CONFIG_OF_EMBED
/* Get a pointer to the FDT */
-# ifdef CONFIG_SPL_BUILD
- gd->fdt_blob = __dtb_dt_spl_begin;
-# else
- gd->fdt_blob = __dtb_dt_begin;
-# endif
+ gd->fdt_blob = dtb_dt_embedded();
# elif defined(CONFIG_OF_BOARD) || defined(CONFIG_OF_SEPARATE)
/* Allow the board to override the fdt address. */
gd->fdt_blob = board_fdt_blob_setup(&ret);