u-boot/board/dhelectronics
Philip Oberfichtner 386f921cee board: dhelectronics: Implement common MAC address functions
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@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
2022-08-12 16:10:49 -04:00
..
common board: dhelectronics: Implement common MAC address functions 2022-08-12 16:10:49 -04:00
dh_imx6 ARM: imx6: Adapt device tree selection in DH board file 2022-05-20 12:36:49 +02:00
dh_imx8mp ARM: dts: imx: Add support for DH electronics i.MX8M Plus DHCOM and PDK2 2022-05-23 11:37:58 +02:00
dh_stm32mp1 Merge branch 'master' into next 2022-06-20 14:40:59 -04:00