Skip to contentSkip to conversation

imx6: fix random hang when download by usb

PATCH New Frank Li 2 participants 2 messages Nov 13, 2013 – Dec 17, 2013 Arm (32-bit)

lore
Share & tools
lore

Frank Li

author
#0 lore raw

PATCH 1/1 imx6: fix random hang when download by usb

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

---
 arch/arm/cpu/armv7/mx6/soc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/arm/cpu/armv7/mx6/soc.c +2 -0
index bc65767..2cbab4e 100644
@@ -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();
 }
Signature · 1 line
1.7.6
#1 lore raw

PATCH 1/1 imx6: fix random hang when download by usb

Quoted 6 lines · Frank Li

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

---

Applied to u-boot-imx, thanks.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
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
=====================================================================