summaryrefslogtreecommitdiff
path: root/lib_ppc
diff options
context:
space:
mode:
authorHaiying Wang <Haiying.Wang@freescale.com>2008-01-16 17:12:12 -0500
committerJon Loeliger <jdl@freescale.com>2008-01-17 12:26:56 -0600
commitd59feffb42c9f174116db7a82a311df98983dfce (patch)
tree479be43f12a4588b50ac6871234cb51b25fae175 /lib_ppc
parent6bee764bd6da510a4aad614880300c968bc7318d (diff)
FSL: Fix common EEPROM_data structure definition
- Fix EEPROM_data structure definition according to System EEPROM Data Format. - Read MAC addresses from EEPROM to ethXaddr before saving ethXaddr to bd->bi_ethaddr. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 7b95246e110..158db50ed5f 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -835,6 +835,11 @@ void board_init_r (gd_t *id, ulong dest_addr)
#if defined(CONFIG_SC3)
sc3_read_eeprom();
#endif
+
+#ifdef CFG_ID_EEPROM
+ mac_read_from_eeprom();
+#endif
+
s = getenv ("ethaddr");
#if defined (CONFIG_MBX) || \
defined (CONFIG_RPXCLASSIC) || \
@@ -902,10 +907,6 @@ void board_init_r (gd_t *id, ulong dest_addr)
}
#endif
-#ifdef CFG_ID_EEPROM
- mac_read_from_eeprom();
-#endif
-
#if defined(CONFIG_TQM8xxL) || defined(CONFIG_TQM8260) || \
defined(CONFIG_TQM8272) || \
defined(CONFIG_CCM) || defined(CONFIG_KUP4K) || \