]> git.sur5r.net Git - u-boot/commitdiff
ppc4xx: Fix EEPROM configuration on Kilauea
authorStefan Roese <sr@denx.de>
Tue, 21 Jul 2009 12:33:52 +0000 (14:33 +0200)
committerStefan Roese <sr@denx.de>
Fri, 24 Jul 2009 07:56:18 +0000 (09:56 +0200)
Kilauea has an AT24C02 EEPROM which has an 8 byte page. Without defining
CONFIG_SYS_EEPROM_PAGE_WRITE_BITS to 3 the "eeprom" command doesn't
work correctly.

Additionally the page write delay (CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS)
is set to a more defensive value of 10ms.

Signed-off-by: Stefan Roese <sr@denx.de>
include/configs/kilauea.h

index df1b0612ce610ffc2be732cb0ca949db2d885d3d..1e7e731f94228727a08ae764fc4f42dc05960cdd 100644 (file)
  *----------------------------------------------------------------------*/
 #define CONFIG_SYS_I2C_SPEED           400000  /* I2C speed and slave address  */
 
-#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  6       /* 24C02 requires 5ms delay */
 #define CONFIG_SYS_I2C_EEPROM_ADDR     0x52    /* I2C boot EEPROM (24C02BN)    */
 #define CONFIG_SYS_I2C_EEPROM_ADDR_LEN 1       /* Bytes of address             */
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS      3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
 /* Standard DTT sensor configuration */
 #define CONFIG_DTT_DS1775      1