summaryrefslogtreecommitdiffstats
path: root/lib_ppc
diff options
context:
space:
mode:
authorMichael Barkowski <michael.barkowski@freescale.com>2008-03-27 14:34:43 -0400
committerKim Phillips <kim.phillips@freescale.com>2008-03-28 16:02:27 -0500
commit5b2793a3f3de34d439232b05acc8af67a028fd35 (patch)
tree8f863980bec4614ea29dc884a4e650232235eae1 /lib_ppc
parent8f325cff31f6e745e6540014b131b9a97f61944c (diff)
downloadblackbird-obmc-uboot-5b2793a3f3de34d439232b05acc8af67a028fd35.tar.gz
blackbird-obmc-uboot-5b2793a3f3de34d439232b05acc8af67a028fd35.zip
mpc8323erdb: fix EEPROM page size and get MAC from EEPROM
This patch fixes eeprom page size so that you can now write more than 64 bytes at a time. It also makes the board take MAC addresses, if found, from EEPROM. User should place up to 4 addresses at offset 0x7f00, for eth{,1,2,3}addr. Any unused addresses should be zero. This group of four six-byte values should have it's CRC at the end. crc32 and eeprom commands can be used to accomplish this. If CRC fails, MAC addresses come from the environment. If CRC succeeds, the environment is overwritten at startup. Signed-off-by: Michael Barkowski <michael.barkowski@freescale.com> Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Diffstat (limited to 'lib_ppc')
-rw-r--r--lib_ppc/board.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib_ppc/board.c b/lib_ppc/board.c
index 30383027c7..50cdf8c8d3 100644
--- a/lib_ppc/board.c
+++ b/lib_ppc/board.c
@@ -876,7 +876,7 @@ void board_init_r (gd_t *id, ulong dest_addr)
sc3_read_eeprom();
#endif
-#ifdef CFG_ID_EEPROM
+#if defined (CFG_ID_EEPROM) || defined (CFG_I2C_MAC_OFFSET)
mac_read_from_eeprom();
#endif
OpenPOWER on IntegriCloud