diff mbox

[v2,2/2] davinci: omapl138_lcdk: add DT support for EMMC boot

Message ID 20161129161503.29003-3-fparent@baylibre.com
State New
Headers show

Commit Message

Fabien Parent Nov. 29, 2016, 4:15 p.m. UTC
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>

---

v1 -> v2:
    * No change

---
 include/configs/omapl138_lcdk.h | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

-- 
2.10.2

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Comments

Tom Rini Dec. 4, 2016, 1:04 a.m. UTC | #1
On Tue, Nov 29, 2016 at 05:15:03PM +0100, Fabien Parent wrote:

> 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>


Applied to u-boot/master, thanks!

-- 
Tom
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot
diff mbox

Patch

diff --git a/include/configs/omapl138_lcdk.h b/include/configs/omapl138_lcdk.h
index c896638..fe9f94d 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -207,12 +207,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; " \