From: Fabien Parent Date: Fri, 25 Nov 2016 11:11:26 +0100 Subject: [U-Boot] [PATCH 4/5] davinci: omapl138_lcdk: do fdt systemsetup when loading DT In-Reply-To: <20161125101127.15260-1-fparent@baylibre.com> References: <20161125101127.15260-1-fparent@baylibre.com> Message-ID: <20161125101127.15260-5-fparent@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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