mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 16:52:14 +02:00
board: sam9x60ek: add support for MAC address retrieval
Retrieve mac address from i2c eeprom at boot time. Signed-off-by: Eugen Hristev <eugen.hristev@microchip.com>
This commit is contained in:
@@ -106,6 +106,18 @@ int board_early_init_f(void)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define MAC24AA_MAC_OFFSET 0xfa
|
||||||
|
|
||||||
|
#ifdef CONFIG_MISC_INIT_R
|
||||||
|
int misc_init_r(void)
|
||||||
|
{
|
||||||
|
#ifdef CONFIG_I2C_EEPROM
|
||||||
|
at91_set_ethaddr(MAC24AA_MAC_OFFSET);
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int board_init(void)
|
int board_init(void)
|
||||||
{
|
{
|
||||||
/* address of boot parameters */
|
/* address of boot parameters */
|
||||||
|
Reference in New Issue
Block a user