mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-14 17:07:38 +00:00
56610ef5f3
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>
28 lines
466 B
Text
28 lines
466 B
Text
// SPDX-License-Identifier: GPL-2.0+
|
|
#include <config.h>
|
|
|
|
#include "fsl-ls1088a-u-boot.dtsi"
|
|
|
|
/{
|
|
aliases {
|
|
spi0 = &qspi;
|
|
ethernet0 = &dpmac7;
|
|
ethernet1 = &dpmac8;
|
|
ethernet2 = &dpmac9;
|
|
ethernet3 = &dpmac10;
|
|
ethernet4 = &dpmac3;
|
|
ethernet5 = &dpmac4;
|
|
ethernet6 = &dpmac5;
|
|
ethernet7 = &dpmac6;
|
|
ethernet8 = &dpmac2;
|
|
ethernet9 = &dpmac1;
|
|
};
|
|
};
|
|
|
|
&i2c0 {
|
|
uc: board-controller@7e {
|
|
compatible = "traverse,ten64-controller";
|
|
reg = <0x7e>;
|
|
};
|
|
};
|
|
|