]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dfu.h
dfu: make data buffer size configurable
[karo-tx-uboot.git] / include / dfu.h
index a107f4b13e308aa17f2eb64ef7b5e402d02c6d95..124653c8164fa96daaa0c20222b4f067d467ade9 100644 (file)
@@ -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