summaryrefslogtreecommitdiff
path: root/include/dfu.h
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2013-09-10 15:29:23 +0200
committerMarek Vasut <marex@denx.de>2013-09-24 17:51:35 +0200
commit7a813d5b7d7e8dce209999f460d962d41a0b8a3e (patch)
tree7f9657f3866e25a0dcc8679c6d018145e42cc4bc /include/dfu.h
parenta7d2c3cdf2608a597845e10a3bcaafb9e016203b (diff)
downloadu-boot-imx-7a813d5b7d7e8dce209999f460d962d41a0b8a3e.zip
u-boot-imx-7a813d5b7d7e8dce209999f460d962d41a0b8a3e.tar.gz
u-boot-imx-7a813d5b7d7e8dce209999f460d962d41a0b8a3e.tar.bz2
dfu: Make maximum DFU file size equal to default DFU data buffer
Up till now the DFU maximum file size (to be written to e.g. eMMC) was different from the DFU data buffer size. It caused errors when one buffer was smaller than data to be written. Now, the maximum DFU file size is equal to default DFU buffer size. In spite of this, user is still able to manually adjust those default values. Change-Id: Ied75d0f7b59588ebd79dae9a22af801d36622216 Signed-off-by: Lukasz Majewski <l.majewski@samsung.com>
Diffstat (limited to 'include/dfu.h')
-rw-r--r--include/dfu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dfu.h b/include/dfu.h
index 47b9055..7779710 100644
--- a/include/dfu.h
+++ b/include/dfu.h
@@ -62,7 +62,7 @@ static inline unsigned int get_mmc_blk_size(int dev)
#define CONFIG_SYS_DFU_DATA_BUF_SIZE (1024*1024*8) /* 8 MiB */
#endif
#ifndef CONFIG_SYS_DFU_MAX_FILE_SIZE
-#define CONFIG_SYS_DFU_MAX_FILE_SIZE (4 << 20) /* 4 MiB */
+#define CONFIG_SYS_DFU_MAX_FILE_SIZE CONFIG_SYS_DFU_DATA_BUF_SIZE
#endif
struct dfu_entity {