All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size
@ 2017-04-05 11:42 Marek Vasut
  2017-04-05 11:42 ` [U-Boot] [PATCH 2/3] ARM: socfpga: mcvevk: Add default dfu_alt_info Marek Vasut
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marek Vasut @ 2017-04-05 11:42 UTC (permalink / raw)
  To: u-boot

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@denx.de>
---
 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 */
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/3] ARM: socfpga: mcvevk: Add default dfu_alt_info
  2017-04-05 11:42 [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
@ 2017-04-05 11:42 ` Marek Vasut
  2017-04-05 11:42 ` [U-Boot] [PATCH 3/3] ARM: socfpga: Disable OC on MCVEVK Marek Vasut
  2017-04-05 11:43 ` [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
  2 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2017-04-05 11:42 UTC (permalink / raw)
  To: u-boot

Add default DFU altinfo for eMMC.

Signed-off-by: Marek Vasut <marex@denx.de>
---
 include/configs/socfpga_mcvevk.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/configs/socfpga_mcvevk.h b/include/configs/socfpga_mcvevk.h
index 604ea20..2d36702 100644
--- a/include/configs/socfpga_mcvevk.h
+++ b/include/configs/socfpga_mcvevk.h
@@ -37,6 +37,7 @@
 	"netdev=eth0\0"							\
 	"hostname=mcvevk\0"						\
 	"kernel_addr_r=0x10000000\0"					\
+	"dfu_alt_info=mmc raw 0 3867148288\0"				\
 	"update_filename=u-boot-with-spl.sfp\0"				\
 	"update_sd_offset=0x800\0"					\
 	"update_sd="		/* Update the SD firmware partition */	\
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 3/3] ARM: socfpga: Disable OC on MCVEVK
  2017-04-05 11:42 [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
  2017-04-05 11:42 ` [U-Boot] [PATCH 2/3] ARM: socfpga: mcvevk: Add default dfu_alt_info Marek Vasut
@ 2017-04-05 11:42 ` Marek Vasut
  2017-04-05 11:43 ` [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
  2 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2017-04-05 11:42 UTC (permalink / raw)
  To: u-boot

Disable the OC test on MCVEVK as the old PHY version does not provide
this information. This fixes the USB OTG operation.

Signed-off-by: Marek Vasut <marex@denx.de>
---
 arch/arm/dts/socfpga_cyclone5_mcvevk.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/dts/socfpga_cyclone5_mcvevk.dts b/arch/arm/dts/socfpga_cyclone5_mcvevk.dts
index 1462f08..833a87d 100644
--- a/arch/arm/dts/socfpga_cyclone5_mcvevk.dts
+++ b/arch/arm/dts/socfpga_cyclone5_mcvevk.dts
@@ -54,5 +54,6 @@
 };
 
 &usb1 {
+	disable-over-current;
 	status = "okay";
 };
-- 
2.10.2

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size
  2017-04-05 11:42 [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
  2017-04-05 11:42 ` [U-Boot] [PATCH 2/3] ARM: socfpga: mcvevk: Add default dfu_alt_info Marek Vasut
  2017-04-05 11:42 ` [U-Boot] [PATCH 3/3] ARM: socfpga: Disable OC on MCVEVK Marek Vasut
@ 2017-04-05 11:43 ` Marek Vasut
  2 siblings, 0 replies; 4+ messages in thread
From: Marek Vasut @ 2017-04-05 11:43 UTC (permalink / raw)
  To: u-boot

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@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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-05 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-05 11:42 [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut
2017-04-05 11:42 ` [U-Boot] [PATCH 2/3] ARM: socfpga: mcvevk: Add default dfu_alt_info Marek Vasut
2017-04-05 11:42 ` [U-Boot] [PATCH 3/3] ARM: socfpga: Disable OC on MCVEVK Marek Vasut
2017-04-05 11:43 ` [U-Boot] [PATCH 1/3] ARM: socfpga: Reduce the DFU buffer size Marek Vasut

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.