diff options
author | Michael Barkowski <michael.barkowski@freescale.com> | 2008-03-27 14:34:43 -0400 |
---|---|---|
committer | Kim Phillips <kim.phillips@freescale.com> | 2008-03-28 16:02:27 -0500 |
commit | 5b2793a3f3de34d439232b05acc8af67a028fd35 (patch) | |
tree | 8f863980bec4614ea29dc884a4e650232235eae1 /include/configs/MPC8323ERDB.h | |
parent | 8f325cff31f6e745e6540014b131b9a97f61944c (diff) | |
download | u-boot-imx-5b2793a3f3de34d439232b05acc8af67a028fd35.zip u-boot-imx-5b2793a3f3de34d439232b05acc8af67a028fd35.tar.gz u-boot-imx-5b2793a3f3de34d439232b05acc8af67a028fd35.tar.bz2 |
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 'include/configs/MPC8323ERDB.h')
-rw-r--r-- | include/configs/MPC8323ERDB.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/configs/MPC8323ERDB.h b/include/configs/MPC8323ERDB.h index 65f829d..92d7aa4 100644 --- a/include/configs/MPC8323ERDB.h +++ b/include/configs/MPC8323ERDB.h @@ -323,8 +323,11 @@ /* * Config on-board EEPROM */ -#define CFG_I2C_EEPROM_ADDR 0x50 -#define CFG_I2C_EEPROM_ADDR_LEN 2 +#define CFG_I2C_EEPROM_ADDR 0x50 +#define CFG_I2C_EEPROM_ADDR_LEN 2 +#define CFG_EEPROM_PAGE_WRITE_BITS 6 +#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10 +#define CFG_EEPROM_PAGE_WRITE_ENABLE /* * General PCI @@ -549,6 +552,9 @@ #define CONFIG_HAS_ETH1 /* add support for "eth1addr" */ #define CONFIG_ETH1ADDR 00:04:9f:ef:03:02 +/* use mac_read_from_eeprom() to read ethaddr from I2C EEPROM (see CFG_I2C_EEPROM) */ +#define CFG_I2C_MAC_OFFSET 0x7f00 /* MAC address offset in I2C EEPROM */ + #define CONFIG_IPADDR 10.0.0.2 #define CONFIG_SERVERIP 10.0.0.1 #define CONFIG_GATEWAYIP 10.0.0.1 |