summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2009-07-21 14:33:52 +0200
committerStefan Roese <sr@denx.de>2009-07-24 09:56:18 +0200
commitf6af8ce0c80327cb6aaa347642026ad838335c23 (patch)
tree7b21d8659d88ba0c31f481e357d80c4ff2aa0aba /include
parent99d8b23bc7e2be04fcbf49c5cec9f5ae76df290c (diff)
downloadu-boot-imx-f6af8ce0c80327cb6aaa347642026ad838335c23.zip
u-boot-imx-f6af8ce0c80327cb6aaa347642026ad838335c23.tar.gz
u-boot-imx-f6af8ce0c80327cb6aaa347642026ad838335c23.tar.bz2
ppc4xx: Fix EEPROM configuration on Kilauea
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>
Diffstat (limited to 'include')
-rw-r--r--include/configs/kilauea.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/kilauea.h b/include/configs/kilauea.h
index df1b061..1e7e731 100644
--- a/include/configs/kilauea.h
+++ b/include/configs/kilauea.h
@@ -374,9 +374,10 @@
*----------------------------------------------------------------------*/
#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