summaryrefslogtreecommitdiff
path: root/include/configs/M5253DEMO.h
diff options
context:
space:
mode:
authorTsiChung Liew <Tsi-Chung.Liew@freescale.com>2008-08-19 03:01:19 +0600
committerJohn Rigby <jrigby@freescale.com>2008-08-28 09:16:54 -0600
commiteec567a67e00d1ed8d941e9098b7d421f4091abf (patch)
treededad365b22f5893a7483d5bd3549ab61b8a166d /include/configs/M5253DEMO.h
parentd53cf6a9c7423cba668b867978648645f71c3090 (diff)
downloadu-boot-imx-eec567a67e00d1ed8d941e9098b7d421f4091abf.zip
u-boot-imx-eec567a67e00d1ed8d941e9098b7d421f4091abf.tar.gz
u-boot-imx-eec567a67e00d1ed8d941e9098b7d421f4091abf.tar.bz2
ColdFire: I2C fix for multiple platforms
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Diffstat (limited to 'include/configs/M5253DEMO.h')
-rw-r--r--include/configs/M5253DEMO.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/configs/M5253DEMO.h b/include/configs/M5253DEMO.h
index f2c2317..9f78f6e 100644
--- a/include/configs/M5253DEMO.h
+++ b/include/configs/M5253DEMO.h
@@ -118,6 +118,17 @@
#define CONFIG_HOSTNAME M5253DEMO
+/* I2C */
+#define CONFIG_FSL_I2C
+#define CONFIG_HARD_I2C /* I2C with hw support */
+#define CFG_I2C_SPEED 80000
+#define CFG_I2C_SLAVE 0x7F
+#define CFG_I2C_OFFSET 0x00000280
+#define CFG_IMMR CFG_MBAR
+#define CFG_I2C_PINMUX_REG (*(u32 *) (CFG_MBAR+0x19C))
+#define CFG_I2C_PINMUX_CLR (0xFFFFE7FF)
+#define CFG_I2C_PINMUX_SET (0)
+
#define CFG_PROMPT "=> "
#define CFG_LONGHELP /* undef to save memory */