All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] ppc4xx: Fix EEPROM configuration on Kilauea
@ 2009-07-21 13:15 Stefan Roese
  2009-07-22  7:27 ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Stefan Roese @ 2009-07-21 13:15 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Stefan Roese <sr@denx.de>
---
 include/configs/kilauea.h |    3 ++-
 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
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-22  9:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-21 13:15 [U-Boot] [PATCH] ppc4xx: Fix EEPROM configuration on Kilauea Stefan Roese
2009-07-22  7:27 ` Wolfgang Denk
2009-07-22  7:44   ` Stefan Roese
2009-07-22  9:42     ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.