]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
board: sl28: move ethernet aliases to variant specific dtsi
authorMichael Walle <michael@walle.cc>
Thu, 7 Jan 2021 23:08:56 +0000 (00:08 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Mon, 8 Feb 2021 08:31:15 +0000 (14:01 +0530)
The variants differ in their network configuration. Move the first two
network aliases to the proper variant device tree includes. This is in
prepartion for variant 1 and 2 support which has a different network
port mapping. The network aliases for the two internal ports will stay
in the common dtsi because they are present on all board variants.

This might leave a hole if there is no ethernet1 alias. This is
intended.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
arch/arm/dts/fsl-ls1028a-kontron-sl28-u-boot.dtsi
arch/arm/dts/fsl-ls1028a-kontron-sl28-var3-u-boot.dtsi
arch/arm/dts/fsl-ls1028a-kontron-sl28-var4-u-boot.dtsi

index 9b4e0298a75cf7fead13dd8f4c07c430c65aa819..84e974e84d582e6fcdf6cc38d45f257f4582e009 100644 (file)
@@ -10,8 +10,6 @@
                i2c1 = &i2c3;
                i2c2 = &i2c4;
                rtc0 = &rtc;
-               ethernet0 = &enetc0;
-               ethernet1 = &enetc1;
                ethernet2 = &enetc2;
                ethernet3 = &enetc6;
        };
index 79b771e0746e276feeb850cd23da02aba003086d..879a76415ba92de7ead0b612c5e7822d8411a8af 100644 (file)
@@ -1,2 +1,8 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include "fsl-ls1028a-kontron-sl28-u-boot.dtsi"
+
+/ {
+       aliases {
+               ethernet0 = &enetc0;
+       };
+};
index 79b771e0746e276feeb850cd23da02aba003086d..fce46946828f6cc5ee2c846d600fc124f59e5fd7 100644 (file)
@@ -1,2 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 #include "fsl-ls1028a-kontron-sl28-u-boot.dtsi"
+
+/ {
+       aliases {
+               ethernet0 = &enetc0;
+               ethernet1 = &enetc1;
+       };
+};