diff options
| author | Simon Glass <[email protected]> | 2024-08-21 10:19:09 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-08-26 14:05:38 -0600 |
| commit | 6abd992ada96cd7aa4757eeca44dae8942d7ba63 (patch) | |
| tree | 216eb2a1a61a511c9a01ee3b4e9bd9dbebe61874 /include/asm-generic | |
| parent | 52cd51c02fe0fcc4f86554de84e95607d62bdc21 (diff) | |
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 <[email protected]>
Diffstat (limited to 'include/asm-generic')
| -rw-r--r-- | include/asm-generic/global_data.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/asm-generic/global_data.h b/include/asm-generic/global_data.h index 1252b8acefa..8a1a4e298ac 100644 --- a/include/asm-generic/global_data.h +++ b/include/asm-generic/global_data.h @@ -20,6 +20,7 @@ */ #ifndef __ASSEMBLY__ +#include <board_f.h> #include <cyclic.h> #include <event_internal.h> #include <fdtdec.h> @@ -42,6 +43,12 @@ struct global_data { * @bd: board information */ struct bd_info *bd; +#ifndef CONFIG_SPL_BUILD + /** + * @boardf: information only used before relocation + */ + struct board_f *boardf; +#endif /** * @flags: global data flags * @@ -220,10 +227,6 @@ struct global_data { */ const void *fdt_blob; /** - * @new_fdt: relocated device tree - */ - void *new_fdt; - /** * @fdt_size: space reserved for relocated device space */ unsigned long fdt_size; |
