summaryrefslogtreecommitdiff
path: root/include/configs/mx25pdk.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-10-23 06:34:49 +0000
committerStefano Babic <sbabic@denx.de>2012-10-26 16:28:07 +0200
commitaf2a4093cb141f9c5ea433c41ab06a528a7792a6 (patch)
treec8d1d5645281c741c378e9561cf570d7497ecb00 /include/configs/mx25pdk.h
parentd6d94e73608c51ea9bdbd4c2012ebabefd9d1600 (diff)
downloadu-boot-imx-af2a4093cb141f9c5ea433c41ab06a528a7792a6.zip
u-boot-imx-af2a4093cb141f9c5ea433c41ab06a528a7792a6.tar.gz
u-boot-imx-af2a4093cb141f9c5ea433c41ab06a528a7792a6.tar.bz2
mx25pdk: Add esdhc support
mx25pdk has a SD/MMC slot connected to esdhc1. Add support for it and allow the environment variables to be saved into SD/MMC. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'include/configs/mx25pdk.h')
-rw-r--r--include/configs/mx25pdk.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/include/configs/mx25pdk.h b/include/configs/mx25pdk.h
index 58582d9..5258f88 100644
--- a/include/configs/mx25pdk.h
+++ b/include/configs/mx25pdk.h
@@ -22,6 +22,7 @@
#define CONFIG_MX25
#define CONFIG_SYS_HZ 1000
#define CONFIG_SYS_TEXT_BASE 0x81200000
+#define CONFIG_MXC_GPIO
#define CONFIG_DISPLAY_CPUINFO
#define CONFIG_DISPLAY_BOARDINFO
@@ -65,9 +66,10 @@
/* No NOR flash present */
#define CONFIG_ENV_OFFSET (6 * 64 * 1024)
#define CONFIG_ENV_SIZE (8 * 1024)
-#define CONFIG_ENV_IS_NOWHERE
#define CONFIG_SYS_NO_FLASH
+#define CONFIG_ENV_IS_IN_MMC
+#define CONFIG_SYS_MMC_ENV_DEV 0
/* U-Boot general configuration */
#define CONFIG_SYS_PROMPT "MX25PDK U-Boot > "
@@ -85,6 +87,9 @@
/* U-Boot commands */
#include <config_cmd_default.h>
#define CONFIG_CMD_CACHE
+#define CONFIG_CMD_MMC
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_FAT
/* Ethernet */
#define CONFIG_FEC_MXC
@@ -93,6 +98,15 @@
#define CONFIG_CMD_NET
#define CONFIG_ENV_OVERWRITE
+/* ESDHC driver */
+#define CONFIG_MMC
+#define CONFIG_GENERIC_MMC
+#define CONFIG_FSL_ESDHC
+#define CONFIG_SYS_FSL_ESDHC_ADDR 0
+#define CONFIG_SYS_FSL_ESDHC_NUM 1
+
+#define CONFIG_DOS_PARTITION
+
#define CONFIG_BOOTDELAY 3
#define CONFIG_LOADADDR 0x81000000 /* loadaddr env var */