[PATCH v4 1/4] board: dhelectronics: Implement common MAC address functions
Tom Rini
trini at konsulko.com
Sat Aug 13 03:41:22 CEST 2022
On Tue, Jul 26, 2022 at 03:04:50PM +0200, Philip Oberfichtner wrote:
> This is a starting point for unifying duplicate code in the DH board
> files. The functions for setting up MAC addresses are very similar for
> the i.MX6, i.MX8 and stm32mp1 based boards.
>
> All pre-existing implementations follow the same logic:
>
> (1) Check if ethaddr is already set in the environment
> (2) If not, try to get it from a board specific location (e.g. fuse)
> (3) If not, try to get it from eeprom
>
> After this commit, (1) and (3) are implemented as common functions,
> ready to be used by board specific files.
>
> Furthermore there is an implementation of (2) for imx based boards.
>
> Signed-off-by: Philip Oberfichtner <pro at denx.de>
> Reviewed-by: Marek Vasut <marex at denx.de>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20220812/f6d97b7a/attachment.sig>
More information about the U-Boot
mailing list