arm: mvebu: turris_omnia: Define CONFIG_ETHPRIME instead of ethact= ENV
authorPali Rohár <pali@kernel.org>
Wed, 6 Apr 2022 09:39:33 +0000 (11:39 +0200)
committerStefan Roese <sr@denx.de>
Mon, 2 May 2022 05:47:26 +0000 (07:47 +0200)
CONFIG_ETHPRIME defines primary ethernet device and env variable $ethact
stores currently active ethernet device.

So there is no point to set ethact= in default environment. Instead set
CONFIG_ETHPRIME properly.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Marek Behún <marek.behun@nic.cz>
configs/turris_omnia_defconfig
include/configs/turris_omnia.h

index f310deb..5591c97 100644 (file)
@@ -64,6 +64,8 @@ CONFIG_CMD_FS_UUID=y
 # CONFIG_SPL_PARTITION_UUIDS is not set
 CONFIG_ENV_OVERWRITE=y
 CONFIG_SYS_RELOC_GD_ENV_ADDR=y
+CONFIG_USE_ETHPRIME=y
+CONFIG_ETHPRIME="ethernet@34000"
 CONFIG_ARP_TIMEOUT=200
 CONFIG_NET_RETRY_COUNT=50
 CONFIG_SPL_OF_TRANSLATE=y
index b35299b..e8130ac 100644 (file)
        LOAD_ADDRESS_ENV_SETTINGS \
        "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \
        "console=ttyS0,115200\0" \
-       "ethact=ethernet@34000\0" \
        "bootcmd_rescue=" TURRIS_OMNIA_BOOTCMD_RESCUE "\0" \
        BOOTENV