diff options
author | Stefano Babic <sbabic@denx.de> | 2012-08-29 01:22:00 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-04 17:05:38 -0700 |
commit | 0b26b8751ad2aa5f36df12a66357c4a2551b7275 (patch) | |
tree | 85d42d61b50113930e4e334716cfba272404a2e2 /board/technexion | |
parent | 8103c6f0fa141f19bd6b623f3f9153d9aeb47076 (diff) | |
download | u-boot-imx-0b26b8751ad2aa5f36df12a66357c4a2551b7275.zip u-boot-imx-0b26b8751ad2aa5f36df12a66357c4a2551b7275.tar.gz u-boot-imx-0b26b8751ad2aa5f36df12a66357c4a2551b7275.tar.bz2 |
OMAP3: twister : get MAC address from EEPROM
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board/technexion')
-rw-r--r-- | board/technexion/twister/twister.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/technexion/twister/twister.c b/board/technexion/twister/twister.c index c2b10ac..7429e93 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; } |