mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 18:04:48 +00:00
board_f: Move new_bloblist to boardf
This value is only used before relocation. Move it to the new boardf struct. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8941972854
commit
e821897622
3 changed files with 10 additions and 9 deletions
|
@ -627,8 +627,8 @@ static int reserve_bloblist(void)
|
||||||
/* Align to a 4KB boundary for easier reading of addresses */
|
/* Align to a 4KB boundary for easier reading of addresses */
|
||||||
gd->start_addr_sp = ALIGN_DOWN(gd->start_addr_sp -
|
gd->start_addr_sp = ALIGN_DOWN(gd->start_addr_sp -
|
||||||
CONFIG_BLOBLIST_SIZE_RELOC, 0x1000);
|
CONFIG_BLOBLIST_SIZE_RELOC, 0x1000);
|
||||||
gd->new_bloblist = map_sysmem(gd->start_addr_sp,
|
gd->boardf->new_bloblist = map_sysmem(gd->start_addr_sp,
|
||||||
CONFIG_BLOBLIST_SIZE_RELOC);
|
CONFIG_BLOBLIST_SIZE_RELOC);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -704,10 +704,11 @@ static int reloc_bloblist(void)
|
||||||
debug("Not relocating bloblist\n");
|
debug("Not relocating bloblist\n");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if (gd->new_bloblist) {
|
if (gd->boardf->new_bloblist) {
|
||||||
debug("Copying bloblist from %p to %p, size %x\n",
|
debug("Copying bloblist from %p to %p, size %x\n",
|
||||||
gd->bloblist, gd->new_bloblist, gd->bloblist->total_size);
|
gd->bloblist, gd->boardf->new_bloblist,
|
||||||
return bloblist_reloc(gd->new_bloblist,
|
gd->bloblist->total_size);
|
||||||
|
return bloblist_reloc(gd->boardf->new_bloblist,
|
||||||
CONFIG_BLOBLIST_SIZE_RELOC);
|
CONFIG_BLOBLIST_SIZE_RELOC);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -395,10 +395,6 @@ struct global_data {
|
||||||
* @bloblist: blob list information
|
* @bloblist: blob list information
|
||||||
*/
|
*/
|
||||||
struct bloblist_hdr *bloblist;
|
struct bloblist_hdr *bloblist;
|
||||||
/**
|
|
||||||
* @new_bloblist: relocated blob list information
|
|
||||||
*/
|
|
||||||
struct bloblist_hdr *new_bloblist;
|
|
||||||
#endif
|
#endif
|
||||||
#if CONFIG_IS_ENABLED(HANDOFF)
|
#if CONFIG_IS_ENABLED(HANDOFF)
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,6 +26,10 @@ struct board_f {
|
||||||
* @new_bootstage: relocated boot stage information
|
* @new_bootstage: relocated boot stage information
|
||||||
*/
|
*/
|
||||||
struct bootstage_data *new_bootstage;
|
struct bootstage_data *new_bootstage;
|
||||||
|
/**
|
||||||
|
* @new_bloblist: relocated blob list information
|
||||||
|
*/
|
||||||
|
struct bloblist_hdr *new_bloblist;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue