projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8103c6f
)
OMAP3: twister : get MAC address from EEPROM
author
Stefano Babic
<sbabic@denx.de>
Wed, 29 Aug 2012 01:22:00 +0000
(
01:22
+0000)
committer
Tom Rini
<trini@ti.com>
Wed, 5 Sep 2012 00:05:38 +0000
(17:05 -0700)
Signed-off-by: Stefano Babic <sbabic@denx.de>
board/technexion/twister/twister.c
patch
|
blob
|
history
diff --git
a/board/technexion/twister/twister.c
b/board/technexion/twister/twister.c
index c2b10ac1eaaca35e63146d39557a875f985831b9..7429e934fde6dbb3091fc548abcfd43bb62fec00 100644
(file)
--- 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;
}