summaryrefslogtreecommitdiff
path: root/include/configs/mx35_3stack.h
diff options
context:
space:
mode:
authorTerry Lv <r65388@freescale.com>2009-07-14 15:59:12 +0800
committerFred Fan <r01011@freescale.com>2009-09-10 17:03:32 +0800
commit98ab00fc5434683e5e281156e24d6a52fa17a417 (patch)
tree664f1d6ca684c68da4258907f98b1dec8769479e /include/configs/mx35_3stack.h
parentafbf753cb44a5b7dfb8bcff430b48a4999214f02 (diff)
downloadu-boot-imx-98ab00fc5434683e5e281156e24d6a52fa17a417.zip
u-boot-imx-98ab00fc5434683e5e281156e24d6a52fa17a417.tar.gz
u-boot-imx-98ab00fc5434683e5e281156e24d6a52fa17a417.tar.bz2
ENGR00114201: Add MMC configs to mx35 3stack config file.
Add MMC configs to mx35 3stack config file. Signed-off-by: Terry Lv <r65388@freescale.com>
Diffstat (limited to 'include/configs/mx35_3stack.h')
-rw-r--r--include/configs/mx35_3stack.h36
1 files changed, 35 insertions, 1 deletions
diff --git a/include/configs/mx35_3stack.h b/include/configs/mx35_3stack.h
index 49c0b84..a49939a 100644
--- a/include/configs/mx35_3stack.h
+++ b/include/configs/mx35_3stack.h
@@ -36,6 +36,10 @@
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
+#define CONFIG_FLASH_HEADER 1
+#define CONFIG_FLASH_HEADER_OFFSET 0x400
+#define CONFIG_FLASH_HEADER_BARKER 0xB1
+
#define BOARD_LATE_INIT
/*
* Disabled for now due to build problems under Debian and a significant increase
@@ -178,6 +182,19 @@
#define PHYS_SDRAM_1 CSD0_BASE_ADDR
#define PHYS_SDRAM_1_SIZE (128 * 1024 * 1024)
+/*
+ * 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
+*/
+
/*-----------------------------------------------------------------------
* FLASH and environment organization
*/
@@ -188,7 +205,6 @@
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
#define CONFIG_SYS_MONITOR_LEN (512 * 1024) /* Reserve 256KiB */
-#define CONFIG_ENV_IS_IN_FLASH 1
#define CONFIG_ENV_SECT_SIZE (128 * 1024)
#define CONFIG_ENV_SIZE CONFIG_ENV_SECT_SIZE
@@ -204,6 +220,24 @@
*/
#define CONFIG_ENV_ADDR (CONFIG_SYS_MONITOR_BASE + CONFIG_ENV_SECT_SIZE)
+#if defined(CONFIG_FSL_MMC)
+ #define CONFIG_FSL_ENV_IN_MMC
+#elif defined(CONFIG_CMD_NAND)
+ #define CONFIG_FSL_ENV_IN_NAND
+#else
+ #define CONFIG_ENV_IS_IN_FLASH 1
+#endif
+
+#if defined(CONFIG_FSL_ENV_IN_NAND)
+ #define CONFIG_ENV_IS_IN_NAND 1
+ #define CONFIG_ENV_OFFSET 0x100000
+#elif defined(CONFIG_FSL_ENV_IN_MMC)
+ #define CONFIG_ENV_IS_IN_MMC 1
+ #define CONFIG_ENV_OFFSET (1024 * 1024)
+#elif defined(CONFIG_FSL_ENV_IS_IN_FLASH)
+ #define CONFIG_ENV_IS_IN_FLASH 1
+#endif
+
/*-----------------------------------------------------------------------
* CFI FLASH driver setup
*/