ppc4xx: Fix EEPROM configuration on Kilauea
PATCH 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.
--- include/configs/kilauea.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
include/configs/kilauea.h +2 -1
@@ -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
PATCH 1/1 ppc4xx: Fix EEPROM configuration on Kilauea
Dear Stefan Roese,
Quoted 14 lines · In message <[email protected]> you wrote:
Kilauea has an AT24C02 EEPROM which has an 8 byte page. Without defining
CONFIG_SYS_EEPROM_PAGE_WRITE_BITSto 3 the "eeprom" command doesn't work correctly.Signed-off-by Stefan Roese <[email protected]>--- include/configs/kilauea.h | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)include/configs/kilauea.h +0
-0
include/configs/kilauea.h line 380
Quoted 8 lines
include/configs/kilauea.h +2
-1@@ -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
The commit message does not mention the increased write delay. Is htis really needed? The (removed) comment says 5ms should be sufficient?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de If A equals success, then the formula is A = X + Y + Z. X is work. Y is play. Z is keep your mouth shut. - Albert Einstein
PATCH 1/1 ppc4xx: Fix EEPROM configuration on Kilauea
Quoted 8 lines · On Wednesday 22 July 2009 09:27:45 Wolfgang Denk wrote:
Quoted 5 lines
-#define
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS6 /* 24C02 requires 5ms
delay */ #defineCONFIG_SYS_I2C_EEPROM_ADDR0x52/* I2C boot EEPROM
(24C02BN) */ #defineCONFIG_SYS_I2C_EEPROM_ADDR_LEN1 /* Bytes of
address */ +#defineCONFIG_SYS_EEPROM_PAGE_WRITE_BITS3
+#defineCONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS10The commit message does not mention the increased write delay. Is htis really needed? The (removed) comment says 5ms should be sufficient?
10ms is also used on many other AMCC eval boards. It's more defensive. But you are correct. I should have mentioned it in the commit message. I'll add it and resubmit.
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
=====================================================================
PATCH 1/1 ppc4xx: Fix EEPROM configuration on Kilauea
Dear Stefan Roese,
Quoted 7 lines · In message <[email protected]> you wrote:
Quoted 3 lines
The commit message does not mention the increased write delay. Is htis really needed? The (removed) comment says 5ms should be sufficient?
10ms is also used on many other AMCC eval boards. It's more defensive. But you are correct. I should have mentioned it in the commit message. I'll add it and resubmit.
Is there any reason for being so defensive here?
In any case I think you should add a comment, explaining your reasons.
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I'm frequently appalled by the low regard you Earthmen have for life. -- Spock, "The Galileo Seven", stardate 2822.3