mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
Currently, the board specific code evaluates only the first Ethernet MAC address fuse, regardless of whether the first or second MAC address is requested. When the function to determine the second Ethernet MAC address is looking for the fused MAC address, it only reads the first MAC address fuse and increment it by one to set the second Ethernet MAC address. That is not the expected behavior when two MAC addresses are fused, because this causes the second fused MAC address to be ignored. Change this so that the second fused MAC address will be used. Reviewed-by: Peng Fan <peng.fan@nxp.com> Signed-off-by: Christoph Niedermaier <cniedermaier@dh-electronics.com> Reviewed-by: Marek Vasut <marex@nabladev.com>
14 lines
429 B
C
14 lines
429 B
C
/* SPDX-License-Identifier: GPL-2.0+
|
|
*
|
|
* Copyright 2022 DENX Software Engineering GmbH, Philip Oberfichtner <pro@denx.de>
|
|
*/
|
|
|
|
/*
|
|
* dh_imx_get_mac_from_fuse - Get MAC address from fuse and write it to env
|
|
*
|
|
* @enetaddr: buffer where address is to be stored
|
|
* @index: index of MAC address in fuse (starts with 0)
|
|
* Return: 0 if OK, other value on error
|
|
*/
|
|
int dh_imx_get_mac_from_fuse(unsigned char *enetaddr, int index);
|