]> git.dujemihanovic.xyz Git - u-boot.git/commit
board_f: Add a new struct to hold pre-relocation info
authorSimon Glass <sjg@chromium.org>
Wed, 21 Aug 2024 16:19:09 +0000 (10:19 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 26 Aug 2024 20:05:38 +0000 (14:05 -0600)
commit6abd992ada96cd7aa4757eeca44dae8942d7ba63
tree216eb2a1a61a511c9a01ee3b4e9bd9dbebe61874
parent52cd51c02fe0fcc4f86554de84e95607d62bdc21
board_f: Add a new struct to hold pre-relocation info

Quite a few of the members of struct global_data are only used before
reloction, or have little meaning afterwards, yet they hang around in
struct global_data for the lifetime of U-Boot. This uses up precious
pre-relocation SRAM on many boards.

To help with this, start a new struct which exists only before
relocation. Move new_fdt into this new struct. Drop the display of it
in the 'bdinfo' command as it is probably not very useful.

Note that the field does not exist in SPL builds.

Signed-off-by: Simon Glass <sjg@chromium.org>
cmd/bdinfo.c
common/board_f.c
include/asm-generic/global_data.h
include/board_f.h [new file with mode: 0644]
test/cmd/bdinfo.c