]> git.baikalelectronics.ru Git - uboot.git/commit
sunxi: call fdt_fixup_ethernet again to set macaddr for more aliases
authorIcenowy Zheng <icenowy@aosc.io>
Sat, 11 Sep 2021 17:39:16 +0000 (19:39 +0200)
committerAndre Przywara <andre.przywara@arm.com>
Sun, 30 Jan 2022 01:03:37 +0000 (01:03 +0000)
commit31892502f8546c18c8ff549402892dea83e265f1
tree2a83eed5254c2c7126698b81fbfa6a1d60988fdb
parent0d3bf877cced7643868a94264c31519ff3151c56
sunxi: call fdt_fixup_ethernet again to set macaddr for more aliases

Sometimes some ethernet aliases do not exist in U-Boot DT but they
exist in the DT used to boot the system (for example, modified via DT
overlays). In this situation setup_environment is called again in
ft_board_setup() to generate macaddr environment variable for them.
However now the call to fdt_fixup_ethernet() is moved before the call
of ft_board_setup().

Call fdt_fixup_ethernet() again to add MAC addresses for the extra
ethernet aliases.

Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
[updated commit message]
Signed-off-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
board/sunxi/board.c