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>
This commit is contained in:
committed by
Jon Loeliger
parent
6bee764bd6
commit
d59feffb42
@@ -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) || \
|
||||
|
||||
Reference in New Issue
Block a user