Skip to content

Commit 99e19e8

Browse files
committed
SPL: silent boot messages
Signed-off-by: Michel-FK <[email protected]>
1 parent c6422c2 commit 99e19e8

File tree

3 files changed

+7
-12
lines changed

3 files changed

+7
-12
lines changed

board/sunxi/board.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -671,9 +671,9 @@ void sunxi_board_init(void)
671671
power_failed |= axp_set_sw(IS_ENABLED(CONFIG_AXP_SW_ON));
672672
#endif
673673
#endif
674-
printf("DRAM:");
674+
//printf("DRAM:");
675675
gd->ram_size = sunxi_dram_init();
676-
printf(" %d MiB\n", (int)(gd->ram_size >> 20));
676+
//printf(" %d MiB\n", (int)(gd->ram_size >> 20));
677677
if (!gd->ram_size)
678678
hang();
679679

common/console.c

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -775,13 +775,8 @@ static bool console_update_silent(void)
775775
#ifdef CONFIG_SILENT_CONSOLE
776776
if (env_get("silent")) {
777777
gd->flags |= GD_FLG_SILENT;
778-
} else {
779-
unsigned long flags = gd->flags;
780-
781-
gd->flags &= ~GD_FLG_SILENT;
782-
783-
return !!(flags & GD_FLG_SILENT);
784-
}
778+
else
779+
gd->flags |= GD_FLG_SILENT;
785780
#endif
786781

787782
return false;

common/spl/spl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ static int boot_from_devices(struct spl_image_info *spl_image,
554554
loader = spl_ll_find_loader(spl_boot_list[i]);
555555
#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT)
556556
if (loader)
557-
printf("Trying to boot from %s\n", loader->name);
557+
;//printf("Trying to boot from %s\n", loader->name);
558558
else
559559
puts(SPL_TPL_PROMPT "Unsupported Boot Device!\n");
560560
#endif
@@ -747,8 +747,8 @@ void preloader_console_init(void)
747747
gd->have_console = 1;
748748

749749
#if CONFIG_IS_ENABLED(BANNER_PRINT)
750-
puts("\nU-Boot " SPL_TPL_NAME " " PLAIN_VERSION " (" U_BOOT_DATE " - "
751-
U_BOOT_TIME " " U_BOOT_TZ ")\n");
750+
/*puts("\nU-Boot " SPL_TPL_NAME " " PLAIN_VERSION " (" U_BOOT_DATE " - "
751+
U_BOOT_TIME " " U_BOOT_TZ ")\n");*/
752752
#endif
753753
#ifdef CONFIG_SPL_DISPLAY_PRINT
754754
spl_display_print();

0 commit comments

Comments
 (0)