[PATCH v2 1/3] sandbox: fix dram_init()
Ilias Apalodimas
ilias.apalodimas at linaro.org
Tue Jun 10 09:18:32 CEST 2025
On Sun, 8 Jun 2025 at 10:54, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> dram_init() must not overwrite the value of gd->ram_buf set by
> setup_ram_buf() for main U-Boot or board_init_f() for SPL.
>
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
I am not an expert in sandbox, but this looks ok
Acked-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
> ---
> v2:
> no change
> ---
> board/sandbox/sandbox.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/board/sandbox/sandbox.c b/board/sandbox/sandbox.c
> index d97945e58fc..43f4edc39e9 100644
> --- a/board/sandbox/sandbox.c
> +++ b/board/sandbox/sandbox.c
> @@ -101,7 +101,6 @@ enum env_location env_get_location(enum env_operation op, int prio)
>
> int dram_init(void)
> {
> - gd->ram_size = CFG_SYS_SDRAM_SIZE;
> return 0;
> }
>
> --
> 2.48.1
>
More information about the U-Boot
mailing list