From: Frank Li Date: Wed, 13 Nov 2013 16:58:46 +0000 (+0800) Subject: imx6: fix random hang when download by usb X-Git-Tag: v2014.01-rc3~9^2~47^2~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ebaf6b26bc12bd470188f3149a75397f112ab09d;p=u-boot 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 Signed-off-by: Huang yongcai Signed-off-by: Frank Li --- diff --git a/arch/arm/cpu/armv7/mx6/soc.c b/arch/arm/cpu/armv7/mx6/soc.c index a3902962b5..335706adf6 100644 --- a/arch/arm/cpu/armv7/mx6/soc.c +++ b/arch/arm/cpu/armv7/mx6/soc.c @@ -150,6 +150,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(); }