[PATCH v2 4/6] common: move ram_base calculation to independent INITCALL()
Marek Vasut
marek.vasut at mailbox.org
Sun Apr 26 18:26:46 CEST 2026
On 4/16/26 7:59 AM, Ilias Apalodimas wrote:
> 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.
>
> Reviewed-by: Simon Glass <sjg at chromium.org>
> Tested-by: Anshul Dalal <anshuld at ti.com>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
Reviewed-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
More information about the U-Boot
mailing list