mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
eeprom: starfive: set eth0 mac address properly
fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set ethaddr to environment instead of eth0addr. Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
This commit is contained in:
committed by
Leo Yu-Chi Liang
parent
493fd3363f
commit
71914337ef
@@ -504,7 +504,7 @@ int mac_read_from_eeprom(void)
|
||||
}
|
||||
|
||||
// 1, setup ethaddr env
|
||||
eth_env_set_enetaddr("eth0addr", pbuf.eeprom.atom4.data.mac0_addr);
|
||||
eth_env_set_enetaddr("ethaddr", pbuf.eeprom.atom4.data.mac0_addr);
|
||||
eth_env_set_enetaddr("eth1addr", pbuf.eeprom.atom4.data.mac1_addr);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user