[PATCHv2 1/5] board_f: add a board_setup_dest_addr function
Ilias Apalodimas
ilias.apalodimas at linaro.org
Mon Jun 22 10:12:57 CEST 2026
Hi Randolph
On Sat, 20 Jun 2026 at 02:17, <rs at ti.com> wrote:
>
> From: Randolph Sapp <rs at ti.com>
>
> Add a weak definition for board_setup_dest_addr, as a way for specific
> boards to override the gd->relocaddr address before the relocation
> actually occurs.
>
> Signed-off-by: Randolph Sapp <rs at ti.com>
> ---
board_get_usable_ram_top() can be used instead.
Cheers
/Ilias
> common/board_f.c | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/common/board_f.c b/common/board_f.c
> index fdb3577fec09..d9d09ac94bf2 100644
> --- a/common/board_f.c
> +++ b/common/board_f.c
> @@ -328,6 +328,11 @@ __weak int arch_setup_dest_addr(void)
> return 0;
> }
>
> +__weak int board_setup_dest_addr(void)
> +{
> + return 0;
> +}
> +
> static int setup_dest_addr(void)
> {
> int ret;
> @@ -362,6 +367,10 @@ static int setup_dest_addr(void)
> if (ret)
> return ret;
>
> + ret = board_setup_dest_addr();
> + if (ret)
> + return ret;
> +
> gd->initial_relocaddr = gd->relocaddr;
> return 0;
> }
> --
> 2.54.0
>
More information about the U-Boot
mailing list