From: Fabien Parent <fparent@baylibre.com>
Date: Tue, 29 Nov 2016 16:15:03 +0000 (+0100)
Subject: davinci: omapl138_lcdk: add DT support for EMMC boot
X-Git-Tag: v2025.01-rc5-pxa1908~7978
X-Git-Url: http://git.dujemihanovic.xyz/img/html/static/login.html?a=commitdiff_plain;h=5ca28f67ace439ee06efd310b53621526bd06468;p=u-boot.git

davinci: omapl138_lcdk: add DT support for EMMC boot

When booting from EMMC, load the DTB and pass it to the kernel.

Signed-off-by: Fabien Parent <fparent@baylibre.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
---

diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
index 06a62cd6b1..9e11f7dc95 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -274,12 +274,16 @@
 		"run spiboot; " \
 	"fi"
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	"fdtaddr=0xc0600000\0" \
+	"fdtfile=da850-lcdk.dtb\0" \
+	"fdtboot=bootm 0xc0700000 - ${fdtaddr};\0" \
 	"mmcboot=" \
 		"if fatload mmc 0 0xc0600000 boot.scr; then " \
 			"source 0xc0600000; " \
 		"else " \
 			"fatload mmc 0 0xc0700000 uImage; " \
-			"bootm 0xc0700000; " \
+			"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \
+			"run fdtboot; " \
 		"fi;\0" \
 	"spiboot=" \
 		"sf probe 0; " \