summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEvgeny Bachinin <[email protected]>2024-12-11 01:39:57 +0300
committerTom Rini <[email protected]>2024-12-31 10:57:50 -0600
commit623f5cf517ae0e0f6f7132ac6411ea0a8dd9b3f7 (patch)
treed1cb9297235095524001153a9cb2b69ba43b401f /common
parentb841e559cd26ffcb20f22e8ee75debed9616c002 (diff)
fdtdec: encapsulate dtb_dt_embedded() within
Patch keeps the access to dtb_dt_embedded() within fdtdec API, by means of new API function introduction. This new function is a common place for updating appropriate global_data fields for OF_EMBED case. Also, the consequence of the patch is movement of '___dtb_dt_*begin' symbols' declaration from header file, because nobody used symbols outside the lib/fdtdec.c. Signed-off-by: Evgeny Bachinin <[email protected]> Suggested-by: Simon Glass <[email protected]> Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 88dc756b2a5..3c6a4c1f5df 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -155,11 +155,11 @@ static int initr_reloc_global_data(void)
/*
* For CONFIG_OF_EMBED case the FDT is embedded into ELF, available by
- * __dtb_dt_begin. After U-boot ELF self-relocation to RAM top address
+ * __dtb_dt_begin. After U-Boot ELF self-relocation to RAM top address
* it is worth to update fdt_blob in global_data
*/
if (IS_ENABLED(CONFIG_OF_EMBED))
- gd->fdt_blob = dtb_dt_embedded();
+ fdtdec_setup_embed();
#ifdef CONFIG_EFI_LOADER
/*