diff options
author | Marek Vasut <marex@denx.de> | 2019-06-27 00:19:35 +0200 |
---|---|---|
committer | marex <marex@chi.lan> | 2019-10-09 22:57:41 +0200 |
commit | e6281b8ab07e0d64be3f5f829d5a3d3a08390daa (patch) | |
tree | 9c2527ff80feeb4c73786df82809c4cc45a1aa8d /board/softing | |
parent | 110861992f1ed1c21e0abd60f71e7f59c2462a0b (diff) | |
download | u-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.c | 2 |
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; } |