]> git.baikalelectronics.ru Git - uboot.git/commit
board_f: show_dram_config: Print also real DRAM size
authorPali Rohár <pali@kernel.org>
Sun, 18 Sep 2022 11:23:27 +0000 (13:23 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:13:18 +0000 (15:13 -0400)
commitfac2e519bb41604a903262f5a5e8931885b0674e
tree8ab2a2636dc86ebb2ccb312512d5f402cf2b3e7e
parent6ef7ca3ce4736fa4eb487c053efbc76d590eea49
board_f: show_dram_config: Print also real DRAM size

32-bit U-Boot builds cannot use more than around 2 GB of DDR memory. But on
some platforms/boards it is possible to connect also 4 GB SODIMM DDR memory.
U-Boot currently prints only effective size of RAM which can use, which may
be misleading as somebody would expect that this line prints total size of
connected DDR modules. So change show_dram_config code to prints both real
and effective DRAM size if they are different. If they are same then print
just one number like before. It is possible that effective size is just few
bytes smaller than the real size, so print both numbers only in case
function print_size() prints formats them differently.

Signed-off-by: Pali Rohár <pali@kernel.org>
common/board_f.c