diff options
author | Stefano Babic <sbabic@denx.de> | 2012-08-29 01:22:03 +0000 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2012-09-04 17:05:39 -0700 |
commit | 9d5fc239cf971a3d43954185b9de1dc75e35f6b0 (patch) | |
tree | 87d74561b80cbea9132a5245fc5f66c9053f245e /board | |
parent | d0e9fb1cf904e328b987ffd66571161fb2e9bcaf (diff) |
OMAP3: mt_ventoux: read MAC address from EEPROM
Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'board')
-rw-r--r-- | board/teejet/mt_ventoux/mt_ventoux.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/board/teejet/mt_ventoux/mt_ventoux.c b/board/teejet/mt_ventoux/mt_ventoux.c index 9fbaedd792..b7744a9bb3 100644 --- a/board/teejet/mt_ventoux/mt_ventoux.c +++ b/board/teejet/mt_ventoux/mt_ventoux.c @@ -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 |