]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
eeprom: starfive: set eth0 mac address properly
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 11 Aug 2023 07:12:25 +0000 (16:12 +0900)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 5 Sep 2023 02:53:29 +0000 (10:53 +0800)
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>
board/starfive/visionfive2/visionfive2-i2c-eeprom.c

index befe7888c400a38fb5f047f22985161b2b8da695..c334d98cf6e5d479a2485dcb582ce8b0587e2977 100644 (file)
@@ -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);
 
        /**