Skip to contentSkip to conversation

mgcoge, mgsuvd: add EEprom support.

PATCH New Heiko Schocher 2 participants 2 messages Sep 29, 2008 – Oct 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mgcoge, mgsuvd: add EEprom support.

---
 include/configs/mgcoge.h |    8 ++++++++
 include/configs/mgsuvd.h |    7 +++++++
 2 files changed, 15 insertions(+), 0 deletions(-)
include/configs/mgcoge.h +8 -0
index 159eeae..8cff642 100644
@@ -82,6 +82,7 @@
 #include <config_cmd_default.h>
 
 #define CONFIG_CMD_ECHO
+#define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_IMMAP
 #define CONFIG_CMD_MII
@@ -201,6 +202,13 @@
 #define CONFIG_I2C_CMD_TREE	1
 #define CFG_MAX_I2C_BUS		2
 
+/* EEprom support */
+#define CFG_I2C_EEPROM_ADDR_LEN	1
+#define CFG_I2C_MULTI_EEPROMS	1
+#define CFG_EEPROM_PAGE_WRITE_ENABLE
+#define CFG_EEPROM_PAGE_WRITE_BITS 3
+#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
+
 #define CFG_IMMR		0xF0000000
 
 #define CFG_INIT_RAM_ADDR	CFG_IMMR
include/configs/mgsuvd.h +7 -0
index 2c30fab..bf8f19e 100644
@@ -113,6 +113,7 @@
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_PING
@@ -371,5 +372,11 @@
 #define CONFIG_I2C_CMD_TREE	1
 #define CFG_MAX_I2C_BUS		2
 
+/* EEprom support */
+#define CFG_I2C_EEPROM_ADDR_LEN	1
+#define CFG_I2C_MULTI_EEPROMS	1
+#define CFG_EEPROM_PAGE_WRITE_ENABLE
+#define CFG_EEPROM_PAGE_WRITE_BITS 3
+#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10
 
 #endif	/* __CONFIG_H */
Signature · 5 lines
1.5.6.1

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
#1 lore raw

PATCH 1/1 mgcoge, mgsuvd: add EEprom support.

Dear Heiko Schocher,

Quoted 5 lines · In message <[email protected]> you wrote:
---
 include/configs/mgcoge.h |    8 ++++++++
 include/configs/mgsuvd.h |    7 +++++++
 2 files changed, 15 insertions(+), 0 deletions(-)

Added to "next" branch, thanks.

Best regards,

Wolfgang Denk

Signature · 4 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 have a very small mind and must live with it.    -- Edsger Dijkstra