[U-Boot] [PATCH 4/5] davinci: omapl138_lcdk: do fdt systemsetup when loading DT

Fabien Parent fparent at baylibre.com
Fri Nov 25 11:11:26 CET 2016


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 at baylibre.com>
---
 include/configs/omapl138_lcdk.h | 9 +++++++++
 1 file changed, 9 insertions(+)

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=" \
-- 
2.10.2



More information about the U-Boot mailing list