summaryrefslogtreecommitdiff
path: root/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2023-08-11 16:12:25 +0900
committerLeo Yu-Chi Liang <ycliang@andestech.com>2023-09-05 10:53:29 +0800
commit71914337ef579bb22705d4b88fee6b1448f7a9b1 (patch)
tree6e7d36b461d064a16c2e2eebf2f95dfebb9efba4 /board/starfive/visionfive2/visionfive2-i2c-eeprom.c
parent493fd3363f6da6a784514657d689c7cda0f390d5 (diff)
downloadu-boot-71914337ef579bb22705d4b88fee6b1448f7a9b1.tar.gz
u-boot-71914337ef579bb22705d4b88fee6b1448f7a9b1.tar.bz2
u-boot-71914337ef579bb22705d4b88fee6b1448f7a9b1.zip
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>
Diffstat (limited to 'board/starfive/visionfive2/visionfive2-i2c-eeprom.c')
-rw-r--r--board/starfive/visionfive2/visionfive2-i2c-eeprom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
index befe7888c4..c334d98cf6 100644
--- a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
+++ b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
@@ -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);
/**