diff options
author | wdenk <wdenk> | 2003-01-17 16:27:01 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2003-01-17 16:27:01 +0000 |
commit | aacf9a49aa1a74d46726fbaee2b8e87e1dad6956 (patch) | |
tree | 422615fff8b285b857e7c31fd26af5397d0c4ce4 /common | |
parent | 608c91460b37fd9fe0088a0ce813a443f116a8d5 (diff) | |
download | bootable_bootloader_goldelico_gta04-aacf9a49aa1a74d46726fbaee2b8e87e1dad6956.zip bootable_bootloader_goldelico_gta04-aacf9a49aa1a74d46726fbaee2b8e87e1dad6956.tar.gz bootable_bootloader_goldelico_gta04-aacf9a49aa1a74d46726fbaee2b8e87e1dad6956.tar.bz2 |
* Add dual ethernet support on PM826
* Add support for LXT971 PHY on PM826
* Patch by Tord Andersson, 16 Jan 2003:
Fix flash sector count for TQM8xxL
* Fix I2C EEPROM problem on ICU862 board (would only write the first
16 bytes out of each 32 byte block)
Diffstat (limited to 'common')
-rw-r--r-- | common/cmd_eeprom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_eeprom.c b/common/cmd_eeprom.c index 29e9faf..32bab1a 100644 --- a/common/cmd_eeprom.c +++ b/common/cmd_eeprom.c @@ -288,7 +288,7 @@ int eeprom_write (unsigned dev_addr, unsigned offset, uchar *buffer, unsigned cn */ contr_reg[0] = 0; for (i = 0; i < MAX_ACKNOWLEDGE_POLLS; i++) { - if (i2c_read (addr_void[0], addr_void[1], 1, contr_reg, 1) == 1) + if (i2c_read (addr_void[0], addr_void[1], 1, contr_reg, 1) == 0) break; /* got ack */ #if defined(CFG_EEPROM_PAGE_WRITE_DELAY_MS) udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000); |