diff mbox

[U-Boot] Blackfin: skip RAM display for 0 mem systems

Message ID 1293028907-16296-1-git-send-email-vapier@gentoo.org
State Accepted
Commit 7d69dfd2a80885b570cd1d47e5c25f0f76f09468
Headers show

Commit Message

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

Comments

Wolfgang Denk Jan. 10, 2011, 8:25 p.m. UTC | #1
Dear Mike Frysinger,

In message <1293028907-16296-1-git-send-email-vapier@gentoo.org> you wrote:
>
> +	if (CONFIG_MEM_SIZE) {
> +		printf("RAM:   ");
> +		print_size(bd->bi_memsize, "\n");
> +	}
> +

Side note: I see that CONFIG_MEM_SIZE is nowhere documented. Could you
please add an entry for it to the README?  TIA.

Best regards,

Wolfgang Denk
diff mbox

Patch

diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c
index 12d618d..96407a2 100644
--- a/arch/blackfin/lib/board.c
+++ b/arch/blackfin/lib/board.c
@@ -280,8 +280,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();