From: Sean Anderson Date: Tue, 29 Dec 2020 18:48:29 -0500 Subject: [PATCH] common: board_f: fix to display wrong memory information In-Reply-To: <20201229232412.7086-1-jh80.chung@samsung.com> References: <20201229232412.7086-1-jh80.chung@samsung.com> Message-ID: <61a8c047-2064-4790-8f37-ff5b90e2c4a2@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 12/29/20 6:24 PM, Jaehoon Chung wrote: > When run meminfo command, it's displayed wrong memory information. > Because it's using gd->ram_size what didn't configure ram size. what -> which? > > On 4G RPI4 target > - Before > U-Boot> meminfo > DRAM: 948MiB > - After > U-Boot> meminfo > DRAM: 3.9GiB > > Signed-off-by: Jaehoon Chung > --- > common/board_f.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/common/board_f.c b/common/board_f.c > index 9f441c44f176..96c675ea28e4 100644 > --- a/common/board_f.c > +++ b/common/board_f.c > @@ -228,6 +228,7 @@ static int show_dram_config(void) > } > debug("\nDRAM: "); > > + gd->ram_size = size; Shouldn't this be set by dram_init? --Sean > print_size(size, ""); > board_add_ram_info(0); > putc('\n'); >