summaryrefslogtreecommitdiff
path: root/include/configs/motionpro.h
diff options
context:
space:
mode:
authorPiotr Kruszynski <ppk@semihalf.com>2007-05-08 13:05:44 +0200
committerBartlomiej Sieka <tur@semihalf.com>2007-05-08 13:05:44 +0200
commitde1de02a7cbf05e6b63e0d8ffc624f12493f6ba3 (patch)
tree870f778bb5203330ab3d280c26a38f68f052c08f /include/configs/motionpro.h
parentfa5c2ba123b1bf88455bfc21db5e786ca045029d (diff)
downloadu-boot-imx-de1de02a7cbf05e6b63e0d8ffc624f12493f6ba3.zip
u-boot-imx-de1de02a7cbf05e6b63e0d8ffc624f12493f6ba3.tar.gz
u-boot-imx-de1de02a7cbf05e6b63e0d8ffc624f12493f6ba3.tar.bz2
[Motion-PRO] Add support for I2C, EEPROM and RTC.
Diffstat (limited to 'include/configs/motionpro.h')
-rw-r--r--include/configs/motionpro.h30
1 files changed, 29 insertions, 1 deletions
diff --git a/include/configs/motionpro.h b/include/configs/motionpro.h
index 989a534..f1f7e2b 100644
--- a/include/configs/motionpro.h
+++ b/include/configs/motionpro.h
@@ -50,7 +50,10 @@
CFG_CMD_NET | \
CFG_CMD_PING | \
CFG_CMD_IDE | \
- CFG_CMD_FAT)
+ CFG_CMD_FAT | \
+ CFG_CMD_I2C | \
+ CFG_CMD_DATE | \
+ CFG_CMD_EEPROM)
/* this must be included AFTER the definition of CONFIG_COMMANDS (if any) */
#include <cmd_confdefs.h>
@@ -273,6 +276,31 @@
/*
+ * I2C configuration
+ */
+#define CONFIG_HARD_I2C 1 /* I2C with hardware support */
+#define CFG_I2C_MODULE 2 /* select I2C module #2 */
+#define CFG_I2C_SPEED 100000 /* 100 kHz */
+#define CFG_I2C_SLAVE 0x7F
+
+
+/*
+ * EEPROM configuration
+ */
+#define CFG_I2C_EEPROM_ADDR_LEN 1
+#define CFG_EEPROM_PAGE_WRITE_BITS 3
+#define CFG_EEPROM_PAGE_WRITE_DELAY_MS 70
+#define CFG_I2C_MULTI_EEPROMS 1 /* 2 EEPROMs (addr:50,52) */
+
+
+/*
+ * RTC configuration
+ */
+#define CONFIG_RTC_DS1337 1
+#define CFG_I2C_RTC_ADDR 0x68
+
+
+/*
* Environment settings
*/
#define CFG_ENV_IS_IN_FLASH 1