[U-Boot] [PATCH 5/5] ARM: socfpga: vining_fpga: Extract eth1 MAC from EEPROM
Simon Goldschmidt
simon.k.r.goldschmidt at gmail.com
Thu Jun 27 09:33:50 UTC 2019
On Thu, Jun 27, 2019 at 12:21 AM Marek Vasut <marex at denx.de> wrote:
>
> The EEPROM contains eth1 MAC address as well, use it.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Silvio Fricke <silvio.fricke at softing.com>
> Cc: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
Reviewed-by: Simon Goldschmidt <simon.k.r.goldschmidt at gmail.com>
> ---
> board/softing/vining_fpga/socfpga.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/board/softing/vining_fpga/socfpga.c b/board/softing/vining_fpga/socfpga.c
> index efc8ddf162..172c478de0 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;
> }
> --
> 2.20.1
>
More information about the U-Boot
mailing list