summaryrefslogtreecommitdiff
path: root/include/configs/mx51_3stack.h
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-09-04 10:07:20 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:08:11 +0800
commitd293115ed756b0b2912eb62ead1ddee647ec2fee (patch)
tree512c733f1469ad5d5b863a5dd43110eb78bc2814 /include/configs/mx51_3stack.h
parente3f5232e3d7461f9ab4fd4277db2bb91fefe12cc (diff)
downloadu-boot-imx-d293115ed756b0b2912eb62ead1ddee647ec2fee.zip
u-boot-imx-d293115ed756b0b2912eb62ead1ddee647ec2fee.tar.gz
u-boot-imx-d293115ed756b0b2912eb62ead1ddee647ec2fee.tar.bz2
ENGR00116243: I2C support for mx51 3ds board.
I2C support for mx51 3ds board. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs/mx51_3stack.h')
-rw-r--r--include/configs/mx51_3stack.h44
1 files changed, 25 insertions, 19 deletions
diff --git a/include/configs/mx51_3stack.h b/include/configs/mx51_3stack.h
index bf9440b..236de3c 100644
--- a/include/configs/mx51_3stack.h
+++ b/include/configs/mx51_3stack.h
@@ -68,23 +68,6 @@
#define CONFIG_MX51_UART 1
#define CONFIG_MX51_UART1 1
-
-/*
- * MMC Configs
- * */
-#define CONFIG_FSL_MMC 1
-
-#define CONFIG_MMC 1
-#define CONFIG_CMD_MMC
-#define CONFIG_DOS_PARTITION 1
-#define CONFIG_CMD_FAT 1
-#define CONFIG_MMC_BASE 0x0
-
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_NET
-
/* allow to overwrite serial and ethaddr */
#define CONFIG_ENV_OVERWRITE
#define CONFIG_CONS_INDEX 1
@@ -100,10 +83,33 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_DHCP
/* Enable below configure when supporting nand */
-#define CONFIG_CMD_NAND
+/* #define CONFIG_CMD_NAND */
#define CONFIG_MXC_NAND
#define CONFIG_CMD_ENV
#undef CONFIG_CMD_IMLS
+#define CONFIG_CMD_MII
+#define CONFIG_CMD_NET
+
+/*
+ * MMC Configs
+ */
+#define CONFIG_FSL_MMC 1
+
+#define CONFIG_MMC 1
+#define CONFIG_CMD_MMC
+#define CONFIG_DOS_PARTITION 1
+#define CONFIG_CMD_FAT 1
+#define CONFIG_MMC_BASE 0x0
+
+/*
+ * I2C Configs
+ */
+#define CONFIG_CMD_I2C 1
+#define CONFIG_HARD_I2C 1
+#define CONFIG_I2C_MXC 1
+#define CONFIG_SYS_I2C_PORT I2C2_BASE_ADDR
+#define CONFIG_SYS_I2C_SPEED 400000
+#define CONFIG_SYS_I2C_SLAVE 0xfe
#define CONFIG_BOOTDELAY 3
@@ -197,7 +203,7 @@
#define CONFIG_SYS_NAND_BASE 0x40000000
/* Monitor at beginning of flash */
-#define CONFIG_FSL_ENV_IN_NAND
+#define CONFIG_FSL_ENV_IN_MMC
#define CONFIG_ENV_SECT_SIZE (128 * 1024)
#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
#if defined(CONFIG_FSL_ENV_IN_NAND)