u-boot/board/CZ.NIC/turris_mox
Marek Behún 0034d84a66 arm: mvebu: turris_mox: Better check for valid ethernet addresses in env
Currently we overwrite ethaddr and eth1addr only if these variables
don't exist.

Better overwrite them even if the env variable exists, but is invalid -
eth_env_get_enetaddr_by_index() checks for validity.

Refactor the code to use a for cycle.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
2021-10-21 07:39:05 +02:00
..
MAINTAINERS arm64: mvebu: Add basic support for the Turris Mox board 2018-05-14 10:00:15 +02:00
Makefile arm: mvebu: turris_mox: Read info (and ethaddrs) from OTP 2019-01-21 11:39:50 +01:00
mox_sp.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mox_sp.h arm: mvebu: turris_mox: Read info (and ethaddrs) from OTP 2019-01-21 11:39:50 +01:00
turris_mox.c arm: mvebu: turris_mox: Better check for valid ethernet addresses in env 2021-10-21 07:39:05 +02:00