[PATCH v2 3/6] treewide: move bi_dram[] from bd to gd

Marek Vasut marek.vasut at mailbox.org
Sun Apr 26 18:24:05 CEST 2026


On 4/16/26 7:59 AM, Ilias Apalodimas wrote:
> Currently, the bi_dram[] information is stored in the board info
> structure (bd). Because bd is only valid after reserve_board(),
> dram_init_banksize() must be called late in the initialization process.
> This limitation is problematic, as it forces us to rely on a variety of
> bespoke functions to determine board RAM, bank memory sizes, and other
> early setup requirements.
> 
> By moving bi_dram[] into the global data (gd)
The change itself is fine, but the variable name should be updated. 
Doesn't 'bi_dram' literally stand for "board info - dram" ? Since the 
bi_dram is now in gd, it should be called something else, maybe simply 
"dram" ?


More information about the U-Boot mailing list