summaryrefslogtreecommitdiff
path: root/include/configs/tegra-common-usb-gadget.h
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2015-09-05 04:03:49 (GMT)
committerTom Rini <trini@konsulko.com>2015-09-11 21:15:25 (GMT)
commitf69d72ee2a147b93f6d7664daf62af997e28f5b0 (patch)
treeedd618637b8581eb7ab428cb2507819ac8383fd6 /include/configs/tegra-common-usb-gadget.h
parent99d969612f6e46192b4a963a7e5f8466a884f920 (diff)
downloadu-boot-f69d72ee2a147b93f6d7664daf62af997e28f5b0.tar.xz
ARM: tegra: tweak DFU buffer sizes
CONFIG_SYS_DFU_DATA_BUF_SIZE defines the size of chunks transferred across USB. This doesn't need to be particularly large, since it doesn't limit the overall transfer size. CONFIG_SYS_DFU_MAX_FILE_SIZE is used to buffer an entire file before writing it to a filesystem. This define limits the maximum file size that may be transferred. Bump this up to 32MiB in order to support large uncompressed kernel images. Both of these buffers are dynamically allocated, and so the size of both needs to be taken into account when calculating the required malloc region size. Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'include/configs/tegra-common-usb-gadget.h')
-rw-r--r--include/configs/tegra-common-usb-gadget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/configs/tegra-common-usb-gadget.h b/include/configs/tegra-common-usb-gadget.h
index e51da3f..b1a14cb 100644
--- a/include/configs/tegra-common-usb-gadget.h
+++ b/include/configs/tegra-common-usb-gadget.h
@@ -30,7 +30,8 @@
#define CONFIG_CMD_USB_MASS_STORAGE
/* DFU protocol */
#define CONFIG_USB_FUNCTION_DFU
-#define CONFIG_SYS_DFU_DATA_BUF_SIZE (1 * 1024 * 1024)
+#define CONFIG_SYS_DFU_DATA_BUF_SIZE SZ_1M
+#define CONFIG_SYS_DFU_MAX_FILE_SIZE SZ_32M
#define CONFIG_CMD_DFU
#ifdef CONFIG_MMC
#define CONFIG_DFU_MMC