From: Ash Charles <ashcharles@gmail.com>
Date: Thu, 5 May 2016 18:58:06 +0000 (-0700)
Subject: omap4: load files for legacy boot
X-Git-Tag: v2025.01-rc5-pxa1908~9494
X-Git-Url: http://git.dujemihanovic.xyz/html/index.html?a=commitdiff_plain;h=ea948590a3e0bd08021f110db9784a6d201ea810;p=u-boot.git

omap4: load files for legacy boot

Be sure to load the zImage and fdtfile prior to actually booting in
case we are doing a legacy boot.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
---

diff --git a/include/configs/ti_omap4_common.h b/include/configs/ti_omap4_common.h
index 586d84886e..5fad3c1242 100644
--- a/include/configs/ti_omap4_common.h
+++ b/include/configs/ti_omap4_common.h
@@ -122,7 +122,10 @@
 	"loaduimage=load mmc ${mmcdev} ${loadaddr} uImage\0" \
 	"mmcboot=echo Booting from mmc${mmcdev} ...; " \
 		"run args_mmc; " \
-		"bootz ${loadaddr} - ${fdtaddr}\0" \
+		"if run loadimage; then " \
+			"run loadfdt; " \
+			"bootz ${loadaddr} - ${fdtaddr}; " \
+		"fi;\0" \
 	"uimageboot=echo Booting from mmc${mmcdev} ...; " \
 		"run args_mmc; " \
 		"bootm ${loadaddr}\0" \