Skip to contentSkip to conversation

Blackfin: skip RAM display for 0 mem systems

PATCH New Mike Frysinger 2 participants 2 messages Dec 22, 2010 – Jan 10, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Blackfin: skip RAM display for 0 mem systems

---
 arch/blackfin/lib/board.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
arch/blackfin/lib/board.c +5 -2
index 12d618d..96407a2 100644
@@ -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();
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 1/1 Blackfin: skip RAM display for 0 mem systems

Dear Mike Frysinger,

arch/blackfin/lib/board.c void board_init_f(ulong bootflag) · line 287

Quoted 6 lines · In message <[email protected]> you wrote:
arch/blackfin/lib/board.c +5 -0
+	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

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Actual war is a very messy business. Very, very messy business.
	-- Kirk, "A Taste of Armageddon", stardate 3193.0