diff options
| author | Tom Rini <[email protected]> | 2024-12-09 16:29:47 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-12-09 16:29:47 -0600 |
| commit | 9bc62c980d418f0a67632ab29cd3501072cdb6f0 (patch) | |
| tree | e70cc08520aca0f7e3406bd088ddfda0874973a0 /common/board_r.c | |
| parent | 9dd0a9ecaa539adb99f74ea5cebcafcdebe93aad (diff) | |
| parent | b841e559cd26ffcb20f22e8ee75debed9616c002 (diff) | |
Merge tag 'v2025.01-rc4' into next
Prepare v2025.01-rc4
Diffstat (limited to 'common/board_r.c')
| -rw-r--r-- | common/board_r.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/common/board_r.c b/common/board_r.c index ff9bce88dc9..23ebc41868c 100644 --- a/common/board_r.c +++ b/common/board_r.c @@ -152,6 +152,15 @@ static int initr_reloc_global_data(void) */ gd->env_addr += gd->reloc_off; #endif + + /* + * 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 + * it is worth to update fdt_blob in global_data + */ + if (IS_ENABLED(CONFIG_OF_EMBED)) + gd->fdt_blob = dtb_dt_embedded(); + #ifdef CONFIG_EFI_LOADER /* * On the ARM architecture gd is mapped to a fixed register (r9 or x18). |
