From: Stefano Babic Date: Wed, 29 Aug 2012 01:22:00 +0000 (+0000) Subject: OMAP3: twister : get MAC address from EEPROM X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=0b26b8751ad2aa5f36df12a66357c4a2551b7275;p=u-boot.git OMAP3: twister : get MAC address from EEPROM Signed-off-by: Stefano Babic --- diff --git a/board/technexion/twister/twister.c b/board/technexion/twister/twister.c index c2b10ac1ea..7429e934fd 100644 --- a/board/technexion/twister/twister.c +++ b/board/technexion/twister/twister.c @@ -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; }