aboutsummaryrefslogtreecommitdiff
path: root/board/softing
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2019-06-27 00:19:35 +0200
committermarex <marex@chi.lan>2019-10-09 22:57:41 +0200
commite6281b8ab07e0d64be3f5f829d5a3d3a08390daa (patch)
tree9c2527ff80feeb4c73786df82809c4cc45a1aa8d /board/softing
parent110861992f1ed1c21e0abd60f71e7f59c2462a0b (diff)
downloadu-boot-e6281b8ab07e0d64be3f5f829d5a3d3a08390daa.zip
u-boot-e6281b8ab07e0d64be3f5f829d5a3d3a08390daa.tar.gz
u-boot-e6281b8ab07e0d64be3f5f829d5a3d3a08390daa.tar.bz2
ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM
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>
Diffstat (limited to 'board/softing')
-rw-r--r--board/softing/vining_fpga/socfpga.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c
index 1e095a4..3f597fb 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;
}