summaryrefslogtreecommitdiffstats
path: root/include/configs/mx35pdk.h
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2012-09-05 21:47:42 +0000
committerStefano Babic <sbabic@denx.de>2012-09-10 14:32:47 +0200
commit3292539e7dc347c2d8a8f307b3a1ffa67ca1d4fe (patch)
tree449f3123895e07640fe015d34a64f87fd4bce080 /include/configs/mx35pdk.h
parent5d20881eec7e25d453755a930cbee3ba441d9ec7 (diff)
downloadtalos-obmc-uboot-3292539e7dc347c2d8a8f307b3a1ffa67ca1d4fe.tar.gz
talos-obmc-uboot-3292539e7dc347c2d8a8f307b3a1ffa67ca1d4fe.zip
MX35: mx35pdk: add support for MMC
Add support for SD card and change the default environment due to increased u-boot size. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'include/configs/mx35pdk.h')
-rw-r--r--include/configs/mx35pdk.h17
1 files changed, 15 insertions, 2 deletions
diff --git a/include/configs/mx35pdk.h b/include/configs/mx35pdk.h
index 834b97da77..38b1546584 100644
--- a/include/configs/mx35pdk.h
+++ b/include/configs/mx35pdk.h
@@ -110,6 +110,12 @@
#define CONFIG_NET_RETRY_COUNT 100
#define CONFIG_CMD_DATE
+#define CONFIG_CMD_MMC
+#define CONFIG_DOS_PARTITION
+#define CONFIG_EFI_PARTITION
+#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_FAT
+
#define CONFIG_BOOTDELAY 3
#define CONFIG_LOADADDR 0x80800000 /* loadaddr env var */
@@ -237,6 +243,13 @@
#define CONFIG_MXC_NAND_HWECC
#define CONFIG_SYS_NAND_LARGEPAGE
+/* mmc 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
+
/*
* Default environment and default scripts
* to update uboot and load kernel
@@ -278,8 +291,8 @@
"u-boot=" xstr(CONFIG_HOSTNAME) "/u-boot.bin\0" \
"load=tftp ${loadaddr} ${u-boot}\0" \
"uboot_addr=" xstr(CONFIG_SYS_MONITOR_BASE) "\0" \
- "update=protect off ${uboot_addr} +40000;" \
- "erase ${uboot_addr} +40000;" \
+ "update=protect off ${uboot_addr} +80000;" \
+ "erase ${uboot_addr} +80000;" \
"cp.b ${loadaddr} ${uboot_addr} ${filesize}\0" \
"upd=if run load;then echo Updating u-boot;if run update;" \
"then echo U-Boot updated;" \
OpenPOWER on IntegriCloud