[PATCH v1 2/4] common: move ram_base calculation to independent INITCALL()

Simon Glass sjg at chromium.org
Sun Apr 5 14:02:48 CEST 2026


On 2026-04-03T09:01:02, Ilias Apalodimas <ilias.apalodimas at linaro.org> wrote:
> common: move ram_base calculation to independent INITCALL()
>
> Currently, ram_base is calculated within setup_dest_addr().
> However, upcoming patches that enable U-Boot relocation to the highest
> DRAM bank require ram_base to be initialized earlier.
>
> The default dram_init_banksize() definition relies on ram_base
> to calculate the start of the first bank. But following patches
> will move that function to execute immediately before setup_dest_addr().
>
> So let's split the ram_base initialization in its own INITCALL.
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> common/board_f.c | 12 +++++++++---
>  1 file changed, 9 insertions(+), 3 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list