board: atmel: common: introduce at91_set_eth1addr for second interface
authorEugen Hristev <eugen.hristev@microchip.com>
Wed, 5 Aug 2020 12:30:34 +0000 (15:30 +0300)
committerEugen Hristev <eugen.hristev@microchip.com>
Tue, 22 Sep 2020 08:27:18 +0000 (11:27 +0300)
commit68d3ec599edff1c7ead539820efbc2234fb965ed
tree29dd14bfced7f9d20926637d5cbe3948b1246584
parent6a6fe3ed4d80afba7efc65a87aca5344672768c5
board: atmel: common: introduce at91_set_eth1addr for second interface

We already have a function to retrieve the mac address from one EEPROM.
For boards with a second Ethernet interface, however, we would
require another EEPROM with a second unique MAC address.
Introduce at91_set_eth1addr which will look for a second EEPROM
and set the 'eth1addr' variable with the obtained MAC address.

Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
arch/arm/mach-at91/include/mach/at91_common.h
board/atmel/common/mac_eeprom.c