* Patch by Martin Krause, 17 Jul 2003:
[pandora-u-boot.git] / common / cmd_i2c.c
index 3856f3d..6a9c77a 100644 (file)
@@ -507,6 +507,9 @@ mod_i2c_mem(cmd_tbl_t *cmdtp, int incrflag, int flag, int argc, char *argv[])
                                if(i2c_write(chip, addr, alen, (char *)&data, size) != 0) {
                                        printf("Error writing the chip.\n");
                                }
+#ifdef CFG_EEPROM_PAGE_WRITE_DELAY_MS
+                               udelay(CFG_EEPROM_PAGE_WRITE_DELAY_MS * 1000);
+#endif
                                if (incrflag)
                                        addr += size;
                        }