소스 검색

ARM: spl: atmel: move mem_init() advance in SPL init.

Because the MMC SPL puts the bbs section in the ddr memory, move
calling mem_init() before calling spl_init().

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Wenyou Yang 8 년 전
부모
커밋
5bede73c6c
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      arch/arm/mach-at91/spl_atmel.c

+ 2 - 1
arch/arm/mach-at91/spl_atmel.c

@@ -101,6 +101,8 @@ void board_init_f(ulong dummy)
 
 	board_early_init_f();
 
+	mem_init();
+
 	ret = spl_init();
 	if (ret) {
 		debug("spl_init() failed: %d\n", ret);
@@ -109,5 +111,4 @@ void board_init_f(ulong dummy)
 
 	preloader_console_init();
 
-	mem_init();
 }