mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-01 17:10:11 +00:00
arm: mvebu: turris_omnia: fix adapters MAC addresses
The board code reads MAC addresses from the ATSHA204A cryptochip. For compatibility reasons the ethernet adapters on this SOC are not enumerated in register address order. But when Omnia was first manufactured this was done differently. Change setting of MAC addresses to conform to the description on the stickers sticked on actual Omnias. Signed-off-by: Marek Behún <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
1b355e53fc
commit
b0045b1c11
1 changed files with 5 additions and 5 deletions
|
@ -513,11 +513,6 @@ int misc_init_r(void)
|
||||||
mac[4] = mac1[2];
|
mac[4] = mac1[2];
|
||||||
mac[5] = mac1[3];
|
mac[5] = mac1[3];
|
||||||
|
|
||||||
if (is_valid_ethaddr(mac))
|
|
||||||
eth_env_set_enetaddr("ethaddr", mac);
|
|
||||||
|
|
||||||
increment_mac(mac);
|
|
||||||
|
|
||||||
if (is_valid_ethaddr(mac))
|
if (is_valid_ethaddr(mac))
|
||||||
eth_env_set_enetaddr("eth1addr", mac);
|
eth_env_set_enetaddr("eth1addr", mac);
|
||||||
|
|
||||||
|
@ -526,6 +521,11 @@ int misc_init_r(void)
|
||||||
if (is_valid_ethaddr(mac))
|
if (is_valid_ethaddr(mac))
|
||||||
eth_env_set_enetaddr("eth2addr", mac);
|
eth_env_set_enetaddr("eth2addr", mac);
|
||||||
|
|
||||||
|
increment_mac(mac);
|
||||||
|
|
||||||
|
if (is_valid_ethaddr(mac))
|
||||||
|
eth_env_set_enetaddr("ethaddr", mac);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue