[U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size

Marek Vasut marex at denx.de
Wed Apr 5 11:43:33 UTC 2017


On 04/05/2017 01:42 PM, Marek Vasut wrote:
> There is no point in having such gargantuan buffer, it only requires
> huge malloc area. Reduce the DFU buffer size.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>

Applied all three.

> ---
>  include/configs/socfpga_common.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
> index 8472b52..8057b88 100644
> --- a/include/configs/socfpga_common.h
> +++ b/include/configs/socfpga_common.h
> @@ -230,7 +230,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
>  #if defined(CONFIG_CMD_DFU) || defined(CONFIG_CMD_USB_MASS_STORAGE)
>  #define CONFIG_USB_FUNCTION_MASS_STORAGE
>  
> -#define CONFIG_SYS_DFU_DATA_BUF_SIZE	(32 * 1024 * 1024)
> +#define CONFIG_SYS_DFU_DATA_BUF_SIZE	(16 * 1024 * 1024)
>  #define DFU_DEFAULT_POLL_TIMEOUT	300
>  
>  /* USB IDs */
> 


-- 
Best regards,
Marek Vasut


More information about the U-Boot mailing list