]> git.dujemihanovic.xyz Git - u-boot.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)
commit1335e31ecc2cd7e4e51b730499198c7548ac0a3f
treea0af1b18c1130b7dd33ce6820cd2be22deab57d7
parent0034d84a66eaa51263a4881274b75de5b1c4f800
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