From patchwork Fri Nov 25 10:11:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien Parent X-Patchwork-Id: 84099 Delivered-To: patch@linaro.org Received: by 10.182.1.168 with SMTP id 8csp52762obn; Fri, 25 Nov 2016 02:11:51 -0800 (PST) X-Received: by 10.194.56.234 with SMTP id d10mr7191305wjq.78.1480068711394; Fri, 25 Nov 2016 02:11:51 -0800 (PST) Return-Path: Received: from theia.denx.de (theia.denx.de. [85.214.87.163]) by mx.google.com with ESMTP id t6si12953856wmf.1.2016.11.25.02.11.51; Fri, 25 Nov 2016 02:11:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) client-ip=85.214.87.163; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@baylibre-com.20150623.gappssmtp.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 85.214.87.163 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DE4ACA7550; Fri, 25 Nov 2016 11:11:44 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jtGAYxVLEiHb; Fri, 25 Nov 2016 11:11:44 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6787B3839; Fri, 25 Nov 2016 11:11:42 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 060F34B98A for ; Fri, 25 Nov 2016 11:11:37 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MtE3AZ_V109Y for ; Fri, 25 Nov 2016 11:11:36 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by theia.denx.de (Postfix) with ESMTPS id C5D174B6B3 for ; Fri, 25 Nov 2016 11:11:32 +0100 (CET) Received: by mail-wm0-f48.google.com with SMTP id a197so138652678wmd.0 for ; Fri, 25 Nov 2016 02:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gwIRpCNj3NabikdL2GxuAaa6zm+fO1QNR+pBy+1Eov0=; b=hALtzmveGPoRxwJg1GbnyAQEOEGybpTE7Dr7Az1rRj2Q26nBGPsQOQim18YzUeHaOq WHO2qQUf/5rq0FBjoOdLJ5t0W0per6mKkJBHp1yaPkKPSnlLoIRBXJ//sXscpC8wxYnN IIlI8tGCOwGM6n8HrpgiTpToKtfElB0p0oi8uYcs/QYsVztaAiLrjrcnhJJzLNHtW0s9 G8bX5AoH/twUVYzYNJBNxdmNydciWMyckNVYdDm7WfnnWXvpNJewGkkz0esSoiBe+9up ST0knZ3q1E2tE3ZEWqvKs8YdF1hjpuesiPIbMFAC9r7rIhsQEB6E0NSYKEgAlkomiARO +AJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=gwIRpCNj3NabikdL2GxuAaa6zm+fO1QNR+pBy+1Eov0=; b=kmxac7zkIGKV6gHBgI+jNesSIrRijTzBLzq1ACOcOLXfKEbN7wI9hFLAMlSZ0ZINk5 QDCQnyocx4OPBbSeVTcYswSwW6Nn7YzX4OkjSyWXT74pAh/XpOsvhDzvznayzvB93ujD cve6+NQZa89VFfoQvGcKFybNRQWtwGrBYPcqE0VzVVJyQFBorNDueDMqchborP2cExLL 0bLQ6RNQI0HKw2CmWbwM8JDgZlVkZICOBEWgqOFQeHZvhVIFM8gEJYBPZ/qLuf0tNUBq 9l0n24KqvA3MPa6UoFMM9TBy9yFM46xTeqFp1FoETixfUDEgeGv/f0aW52rI/tFeoQII Jx/A== X-Gm-Message-State: AKaTC01HfBb/eBWN+Ci3SB5mKBHbraqKDfAsGxlPe2FzGz2gnA0pfgEELCXJDzUMP3lK2CQm X-Received: by 10.194.60.195 with SMTP id j3mr6855223wjr.149.1480068691960; Fri, 25 Nov 2016 02:11:31 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ab10sm46158572wjc.45.2016.11.25.02.11.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2016 02:11:31 -0800 (PST) From: Fabien Parent To: u-boot@lists.denx.de Date: Fri, 25 Nov 2016 11:11:23 +0100 Message-Id: <20161125101127.15260-2-fparent@baylibre.com> X-Mailer: git-send-email 2.10.2 In-Reply-To: <20161125101127.15260-1-fparent@baylibre.com> References: <20161125101127.15260-1-fparent@baylibre.com> Cc: Tom Rini Subject: [U-Boot] [PATCH 1/5] davinci: omapl138_lcdk: fixup mac address in dtb X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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(+) -- 2.10.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot 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