[U-Boot] [PATCH 2/2] rockchip: use spl_early_init instead of spl_init

Simon Glass sjg at chromium.org
Tue Mar 14 16:29:07 UTC 2017


From: Eddie Cai <eddie.cai.linux at gmail.com>

use spl_early_init to avoid malloc_base, limit, ptr not initualized.

Signed-off-by: Eddie Cai <eddie.cai.linux at gmail.com>
Signed-off-by: Simon Glass <sjg at chromium.org>
---

 arch/arm/mach-rockchip/rk3288-board-spl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/rk3288-board-spl.c b/arch/arm/mach-rockchip/rk3288-board-spl.c
index e51e19bb2d..f494843663 100644
--- a/arch/arm/mach-rockchip/rk3288-board-spl.c
+++ b/arch/arm/mach-rockchip/rk3288-board-spl.c
@@ -185,7 +185,7 @@ void board_init_f(ulong dummy)
 	debug_uart_init();
 #endif
 
-	ret = spl_init();
+	ret = spl_early_init();
 	if (ret) {
 		debug("spl_init() failed: %d\n", ret);
 		hang();
-- 
2.12.0.367.g23dc2f6d3c-goog



More information about the U-Boot mailing list