]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
OMAP3: mt_ventoux: read MAC address from EEPROM
authorStefano Babic <sbabic@denx.de>
Wed, 29 Aug 2012 01:22:03 +0000 (01:22 +0000)
committerTom Rini <trini@ti.com>
Wed, 5 Sep 2012 00:05:39 +0000 (17:05 -0700)
Signed-off-by: Stefano Babic <sbabic@denx.de>
board/teejet/mt_ventoux/mt_ventoux.c

index 9fbaedd79205de2b823019cbbe1655ed92e3530d..b7744a9bb3a82cc3a5dc8f114a54e69acea0e8d4 100644 (file)
@@ -196,6 +196,22 @@ int board_init(void)
        return 0;
 }
 
+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;
+}
+
 /*
  * Routine: set_muxconf_regs
  * Description: Setting up the configuration Mux registers specific to the