ulib: Drop DRAM announcements for the library

We don't want any initial console output from the library, so check the
ULIB flag and skip any output related to DRAM.

Note that debug output is unaffected, but this is only visible if debug
is enabled.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2025-09-03 12:53:00 -06:00
parent 156a9b1709
commit 85674036ea

View File

@@ -181,7 +181,9 @@ static int print_cpuinfo(void)
static int announce_dram_init(void)
{
puts("DRAM: ");
if (!gd_ulib())
puts("DRAM: ");
return 0;
}
@@ -231,13 +233,15 @@ static int show_dram_config(void)
}
debug("\nDRAM: ");
print_size(gd->ram_size, "");
if (!sizes_near(gd->ram_size, size)) {
printf(" (total ");
print_size(size, ")");
if (!gd_ulib()) {
print_size(gd->ram_size, "");
if (!sizes_near(gd->ram_size, size)) {
printf(" (total ");
print_size(size, ")");
}
board_add_ram_info(0);
putc('\n');
}
board_add_ram_info(0);
putc('\n');
return 0;
}