From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 5/5] ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM
Date: Thu, 27 Jun 2019 00:19:35 +0200 [thread overview]
Message-ID: <20190626221935.23477-5-marex@denx.de> (raw)
In-Reply-To: <20190626221935.23477-1-marex@denx.de>
The EEPROM contains eth1 MAC address as well, use it.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Silvio Fricke <silvio.fricke@softing.com>
Cc: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
---
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;
}
--
2.20.1
next prev parent reply other threads:[~2019-06-26 22:19 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-26 22:19 [U-Boot] [PATCH 1/5] ARM: socfpga: vining_fpga: Rename VINING|FPGA Marek Vasut
2019-06-26 22:19 ` [U-Boot] [PATCH 2/5] ARM: socfpga: vining_fpga: Update DT Marek Vasut
2019-06-27 9:32 ` Simon Goldschmidt
2019-06-26 22:19 ` [U-Boot] [PATCH 3/5] ARM: socfpga: vining_fpga: Update generated headers Marek Vasut
2019-06-27 9:33 ` Simon Goldschmidt
2019-06-27 10:09 ` Marek Vasut
2019-06-28 7:50 ` Simon Goldschmidt
2019-06-28 11:28 ` Marek Vasut
2019-06-26 22:19 ` [U-Boot] [PATCH 4/5] ARM: socfpga: vining_fpga: Update environment Marek Vasut
2019-06-27 9:33 ` Simon Goldschmidt
2019-06-26 22:19 ` Marek Vasut [this message]
2019-06-27 9:33 ` [U-Boot] [PATCH 5/5] ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM Simon Goldschmidt
2019-06-27 9:32 ` [U-Boot] [PATCH 1/5] ARM: socfpga: vining_fpga: Rename VINING|FPGA Simon Goldschmidt
2019-10-09 18:20 ` Simon Goldschmidt
2019-10-09 20:59 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190626221935.23477-5-marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox