From: Fabien Parent Date: Fri, 25 Nov 2016 11:11:23 +0100 Subject: [U-Boot] [PATCH 1/5] davinci: omapl138_lcdk: fixup mac address in dtb In-Reply-To: <20161125101127.15260-1-fparent@baylibre.com> References: <20161125101127.15260-1-fparent@baylibre.com> Message-ID: <20161125101127.15260-2-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 In order to avoid having a random mac address assigned by Linux, let's fixup the dtb with the mac address that was programmed in the EEPROM. Signed-off-by: Fabien Parent --- board/davinci/da8xxevm/omapl138_lcdk.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/board/davinci/da8xxevm/omapl138_lcdk.c b/board/davinci/da8xxevm/omapl138_lcdk.c index 9c1a483..8a29748 100644 --- a/board/davinci/da8xxevm/omapl138_lcdk.c +++ b/board/davinci/da8xxevm/omapl138_lcdk.c @@ -10,6 +10,7 @@ */ #include +#include #include #include #include @@ -371,3 +372,12 @@ int board_mmc_init(bd_t *bis) return davinci_mmc_init(bis, &mmc_sd0); } #endif + +#if defined(CONFIG_OF_LIBFDT) && defined(CONFIG_OF_SYSTEM_SETUP) +int ft_system_setup(void *blob, bd_t *bd) +{ + fdt_fixup_ethernet(blob); + + return 0; +} +#endif -- 2.10.2