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)
commit236f73962718511e801f4ec9562075e86f737ec4
tree8ab2a2636dc86ebb2ccb312512d5f402cf2b3e7e
parentd179018e4c9561afac5ca5c8878852f1171b836b
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