mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
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>
This commit is contained in:
parent
110861992f
commit
e6281b8ab0
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue