]> git.baikalelectronics.ru Git - uboot.git/commit
board: traverse: ten64: fix allocation order of MAC addresses
authorMathew McBride <matt@traverse.com.au>
Fri, 21 Jul 2023 04:39:25 +0000 (04:39 +0000)
committerTom Rini <trini@konsulko.com>
Thu, 3 Aug 2023 13:40:50 +0000 (09:40 -0400)
commitf420ad241bf48a9507d35c722a4f2857b9a0ee81
treecf632337d5cc91ad53bc53c33b667f1254bb97fe
parenta42ff5f3ad6dd786359247b3a9db21caeff55d7a
board: traverse: ten64: fix allocation order of MAC addresses

On Ten64 boards, the "serial number" is the MAC address of the
first Gigabit Ethernet interface (labelled GE0 on the appliance),
and counted up from there.

The previous logic did not take into account U-Boot's ordering
of the network interfaces. By setting aliases/ethernetX in the device
tree we can ensure the U-Boot 'ethX' is the same as the labelled
port order on the unit, as well as the one adopted by Linux.

Signed-off-by: Mathew McBride <matt@traverse.com.au>
arch/arm/dts/fsl-ls1088a-ten64-u-boot.dtsi
board/traverse/ten64/ten64.c