diff options
| author | Eugen Hristev <[email protected]> | 2020-08-05 15:30:34 +0300 |
|---|---|---|
| committer | Eugen Hristev <[email protected]> | 2020-09-22 11:27:18 +0300 |
| commit | 68d3ec599edff1c7ead539820efbc2234fb965ed (patch) | |
| tree | 29dd14bfced7f9d20926637d5cbe3948b1246584 /arch | |
| parent | 6a6fe3ed4d80afba7efc65a87aca5344672768c5 (diff) | |
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 <[email protected]>
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/arm/mach-at91/include/mach/at91_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm/mach-at91/include/mach/at91_common.h b/arch/arm/mach-at91/include/mach/at91_common.h index 01e00c508a8..f7b411cf7df 100644 --- a/arch/arm/mach-at91/include/mach/at91_common.h +++ b/arch/arm/mach-at91/include/mach/at91_common.h @@ -40,6 +40,7 @@ void configure_ddrcfg_input_buffers(bool open); #endif int at91_set_ethaddr(int offset); +int at91_set_eth1addr(int offset); void at91_spi_nor_set_ethaddr(void); int at91_video_show_board_info(void); |
