Patchwork [U-Boot,03/28] Blackfin: skip RAM display for 0 mem systems

login
register
mail settings
Submitter Mike Frysinger
Date Dec. 27, 2010, 4:47 a.m.
Message ID <1293425300-27644-4-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/76733/
State Accepted
Delegated to: Mike Frysinger
Headers show

Comments

Mike Frysinger - Dec. 27, 2010, 4:47 a.m.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 arch/blackfin/lib/board.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c
index 8eca7d6..59a0810 100644
--- a/arch/blackfin/lib/board.c
+++ b/arch/blackfin/lib/board.c
@@ -283,8 +283,11 @@  void board_init_f(ulong bootflag)
 	printf("Core: %s MHz, ", strmhz(buf, get_cclk()));
 	printf("System: %s MHz\n", strmhz(buf, get_sclk()));
 
-	printf("RAM:   ");
-	print_size(bd->bi_memsize, "\n");
+	if (CONFIG_MEM_SIZE) {
+		printf("RAM:   ");
+		print_size(bd->bi_memsize, "\n");
+	}
+
 #if defined(CONFIG_POST)
 	post_init_f();
 	post_bootmode_init();