]> git.baikalelectronics.ru Git - uboot.git/commit
arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid
authorMarek Behún <marek.behun@nic.cz>
Sat, 9 Oct 2021 17:33:43 +0000 (19:33 +0200)
committerStefan Roese <sr@denx.de>
Thu, 21 Oct 2021 05:39:05 +0000 (07:39 +0200)
commit0f11860cc80f445974b55ad7bce295ddf5bc4cfc
treea0af1b18c1130b7dd33ce6820cd2be22deab57d7
parentb108bd5ba8418004a14c091cc6cbba83c972306b
arm: mvebu: turris_omnia: Overwrite ethaddr only if invalid

Currently we always overwrite ethaddrs with those from EEPROM.

In order to allow user to use a cloned MAC address in U-Boot, change the
code so that it sets ethaddr variables only if they aren't set or are
invalid.

Signed-off-by: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Stefan Roese <sr@denx.de>
board/CZ.NIC/turris_omnia/turris_omnia.c