ot1200: add eeprom command to non-SPL build
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 11 Feb 2015 14:20:25 +0000 (15:20 +0100)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Feb 2015 09:42:54 +0000 (10:42 +0100)
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Stefano Babic <sbabic@denx.de>
include/configs/ot1200.h

index c061e93534ff5b601f7ffd65bd811a93fe63c47e..3c60b4f12b9a0735f0d06496abb2e6b64b6dd97d 100644 (file)
 #define CONFIG_PHYLIB
 #define CONFIG_PHY_SMSC
 
+#ifndef CONFIG_SPL
+#define CONFIG_CMD_EEPROM
+#define CONFIG_ENV_EEPROM_IS_ON_I2C
+#define CONFIG_SYS_I2C_EEPROM_BUS             1
+#define CONFIG_SYS_I2C_EEPROM_ADDR_LEN        1
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_BITS     3
+#define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS 5
+#define CONFIG_SYS_I2C_MULTI_EEPROMS
+#endif
+
 /* Miscellaneous commands */
 #define CONFIG_CMD_BMODE
 #define CONFIG_CMD_SETEXPR