]> git.sur5r.net Git - u-boot/commitdiff
mgcoge, mgsuvd: added EEprom support.
authorHeiko Schocher <hs@denx.de>
Wed, 15 Oct 2008 07:36:33 +0000 (09:36 +0200)
committerWolfgang Denk <wd@denx.de>
Sat, 18 Oct 2008 19:54:01 +0000 (21:54 +0200)
Signed-off-by: Heiko Schocher <hs@denx.de>
include/configs/mgcoge.h
include/configs/mgsuvd.h

index 159eeaecfb2ac581c490c7282a2e8a9f27d72bd0..8cff6421430f98060a95f5316ffeeb6b40885dd9 100644 (file)
@@ -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
 #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
index f2cfe6e274777133be5c718de940d2d9d7e0137a..85c6ac9b0453b3630aa63c9f1d8c6f31454a0ad4 100644 (file)
 
 #define CONFIG_CMD_ASKENV
 #define CONFIG_CMD_DHCP
+#define CONFIG_CMD_EEPROM
 #define CONFIG_CMD_I2C
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_PING
 #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 */