[PATCH v1 3/4] common: Clean up setup_dest_addr()
Ilias Apalodimas
ilias.apalodimas at linaro.org
Fri Apr 10 07:14:11 CEST 2026
On Sun, 5 Apr 2026 at 15:03, Simon Glass <sjg at chromium.org> wrote:
>
> 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
Thanks Simon, I'll change those in v2
More information about the U-Boot
mailing list