소스 검색

Blackfin: skip RAM display for 0 mem systems

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Mike Frysinger 14 년 전
부모
커밋
7d69dfd2a8
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  1. 5 2
      arch/blackfin/lib/board.c

+ 5 - 2
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();