mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
dfu: make data buffer size configurable
Dfu transfer uses a buffer before writing data to the raw storage device. Make the size (in bytes) of this buffer configurable through environment variable "dfu_bufsiz". Defaut value is configurable through CONFIG_SYS_DFU_DATA_BUF_SIZE Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@ti.com> Cc: Lukasz Majewski <l.majewski@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Cc: Marek Vasut <marex@denx.de> Cc: Wolfgang Denk <wd@denx.de> Acked-by: Tom Rini <trini@ti.com>
This commit is contained in:
committed by
Marek Vasut
parent
e6bf18dba2
commit
e7e75c70c5
@@ -68,7 +68,9 @@ static inline unsigned int get_mmc_blk_size(int dev)
|
||||
|
||||
#define DFU_NAME_SIZE 32
|
||||
#define DFU_CMD_BUF_SIZE 128
|
||||
#define DFU_DATA_BUF_SIZE (1024*1024*8) /* 8 MiB */
|
||||
#ifndef CONFIG_SYS_DFU_DATA_BUF_SIZE
|
||||
#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 */
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user