From patchwork Wed Jun 26 22:19:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 1123037 X-Patchwork-Delegate: simon.k.r.goldschmidt@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45YyGv1bkjz9s3Z for ; Thu, 27 Jun 2019 08:23:35 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id DBF01C21D74; Wed, 26 Jun 2019 22:22:45 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 228C1C21DF9; Wed, 26 Jun 2019 22:21:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1D3C2C21DEC; Wed, 26 Jun 2019 22:21:45 +0000 (UTC) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.10]) by lists.denx.de (Postfix) with ESMTPS id 57185C21DD4 for ; Wed, 26 Jun 2019 22:21:41 +0000 (UTC) Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 45YyDj1CR7z1rfq5; Thu, 27 Jun 2019 00:21:41 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 45YyDj138tz26YxR; Thu, 27 Jun 2019 00:21:41 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id bLqk9djTIKZV; Thu, 27 Jun 2019 00:21:40 +0200 (CEST) X-Auth-Info: +FiZSrZt7Uwgu/oULXAQKjSsyOtCMxUpLuB0C/iYqsY= Received: from kurokawa.lan (ip-86-49-110-70.net.upcbroadband.cz [86.49.110.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 27 Jun 2019 00:21:40 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Thu, 27 Jun 2019 00:19:35 +0200 Message-Id: <20190626221935.23477-5-marex@denx.de> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190626221935.23477-1-marex@denx.de> References: <20190626221935.23477-1-marex@denx.de> MIME-Version: 1.0 Cc: Marek Vasut , Silvio Fricke Subject: [U-Boot] [PATCH 5/5] ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" The EEPROM contains eth1 MAC address as well, use it. Signed-off-by: Marek Vasut Cc: Silvio Fricke Cc: Simon Goldschmidt Reviewed-by: Simon Goldschmidt --- board/softing/vining_fpga/socfpga.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c index efc8ddf162..172c478de0 100644 --- a/board/softing/vining_fpga/socfpga.c +++ b/board/softing/vining_fpga/socfpga.c @@ -87,6 +87,8 @@ int misc_init_r(void) /* Set ethernet address from EEPROM. */ if (!env_get("ethaddr") && is_valid_ethaddr(&data[0x62])) eth_env_set_enetaddr("ethaddr", &data[0x62]); + if (!env_get("eth1addr") && is_valid_ethaddr(&data[0x6a])) + eth_env_set_enetaddr("eth1addr", &data[0x6a]); return 0; }