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

Ilias Apalodimas ilias.apalodimas at linaro.org
Mon Apr 27 07:27:25 CEST 2026


On Sun, 26 Apr 2026 at 19:24, Marek Vasut <marek.vasut at mailbox.org> wrote:
>
> 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" ?

Sure, i'll move it to 'dram'

Cheers
/Ilias


More information about the U-Boot mailing list