]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
sandbox: fix dram_init()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 8 Jun 2025 07:54:26 +0000 (09:54 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 26 Jun 2025 19:45:33 +0000 (13:45 -0600)
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@canonical.com>
Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
board/sandbox/sandbox.c

index d97945e58fcf8ba53ad3aa0b483bd6ea7d637275..43f4edc39e9f7907a21c946c13d758441f539978 100644 (file)
@@ -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;
 }