mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-29 16:10:58 +00:00
OMAP3: twister : get MAC address from EEPROM
Signed-off-by: Stefano Babic <sbabic@denx.de>
This commit is contained in:
parent
8103c6f0fa
commit
0b26b8751a
1 changed files with 10 additions and 0 deletions
|
@ -100,8 +100,18 @@ int board_init(void)
|
|||
|
||||
int misc_init_r(void)
|
||||
{
|
||||
char *eth_addr;
|
||||
|
||||
dieid_num_r();
|
||||
|
||||
eth_addr = getenv("ethaddr");
|
||||
if (eth_addr)
|
||||
return 0;
|
||||
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
TAM3517_READ_MAC_FROM_EEPROM;
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue