[PATCH v1 3/4] common: Clean up setup_dest_addr()

Simon Glass sjg at chromium.org
Sun Apr 5 14:03:20 CEST 2026


On 2026-04-03T09:01:02, Ilias Apalodimas <ilias.apalodimas at linaro.org> wrote:
> common: Clean up setup_dest_addr()
>
> Right now the function does
> - Re-adjust the ram_size based on Kconfig options
> - Set ram_top
> - Set the relocation address
>
> It also does not set the ram_size in case ram_top grew
> from it's initial value. But ram_top and ram_size should
> always be changed together.
>
> So let's make things a bit cleaner and move the ram calculations
> in their own INITCALL
>
> Signed-off-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> common/board_f.c | 18 ++++++++++++------
>  1 file changed, 12 insertions(+), 6 deletions(-)

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

Good oppty to change the debug output to lower-case hex and drop the 0x


More information about the U-Boot mailing list