]> git.sur5r.net Git - u-boot/blobdiff - include/configs/ads5121.h
MUNICes: Set the right CFG_DEFAULT_MBAR value.
[u-boot] / include / configs / ads5121.h
index 22eac1b4b95c0ab93416a390944e4489ec854db5..58060a8c8a5a5830ebc2cdbf5945b1de3e413127 100644 (file)
 #define CFG_I2C_SPEED          100000  /* I2C speed and slave address */
 #define CFG_I2C_SLAVE          0x7F
 #if 0
-#define CFG_I2C_NOPROBES       {{0,0x69}}      * Don't probe these addrs */
+#define CFG_I2C_NOPROBES       {{0,0x69}}      /* Don't probe these addrs */
 #endif
 
+/*
+ * EEPROM configuration
+ */
+#define CFG_I2C_EEPROM_ADDR_LEN                2       /* 16-bit EEPROM address */
+#define CFG_I2C_EEPROM_ADDR            0x50    /* Atmel: AT24C32A-10TQ-2.7 */
+#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 10      /* 10ms of delay */
+#define CFG_EEPROM_PAGE_WRITE_BITS     5       /* 32-Byte Page Write Mode */
+
 /*
  * Ethernet configuration
  */
 #define CONFIG_CMD_NFS
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_REGINFO
+#define CONFIG_CMD_EEPROM
 
 #if defined(CONFIG_PCI)
 #define CONFIG_CMD_PCI