Skip to contentSkip to conversation

ppc4xx: Fix EEPROM configuration on Kilauea

PATCH Superseded Stefan Roese 1 participant 2 messages Jul 22, 2009 – Jul 24, 2009

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
v2:
- Add comment about the page write delay to the commit text

 include/configs/kilauea.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
include/configs/kilauea.h +2 -1
index df1b061..1e7e731 100644
@@ -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
Signature · 1 line
1.6.3.3
author Applied
#1 lore raw

PATCH v2 1/1 ppc4xx: Fix EEPROM configuration on Kilauea

Quoted 8 lines · On Wednesday 22 July 2009 10:49:17 Stefan Roese wrote:

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.

Applied to ppc4xx/master. Thanks.

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================