From: Marek Vasut Date: Wed, 26 Jun 2019 22:19:35 +0000 (+0200) Subject: ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM X-Git-Tag: v2020.01-rc1~22^2 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e6281b8ab07e0d64be3f5f829d5a3d3a08390daa;p=oweals%2Fu-boot.git ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM The EEPROM contains eth1 MAC address as well, use it. Signed-off-by: Marek Vasut Cc: Silvio Fricke Cc: Simon Goldschmidt --- diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c index 1e095a4e7d..3f597fb99e 100644 --- a/board/softing/vining_fpga/socfpga.c +++ b/board/softing/vining_fpga/socfpga.c @@ -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; }