]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
imx6: fix random hang when download by usb
authorFrank Li <Frank.Li@freescale.com>
Wed, 13 Nov 2013 16:58:46 +0000 (00:58 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 17 Dec 2013 17:48:45 +0000 (18:48 +0100)
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

index a3902962b5249c4ebf9ef66df991d42b69e007f8..335706adf6476192e8faab5de9a9006657a7f03b 100644 (file)
@@ -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();
 }