]> git.baikalelectronics.ru Git - uboot.git/commitdiff
arm: mvebu: turris_omnia: Set ETHPRIME to DT alias
authorPali Rohár <pali@kernel.org>
Fri, 15 Jul 2022 08:16:00 +0000 (10:16 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Jul 2022 08:14:04 +0000 (10:14 +0200)
CONFIG_ETHPRIME can be set to DT node name or alias which refers to DT
node. Define ethernet aliases and set ETHPRIME to eth2 which refers to WAN
ethernet port. This removes hardcoded DT node name from U-Boot
configuration file.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <kabel@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
arch/arm/dts/armada-385-turris-omnia.dts
configs/turris_omnia_defconfig

index 5511c84849ee8ee096f83653dce2a5d29f8dc495..7f1478edfd23f965258b0aacf108a5f0feb606b2 100644 (file)
                stdout-path = &uart0;
        };
 
+       aliases {
+               ethernet0 = &eth0;
+               ethernet1 = &eth1;
+               ethernet2 = &eth2;
+       };
+
        memory {
                device_type = "memory";
                reg = <0x00000000 0x40000000>; /* 1024 MB */
index 4085fac2329e51f8567b68942f17aa019a2c5471..cbe0617394db8f1911a0e8dd14dc45182e44c66b 100644 (file)
@@ -74,7 +74,7 @@ CONFIG_CMD_FS_UUID=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
 CONFIG_USE_ETHPRIME=y
-CONFIG_ETHPRIME="ethernet@34000"
+CONFIG_ETHPRIME="eth2"
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_NETCONSOLE=y