summaryrefslogtreecommitdiff
path: root/include/configs/warp.h
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-03-02 10:17:17 -0300
committerStefano Babic <sbabic@denx.de>2015-03-13 13:21:35 +0100
commit97ee459033f42e41be732a4baba06db7ba6e95e1 (patch)
tree1010f1b5fcd5ead00555ad2553c514bb44c13d14 /include/configs/warp.h
parent1f62482eed73108ed602b80ed462c26043a35235 (diff)
downloadu-boot-imx-97ee459033f42e41be732a4baba06db7ba6e95e1.zip
u-boot-imx-97ee459033f42e41be732a4baba06db7ba6e95e1.tar.gz
u-boot-imx-97ee459033f42e41be732a4baba06db7ba6e95e1.tar.bz2
warp: Add Device Firmware Upgrade support
Device Firmware Upgrade (DFU) is a very convenient mechanism to upgrade U-boot on the eMMC. Add support for it. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Acked-by: Otavio Salvador <otavio@ossystems.com.br>
Diffstat (limited to 'include/configs/warp.h')
-rw-r--r--include/configs/warp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/configs/warp.h b/include/configs/warp.h
index aa3115b..e851da0 100644
--- a/include/configs/warp.h
+++ b/include/configs/warp.h
@@ -28,7 +28,7 @@
#define CONFIG_REVISION_TAG
/* Size of malloc() pool */
-#define CONFIG_SYS_MALLOC_LEN (3 * SZ_1M)
+#define CONFIG_SYS_MALLOC_LEN (35 * SZ_1M) /* Increase due to DFU */
#define CONFIG_BOARD_EARLY_INIT_F
#define CONFIG_BOARD_LATE_INIT
@@ -147,6 +147,12 @@
#define CONFIG_G_DNL_PRODUCT_NUM 0xa4a5
#define CONFIG_G_DNL_MANUFACTURER "FSL"
+#define CONFIG_CMD_DFU
+#define CONFIG_DFU_FUNCTION
+#define CONFIG_DFU_MMC
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_32M
+#define DFU_DEFAULT_POLL_TIMEOUT 300
+
#define CONFIG_EXTRA_ENV_SETTINGS \
"script=boot.scr\0" \
"image=zImage\0" \
@@ -161,6 +167,7 @@
"mmcdev=0\0" \
"mmcpart=1\0" \
"mmcroot=/dev/mmcblk0p2 rootwait rw\0" \
+ "dfu_alt_info=boot raw 0x2 0x400 mmcpart 1\0" \
"mmcargs=setenv bootargs console=${console},${baudrate} " \
"root=${mmcroot}\0" \
"loadbootscript=" \