public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] imx6: fix random hang when download by usb
@ 2013-11-13 16:58 Frank Li
  2013-12-17 17:49 ` Stefano Babic
  0 siblings, 1 reply; 2+ messages in thread
From: Frank Li @ 2013-11-13 16:58 UTC (permalink / raw)
  To: u-boot

ROM did not invalidate L1 cache when download by usb
Need invalidate L1 cache before enable cache

Signed-off-by: Huang yongcai <b20788@freescale.com>
Signed-off-by: Frank Li <Frank.Li@freescale.com>
---
 arch/arm/cpu/armv7/mx6/soc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c
index bc65767..2cbab4e 100644
--- a/arch/arm/cpu/armv7/mx6/soc.c
+++ b/arch/arm/cpu/armv7/mx6/soc.c
@@ -117,6 +117,8 @@ int arch_cpu_init(void)
 #ifndef CONFIG_SYS_DCACHE_OFF
 void enable_caches(void)
 {
+	/* Avoid random hang when download by usb */
+	invalidate_dcache_all();
 	/* Enable D-cache. I-cache is already enabled in start.S */
 	dcache_enable();
 }
-- 
1.7.6

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

* [U-Boot] [PATCH 1/1] imx6: fix random hang when download by usb
  2013-11-13 16:58 [U-Boot] [PATCH 1/1] imx6: fix random hang when download by usb Frank Li
@ 2013-12-17 17:49 ` Stefano Babic
  0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2013-12-17 17:49 UTC (permalink / raw)
  To: u-boot

On 13/11/2013 17:58, Frank Li wrote:
> ROM did not invalidate L1 cache when download by usb
> Need invalidate L1 cache before enable cache
> 
> Signed-off-by: Huang yongcai <b20788@freescale.com>
> Signed-off-by: Frank Li <Frank.Li@freescale.com>
> ---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic



-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================

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

end of thread, other threads:[~2013-12-17 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-13 16:58 [U-Boot] [PATCH 1/1] imx6: fix random hang when download by usb Frank Li
2013-12-17 17:49 ` Stefano Babic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox