Skip to contentSkip to conversation

imx6: fix random hang when download by mfgtools

PATCH New Frank Li 1 participant 1 message Nov 13, 2013 Arm (32-bit)

lore
Share & tools
lore

Frank Li

author
#0 lore raw

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

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