km: ls102x: set ethrotate envvar to no
authorAleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Tue, 8 Jun 2021 14:21:15 +0000 (14:21 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Thu, 17 Jun 2021 06:16:11 +0000 (11:46 +0530)
The default behavior in the latest u-boot revisions is to rotate the
active net device to the next available if the requested link is not
established.

For our ls102x based devices this would mean that if active debug net
device is not available, u-boot will rotate and set the next net device
that is one of the estar adapters.
To return from this situation manual action to set correct ethact
adapter will be needed and this can be annoying when working in
debug mode.

Setting ethrotate=no will disable net adapter rotation and will make sure
that the primary adapter is always used.

Signed-off-by: Aleksandar Gerasimovski <aleksandar.gerasimovski@hitachi-powergrids.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
include/configs/km/pg-wcom-ls102xa.h

index 1e06a5b..644da3b 100644 (file)
        CONFIG_KM_NEW_ENV                                               \
        CONFIG_KM_DEF_ENV                                               \
        "EEprom_ivm=pca9547:70:9\0"                                     \
+       "ethrotate=no\0"                                                \
        ""
 
 #define CONFIG_SYS_BOOTM_LEN   (64 << 20) /* Increase max gunzip size */