diff mbox

[4/5] davinci: omapl138_lcdk: do fdt systemsetup when loading DT

Message ID 20161125101127.15260-5-fparent@baylibre.com
State New
Headers show

Commit Message

Fabien Parent Nov. 25, 2016, 10:11 a.m. UTC
When loading the DTB, let's also do the systemsetup in order to patch
the DT with the mac address.

Signed-off-by: Fabien Parent <fparent@baylibre.com>

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

-- 
2.10.2

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

Comments

Tom Rini Nov. 28, 2016, 5:43 p.m. UTC | #1
On Fri, Nov 25, 2016 at 11:11:26AM +0100, Fabien Parent wrote:

> When loading the DTB, let's also do the systemsetup in order to patch

> the DT with the mac address.

> 

> Signed-off-by: Fabien Parent <fparent@baylibre.com>


Like the first patch, we shouldn't need to do this, something deeper
must be wrong...

-- 
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 fe9f94d..29d061e 100644
--- a/include/configs/omapl138_lcdk.h
+++ b/include/configs/omapl138_lcdk.h
@@ -206,16 +206,25 @@ 
 	"else " \
 		"run spiboot; " \
 	"fi"
+#if defined(CONFIG_OF_SYSTEM_SETUP)
+#define FDTSETUP "fdtsetup=fdt addr ${fdtaddr}; fdt systemsetup;\0"
+#else
+#define FDTSETUP
+#endif
+
 #define CONFIG_EXTRA_ENV_SETTINGS \
+	FDTSETUP \
 	"fdtaddr=0xc0600000\0" \
 	"fdtfile=da850-lcdk.dtb\0" \
 	"fdtboot=bootm 0xc0700000 - ${fdtaddr};\0" \
+	"fdtsetup=fdt addr ${fdtaddr}; fdt systemsetup;\0" \
 	"mmcboot=" \
 		"if fatload mmc 0 0xc0600000 boot.scr; then " \
 			"source 0xc0600000; " \
 		"else " \
 			"fatload mmc 0 0xc0700000 uImage; " \
 			"fatload mmc 0 ${fdtaddr} ${fdtfile}; " \
+			"run fdtsetup;" \
 			"run fdtboot; " \
 		"fi;\0" \
 	"spiboot=" \