Commit 5b4f022b authored by Marek Vasut's avatar Marek Vasut
Browse files

rcar_gen3: plat: Print DRAM bank size in MiB if below 1 GiB



Print the DRAM bank size in MiB instead of GiB in case the bank size
is smaller than 1 GiB. This prevents printing zeroes on systems with
small DRAM sizes.
Signed-off-by: default avatarMarek Vasut <marek.vasut+renesas@gmail.com>
parent 18ff0b61
......@@ -482,8 +482,10 @@ static void bl2_advertise_dram_entries(uint64_t dram_config[8])
if (!size)
continue;
NOTICE("BL2: CH%d: %llx - %llx, %lld GiB\n",
chan, start, start + size - 1, size >> 30);
NOTICE("BL2: CH%d: %llx - %llx, %lld %siB\n",
chan, start, start + size - 1,
(size >> 30) ? : size >> 20,
(size >> 30) ? "G" : "M");
}
/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment